Repository navigation
fix: restore lifecycle final-legend guard and settle workbench Back clicks - #1494
Conversation
…licks - Lifecycle: edc2d8f dropped the entry-count guard, so hiding every semantic legend entry still drew a legend holding only the final ring (legend-contract "empty legends leave no chrome"). Add the ring only when a semantic or change entry exists; change reviews keep it. - Code Analysis standalone browser test: the reader's grid width transition moved the Back buttons under the pointer, so under CI load the click landed on the parent and the selection stayed set. Wait for the width transition and the finding pane to return before clicking, and assert the overview opens. Reproduced 2/10 before, 0/10 after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Rebuilt with official Node 22.23.2 (zlib 1.3.1-e00f703); only archify/renderers/lifecycle/render-lifecycle.mjs changes inside the archive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An explicit legend.entries.final.visible: true now keeps the final-state key even when no other entry remains; the default still drops a lone final ring. Adds a legend-contract regression and regenerates archify.zip (official Node 22.23.2, zlib 1.3.1-e00f703). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @tt-a1i for contributing to Archify! Your work is now part of the project. |

Problem and value
entries.length &&guard inrender-lifecycle.mjslegendCatalog(). When every semantic legend entry is hidden, the diagram still draws a legend containing only the final ring, whichtest/legend-contract.test.mjs:213forbids. The fix adds the ring only when a semantic or change entry exists, so change-review diagrams (test/change-marks.test.mjs:369) keep it.test/code-analysis-standalone-browser.test.mjs:145, the reader'sgrid-template-columnstransition moves the Back buttons under the pointer. Under CI load the source Back click lands on the parent and the next Back click misses, so the selection staysCOUP-…. Both Back handlers update state synchronously, so this is test timing, not a UI bug. The test now waits for the transition and for the finding pane to return before clicking, and asserts that the overview opens.AI assistance and accountability
Stability impact
Tests run
Base
dd71ddd3a(origin/main), macOS.node --test test/legend-contract.test.mjs test/change-marks.test.mjs: 53 pass / 0 fail. Lifecycle tests: 81 pass / 0 fail.code-analysis-standalone-browser.test.mjs×10 with Chrome: before the fix 8 pass / 2 reproduce the CI failure; after the fix 10 / 10 pass, plus 5 / 5 on an independent rerun. 4× CPU throttling probe: 6 / 6 pass after the fix.node scripts/run-tests.mjs --shard=4/4: 1,131 pass / 0 fail.pnpm run test:browser --shard=1/4(full profile): 139 / 139 pass on retry. One run hit a single Explainer keyboard-focus assertion that passed on retry; that test is unrelated to this change but may also be flaky.🤖 Generated with Claude Code