Repository navigation
feat(ui): dynamic document title follows view switches (v1.18 F) - #53
Merged
Merged
Conversation
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
Implements item F (动态文档标题 / Dynamic document title) of the UI/UE round-3 wave (rant
2026-08-17T18:06:09, branchfeat/ui-ue-round3, version v1.18).document.titlenow follows the active view:switchView, the title is set to「VIEW_TITLE[id] · AITokenPool」(e.g.模型市场 Marketplace · AITokenPool). All 7 views are covered by the existingVIEW_TITLEmap; unknown view ids fall back toAITokenPool.DOMContentLoadedthe title is set toAITokenPool(login page / pre-view state); the static<title>tag inindex.htmlis aligned toAITokenPoolas well.switchViewreturns early, so the title stays unchanged (no spurious title flip).All title flows go through
switchView(sidebar clicks, keyboard shortcuts 1–7, login, guest browse), so the update is centralized in one place.Verification
node --check✓ ·cargo test✓ ·cargo fmt --check✓Rant (verbatim)
Docs
docs/user-stories.mdv1.18 entry extended with item F (remaining G noted)ui/README.md: new "动态文档标题约定" section