Skip to content

Frames: a Weldments ribbon tab (#4003) - #5262

Merged
bherbruck merged 2 commits into
tangency-labs:mainfrom
Karl-VonRichter:frames-weldments-tab-4003
Oct 26, 2026
Merged

bherbruck merged 2 commits into
tangency-labs:mainfrom
Karl-VonRichter:frames-weldments-tab-4003

Conversation

@Karl-VonRichter

@Karl-VonRichter Karl-VonRichter commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of #4003. Two commits on main now that #4004 has landed: Frames: a Weldments ribbon tab and Frames: Weldments keeps the ordinary tab look. #5312 (Trim/Extend) is stacked on it.

What changes

  • Weldments tab: a ribbon tab after Sheet Metal, built the same way. Its panels:
    • Sketch: New Sketch.
    • Create: Frame Member.
    • Configure: Parameters, Config Table.
  • Frame Member moves: from Model › Create to Weldments › Create.
  • Always shown: like Sheet Metal, because a frame starts from a sketch of its lines.
  • Selects itself: when the selected body is a frame member (or the last body of the active component is one), keeping the ordinary tab look: selected, it looks like a selected Model tab, with no contextual fill and the ordinary line under the tab row. Only Sketch and Sheet Metal (on a sheet body) are contextual. An active sketch comes first, then a sheet-metal body, then a frame member.
  • Finishing a sketch still goes back to the tab it was started from (The Information Architecture (UI state management) is flawed in calling Sketcher from the top-level workbenches. #3250, on main); otherwise the selected body decides, as above.
  • Accent colour: the default one (the same as Model).
  • Docs and catalogs: the tab label is in every catalog. docs/ribbon-layout.md, docs/frames.md and the tab list in docs/control-protocol.md are updated.

The tab is called Weldments, not the Frame that #4003 proposed. The next slice, Trim/Extend (butt joints), adds a Modify panel to it.

Screenshots

To reproduce: on XZ, draw a 600 × 400 rectangle as sketch Frame, run frame.member {"sketch": "Frame", "profile": {"kind": "rect_tube", "width": 40, "height": 40, "wall": 3}, "body_name": "Rail"}, and select Rail. Weldments selects itself.

Before / after the second commit. Before, a selected Weldments tab had the solid contextual fill and the 2 px accent line, and stayed filled when another tab was chosen while a member was active. After, it looks like the other tabs: a selected Weldments looks like a selected Model, and with Model chosen it is a plain tab.

Weldments tab before and after: contextual fill removed

Checks run locally (Windows)

Latest: a5196d3, rebased onto main 6c6ffe4.

  • The rebase: main moved again, and the only conflict was the ui.handles row in docs/control-protocol.md. It keeps this PR's tab list ("VIEW, SHEET METAL, WELDMENTS; contextual SKETCH"). main's "contextual SKETCH and SHEET METAL" came in with MCP: wait out long requests, pending tool, honest batch outcomes (#1989) #2901, an accidental return to the wording from before Ribbon: restore Parameters/Configurations, the Sheet Metal tab and the palette's Finish Sketch #3937; main's code still always shows Sheet Metal.
  • Passed on a5196d3, built in this worktree's own target folder:
    • cargo fmt --check
    • cargo xtask assets, lists, layers, ui-containers, i18n --check and wasm
    • workspace clippy -D warnings (--profile ci)
    • the engine frame tests (84)
    • every ui-egui test: the 2073 unit tests that run (7 are marked ignored), plus all integration test binaries, including the 124 scenarios
  • Failed on a5196d3, a baseline on this machine: xtask ui_containers::tests::new_packages_examples_and_nested_modules_cannot_escape_the_gate. It expects / in Windows temp paths, and this PR doesn't touch it.

Earlier: on main 46aa3d5d, with this PR's two commits and #5312 and #5772 stacked on them (one run for all three; the earlier run on this branch alone before the second commit agreed):

  • Passed:
    • cargo fmt --check
    • workspace clippy -D warnings (--profile ci)
    • cargo xtask lists, layers, ui-containers, assets, icons, wasm and oracle (84/84)
    • the whole ui-egui library suite, the doc crate, the engine library, integration and CLI tests
  • Not passed, baselines on this Windows machine: robustness seeds 13, 23, 36 and 67 fail on main here too.
  • Flaky under load: on this branch alone, new_cards_settle_before_the_first_click_in_both_layouts failed once in the full ui-egui suite and passed alone and in the stacked run. This PR doesn't touch its file.
  • Wasm warnings that predate this PR: the wasm build of ui-egui prints 3 warnings, in home.rs, deferred.rs and dialogs.rs.

#5718 (choose which optional tabs show, with a + after the tabs) also changes toolbar.rs and workspace.rs. Whichever lands second fits Weldments into the other: here it is always shown, like Sheet Metal; with #5718 it moves into workspace::OPTIONAL_TABS.

🤖 Generated with Claude Code

@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Planned change to this PR: Weldments won't be shown to everyone.

#5718 (for #5717) makes specialty tabs optional. Each person turns them on by right-clicking a tab or in Settings › Interface › Toolbar tabs, and a design that has one of the tab's features shows the tab anyway. When #5718 lands, this PR:

  • adds Weldments to workspace::OPTIONAL_TABS, with the Frame Member feature kind and the frame_member icon
  • drops its unconditional tabs.push("WELDMENTS")

Weldments is then off by default and appears once the design has a frame member. The "Always shown" bullet in the description changes to match.

🤖 Generated with Claude Code

Karl-VonRichter and others added 2 commits October 26, 2026 11:26
- WELDMENTS joins the ribbon after SHEET METAL and is built the same way:
  Sketch (New Sketch), Create (Frame Member) and Configure (Parameters,
  Configurations). Frame Member's home moves there from MODEL > Create.
- Always shown, as a frame starts from a sketch of its lines. It selects
  itself and takes the contextual style when the selected body (or the last
  body of the active component) is a frame member; sheet metal comes first.
- It uses the default accent until the palette has a colour for it.
- The tab label is in every catalog; docs/ribbon-layout.md, docs/frames.md
  and the tab list in docs/control-protocol.md follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Weldments still selects itself when a frame member is the active body, but
no longer takes the solid contextual fill or the 2 px accent line under the
tab row: selected, it looks like a selected Model tab. Only Sketch and Sheet
Metal (on a sheet body) are contextual.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Karl-VonRichter
Karl-VonRichter force-pushed the frames-weldments-tab-4003 branch from a5196d3 to 9f43f3c Compare October 26, 2026 03:58
Karl-VonRichter added a commit to Karl-VonRichter/solidcraft that referenced this pull request Oct 26, 2026
…a design that uses it (tangency-labs#5717)

Sheet Metal becomes an optional toolbar tab, off by default. Each person
turns it on by right-clicking a tab (or the toolbar's empty space) or in
Settings > Interface > Toolbar tabs. The choice is the `toolbar_tabs`
preference, also settable with `ui.prefs`. A design with a sheet-metal
feature shows the tab whatever the setting, and it still selects itself
for an active sheet body. workspace::OPTIONAL_TABS is the list that
Weldments (tangency-labs#5262) joins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bherbruck bherbruck added ready to merge reviewed, every ask addressed; merge once CI is green approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) and removed approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 26, 2026
@bherbruck
bherbruck enabled auto-merge October 26, 2026 11:52
@bherbruck
bherbruck added this pull request to the merge queue Oct 26, 2026
Merged via the queue into tangency-labs:main with commit 44b0056 Oct 26, 2026
78 of 83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) area:doc timeline, components, parameters, naming area:infra CI, tooling, repo, docs area:ui desktop/web front end, dialogs, viewport ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants