Skip to content

"Override" followup No 2#109

Merged
dabreegster merged 7 commits into
a-b-street:mainfrom
tordans:override-followup-2
Mar 15, 2026
Merged

"Override" followup No 2#109
dabreegster merged 7 commits into
a-b-street:mainfrom
tordans:override-followup-2

Conversation

@tordans

@tordans tordans commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

Thanks for the feedback in #108

This does a bit of cleanup. And also improves the UI in some places.
I add https://zod.dev/packages/mini here which has a very small footprint.

tordans added 7 commits March 15, 2026 07:38
We should only use one term for this…
From the LLM Chat:

> Override = user/data that takes precedence over base behavior (e.g. "manual overrides"). Fits this feature: locally stored crossing segments that override/supplement the displayed/exported data. Common in config/settings.
>
> Overwrite = writing over and replacing existing content; can imply destructive replacement of source data. The feature is additive (added crossings), not replacing OSM.
Sorry I missed this; This is left over from an older iteration of the mode switcher.
end: { lat: number; lng: number };
};

export type AddedCrossingSegment = SnappedSegment & {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't used zod before, but a little surprised there's not a way to generate the TS type from it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are and usually I do. But this case was so simple, that I thought to keep it written out…

@dabreegster dabreegster merged commit 7a69d6d into a-b-street:main Mar 15, 2026
@tordans tordans deleted the override-followup-2 branch March 15, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants