feat(web): two-row route form, source always editable#80
Draft
cafca wants to merge 1 commit into
Draft
Conversation
Reshape the route input to mirror the mobile RouteCard: - Two always-tappable rows for origin and destination, each with inline edit and a search results dropdown beneath the panel. - Drop the "locked once computed" guard so the user can change either waypoint at any time without first clearing the route. - Add a swap button on the right of the destination row, visible once destination is set. - Move the gear into a "Preferences" text button that sits in the footer row alongside Save start as home (or the home toggle + reset). - Map clicks now write to whichever row is currently being edited; if no row is in edit mode they fall back to the legacy origin-then- destination fill order. - Add setOrigin / setDestination / swapWaypoints helpers; route the origin and destination marker drag handlers through them so editingField stays consistent and recompute logic is shared. - applyStartAtHome and handleSaveHome clear editingField when they set the origin so the home name renders instead of an empty input. - clearRoute resets editingField (to 'origin' when origin is null, null when origin auto-fills from home). Tests cover swapWaypoints, the new clearRoute editingField behaviour, and the applyStartAtHome editingField fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reshape the web route input to mirror the mobile RouteCard so the user can change source or destination at any time without first cancelling the route.
Depends on #76 for the dev-server proxy fix used while previewing against beebeebike.com — independent change, can land in either order.
Test plan