You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drawing W16, W23: the Drawing workspace, and the first drawing made end to end (M2) #4894
Every action runs a drawing command (W15), and what it shows comes from the paper scene (W10). Paper appearance (white, warm or theme, with a soft shadow) is a display preference and never reaches output or undo. It uses the redesigned UI kit and the existing ws_drawing icon.
The M2 checkpoint (W23). A sheet with views, dimensions and title fields, exported, saved and reopened, then a driving parameter edited, a deferred update, a deleted reference repaired, and undo. Engine, UI and export values are compared against each other, with evidence from the native and browser apps. Limits found here refine M3's issues.
Tests
1 mm on paper is 1 mm on screen at 100 % zoom, at any DPI, native and browser. Status is never shown by colour alone.
Merge dependencies
W15 (drawing commands, #3890) and W10's basic scene for W16. W14 to W22 for W23.
Sources: the W16 and W23 rows of the consolidated plan; the Render workspace as the pattern for a separate workspace; the flat pattern's 2D camera and the shared navigation (#1484); the redesigned UI kit.
The layout follows the familiar drawing-workspace convention, with SolidCraft's own names and icons:
The Browser: the drawing, then each sheet with its border, title block, revision table, parts list and views. Derived views (projected, section, detail) sit under the view they come from. Each view lists its source's parts, so a part can be hidden in that view alone. A view that needs an update is marked.
A tab for placing views, grouped as create (base, projected, auxiliary, section, detail), modify (break, crop) and sheets, then an annotate tab.
Dimensions are edited on the sheet.
Slices:
A throwaway prototype, shown as screenshots: paper colours in both themes, Fit and 100 %, and text at several zooms.
A check of the flat pattern page: whether the axis view and the arrow keys still act on the hidden 3D view. Reproduced first, and fixed on its own if real.
Proposed first shared fixture: two-bore workshop plate
Coordination update — 2026-10-23:#4950 and #4962 now define the agreed W23/M2 fixtures. The checkpoint uses the 100 × 80 × 20 mm plate with two Ø10 bores (case 84), its edit cases, the four-hole plate, and the rounded/chamfered variants. The 150 × 80 × 10 mm two-bore proposal below is retained as discussion history; it is superseded for this contribution. Undo ownership follows the separate-file storage plan: model edits belong to the source design's history, and drawing edits to the drawing's history.
@CamWight@Benny1496, following Benny's acceptance in #860, here is a concrete starting point for the fixture and expected results. It fits Cam's A3 / 1:2 M2 checkpoint and gives us a small contribution to agree before a child issue and draft PR.
Original model and hand-derived values
Build a 150 × 80 × 10 mm plate, with its lower-left corner at model XY (0, 0), and two independently created through-hole features:
Fixture label
Centre in model XY, mm
Diameter, mm
A
(30, 20)
8
B
(70, 50)
8
A and B are labels in this fixture, not proposed command parameters, persistent-name syntax or face indices. Keep both centres independent of plate length for the length-change case.
Use an XY view on A3 landscape, 420 × 297 mm, at 1:2. The centre distance is sqrt(40² + 30²) = 50 mm. On paper, the plate envelope is 75 × 40 mm, each bore is Ø4 mm, and the centre separation is 25 mm. Dimension values remain the model measurements: 150, 80, Ø8 and 50 mm.
Create a diameter annotation for each bore and a centre-distance annotation. Move the labels manually and record their placements in paper coordinates, independently of screen pixels.
Independent edit cases
Start each row from the baseline so its expected result is unambiguous:
Model edit
Expected measurement
Expected geometry on paper at 1:2
Plate length 150 → 180 mm; bore centres fixed
Width 180; both bores Ø8; centre distance 50
Envelope width 90; bore Ø4; centre separation 25
Move B to (90, 65) mm
Centre distance sqrt(60² + 45²) = 75; diameters unchanged
Centre separation 37.5
Change A from Ø8 → Ø10
A Ø10; B Ø8; centre distance 50
A Ø5; B Ø4; centre separation 25
Use the shared accuracy contract for numeric tolerances and the formatting profile for displayed strings; the table supplies the mathematical expectations.
Update and identity checks
Run these scenarios in deferred-update mode. A model edit leaves the previous drawing visible and explicitly stale until update is accepted. Acceptance changes the geometry/measurements while retaining deliberately placed labels.
Include close drawing → edit model → reopen → defer → update, followed by save/restart/reopen and undo/redo through the agreed drawing commands and undo ownership.
From the baseline with two Ø8 bores, delete A while B remains. A's diameter and the centre-distance annotation remain present but unresolved, with their historical values distinguishable from current measurements. B's diameter still resolves to Ø8. Neither unresolved annotation transfers to B.
For the repair case, create a new bore at A's old position. Matching position/diameter alone must not repair the lost identity. Deliberate repair can bind to the replacement; undo must restore the preceding reference and status.
First contribution and handoff
The first deliverable can be the original model/reproducible recipe plus this expected-results matrix, with prototype evidence linked separately. Upstream integration checks follow the shared references (#4892), dimensions (#4896), records/commands (#3890), and scene/export support (#4890) as they become available. Record dependency-gated cases as pending.
@Benny1496, would you like to prepare that fixture/expectations slice? @CamWight, could you confirm whether these boundaries fit your W23 work and flag any preferred existing test location? Once you both agree, the focused child issue can link here, and Benny can claim that slice with its draft PR. The selected cylinder-diameter implementation can then be scoped separately under #4896.
Thank you for putting together such a clear and detailed workshop fixture!
I'd be very happy to take on the first contribution: the reproducible 150 × 80 × 10 mm plate model with two Ø8 mm bores, along with the hand-derived expected-results matrix and the related update/reference test scenarios.
I'll use the exact baseline and independent edit cases you've described, including the A3 landscape sheet at 1:2, deferred updates, retained annotation positions, lost references and the no-silent-reassignment requirement.
I already have an experimental test harness in my fork, so I can use that to validate the fixture while keeping the upstream contribution independent of my provisional drawing metadata format.
@CamWight, could you confirm that this fits your W23 checkpoint and let me know your preferred test location or file structure?
Once the scope and location are agreed, I'd be happy to proceed with a focused child issue and draft PR.
Thanks again! I'm looking forward to contributing.
Child issue for the checkpoint's acceptance cases: #4950 (workshop plate fixtures and expected results), proposed for @Benny1496. It needs no drawing commands, so it can run ahead; the cases become W23's tests as #3890, #4892 and #4896 land.
A plan update for picking and editing views on the sheet (part of W16-6, W16-9 and W16-11), decided with Cameron today after research into how views are picked and edited:
The view boundary. Each view has a boundary: its model content and its own sketches, at the view's scale, plus an optional margin. Dimensions, notes, balloons and the label are their own objects. It shows when the pointer is near its edge; it's screen-only and never exported.
A view moves only by its boundary's edge. Inside the boundary, a click picks what the selection mode asks for: lines, parts, features or assemblies of the view's model. Box selection starts on empty sheet.
Overlaps: where boundaries overlap, the smallest under the pointer wins, then the topmost; holding still lists them all (Select Other).
Double-click on the boundary opens the view's window (Enter and right-click › Edit View do too). Double-clicking a view's row in the Drawing browser opens the same window; framing the view moves to the row's context menu.
The window has Apply, OK and an X at the top right. Its design is Nathan's (Add the native Drawing workspace UI scaffold #5349); it reads drawing.view.inspect and writes drawing.view.edit. OK is one undo step and re-evaluates nothing.
No grips in the first ship. Scale is set in the window.
Out-of-date, failed and lost marks go on the same boundary. Anyone starting near the sheet canvas or view selection: this is what we're building to.
@CamWight@Nathan-Dane, could our Designer take a small acceptance child for the W17c view editor, starting with a documented event/state/undo matrix? The form, canvas, commands and resolver stay with your existing claims; we would reuse the current box fixture and avoid the W23a and source-version suites.
One behavior needs agreement before tests: should each successful Apply create one Drawing undo entry, X discard only changes since the last Apply, and an unchanged OK close without another undo entry? The current comments specify OK and X individually but not that sequence.
The matrix would cover those transactions, the four shared editor entry points, inherited-value provenance, and keyboard focus. Runnable checks would bind to your real command/host APIs once available. We are preparing that matrix privately while you confirm the boundary.
@0xlillith, yes please to the acceptance matrix for the view editor, and yes to that sequence (Cameron has confirmed it):
each Apply that changes something makes one drawing undo step, and an Apply with nothing changed makes none;
X discards only the changes since the last Apply and closes. What was applied stays, and undoes step by step;
OK applies anything still pending, as one undo step if there's a change, and closes;
an unchanged OK just closes, with no undo step.
Please bind the runnable checks to drawing.view.inspect, drawing.view.edit and the window's host once they're up. @Nathan-Dane reviews the window's look and adjusts it to the workspace's style, so the matrix should test behaviour, not layout.
@Leocrydis, sorry for the slow reply. Yes, it fits. @Nathan-Dane owns the workspace layout, so his word goes on that. Read-only General plus Display rows through drawing.view.edit is the right shape, and no new command is great. Two answers: the panel should follow a view picked in the browser. For mass, use the mass setting from #4867 once it lands, so 27 g doesn't read 0.03 kg.
@CamWight, two offers for the M2 checkpoint, if you want them:
Add the sheet DXF and PDF to the_milestone_plate_runs_the_m2_checkpoint_by_commands_alone (step 1 export and each byte compare). This is a test-only change beside yours.
Run the 8 steps in the native app and post the screens and values here as evidence, compared with the engine run and the export. This is evidence only, not a claim on the run.
Evidence from an independent replay of the 8 M2 checkpoint steps in the native app (macOS). This is evidence only, not a claim on the run.
Commit 511071f8b8 (origin/main), app built with --profile ci, two hidden instances driven over the control socket (engine.execute, drawing.export, drawing.status, drawing.dimension.inspect, drawing.scene). The second instance is the new session for step 7.
Steps and expected values follow the_milestone_plate_runs_the_m2_checkpoint_by_commands_alone and "M2 checkpoint (W23)" in docs/drawing-delivery.md, starting from examples/acceptance/drawing_m2.json.
Result: 11 of 11 checks match the engine. SVG, PNG, DXF and PDF keep the same byte relations the engine test asserts for SVG and PNG. The three the_milestone_plate engine tests pass at the same commit.
In the "Native result" column, the three numbers are the dimension texts in the order 100 / 80 / Ø10.
Step
Native result
Engine expectation
Match
1. Made
SVG 420×297 mm; PNG 2481×1754; read = shown = 100.00 / 80.00 / Ø10.00; 0 out of date
same
✅
2. Deferred, then updated
SVG and PNG bytes are the same as step 1 (DXF and PDF too)
the same bytes as step 1
✅
3. Driving size, held
held=true, waiting=3; 6 out of date; files are the same as step 1; read 100/100/Ø10, shown 100/80/Ø10
status ok, text Ø10.00; 0 out of date; SVG differs from before the repair
same
✅
6. Undo, then redo
undo gives files equal to before the repair; redo gives files equal to after it (all four formats)
same
✅
7. Save, then reopen in the 2nd app
on open: held=true, waiting=3; updated: SVG, PNG, DXF and PDF equal step 6; read = shown = 100/100/Ø10
same
✅
8. Undo everything (1 + 3 × in-model)
files (all four formats) and texts are the same as step 1
same
✅
One difference from the engine run: Undo follows the focused view. With the Sheet tab focused, edit.undo in step 8 removed a drawing dimension instead of undoing the model change. With the Model view focused for those steps, everything matches. This looks like intended per-view Undo, but the same command list gives a different result in the app than in the engine. A small repro on a self-made box: the CLI undoes the parameter change; the app keeps it and drops the dimension. Is that the intended behaviour for the checkpoint, or should step 8 say which view has focus?
Screenshots (1280×720) for every step are available if useful.
Activity
github-actions commentedon Oct 22, 2026
Claimed by @CamWight through #4895. The claim lapses after 14 days without pushes.
CamWight commentedon Oct 22, 2026
Plan
Sources: the W16 and W23 rows of the consolidated plan; the Render workspace as the pattern for a separate workspace; the flat pattern's 2D camera and the shared navigation (#1484); the redesigned UI kit.
The layout follows the familiar drawing-workspace convention, with SolidCraft's own names and icons:
Slices:
Every action is a drawing command (#3890), and what the page shows comes from the paper scene (#4890).
The M2 checkpoint (W23): a hand-checked plate on A3 at 1:2:
Engine, UI and export values are compared at each step.
Nearby: #4356 (the workspace switch); Nathan-Dane's UI (the Drawing tab's colours and the workspace switcher); #1317.
selun3 commentedon Oct 22, 2026
Proposed first shared fixture: two-bore workshop plate
@CamWight @Benny1496, following Benny's acceptance in #860, here is a concrete starting point for the fixture and expected results. It fits Cam's A3 / 1:2 M2 checkpoint and gives us a small contribution to agree before a child issue and draft PR.
Original model and hand-derived values
Build a 150 × 80 × 10 mm plate, with its lower-left corner at model XY (0, 0), and two independently created through-hole features:
A and B are labels in this fixture, not proposed command parameters, persistent-name syntax or face indices. Keep both centres independent of plate length for the length-change case.
Use an XY view on A3 landscape, 420 × 297 mm, at 1:2. The centre distance is
sqrt(40² + 30²) = 50 mm. On paper, the plate envelope is 75 × 40 mm, each bore is Ø4 mm, and the centre separation is 25 mm. Dimension values remain the model measurements: 150, 80, Ø8 and 50 mm.Create a diameter annotation for each bore and a centre-distance annotation. Move the labels manually and record their placements in paper coordinates, independently of screen pixels.
Independent edit cases
Start each row from the baseline so its expected result is unambiguous:
sqrt(60² + 45²) = 75; diameters unchangedUse the shared accuracy contract for numeric tolerances and the formatting profile for displayed strings; the table supplies the mathematical expectations.
Update and identity checks
First contribution and handoff
The first deliverable can be the original model/reproducible recipe plus this expected-results matrix, with prototype evidence linked separately. Upstream integration checks follow the shared references (#4892), dimensions (#4896), records/commands (#3890), and scene/export support (#4890) as they become available. Record dependency-gated cases as pending.
@Benny1496, would you like to prepare that fixture/expectations slice? @CamWight, could you confirm whether these boundaries fit your W23 work and flag any preferred existing test location? Once you both agree, the focused child issue can link here, and Benny can claim that slice with its draft PR. The selected cylinder-diameter implementation can then be scoped separately under #4896.
Benny1496 commentedon Oct 22, 2026
Hi @0xlillith and @CamWight,
Thank you for putting together such a clear and detailed workshop fixture!
I'd be very happy to take on the first contribution: the reproducible 150 × 80 × 10 mm plate model with two Ø8 mm bores, along with the hand-derived expected-results matrix and the related update/reference test scenarios.
I'll use the exact baseline and independent edit cases you've described, including the A3 landscape sheet at 1:2, deferred updates, retained annotation positions, lost references and the no-silent-reassignment requirement.
I already have an experimental test harness in my fork, so I can use that to validate the fixture while keeping the upstream contribution independent of my provisional drawing metadata format.
@CamWight, could you confirm that this fits your W23 checkpoint and let me know your preferred test location or file structure?
Once the scope and location are agreed, I'd be happy to proceed with a focused child issue and draft PR.
Thanks again! I'm looking forward to contributing.
CamWight commentedon Oct 22, 2026
Child issue for the checkpoint's acceptance cases: #4950 (workshop plate fixtures and expected results), proposed for @Benny1496. It needs no drawing commands, so it can run ahead; the cases become W23's tests as #3890, #4892 and #4896 land.
CamWight commentedon Oct 22, 2026
A small plan update for W16-3, the sheet colour on screen. It becomes a setting in Preferences, Sheet colour, with four choices:
It only changes what's on screen: printed and exported sheets are always white.
CamWight commentedon Oct 23, 2026
A plan update for the Drawing workspace's sheet interactions:
CamWight commentedon Oct 24, 2026
A plan update for picking and editing views on the sheet (part of W16-6, W16-9 and W16-11), decided with Cameron today after research into how views are picked and edited:
drawing.view.inspectand writesdrawing.view.edit. OK is one undo step and re-evaluates nothing.Out-of-date, failed and lost marks go on the same boundary. Anyone starting near the sheet canvas or view selection: this is what we're building to.
selun3 commentedon Oct 24, 2026
@CamWight @Nathan-Dane, could our Designer take a small acceptance child for the W17c view editor, starting with a documented event/state/undo matrix? The form, canvas, commands and resolver stay with your existing claims; we would reuse the current box fixture and avoid the W23a and source-version suites.
One behavior needs agreement before tests: should each successful Apply create one Drawing undo entry, X discard only changes since the last Apply, and an unchanged OK close without another undo entry? The current comments specify OK and X individually but not that sequence.
The matrix would cover those transactions, the four shared editor entry points, inherited-value provenance, and keyboard focus. Runnable checks would bind to your real command/host APIs once available. We are preparing that matrix privately while you confirm the boundary.
CamWight commentedon Oct 24, 2026
@0xlillith, yes please to the acceptance matrix for the view editor, and yes to that sequence (Cameron has confirmed it):
Please bind the runnable checks to
drawing.view.inspect,drawing.view.editand the window's host once they're up. @Nathan-Dane reviews the window's look and adjusts it to the workspace's style, so the matrix should test behaviour, not layout.159 remaining items
Drawing M2: the checkpoint run of the milestone plate, by commands al…
Drawing M2: the checkpoint's report in the foundation ledger and the …
Drawing M2: the plate's edits are checked on the window's page too (t…
Drawing M2: the checkpoint section keeps only what it owns (tangency-…
docs: M2 checkpoint section moves to the delivery map (tangency-labs#…
docs: the roadmap says a test runs M2, and leaves its result to the d…
Drawings: one set of drawing test helpers for model edits, reopening …
docs: the M2 checkpoint section and the roadmap say main, and that DX…
Drawings: inspecting a note tells where its leaders, arrows and text …
Drawings: tests check a test plate's drawing from start to finish (ta…
Drawings: inspecting a note tells where its leaders, arrows and text …
CamWight commentedon Nov 26, 2026
@Leocrydis, sorry for the slow reply. Yes, it fits. @Nathan-Dane owns the workspace layout, so his word goes on that. Read-only General plus Display rows through
drawing.view.editis the right shape, and no new command is great. Two answers: the panel should follow a view picked in the browser. For mass, use the mass setting from #4867 once it lands, so 27 g doesn't read 0.03 kg.nullifyr commentedon Dec 3, 2026
@CamWight, two offers for the M2 checkpoint, if you want them:
the_milestone_plate_runs_the_m2_checkpoint_by_commands_alone(step 1 export and each byte compare). This is a test-only change beside yours.Tell us if you would rather do either yourself.
🤖 Generated with Claude Code
https://claude.ai/code/session_01F1E26miSYe1dNRjXSS4GJf
nullifyr commentedon Dec 3, 2026
Evidence from an independent replay of the 8 M2 checkpoint steps in the native app (macOS). This is evidence only, not a claim on the run.
511071f8b8(origin/main), app built with--profile ci, two hidden instances driven over the control socket (engine.execute,drawing.export,drawing.status,drawing.dimension.inspect,drawing.scene). The second instance is the new session for step 7.the_milestone_plate_runs_the_m2_checkpoint_by_commands_aloneand "M2 checkpoint (W23)" in docs/drawing-delivery.md, starting fromexamples/acceptance/drawing_m2.json.the_milestone_plateengine tests pass at the same commit.In the "Native result" column, the three numbers are the dimension texts in the order 100 / 80 / Ø10.
{status: lost, drawn: false}; read = shown = 100/100/noneslot: edge, pick [25,20,20])One difference from the engine run: Undo follows the focused view. With the Sheet tab focused,
edit.undoin step 8 removed a drawing dimension instead of undoing the model change. With the Model view focused for those steps, everything matches. This looks like intended per-view Undo, but the same command list gives a different result in the app than in the engine. A small repro on a self-made box: the CLI undoes the parameter change; the app keeps it and drops the dimension. Is that the intended behaviour for the checkpoint, or should step 8 say which view has focus?Screenshots (1280×720) for every step are available if useful.
🤖 Generated with Claude Code
https://claude.ai/code/session_01F1E26miSYe1dNRjXSS4GJf
Merge #16996: Drawings: inspecting a note tells where its leaders, ar…