Skip to content

docs(readme): name the web views the UI actually has - #426

Merged
argszero merged 1 commit into
mainfrom
docs/readme-ui-names-the-views-it-has
Oct 21, 2026
Merged

argszero merged 1 commit into
mainfrom
docs/readme-ui-names-the-views-it-has

Conversation

@argszero

Copy link
Copy Markdown
Owner

Summary

README.md:20 / README.en.md:20 advertised the web UI as "完整 Web 界面(市场 / 钱包 / 交易 / 共享 / 管理)". The sidebar has eight entries, and the roster named five of them — the two a new reader needs first were among the missing: settings (where the generated API key and the public endpoint live) and the dashboard (the view a signed-in user lands on).

Three independent readers agree on the set:

reader what it shows
ui/js/app.js:537-553 the NAV registry — five main items + three role items — flattened into NAV_ORDER; VIEW_TITLE:555 is the same eight keys
ui/index.html eight <section class="view" id="view-*"> blocks: dashboard / marketplace / sharing / wallet / transactions / settings / admin / ops
ui/README.md:187 the hash-view roster, naming all eight ids

It also contradicted the README itself: line 65 says "接入地址在设置页展示" (the access URL is shown on the settings page) one section after the feature list said there is no settings page.

The roster is now copied in the sidebar's own order and wording — NAV_ORDER and the nav.* i18n labels — in both language versions. full dashboard (...) became full interface (...), because "dashboard" is one of the eight views, not the name of the whole UI.

Changes

  • README.md:20 and README.en.md:20 now list all eight views, in the sidebar's order, using its labels
  • No config or data-structure change, so no example file to sync (both edited files are prose only)

Deliberately no count. Writing "8 views" would make the sentence a second copy of a fact VIEW_TITLE owns, and it would go stale the moment a view is added — this axis has already ruled that way once (ui/README.md's 「非 7 视图」 was removed in #370 for exactly this). The names are the claim; the code owns the number.

Tests

  • cargo test — 579 passed / 0 failed (includes readme_gate, which compares inline code spans, link targets, bare URLs and number literals across the two READMEs — this change adds none of the four, and both languages were edited together; and deploy_gate, which reads the READMEs only for the fenced code blocks' master key and version strings)
  • cargo fmt --check — clean
  • cargo clippy --all-targets — clean
  • No new unit test: the change is prose, and a gate over this sentence would pin one wording rather than the fact (the fact is owned by VIEW_TITLE)

Checklist

  • Branch name follows the convention (docs/)
  • Commit message uses Conventional Commits (docs(readme): ...)
  • Single purpose, minimal diff — two lines, one per language

The feature list said "full Web 界面 (市场 / 钱包 / 交易 / 共享 / 管理)".
The sidebar has eight entries, and three independent readers agree:
ui/js/app.js's NAV registry (5 main + 3 role items), the eight
<section class="view" id="view-*"> blocks in ui/index.html, and
ui/README.md's hash-view roster. Settings and the dashboard -- the two a
newcomer needs first, since the former holds the generated API key and
the endpoint shown to clients -- were missing, while the same README
tells the reader "接入地址在设置页展示" one section later.

The roster is now copied in the sidebar's own order and wording
(NAV_ORDER; nav.* i18n labels), in both language versions. No count is
written: a number here is a second copy of a fact the code owns, and it
goes stale the moment a view is added.

Tests: cargo test 579 passed / 0 failed (readme_gate and deploy_gate
included); cargo fmt --check and cargo clippy --all-targets clean.
@argszero
argszero merged commit 6da4b74 into main Oct 21, 2026
2 checks passed
@argszero
argszero deleted the docs/readme-ui-names-the-views-it-has branch October 21, 2026 06:00
argszero added a commit that referenced this pull request Oct 22, 2026
Section 3's last bullet claims a bilingual front end across "all pages"
and then names six: market, wallet, transactions, sharing, admin,
settings. The UI has eight.

  ui/js/app.js:537-551  NAV          dashboard / marketplace / sharing /
                                     wallet / transactions / admin / ops /
                                     settings
  ui/js/app.js:555-562  VIEW_TITLE   the same eight keys; VALID_VIEWS is
                                     its key set (:565)
  ui/js/i18n.js         view.*       all eight titles in both language
                                     packages (zh :99-106, en :942-949)

The omission contradicts the document itself twice over. Line 38 of the
same list names the operator view ("enterprise controls: ... operator
view"), and the roles table at :13 describes it as a view of its own. It
also contradicts the README this section says it mirrors: README.md:20
and README.en.md:20 have listed all eight since #426.

The fix is one line: name all eight, in sidebar order, in the wording the
README already uses. No gate reads docs/user-stories.md -- grep -rn
user-stories src/ finds one comment in gift.rs -- so this corrects the
data without adding a guard, which is the axis' standing rule.

Co-authored-by: argszero <argszero@argszerodeMac-mini.local>
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.

1 participant