Repository navigation
web: give /about an English channel through the page dictionary - #3487
Conversation
/about was one of the 21 pages the server never renders into English, so it shipped Chinese under <html lang="zh-CN"> whatever language the reader asked for. This slice marks its own body, adds the page keys to the shared page dictionary, and lets the gate render it, following the shape the contacts, guide and download slice established. Related #3479
|
Lead review for head Identity. Head Slice, 5 files, +56/-31. Mechanism. Visible text is untouched. The page's Inventory. Regenerated with the in-tree Rendering. 23 pages × 2 languages with One behaviour change, stated on purpose. Local, not CI, bound to tree CI, bound to exactly this head
Not claimed. Not a parity claim and not an acceptance sign-off. The handler output is still not the file bytes ( |
/aboutis one of the pages the management gateway never renders into English, so a reader who asks for English still gets Chinese under<html lang="zh-CN">. This slice gives the page its own channel, in the shape the contacts / guide / download slice established.Scope, 5 files, +56/-31
flybot_workspace/static/about/index.html: the page body marked withdata-ui-text. The page had 2data-ui-textslots before (shell.skip,shell.settingsfrom the shell slice); this slice adds 17about.*keys, so the page now has 19 slots and the 17 new keys are all distinct.flybot_workspace/static/shell/system-locale-pages.mjs: the 17about.*entries as[zh, en]pairs. zh values are the shipped markup text; en values are the system-language rendering.runtime/flybot-workspace-web/src/pages.js:aboutjoinsLOCALE_PAGESandPAGE_MESSAGE_PAGES.tests/system_locale.test.mjs: the page-level case extended to/about.docs/inventory/visible-controls.json: regenerated with the in-treescripts/visible_inventory.py.No new inline wrappers. The page's
<span>count is 2 before and 2 after this slice, so unlike the contacts / guide / download slice there is no text-plus-control pairing here: only attributes were added, and the visible text stream is untouched. Strippingdata-ui-*on both sides gives the same bytes.Inventory. Regenerated on this tree: counts stay 1913 / 266 / 6 / 24, the
linecolumn does not move, and exactly 5 records change, all inabout/index.html(:31,:32,:61,:65,:66), all only indata. Two consecutive runs give the same bytes (1ec7af6e).Rendering, measured on this tree. 23 pages × 2 languages, with
/assets/<32hex>/normalized: 46 renders, 44 identical to the base tree, and the only differences are/aboutin both languages. On the en side the page renders with 0 static CJK,lang="en"andcontent-language: en; on the zh sidecontent-language: zh-CN.One behaviour change to be explicit about.
/aboutnow sendscontent-languagewhere it previously sent none: the counts move from{en: 5, zh: 5}to{en: 6, zh: 6}. That is the same header behaviorchat,settingsand the three pages from the earlier slice already have, and it is what gating the page means.Local, not CI, bound to tree
67b02ab7:tests/*.test.mjs974 pass / 0 fail / rc 0; full python suiteRan 379 tests ... OK/ rc 0 / 154.0 s under/usr/bin/python3.Not claimed: no parity claim and no acceptance sign-off. The
handleroutput is still not the file bytes (markHtmlinjects two metas and rewrites asset paths), so the zh comparison is served-vs-served after normalization, not "the handler returns the original text". Screenshot baselines do not move: visible labels are unchanged, only attributes were added.Refs #3479