Repository navigation
Explain specialised terms in the page copy with a hover popover - #3
Conversation
|
Real-browser verification on this branch's head ( 序章 / 06 — regression on the merged matrix fix (#2)
Glossary layer (this PR)
Tests
No code changes came out of this verification. |
|
Follow-up commit 1. The English interface left several curated terms unexplained. 2. The popover was invisible inside a modal dialog. Verification
This still needs an owner-side merge: the identity available to me has pull-only permission on this repository. |
…dialogs The English interface left several curated terms unexplained: the Chinese copy marks 残差, 投影, 激活, 词表打分 and 多头注意力 where the English copy says residuals, projections, activations, vocabulary scoring and multi-head attention, so an English reader got no popover for them. - Add the missing English surfaces as aliases, including the verb forms the copy actually uses (project, normalize) so both languages mark the same passages. - Move the popover into the dialog that holds the term, because a modal dialog paints in the top layer above every page element and used to hide the explanation. - Keep the popover out of the scan so its own text is never marked.
The upstream declutter pass rewrote the About prose, so the multi-head attention it used to name is no longer there. Assert that term on the mission panel that still introduces it, and keep the residual check.
e0086fe to
f6d310f
Compare
Summary
glossary.js) that gives 21 specialised terms in the page copy a dashed underline and a short definition in a hover/focus popover, written in the language the interface is currently showing.FFNXstays plain,FFNsandtokensare deliberate plural aliases, and nothing is marked inside<code>, vector/matrix cells or numeric labels.#shelf-tooltippattern with a second#glossary-popover: anchored above or below the term so it never covers it, dismissed on pointer leave, blur, scroll, dialog close and Escape,prefers-reduced-motionaware, and the definition exposed througharia-describedbyon a focusable term.Test Plan
npm test— 325 tests passed.ui-smoke.test.cjscase boots the page and asserts theFFNwrapping, the popover content and dismissal, the keyboard focus path, the language switch, and the token-boundary rules.scene-smoke.test.cjscase asserts the module card prose marks its terms and keeps them explained in both languages.