Add Save Route and Load Route buttons to RouteEditingBar#4
Draft
Add Save Route and Load Route buttons to RouteEditingBar#4
Conversation
Co-authored-by: daohu527 <10419854+daohu527@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add route editing and saving functionality in routing module
Add Save Route and Load Route buttons to RouteEditingBar
Feb 26, 2026
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.
The route editing toolbar lacked explicit save/load controls — persisting a custom route required a confusing two-click toggle dance via "Add Default Routing", with no obvious way to reload saved routes during editing.
Changes
New
SavedRoutesListcomponentrouteEditingManager.defaultRoutingsas a collapsible button list below the toolbaraddDefaultRoutingPoint(name)to load it into the editor and dismisses the panelRouteEditingBartoolbar additionsDefaultRoutingInputdialog (options.showDefaultRoutingInput = true) without requiring the mode toggleSavedRoutesListpanel; usesdownload.pngicon for clarityState & config
showSavedRoutesList: { default: false }toconfig/parameters.js; picked up automatically byOptions.resetOptions()viaextendObservableStyles
.saved-routes-list,.saved-route-item,.no-routes-msgtomain.scss, matching the existing dark toolbar themeNotes
SaveDefaultRouting+defaultRoutingsstore state throughoutWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
registry.npmmirror.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/npm install --no-audit --prefer-offline(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.