Repository navigation
docs(ui): drop the stale card ordinal from the ops trades-card note - #393
Conversation
The operator overview's trades card is the 6th of the nine cards the render array emits (status, version, uptime, users, keys, trades, calls, in, out), not the ninth -- the README bullet had it as "the 9th card". The card was placed at that position on purpose: the note that landed it records it as "immediately after the keys card, i.e. the mock branch's original slot", and the same README sentence already says the grid has nine cards. The ordinal carried no owner and no gate pins the grid order, so it is dropped rather than refreshed -- a fresh number would rot the same way on the next insertion. Docs only; ui/README.md is part of the include_str! corpus, so the full suite was run.
|
Self-review note. Claim being removed. What fixed the reading of 「第 N 张」. Why drop rather than correct. Nothing owns the grid's order: no gate and no constant pins the sequence of Scope check. |
Summary
The README's operator-overview section describes the trades card as "the 9th card". It is not. The
#ops-statsgrid thatrenderOps()renders is built by the array atui/js/app.js:3173-3189, which emits exactly ninestat(...)calls in this order:ops.stats.statusops.stats.versionops.stats.uptimeops.stats.usersops.stats.keysops.stats.tradesops.stats.callsops.stats.inops.stats.outThe trades card is the 6th. What the words mean here is fixed by the repository's own usage: the sibling comment at
ui/js/app.js:1132says "the 4th of the prototype's 4 cards" for the fourth card of#share-stats, so 「第 N 张」 = position in the card group, and the same README sentence already counts the group ("the prototype has 4, this has 9").Related Issue
None — the in-repo variant of a documentation claim that had drifted from the code.
Changes
交易量卡(第 9 张,回归修复)bullet, leaving交易量卡(回归修复). The rest of the sentence is untouched.The ordinal is dropped rather than refreshed. Nothing owns the grid's order — no gate and no constant pins the sequence of
stat(...)calls — so a corrected number would rot the same way on the next card that gets inserted, exactly as this one did. The "prototype 4 / implementation 9" count in the same sentence is left alone: it is a group size, not a position, and it is correct (verified againstdocs/prototype/aitokenpool-console.html:1385, which renders fourstatCard(...)calls).Because the card was placed at that slot deliberately — the landing note records it as "immediately after the keys card, i.e. the mock branch's original position" — the position itself is not a defect; only the number written about it was wrong.
Tests
cargo test— 557 passed / 0 failedcargo fmt --check— cleancargo clippy --all-targets -- -D warnings— cleanui/README.mdis part of theinclude_str!corpus, so the full suite was run against the edited tree)Checklist
docs/)