Repository navigation
Drawings: the Drawing workspace UI design, its decision log and boards #13159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bherbruck
merged 3 commits into
tangency-labs:main
from
Nathan-Dane:docs/drawing-ui-design
Nov 21, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| | File | Author | Source | Licence | | ||
| |---|---|---|---| | ||
| | docs/design/drawing-ui/add-sheet.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/annotate.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/base-view-first.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/first-drawing.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/layout.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/make-drawing.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/moving-views.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/paper-presets.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/parts-tables.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/picking.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/placing-views.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/ready-to-issue.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/review-export.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/sheet-colour.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/sheets.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/status-card.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/view-selected.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | | ||
| | docs/design/drawing-ui/views-by-part-type.png | SolidCraft contributors | original UI mockup of the Drawing workspace, rendered from an HTML mockup that uses the original SolidCraft drawing icons; no third-party artwork, and not a screenshot of any other CAD product | MIT OR Apache-2.0 | |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| # Drawing workspace: UI design | ||
|
|
||
| The pictures and rules for the Drawing workspace's user interface. They say where each piece | ||
| lives, what it looks like and how it behaves, so that anyone building a slice of the drawing UI | ||
| produces the same product. The commands behind each piece already exist or are being built on | ||
| `drawings`; see [#4894](https://github.com/tangency-labs/solidcraft/issues/4894) and | ||
| [#860](https://github.com/tangency-labs/solidcraft/issues/860). The pictures are mockups: they | ||
| change nothing in the app. | ||
|
|
||
| [`decisions.md`](decisions.md) is the log of what is decided, planned and still open. Read it | ||
| with this page, and cite the boards and decision numbers you build from in your pull request. | ||
|
|
||
| ## How to use this | ||
|
|
||
| - **Build to the structure, not the pixels.** Placement, which kit component a piece uses, the | ||
| state words and the ribbon contents are binding. Sizes and spacing come from the UI kit and | ||
| theme tokens (`docs/ui-kit.md`), and the icons in the mockups are stand-ins where noted. | ||
| - **A deviation is allowed, with a reason.** If the design cannot be built as drawn, say what | ||
| differs and why in the pull request. The design is then changed and logged, or the code is. | ||
| - **Light theme only for now.** | ||
|
|
||
| | Binding | Flexible | | ||
| |---|---| | ||
| | Where each piece lives (workspace card, Sheets section, status pill, right-hand panels, navigation bar) | Exact sizes, spacing and colours: use `theme::Tokens` and the kit | | ||
| | The kit component for each piece, and the panel structure (header, body, footer) | Stand-in icons, until the real ones exist | | ||
| | Ribbon tabs, sections, promoted commands | Wording of helper text, within the UI text rules | | ||
| | State words and their meanings | Animation and hover detail | | ||
| | Command ids and what a click calls | Anything the log marks as open | | ||
|
|
||
| ## The layout | ||
|
|
||
| - **Workspace card** at the top left, the shared compact card, the same width as in other | ||
| workspaces. The ribbon sits beside it with four tabs: Layout, Annotate, Parts & Tables, Review. | ||
| - **Left column**: a **Sheets** section above the Browser tree. It shows each sheet as a | ||
| thumbnail, two across at the default width, with add, settings and collapse in its header. There | ||
| is no separate sheet strip. | ||
| - **The sheet** is the viewport: a neutral stage with the paper on it, pan and zoom to the | ||
| cursor, no compass and no bottom history strip. The navigation bar sits at the bottom centre. | ||
| - **Status pill** at the top centre of the free sheet area: "N need attention" or "All current". | ||
| Its card lists the findings with Repair, and offers Check drawing and Update drawing. | ||
| - **Right-hand panels**: one at a time, built from the kit's `Panel`. Editors end with Cancel, | ||
| Apply and OK. Placing tools end with Finish. Sheet Settings applies at once. | ||
| - **Each open drawing is its own tab** next to its design (a preference, on by default). | ||
| - **Selection card** above a selected view or dimension, with quick actions. | ||
|
|
||
| ## The ribbon | ||
|
|
||
| One to four promoted buttons per section; the section label opens the full list. Commands that | ||
| do not exist yet stay on the ribbon, faded, with "(planned)" in their tooltip. They lose the fade | ||
| as they arrive. | ||
|
|
||
| | Tab | Section | Promoted | In the section list | | ||
| |---|---|---|---| | ||
| | Layout | Views | Base View, Section, Detail, Break | Auxiliary, Pictorial, Draft, Flat Pattern (promoted for sheet-metal parts) | | ||
| | Layout | Arrange | Align Views | Move to sheet, Copy to sheet | | ||
| | Layout | Insert | Image, Sheet Sketch, Hatch | | | ||
| | Annotate | Measure | Dimension, Model Dimensions, Hole Callout | Chain, Suggest | | ||
| | Annotate | Notes | Note, Leader Note | Chamfer note | | ||
| | Annotate | Symbols | Centre Mark, GD&T, Surface Texture, Weld | | | ||
| | Annotate | Arrange | Tidy, Align, Space | | | ||
| | Parts & Tables | Assembly | Parts List, Balloon, Auto Balloon | Bill of Materials, Renumber | | ||
| | Parts & Tables | Tables | Revision Table, Edit Table | | | ||
| | Review | Changes | Update, Check Drawing, Replace Model | | | ||
| | Review | Revision | Add Revision, Issue Revision, Revision Tag | | | ||
| | Review | Output | Export, Print | | | ||
|
|
||
| Templates and sheet commands live in the Sheets section menu and Drawing Settings. Drawing | ||
| Status is the status pill. Automatic centre marks is a Drawing Settings option. | ||
|
|
||
| ## The paper | ||
|
|
||
| The sheet follows the engine's settled designs and the standards, so a drawing can be used as one. | ||
| The title block is 180 × 54 mm at the lower right of the border, with no Scale box (each view states | ||
| its own scale). The revision table is at the lower left and the parts list at the top right, growing | ||
| down; both snap to the title block, the border and other tables, and general notes go just above the | ||
| revision table. The projection symbol follows the drawing's setting. The frame is an ISO 5457 frame | ||
| with a 20 mm binding margin and the reference grid. The paper has a very slight rounded corner on | ||
| screen only; an export is square-cornered. The details are in decisions D27 to D29. | ||
|
|
||
| ## Boards | ||
|
|
||
| | Board | What it shows | | ||
| |---|---| | ||
| | [First drawing](first-drawing.png) | Entering with no drawing: standard views, blank sheet or template | | ||
| | [Layout](layout.png) | Layout tab, nothing selected: Sheets section and status pill | | ||
| | [View selected](view-selected.png) | Selection card, drag-out handles, Edit View panel, model preview | | ||
| | [First Base View](base-view-first.png) | Choosing the front, Base View panel, preview on the sheet | | ||
| | [Placing views](placing-views.png) | Base View stays on; the cursor's side picks the next view | | ||
| | [Moving views](moving-views.png) | Guides, snapping, readout and the Undo toast | | ||
| | [Sheets](sheets.png) | The sheet menu and Sheet Settings | | ||
| | [Add sheet](add-sheet.png) | The Add sheet dialog | | ||
| | [Picking and moving](picking.png) | Hover, edge band, pick modes, overlap, box select, locked items | | ||
| | [Annotate](annotate.png) | Dimension panel, edge hover preview, suggestions, Annotate ribbon | | ||
| | [Parts & Tables](parts-tables.png) | Parts List editor, balloons, column handles | | ||
| | [Review and Export](review-export.png) | Export panel with the paper choice; the status pill with two items waiting | | ||
| | [Status card](status-card.png) | The pill's card with three findings, marked on the sheet | | ||
| | [Ready to issue](ready-to-issue.png) | Check drawing passed | | ||
| | [Make a drawing](make-drawing.png) | Model right-click and File menu entries | | ||
| | [Views by part type](views-by-part-type.png) | The Views section for an ordinary and a sheet-metal part | | ||
| | [Sheet colour](sheet-colour.png) | The navigation-bar menu on a blueprint sheet | | ||
| | [Paper presets](paper-presets.png) | White, Blueprint and Prussian Blue (Historical) | | ||
|
|
||
| ## Not included | ||
|
|
||
| - Dark theme. | ||
| - Windows and tools without a board yet: Drawing Settings and Properties, Create Drawing options, | ||
| Replace Model, the Check Drawing coverage list, the "not drawn" status and refusal messages, | ||
| Section and assembly views, baseline and ordinate sets, copy and paste between drawings, automatic | ||
| balloons, revision clouds, extra tables, fields in notes, the symbols library, thread drawing and | ||
| chamfer notes. They are designed when their slice is handed out. | ||
| - Real icons for Break, Hatch, Sheet Sketch, GD&T, Surface Texture, Weld, Replace Model, Issue | ||
| Revision and Revision Tag. The mockups use the nearest drawing icon, faded. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve the dialog-button placement conflict for drawing editors.
The guide says editors end with Cancel, Apply and OK in a footer. The UI kit's feature panels move those actions to the header when Preferences › Interface › Dialog buttons is set to Top. Drawing editors use the same feature-panel frame, so the two rules can disagree for an editor that shows OK, Apply or Cancel.
State in this guide whether the Top preference applies to drawing editors. If it applies, change the footer wording at lines 41-42 so it allows the header placement the preference selects. If drawing editors are exempt, state that exemption next to the rule.