Reference in New Issue
Block a user
Delete Branch "fix/issue-718-tidy-tree-tab-order-stale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
On
main, this test fails:Root cause — a semantic merge conflict between #718 and #724
Neither PR was wrong on its own; they only conflict once both are on
main.['Eugenie', 'Walter', 'Clara', 'Hans'], with a comment stating "buildLayout sorts each generation alphabetically".buildLayoutwith the tidy-tree layout, which orders a couple's run by structural ownership (earliest birth year, then a deterministic id tie-break) rather than alphabetically. With no birth years in the fixture, Walter (id…a1) becomes the run primary and Eugenie renders to his right → actual order['Walter', 'Eugenie', 'Clara', 'Hans'].Both branches were green independently, so neither CI gate caught it; the stale assertion only surfaced once they landed together.
The companion self-validating test in the same block (DOM order == nodes sorted by
y, thenx) kept passing — it already guards the real property — so only the hardcoded assertion needed updating.Fix (test-only)
['Walter', 'Eugenie', 'Clara', 'Hans'].The production layout / tab-order code is correct — tab order still follows the visual reading order, which is the point of #718.
Verification
StammbaumTree.svelte.test.ts— 40/40 pass (both#718tab-order tests + the rest of the file).🤖 Generated with Claude Code
ac326f25fatod1ed9c022f