Repository navigation
workflow: the row badge still reads "Workflow" in a Chinese window (identity table entry + one bare draw) - #3105
Conversation
`Workflow` is the word the panel draws beside a lane's name to say what the lane is, not an id anything reads back, so a zh window prints it in Chinese like the `Flow`, `Runs` and `Workflows` words beside it. The plugin's own ZH table mapped it to itself and the sidebar row drew it bare, so both the row and the Hand a task to a Workflow picker painted English under a Chinese page header. The forward i18n guard's example of an identity entry read workflow's own `Workflow` mapping, which goes false the day the entry is translated; the case is now proven on source written for it. The badge is part of the row's accessible name, so docs/subsystems/workflow.md says it now follows the window's language.
Ready for verdict — T2Written-by: FlyBot Lead Checks at this tip: 16 success + 2 skipped + 1 failure. Green: Scope: Readings in the body: source reverted twice → 177 pass / 2 fail ( @Birfy — T2, so this needs your formal Verdict PASS naming this tip for |
|
Verdict: PASS at 6884473 Ran at this tip: Reviewed the T2 change set (10 files, base 5cb1692, tip 6884473) at tarballs of both refs. Red first. Reverting only Both draw sites are covered. Baselines: exactly two pins, both load-bearing. Each file loses exactly one entry — Guard rewrite is not a weakening. Mirrors byte-identical. Scope. 10 files: the two sources, two rendered tests, two baselines plus their three patch mirrors, the guard test, Tip checks. 19 check-runs at 6884473: 17 success, Note on my sandbox: Signed off for the merge queue at this tip. |
Ready for queue — T2Written-by: FlyBot Lead
Nothing else changes here: the tip above is the one the verdict names, and no further commits go on this branch. |
Fixes #3102
Owner: Dev-5
Written-by: Dev-5
Bot: FlyBot Dev-5
Tier: T2
What changed
A Chinese window drew the
Workflowbadge on every workflow row in English. The panel's zh table mappedWorkflowto itself and the sidebar row painted the word bare, so the badge stayed English beside an already-translated page header.plugins/workflow/client.js:Workflow: '工作流'in the plugin's own zh table, and the sidebar row's badge draw goes throughtr('Workflow'). The row already had one translated draw site (:1584, the Hand a task to a Workflow picker), which is unchanged; the bare one (:2365) is the defect. Both now read 工作流 under a zh host and keepWorkflowunder an English one.plugins/workflow/test/client.test.js: two rendered assertions. A zh host whosettranslates onlyTasksrenders the lane row and the Hand a task to a Workflow target list, then reads the badge text; the Chinese word can only come from the plugin's own table.core/test/i18n-plugins-missing-zh.test.jsproved "an entry that maps a key to itself is fine" on workflow's ownWorkflowmapping, which goes false the day that entry is translated; the case now runs on source written for it (Same/Kept), with its comments naming the same reason. Theplugins/workflow/client.js:Workflowpins retire from both i18n baselines (missing-zh 3→2, missing-entries 164→163), andgeneratemirrors them underpatches/ds-bot/files/.docs/subsystems/workflow.md: the badge is part of a row's accessible name, so the page now says it follows the window's language.core/client.jsandpatches/ds-bot/0008-client-bundle.patchare untouched — this is the plugin's own table plustr(), so the client bundle lane is not involved.Verification at the tip
Tip SHA:
688447323c45121be87824dc352654566e89d4e3Tree:
f54384a379db811988b248f4d82ac1b278db481f(The push helper recreates the commit on the fork, so the tip sha differs from the local 87ac0584537948476e3b91ce255d4b0edde2f8fd; parent, tree and message are identical — same diff, same code.)
Ran:
cd plugins/workflow && node --import ./test/resolve.mjs --test test/client.test.js— 179 pass / 0 fail (twice at the tip).a zh window reads the badge in Chinese, got "Workflow".cd plugins/workflow && node --import ./test/resolve.mjs --test test/client.test.js --test-name-pattern 'P-784'with the source reverted — the two failing tests are the ones written for this defect.node --test core/test/i18n-plugins-missing-zh.test.js(guard 8/8) andnode --test core/test/i18n-missing-entries.test.js(17/17).(cd core && node scripts/build-client.mjs --check)exit 0.node scripts/ds-bot-patches.mjs check— pin 2b10c70 ok, 10 patches clean, core = ds-bot + patches.node scripts/ds-bot-patches.mjs canonical—ok patches/ds-bot/ is what generate writes (generate is a no-op).(cd core && node scripts/check-arch-docs.mjs)withARCH_DOCS_BASEat the PR base5cb16923— OK, 10 changed files.unset ARCH_DOCS_BASE; TZ=UTC npm run verify— exit 0 (core 3255, social 701, tree 149, timeline 172, workflow 537, project 147, plus 681/37/34; every suite# fail 0).node .github/scripts/changelog.mjs check— 7 fragments well formed.Not run: the smoke test (no
index.js/src/host/change);TZ=Asia/Shanghai npm run verify— its twoplugins/social/test/face-rooms.test.jsfailures (owner-typed face-room lines encode as a human envelope,#194) reproduce on the clean base5cb16923(36 pass / 2 fail, same names), so they are an existing condition and not this change.Checkpoint
{ "pr": 3105, "claim": "Dev-5", "issue": 3102, "summary": "The workflow row badge now prints in the window's language. The plugin's own zh table mapped Workflow to itself and the sidebar row drew the word bare, so both the row and the Hand a task to a Workflow picker painted English under a Chinese page header; one table entry plus one tr() call fix both. Two rendered tests read the badge from the real client under a zh host, and the i18n guard's identity-entry case moved to source written for it. core/client.js and patch 0008 are untouched.", "files": [ "plugins/workflow/client.js", "plugins/workflow/test/client.test.js", "core/test/i18n-plugins-missing-zh.test.js", "core/test/i18n-plugins-missing-zh.baseline.json", "core/test/i18n-missing-entries.baseline.json", "patches/ds-bot/files/test/i18n-plugins-missing-zh.test.js", "patches/ds-bot/files/test/i18n-plugins-missing-zh.baseline.json", "patches/ds-bot/files/test/i18n-missing-entries.baseline.json", "docs/subsystems/workflow.md", "changelog.d/3102-workflow-badge-zh.fixed.md" ], "checks": { "ran": "TZ=UTC npm run verify; build-client --check; ds-bot-patches check+canonical", "result": "green", "at": "688447323c45121be87824dc352654566e89d4e3" }, "next": "none — ready for review" }