feat(ui): URL hash routing — share/bookmark/refresh restore (v1.19 A) - #55
Merged
Merged
Conversation
This was referenced Aug 17, 2026
Merged
Merged
Merged
Merged
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
UI/UE 4th-round deepening — item A: URL hash routing (rant
2026-08-17T20:39:30, v1.19).Views now sync with the address-bar hash (
#/marketplace,#/wallet, …), enabling bookmark / share / refresh-restore / back-forward navigation with zero external dependencies:switchViewsyncslocation.hashviahistory.pushState(skip when already equal → no duplicate entries; pushState never fireshashchange→ no loop)hashchangelistener) follows the view#/xxxnot in the 7 views) → falls back to dashboard without rewriting the URL (avoids polluting history / double-back)#/settings) → intercepted byGUEST_VIEWS(toast), view + URL untouched, no new history entryDocs:
docs/user-stories.mdv1.19 +ui/README.md「URL hash 路由约定」section. Verified bynode --check, DOM-stub smoke test (13 assertions: refresh restore / pushState / back+forward / illegal hash / guest interception),cargo test,cargo fmt --check.Rant (verbatim)
Related
2026-08-17T20:39:30.507364(projectaitokenpool, status in_progress)feat/ui-ue-round4-hash-routing(per rant: 分支 feat/ui-ue-round4; items B–G to follow in subsequent PRs)Tests
node --check ui/js/app.jscargo test— 1 passedcargo fmt --check