Repository navigation
Conversation
… the phase index, walk back to 90% The phase-lanes diagram stays the only layout. No contract change, no new setting or keybinding, version unchanged. 0a. An inferred or unresolved connection no longer joins a trunk (routing.ts, bundles.ts). Each one that skips a phase takes a channel track of its own, 8 px apart (channel.ts, layout.ts), and the new layout/separate.ts slides its other runs off the strokes they shared, never into a card or a header or along a border. With the new tool, those with half or more of their line hidden go from 49 of 56 to none on the repository's documents and from 22 of 61 to none on the 17 public development documents. Where a gutter is full a run can still lie on another line: 26 of 133 over those sets and three local shakedown documents, 99 before. The geometry golden is re-recorded once, on purpose; the reason is in the test header. A diagram with no such connection draws as before. Costs: about 10% more crossings, a few more labels crossed, observed routes re-splay by a few pixels where an uncertain one left their slot, the channel tracks are not capped (144 px on the stress fixture, 23 px at most on the development documents), and a relayout is slower on large synthetic documents (about 420 to 1,000-1,300 ms at 1,000 steps in jsdom; 1-13 ms on real documents). 0b. Reveal in Diagram and the walk keep their cards on the diagram and clear of the phase index (render/canvas.ts, canvasview.ts, app/keys.ts, render/flowbinding.ts): focusing no longer scrolls the diagram, a sheet that lands a frame late no longer leaves a card or a connection's end under the index, a connection whose two cards fit at 45% is framed so both clear it, and a resize judges "was in view" with the index where it was. 0c. After a finding left the zoom between 62% and 75%, the walk's next claim returns to 90%, or as far as it fits (canvasview.ts, app.ts). A zoom the reader chose is kept. 0d. webview/tools/layout-metrics.mjs measures a layout (crossings, card hits, hidden and overlaid uncertain lines, labels, first view, walk travel) with an informational baseline. It gates nothing and is not in the VSIX. Tests: exception-tracks, phase-index-clear, layout-metrics, walk. Local: sh scripts/e2e.sh --skip-npm-install, E2E OK, 15 exercised gates (webview 426, extension 376, pytest 919). Not checked in live VS Code or with a screen reader; the measures are geometric proxies, not readability. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Canvas re-layout, Stage 0
The first stage of the canvas re-layout. It improves today's phase-lanes diagram and the review walk, and adds a tool that measures the layout. Lanes stay the only layout. No contract change, no new setting or keybinding, version unchanged.
What changes
webview/src/layout/separate.tsslides its other runs off the lines they shared (never into a card or a header, or along a border). Those with half or more of their line hidden go from 49 of 56 to none on the repository's documents and from 22 of 61 to none on the 17 public development documents. A diagram with no such connection draws as before.webview/tools/layout-metrics.mjs(0d). A development tool with an informational baseline. It gates nothing and is not in the VSIX.The geometry golden
Re-recorded once, on purpose, for 0a. The reason is in the header of
webview/test/geometry-golden.test.mjs.Costs and known leftovers
Checks
sh scripts/e2e.sh --skip-npm-installprintedE2E OK: 15 exercised gates(webview 426 tests, extension 376, pytest 919 passed) on Node 26.4 and Python 3.13.🤖 Generated with Claude Code