Repository navigation
Drawings: the Drawing workspace UI design, its decision log and boards - #13159
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Workspace specification docs/design/drawing-ui/README.md |
The guide defines binding and flexible design elements, workspace layout, ribbon commands, paper details, and excluded themes and tools. |
Decisions and design references docs/design/drawing-ui/decisions.md, docs/design/drawing-ui/README.md, skills/solidcraft-ui/SKILL.md, attribution/pending/drawing-ui-design.md |
The decision log records decided, planned, and unconfirmed choices. The guide indexes mockup boards, contributor guidance points to the design documents, and attribution entries identify mockup authors, sources, and licences. |
Estimated code review effort: 2 (Simple) | ~12 minutes
Merge Risk: 
Low · previous review dbdaa
-
This is documentation only and does not change app behavior. The design guide and decision log say editor actions go in a footer, but the UI kit puts them in the header when users choose the Top dialog-button preference. Clarify this before implementers follow the guidance.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title names the Drawing workspace UI design, its decision log and boards. The changeset adds docs/design/drawing-ui/ (README, decisions log, mockup pictures), attribution rows, and a SKILL.md pointer, so the title matches the main change. It is a little long and uses a colon-prefixed scope label, but it is specific and accurate.
Full details: Description check
-
Explanation
The description covers the change, its purpose, and the audience. It states that nothing changes in the app, which fits the 'Changes a default: no' line the template requires. It includes validation commands and screenshots of the mockup boards, and it lists the decisions to confirm. Two gaps remain: the Validation section does not describe checks on the rendered pictures, and the 'Changes a default' line is present but the template's Integration status section is filled in. Overall the description is mostly complete.
Full details: Existing Defaults Unchanged
-
Explanation
The check passes because the pull request changes no UX default. Evidence: - The changed-file inventory (
git diff --name-statusover the review range) has 22 entries. All are additions except one modified file. - The additions areattribution/pending/drawing-ui-design.md,docs/design/drawing-ui/README.md,docs/design/drawing-ui/decisions.md, and 19 PNG mockup images. - The one modification isskills/solidcraft-ui/SKILL.md. Its diff adds 3 lines: a "Drawing workspace" section that points contributors to the design docs and asks them to cite decisions in pull requests. - No application, settings, preference, shortcut, or command code is in the range. The PR description also states that nothing observable changes in the app. - The docs describe a planned Drawing UI. They do not alter current behaviour, so no existing default, layout, or shortcut changes. TheChanges a default: noline in the description matches the diff. The check's failure condition is not met.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
Thanks @Nathan-Dane, this is a great base, and it's good to see the cursor-side placing (D12) already in. Here are the designs we've settled for the paper so far, so the boards and the engine match. Each one is built on Title block (#3875)180 × 54 mm, at the lower right corner of the drawing border. Cells, from the top row down:
There's no Scale box: each view states its own scale. Document type, status and revision are left out of the block, because the revision table carries them. Material and Mass come from the parts list. An assembly whose parts mix materials shows a blank Material.
Revision table and parts list (#3874)
This prototype shows the title block beside the revision table (its parts list is empty): New drawings (#12000)A part's drawing starts on A3 and an assembly's on A2. Each has the built-in border and title block, and its own default general tolerances note. The template can be replaced. A default base view's scale leaves room for the title block (#10987). Paper and lines
On your three checks
@CamWight will answer the other two (picking a face in the view window, and what "Standard views" places). The rest of what we've built or claimed for the drawing engine is listed with what each piece needs from the UI: Replace Model (#13029), Check Drawing with its coverage list (#13054), baseline and ordinate sets (#13052), copy and paste between drawings (#13065), automatic balloons (#13067), revision clouds (#13061), fields in notes and leaders with branches (#13059), chamfer notes (#13028) and the flat pattern view (#13030). Each issue's plan says which commands the UI calls and what they reply, so a board for any of them can start from there. |
|
@Nathan-Dane, @CamWight's answers to the other two checks: D18, picking a face in the view window: the default orientation comes from the origin planes (the Front, Top, Right chips you have). Picking a face of the part to set the view would be a good option to have as well. It's close to what an auxiliary view does (looking square at a chosen face, #13044), so the two can share the engine side. Keeping it "planned" is fine. D14, what "Standard views" places: front, right, and an isometric view up and to the right of the front, in one go. Not the top view: whether a part needs one depends on the part, so the user adds it with Add projected view when it does. |
|
Thanks @CamWight, this is exactly the steer I needed, and sorry about the projection symbol: I had it swapped. It's all in the PR now (dbdaa93):
I've added your plans for Check Drawing (the separate coverage list and |
|
Hi @Nathan-Dane, I wanted to share a short update on our latest tests for the Drawing UI. Since our last conversation, we've focused on lost and out-of-date dimensions, using Loohi's sheet page PR #13211 as the base. Test #98 confirmed that the native sheet page can display an updated drawing after a 3D model change. It also confirmed that the dimension warning and repair UI is still missing, as expected. We then built a small, CI-only egui prototype to see whether the existing engine commands could be used through actual UI buttons. The latest test, #103, passed all seven new interaction checks. Among other things, it confirmed that:
The full Drawing regression suites passed as well: 52/52 GUI tests and 395/395 engine tests. The seven new checks are already included in the 52 GUI tests. Test run: https://github.com/Benny1496/solidcraft/actions/runs/42491996757 To be clear, this is only a test-time prototype injected under The results suggest that the existing engine commands can support the warning and repair workflow we've discussed. I'll keep following your design PR #13159 and wait for the D07/D26 child issue before starting the actual UI implementation. Thanks again, and best regards, |
dudedagger42
left a comment
There was a problem hiding this comment.
docs/design/drawing-ui/decisions.md:20(D07) andREADME.md:97, boardready-to-issue.png— when Check drawing passes, the card heads itself "Ready to issue" and offers "Issue revision" beside Export. #860 W31 says a "UI action never implies professional sign-off" and W47 says "Unknown coverage is not proof of manufacturing completeness". The board also ticks "Title block complete" while its Approved by cell is "—". Word the passed state as what was checked, for example "Check drawing found nothing", and don't make Issue revision the next step of a passed check. Rename the board and the README row to match.docs/design/drawing-ui/decisions.md:37(D19) and:44(D21) — both are marked decided, but they rest on #860 units that have no agreed scope yet. "From a template" is an entry point for an empty drawing, and W40 (reusable resources) says to "agree bounded editor/import/update child before implementation". Suggest (ghosts that Enter accepts) and Tidy belong to W41 (annotation productivity), which is "Planned; child owner not confirmed", and to W47 (checking/automation), whose entries are "separate proposals". Mark the template entry, Suggest and Tidy as planned, so a UI slice doesn't build their behaviour from this log before #860 agrees their scope.
|
@Nathan-Dane, a small engine piece for D21 ("hovering an edge previews its value") is now in The call. The answer. The add's own reply, plus
Refusals. The same errors in the same words as the click: no edge at the point, a part the view doesn't draw, can't What it leaves alone. No id is taken and no undo step is made. The design, the drawing, the dirty flag and the last Cost. 0.07 to 0.44 ms for each call (median, measured), where one frame at 60 Hz is 16.7 ms. Some suggestions, all your call:
Next. Where the ghost's lines and text sit on paper comes with WE7b, which puts the layout into the same answer. A |
* claim: #13210 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Yz6dHZiXcgTgrxjVNC6hx * Drawings: the sheet page draws the open drawing's sheet, with pan and zoom, Fit Sheet, true size at 100 % and the sheet colour (#4894) The Drawing workspace's centre draws the sheet scene of the drawing open: drawing_scene::extract each frame and drawing_jobs::tick for the views out of date. Strokes, dashes, fills and glyph outlines are worked out once per generation and zoom octave. Pan and zoom go through navigation::handle with orbit off on the page's own camera; zoom stays within 5 % to 3200 %; 100 % is (96/25.4) x calibration / UI zoom points per mm. Sheet colour (White, Warm, Dark, Auto) is a screen-only preference with new paper tokens. A view's state shows in words and shape. ui.inspect gains sheet_page and ui.view takes fit, home and actual_size on the sheet. view.fit, view.home and view.tool run with a drawing open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Yz6dHZiXcgTgrxjVNC6hx * Drawings: the sheet fits the canvas the ribbon leaves, and again when the window changes size until it is moved (#4894) Fit Sheet, the hint and the zoom card use the free canvas (shell::content_rect, then workspace_content), so the sheet isn't framed under a floating ribbon. A fitted sheet is fitted again when the canvas changes size, until a pan or zoom moves it. The zoom card's rectangle stays covered while the camera reads input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Yz6dHZiXcgTgrxjVNC6hx * Drawings: the sheet's zoom reads in whole percent, and the scaffold's sheet placeholder strings go (#4894) The zoom card shows whole percent, or tenths below 10 %. The four messages the sheet page left unused in drawing-workspace-ui.json (the renderer and paper colour placeholders, "Paper colour", "Auto (Theme)") are removed from every locale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Yz6dHZiXcgTgrxjVNC6hx * Drawings: the sheet page follows the drawing UI design: Blueprint and Prussian Blue sheets, Needs update, a view outlined near its edge (#4894) Follows #13159's boards sheet-colour, paper-presets, status-card, picking and layout (D09, D17, D25, D26, D29): the sheet colour choices are Follows the theme, White, Blueprint and Prussian Blue (Historical), with the Blueprint theme's own sheet in its blue; the paper keeps its colour on a neutral stage that moves away from it (a white sheet on a light theme no longer turns grey); Fit sheet puts the paper above the navigation bar; a view waiting to be drawn again says "Needs update"; a view's boundary shows on hover only near its edge; the paper has a very slight rounded corner on screen; the zoom card says "Actual size" and "Fit sheet". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019Yz6dHZiXcgTgrxjVNC6hx * Show the open drawing's sheets and objects in the Browser (#15777) * Use current viewport and pointer APIs on drawing sheets * Switch sheets above the Drawing Browser (#15785) * Complete Drawing translations in Arabic, Hebrew and Vietnamese --------- Co-authored-by: Louis <louisdeleforge@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Hi @Nathan-Dane, before we start, a note on two small pieces of the Drawing workspace UI. I'd like them to fit your design, so please shout if you'd shape them differently. Cam would like revisions handled in the revision table itself, not by ribbon buttons. In his words: "There should be no revision buttons on the ribbon other than to add a revision table to the drawing", and "The buttons to add a revision roll and remover revision roll should be within the actual revision table window when you double clicked to open it". Revision Tag stays on the ribbon. So we plan two PRs:
Both follow the existing patterns ( |
|
Hi @Nathan-Dane, a short note on the Parts List panel, so it stays in line with your design. #19023 "Drawings: place a parts list and edit it from its panel" makes the panel work and adds a placing step for #19020 "Drawings: a parts list can't be added or edited from the app". It follows your decision log like this:
Two places differ from the log for now, and we'd love your view on both:
The panel edits the heading (top or bottom), the row height, which columns are shown and each column's width. Renumber stays greyed for now; it can follow once #19179 "Drawing: no workspace locks the model; leaving Drawing keeps the drawing open" lets model commands run with a drawing open. One thing we noticed in the real app: at "fit" in a 1280x720 window, the new list at the top right sits under the Parts List panel that edits it, on the same side. Would you rather the panel open on the other side for a list, or the sheet frame itself clear of the panel? If you'd like anything laid out differently, say so here and we'll change it before the PR is ready. Pictures of the real app come with the PR. Thank you! |
|
A cancel button should always promise to restore the state from before something was opened. If this is to dismiss the panel because everything is already applied, there should be a so glen 'Done' button. The notes on snapping sound good. For the panel placement, this should be handled by the panel system itself, and shouldn't have bespoke code for this. Thank you! |
|
@Nathan-Dane this one's good to go, but its last ci run is from Nov 18, when main itself was failing (the fillet, naming corpus and drawing dimension tests plus two clippy hits in drawing code, none of them in this PR). Could you rebase onto main and push so it gets a fresh run? Then it can land. |
Head branch was pushed to by a user without write access
dbdaa93 to
d7512ce
Compare


Change
This adds the written and pictured design for the Drawing workspace's user interface, so that anyone building a slice of the drawing UI produces the same product. It is for contributors to the drawing UI (#4894, #860) and for agents working on it. It changes nothing in the app: it is documentation, 18 mockup pictures and a short pointer in the UI skill.
It adds
docs/design/drawing-ui/:README.md: the layout (workspace card, Sheets section above the Browser tree, status pill, right-hand panels, navigation bar), the ribbon's tabs and sections, what is binding and what is flexible, and an index of the pictures.decisions.md: 30 numbered decisions, each marked decided, planned or "check" (needs confirming), with the pictures that show it.attribution/pending/drawing-ui-design.md.A pull request that builds a drawing UI slice should cite the pictures and decision numbers it follows and say what differs and why.
skills/solidcraft-ui/SKILL.mdnow says so.Changes a default: no
Validation
cargo xtask skills,cargo xtask listsandcargo xtask assetspass on this branch (17 skills consistent; all 1079 asset files attributed). The pictures are exports of an HTML mockup, rendered at 2x; no application code changed.Screenshots of the behavior (when observable)
Nothing observable changes in the app. Three of the boards:
Integration status
Branched from
drawingsat c8cbe43 ("drawing.status says which dimensions the sheet shows as they last were", #12980); no conflicts, no other open pull request intodrawingsfor this. Several rows indecisions.mdare marked "check": the drawings team should confirm them (the third-angle symbol, the parts list placement against ISO 7573, whether the view window can pick a face, what "Standard views" places, and the first shortcut set) before they are built.Part of #4894.
🤖 Generated with Claude Code
Summary by CodeRabbit