Skip to content

Weldments: trim and extend frame members to other members, planes, or faces - #5312

Merged
bherbruck merged 18 commits into
tangency-labs:mainfrom
Karl-VonRichter:frames-trim-4003
Nov 24, 2026
Merged

bherbruck merged 18 commits into
tangency-labs:mainfrom
Karl-VonRichter:frames-trim-4003

Conversation

@Karl-VonRichter

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

Copy link
Copy Markdown
Contributor

Trim/Extend adjusts the ends of structural tubes and bars so they meet another member, plane or planar face. People designing welded frames can add a weld gap while keeping member names and references.

Addresses frames and weldments #4003.

Changes a default: no

Change

Use Weldments > Modify > Trim/Extend to choose members, targets, the start/end/nearest end, and an optional gap. Member and face targets follow edits. Trimmed members retain their names, face references and attachment identity through undo, copying and reopening. End Caps read the trimmed length.

General Trim accepts unjointed stock: Corner None, no corner overrides, Fit Ends off and Coped off. Modified members are explicitly refused as member sources or targets, so Trim cannot discard their existing cuts. Their planar faces remain valid plane targets. Curved/continuous member evaluation and its existing limits stay owned by main; this integration adds no new general-trim support for those paths.

Main's frame.multi_trim stays separate from general frame.trim. Main's Auto/corner behavior, point pairs, profile anchors, per-member rotation, gussets, mounting plates and continuous paths remain available.

Current integration

Review head 6b0d944b0cc55755c8cca931ca492a40383b1b87, tree 61a04111e9ec1344dabcdabcb5548bc7f4046469.
Merged pinned main ba2da2fd4da8bf07f7c311e2c814ce46e4c474bb at the maintainer's request, preserving both histories.
Resolved the gusset integration conflicts while retaining main's evaluator, continuous paths and independent tests.
Trim retains member-line identity so later gusset and plate attachments survive cached reopening.
The follow-ups remove a duplicate recipe arm and translate the Trim target label in eight locales.

Validation

Hosted CI is complete and green on this exact head: 53 checks passed; 18 skipped.
Native Linux Clippy/tests, SolidCore checks/tests, shared builds, CLI, usage-stat-free build, Fillet rig and required ci passed.
Skipped jobs provide no execution evidence.

Native Linux test log:
the repository classifier reports 22,810 ran, 22,791 passed, 19 known failing; one listed test did not run here; no regression.
These accepted known failures are not passing tests.

Test change: the added gusset-identity regression and retained Trim regressions all passed on this head:

  • Trimmed member identity with a gusset before and after cached reopen.
  • Pair-only member sections after reopen.
  • Atomic refusal of cornered stock without losing its cuts.
  • Turned-group placement and Trim through reopen.
  • Retained member face names.
  • Off-centre rotation, Trim and End Cap through reopen.

Both unchanged label-enforcement tests also passed: every_selection_field_label_is_translated and every_ui_label_literal_reaches_an_english_catalog_entry.
The prior missing-label regressions are fixed. Existing geometry assertions and both sides' test groups remain.

Local checks were source-only: pinned rustfmt, whitespace/markers, test retention, main-evaluator reversal and constructor/startup audits.
No local Cargo, compilation, tests, preflight, app/native or WSL execution ran.

Screenshots and review

The maintainer lifted the earlier hold.
Fresh uncropped 1280x720 captures of the selected Trim/Extend dialog and result, plus a small-window check, remain pending.
Historical screenshots below retain their original provenance and do not satisfy those current UI captures.
Nate's UI review remains separate. The source is mergeable, with zero unresolved threads at the validation read.
No current-head human approval or merge is claimed.

Earlier repair details (superseded validation states)

These notes describe earlier stages. The current head and completed hosted results are above.

Head 6b0d944b0cc55755c8cca931ca492a40383b1b87, tree 61a04111e9ec1344dabcdabcb5548bc7f4046469.
Merged upstream pin ba2da2fd4da8bf07f7c311e2c814ce46e4c474bb in response to the maintainer's conflict request, preserving both histories.

Resolved all 15 conflicting files. Gusset/Trim clipboard, body rename, component clone, dialog, ribbon and documentation cases are retained together. Both sides' test additions remain, and frame_gusset, frame_member, frame_trim modules are sorted. Main's current startup/App initializers and lockfiles are unchanged.

The ordinary evaluator, its continuous-path dispatch and final member-identity pass remain intact. The section hook takes main's actual section first, then applies an existing Trim adjustment. Reversing only the declared Trim hooks reproduces main's entire evaluator source exactly. Main's gusset and path implementations are byte-identical to the pin.

Trim now copies the physical member-line identity when rebuilding a body. This lets later gusset and plate attachments identify the same member, including after cached reopen. No kernel/ops algorithm changes were needed for this repair.

Validation

Local source checks pass: pinned rustfmt 1.99.1 for all 41 PR Rust files, whitespace/marker checks, both-parent function/test retention, exact main-evaluator reversal, unchanged gusset/path modules, and constructor/startup checks. The expression golden still includes the three zero axis-origin expressions. Prior locale, attribution and pending-format data remain.

Test change: retain both independent main and Trim test groups. Add a_trimmed_member_keeps_its_gusset_identity_after_cached_reopen in the existing engine frame file. It trims a 40x40 bar to 200 mm, attaches an 80x100x6 triangular gusset before/after cached reopen, and checks member identity and unchanged support geometry. This regression explicitly passed in hosted Native Linux tests on b8262ad489d556c8a10ff2621444e39afb8a4e93, along with the pair-only, modified-stock refusal and rotated-group/reopen cases. That job still failed overall on the two missing-label enforcement tests described below. No local run or current-head pass is inferred from those earlier events. Main's newer continuous-command/schema expectations are retained; existing Trim geometry assertions are unchanged.

Native Linux Clippy on merge head 59591486f8c9f4e90740c6bb2c7d2499ad17b2a5 found an unreachable frame_member recipe match arm. Follow-up b8262ad489d556c8a10ff2621444e39afb8a4e93 removes the older duplicate and retains main's richer translator plus the separate Trim branch. Removing only the Trim branch now reproduces the entire pinned-main recipe source. Pinned rustfmt, whitespace and unique-arm source checks pass; tests and geometry are unchanged by this one-file follow-up.

The next Native Linux run on b8262ad4 identified two regressions with one cause: every_selection_field_label_is_translated and every_ui_label_literal_reaches_an_english_catalog_entry both reported the untranslated Trim to target label. Current follow-up 6b0d944b0cc55755c8cca931ca492a40383b1b87 uses ui.frame_trim.to and adds its translations in the eight locales already covered by the dialog. All existing translations, tests and geometry are unchanged. Direct rustfmt, whitespace, duplicate-key and message-id collision audits pass. The label-enforcement tests themselves are unchanged.

No local Cargo, compilation, tests, preflight, app/native or WSL execution ran. Fresh hosted CI is pending on this head. The previous dabe13e0 quick compile, repository checks and Fillet rig passed, but its Native Linux/heavy jobs were skipped. Those results do not validate the new tree or regression.

Historical source, validation and media provenance (their stated heads only)

The current integration and validation are above. Head, hold and readiness statements in the retained text describe earlier snapshots.

Weldments can trim or extend frame members to other members, planes and planar faces while keeping member names and references.

Changes a default: no

Current CI repair and main integration

Current head: dabe13e0542169f246ea94641997f3a5c6a04a6c; tree: cd6f07ff4adfef4ba6bc6dabad87e4f1daff8aee.
Merged pinned main e34d772cb63ba509d7b957f42d28f1e419ce8d6d with no textual conflicts, retaining both histories and their authorship.
The app and startup sources match main. The missing App initializer fields that blocked #3322 do not apply here.

The two app-geometry errors were existing main calculations moved into helpers by this PR.
untrimmed_member_section has main's member_section body exactly, with only its recursive name changed.
reframe_wires has main's inline paste block exactly after passing the existing document and world-shift references as arguments.
Their existing ledger entries now follow the helper names. The stale eval_feature_kind entry is removed, so the ledger decreases from 1510 to 1509 sites; no new calculation is exempted.
No source geometry, test assertion, expected value or golden changes in this repair.

Source equality proofs, direct pinned Rust 1.99.1 formatting/parsing for all 41 PR Rust files, and whitespace checks passed.
No local Cargo, compilation, tests, preflight, app/native execution or new captures ran.
Hosted CI on dabe13e0542169f246ea94641997f3a5c6a04a6c is now complete and green. Format and repository checks, including app-geometry, the quick compile, Fillet rig and the required ci aggregate passed.
The Native Linux test and heavy build jobs were skipped on this head; green required checks do not establish execution of the new trim regressions or fresh native evidence. The existing source-only and historical test provenance below remains unchanged.
All earlier runtime results and screenshots below keep their stated source provenance.
The maintainer lifted the hold; the requested uncropped Trim/Extend-flow screenshots and human UI review remain pending. This CI repair does not claim new native evidence.

Test change: retain the corrected frame_trim expression golden, including the fixture's three zero axis-origin expressions. Consolidate two identical bar45 test helpers into main's existing 45 x 45 bar helper and combine the schema imports. No assertion or geometry expectation was removed or weakened. The existing ops trim tests remain registered in the consolidated harness.

What changes

Add Weldments -> Modify -> Trim/Extend. Choose the start, end or nearest end, and an optional weld gap.

  • Member targets follow their sketch lines and profile sides through parameter edits.
  • Face targets follow the selected face, including faces on moved or transferred bodies.
  • Trims retain member identity, names and side-face references through edits, copying, undo and reopening.
  • Existing End Caps use the trimmed length. Parallel slanted cuts may leave a short member; crossing cuts remain invalid.
  • Exact section bounds decide trim planes and reach limits. Display meshes do not decide geometry.

General Trim/Extend currently accepts unjointed Frame Members: corner None, no corner overrides, Fit Ends off and Coped off. It explicitly refuses other combinations as members to trim or as member targets, so it cannot rebuild modified stock and discard its existing cuts. Their planar faces remain valid plane targets. A later body modification is also refused as a member target; use its planar face instead. Member targets must share a component.

Main's Auto, Mitre, Butt, corner overrides, fitting, weld gaps, copes, crossing pieces and point-pair members keep their ordinary behavior. The Frame Member dialog and corner operations remain available. Corner None remains main's default. Gussets, welds and cut lists remain outside this PR.

The design-format, locale and attribution additions use pending files. The icon remains Open for owner review.

Earlier base and integration

Rebased onto pinned main d7999cae2d5e440543ca58e49c7331ff6fee57e0 after the Auto frames/corners work in #17855 landed.

Previous source-reviewed head: 9e79063cf76f40d898341d0d82fa4ebbaed750c8. Exact source tree: 719366c4650b6d0a8a0f8c1d9319b7fca5b0107c.

The complete main frame evaluator is retained. The general trim adapter reads main's actual untrimmed sections and segments, including optional sketch paths, point pairs, anchors and per-member rotation. Only rebuildable stock gets trim identity records. The four-field section contract retains main's open-end flags; general trims update the section's start and length for End Cap. Main's pivot, corner, layout, fitting, coping and End Cap implementations remain intact. Existing kernel/ops trim geometry is unchanged.

The two commands remain separate:

  • frame.multi_trim edits a Frame Member's corner override, with MultiTrimParams and main's handler. The corner rows retain their existing frame.member parameter flow.
  • frame.trim is general Trim/Extend to member, plane or face targets, with TrimParams, its own handler and its existing dialog.

Each command is registered once. No combined handler or repurposed command was introduced.

Rust integration/restack note: main's frame::MemberRef remains the optional-feature corner reference. The general required-feature reference is now frame::TrimMemberRef. Its saved JSON fields are unchanged. Branches using the old general Rust type need that rename. The previous stock Layout/Laid/axis implementation now lives in the trim adapter; integrations should restack onto main's frame pipeline rather than replace it with that stock layout.

Retained fixes and credit

@dlucik's port from the corner work (bab209ca4e) saved much of the original replay. Their co-author credit and the original authors, dates, messages, other co-authors and sponsor trailers are preserved across all eight replayed commits. The source integration is a separate attributed commit. Fixes folded in from #5772 and #5773 remain.

Trim face targets retain copy, paste, rename and occurrence-move handling. Pasted 3D sketch lines keep their placement, and the dialog retains placed construction-plane targets. Frame records survive partial body copies. Half-space trim tools keep their cap roles without extra aliases. The existing ops trim tests and every_test_file_is_built remain registered.

The stale expression-golden row still includes frame_trim.angle, frame_trim.offset, frame_trim.gap, 0, 0, 0: the fixture sets the angled plane's axis origin to [0, 0, 0], which the existing walker visits. All 26 command-label entries still use cmd.frame.trim; every translated value and the help messages are byte-preserved.

tests/kernel-cases/ gains no cases. Existing hand-derived trim expectations and reference case tests/oracle/96-frame-tower remain; xtask/mesh-decisions.txt is unchanged.

Earlier source validation

This is a source-only conflict integration. No local Cargo, compilation, Clippy, tests, app build, preflight or runtime checks ran on this new tree. No current-tree compile/test pass is claimed.

Independent source review, direct pinned rustfmt 1.99.1, diff and conflict-marker checks passed. JSON duplicate-key/nonfinite checks, translation/golden retention, command/type registration checks and both-parent assertion retention passed. Removing only the explicit adapter/identity hooks reproduces main's evaluator byte-for-byte. Main's core frame geometry helpers are unchanged.

These regressions in the existing engine frame tests remain unexecuted:

  • general_trim_refuses_cornered_members_without_losing_their_cuts: an attempted general trim of Auto/Mitre/Butt members must explicitly fail and leave the design unchanged.
  • general_trim_keeps_a_pair_only_members_section_after_reopen: a centred 40 x 20 bar at x=600, trimmed to z=250, has hand-derived volume 200,000 mm^3 and bounds (580, -10, 0) to (620, 10, 250), before and after reopening.
  • an_off_centre_rectangular_member_rotates_then_trims_and_caps_after_reopen: a 40 x 20 bar anchored bottom-left turns 90 degrees about (20, 10), then trims to z=180. Its hand-derived volume is 144,000 mm^3, bounds (10, -10, 0) to (30, 30, 180), and rotation pivot (20, 10, 150). Its 6 mm cap has volume 4,800 mm^3 and extends to z=186. The test also checks the retained end plane and reopening.

No measured results are claimed for these cases. The previous 171-name selection was a static inventory for an older tree, not executed coverage. Earlier queued validation/native grants remain unused or on hold; no blanket rebuild or full CI was run for this update.

Historical validation on tree a205

The following results apply only to previous head 195978d3f9ba0980851067fb64eb596cf1048e95, tree a205baab93c56870d10d6db16c5352f0d88ad42f.

They do not validate the current rebased tree.

The first run, 20261119T203701Z-pr5312-main46daf-doc-fields-20261120, ended attribution-uncertain, not PASS.

The runner could mix identity fields from adjacent steps; that defect was reproduced during audit.

The transient identity values from the original warning were not captured. Its evidence and warning remain preserved.

Audit recovery verified that owned processes were absent and released the exact retained lock without signals.

The runner was corrected and checked separately before the follow-up.

That first run recorded strict workspace Clippy (-D warnings), licences and the Linux app build returning zero.

It also recorded 138 passed, zero failed and zero ignored. These remain observations with the attribution caveat:

Filter Passed
Document frame 30
History names 17
Engine frame 61
Frame schema 11
Exact hostile-input case 1
Frame dialogs 12
Kernel member 6

The clean follow-up is limited to the previously unexecuted ops and envelope tests.

Run: 20261119T213738Z-pr5312-main46daf-doc-fields-20261120.

It ended PASS at 21:42:10Z: 13 passed, zero failed and zero ignored.

The ops harness ran its three trim tests and every_test_file_is_built (four tests, 493 filtered out).

All nine exact envelope cases passed (6374 filtered out). No requested filter matched zero tests.

Start and end source trees matched. The foreground run finished normally, with no stop or attribution markers, and released the shared lock.

This clean result applies to those two steps. It does not turn the earlier run into a clean gate PASS.

The full suite and cargo xtask ci were deliberately skipped.

The earlier 754 Rust and 18 Python passes belong only to tree c99d630dbd1c5527159eeae587fe76134eae08af.

They are not validation of either the a205 tree or the current head. The checked-in fast helper uses its own internal profile and lock options.

No full fast pass is claimed on either tree. The historical explicit scoped Cargo commands used --profile ci --locked.

Historical standalone solidcore tests used explicit CLI configuration matching the root ci profile.

Existing frame and naming tests cover retained frame metadata and cap naming. The exact partial-open body-copy path lacks direct runtime coverage.

Native Windows app builds, unit checks and fresh whole-window screenshots remain pending separate reservations.

Both checked-in Windows CI smoke scripts are omitted because they delete real roaming settings.

Planned isolated startup/resize acceptance will be reported separately from those CI scripts.

Earlier results and screenshots remain historical.

Evidence

Historical screenshots, from earlier heads of this PR, not yet re-captured on this head. They were captured from SolidCraft, using the synthetic tower recipe in this PR.

The tower has four 1500 mm uprights and fourteen trimmed 510 mm members, all in 45 × 45 mm bar.

The analytic volume is 26,608,500 mm³. The bounds are 600 × 600 × 1500 mm.

Before trimming, rails overlap the uprights:

Tower joints before trimming

After trimming, the rails meet the upright sides:

Tower joints after trimming

These joint screenshots were captured on 2026-10-27. Reproduce with solidcraft-cli snapshot tests/oracle/96-frame-tower/recipe.json --out tower.png.

The before recipe omits its frame_trim operations.

Parallel planes x + y = 0 and x + y = 30 leave 30 mm along every section ray.

A 45 × 45 mm bar therefore has volume 60,750 mm³, despite overlapping axial ranges of the cuts.

Captured on 2026-11-03 with SMLib a18bbe5, using the tower and parallel-cut recipes in this PR:

Trimmed tower on SMLib

Short member between parallel cuts on SMLib

Implements the Trim/Extend slice of #4003. Frame members and the Weldments ribbon are already merged.

Heavy hosted CI requires maintainer approval. The maintainer decision label remains in place.

Summary by CodeRabbit

  • New Features

    • Added a Trim/Extend tool for frame members, supporting butt joints and trimming or extending members to planes and planar faces.

    • Choose which member ends to trim and set an optional weld gap. Existing member names are preserved.

    • Find Trim/Extend in the Weldments ribbon, with localized labels and help.

  • Documentation

    • Added guidance on trimming members, selecting targets, and the tool’s limits.
Earlier integration records (historical heads only)

Latest validation status, 2026-11-24, 76ce4ca24d40f2bda48eeb1c38a421efe617d1e7: The hostile-input key-list failure from the integration commit is fixed in this follow-up: gap is in alphabetical order and the duplicate members entry is removed. All 157 distinct covered keys remain. Pinned rustfmt and whitespace checks passed; no local Cargo or tests ran. Fresh hosted CI is pending.


Conflict resolution, 2026-11-24: current head 1c72eab6eda2037b019716c1c242c811db93aab3, tree b425b845537fc66319016ffc944d4980b9ab09ba. Integrated pinned main d34d449bfb1ebc29c5919285c7d668a304bce787 once while preserving existing histories. Takes main's per-line public exports and adds map_plane_ref on its own line. Preserves mounting plates alongside general Trim/Extend, clipboard plane remapping, icons and UI. Keeps frame.trim separate from frame.multi_trim, all independent tests, and the trim golden expression record's three zero coordinates.

Current-tree validation is source-only: pinned rustfmt parsing/formatting for 41 Rust files, scoped whitespace, retained test declarations, unique top-level test helpers and separate command registrations passed. Added exports follow the per-line form. The fixture/golden order was also checked for cope and trim. No local Cargo, tests, build, app or native execution ran. Fresh hosted CI is pending. All earlier runtime results and screenshots retain their original commit provenance; native evidence and human review remain separate requirements.


Conflict integration, 2026-11-23

Current published head: bda7bb181d051261bb8494b3b58703d6065730ef.
Content tree: f72519e7f40c9b4595df2eb21f6c3c580048799d.
Integrated main bad95c31f73c0cc02cba26de2d6e748c39a45238 to resolve the reported conflicts.

Main's group evaluator, copy offsets and corner pipeline are retained. Trim resolves the selected member's actual group section before applying retained end planes; failed grouped builds roll back the added records. All appended tests and both separate commands remain. One existing-file grouped placement/trim/reopen regression is added and remains unexecuted.

Both histories, attribution and existing test blocks are retained.
Pinned Rust 1.99.1 formatting, whitespace, marker, JSON and test-function retention source checks passed.
No local compilation, Cargo tests, app build or native runtime ran at this head.
Earlier runtime results and screenshots below apply only to their stated previous heads.
Hosted CI and current-head review determine merge readiness.

CI correction: Trim dialog constructor, 2026-11-21

Current published head: bc328262fbcbe97b4ce4cf2121d47bd162956939.
Content tree: 27a175887066c899ac0f4f3d7e46b49e1242340a.

Hosted Quick compile failed on 4977c29505c1ac7319d1f4c92046b5b6ca6d949e with E0599 at dialogs_frame.rs:510.
The Trim dialog called Trim::new(), while Trim provides the existing Default implementation.
Use Trim::default() to keep the automatic end choice, empty gap and empty target state.
This changes one source line; no geometry or assertions changed.

Pinned rustfmt and whitespace checks passed. No local Cargo, builds, tests or native runtime ran.
The new head awaits hosted CI; no passing compilation or test result is claimed for it.
All earlier evidence below retains its stated head and tree provenance.

Hosted compile correction, 2026-11-21

Previous source-reviewed head: 4977c29505c1ac7319d1f4c92046b5b6ca6d949e.
Content tree: 40703ecc668e99546aa7a2e627d8c7e2e783ab75.

Hosted Quick compile and CLI compilation reported E0425 for the former super::append_warning path.
The failed jobs apply to previous head 9e79063cf76f40d898341d0d82fa4ebbaed750c8.
Resolve append_warning through crate::eval after the trim adapter moved into a nested module.
This follow-up changes one source line and leaves geometry and assertions unchanged.

Pinned rustfmt and whitespace checks passed. No local compilation, tests, app build or native runtime ran.
The correction has not yet been verified by a passing hosted compilation.
All earlier validation and evidence below retain their stated source provenance.

@github-actions github-actions Bot added area:doc timeline, components, parameters, naming area:infra CI, tooling, repo, docs area:ui desktop/web front end, dialogs, viewport labels Oct 23, 2026
@Karl-VonRichter
Karl-VonRichter force-pushed the frames-trim-4003 branch 4 times, most recently from 7b92a1f to 7f12717 Compare October 24, 2026 12:28
@bherbruck bherbruck added this to the Assemblies & joints milestone Oct 25, 2026
@Karl-VonRichter Karl-VonRichter changed the title Frames: Trim/Extend, butt joints and trims to planes (#4003) Weldments: Trim/Extend and stable member references (#4003) Oct 27, 2026
@Karl-VonRichter
Karl-VonRichter marked this pull request as ready for review October 27, 2026 10:08
@Karl-VonRichter
Karl-VonRichter force-pushed the frames-trim-4003 branch 2 times, most recently from 9f4521a to 453713f Compare October 29, 2026 09:34
@bherbruck bherbruck added the status:decision Waiting on a maintainer group decision; don't merge or close label Oct 29, 2026
@bherbruck

Copy link
Copy Markdown
Collaborator

Not held any more. Next step: please run git fetch upstream && git merge upstream/main, resolve crates/doc/src/clipboard.rs, crates/doc/src/document.rs, crates/doc/src/eval.rs, crates/doc/src/lib.rs, crates/doc/src/frame_tests.rs, crates/doc/src/feature_walk_tests/, crates/engine/src/cmd/edit.rs, crates/engine/src/cmd/frame.rs, crates/engine/src/cmd/frame_tests.rs, crates/look/icons/design/requested_icons.txt, crates/ui-egui/src/dialogs.rs, crates/ui-egui/src/dialogs_dense.rs, crates/ui-egui/src/dialogs_frame_tests.rs, crates/ui-egui/src/timeline.rs, crates/ui-egui/src/workspace.rs, docs/frames.md, docs/roadmap-detail.md, and push. Nate has the UI look; he reviews it from screenshots in the description. Could you add uncropped 1280x720 shots of the Trim/Extend flow (the dialog with members picked, and the trimmed result) so he has them?

Karl-VonRichter and others added 3 commits November 24, 2026 15:47
Resolve conflicts with pinned main
d34d449 while preserving both histories.
Take main's per-line document exports and add map_plane_ref on its own line.
Retain general Trim/Extend beside main's mounting-plate command, feature, UI,
clipboard plane remapping, icon requests and complete independent tests.
Keep frame.trim separate from frame.multi_trim. Preserve both feature-walk
fixture/golden blocks and the trim expression record's three zero coordinates.

Pinned Rust formatting/parsing, scoped whitespace, fixture/golden order,
separate command registration and test-declaration retention checks pass.
No local Cargo, tests, build, app or native execution ran. Prior CI and evidence
remain attributed to their recorded source commits, not this integrated tree.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
Move gap into its alphabetical position and remove the duplicate members entry
at the end of the hostile parameter fixture. Main already lists members in its
alphabetical position. This fixes the repository list check exposed after
integrating main without changing covered keys, test assertions or behavior.

Pinned rustfmt and scoped whitespace checks pass; the sorted list retains all
keys exactly once. No local Cargo, compilation or tests ran.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
Merge pinned main e34d772 into the trim
branch without rewriting either history. The merge is textually clean and
retains current main's construction, frame, clipboard and application APIs.

The two app-geometry failures are moved sites rather than new calculations.
Migrate member_section's existing ledger entry to untrimmed_member_section;
its body is main's exactly except the recursive helper name. Migrate paste's
entry to reframe_wires; the extracted block is identical after its existing
document and world-shift reference argument adaptations. Remove the stale
eval_feature_kind entry. The ledger shrinks by one; no site is newly exempted.

Source equality proofs, direct pinned rustfmt checks for all 41 PR Rust files,
and whitespace checks pass. No assertions, expected values or manual source
geometry change. App and startup sources match pinned main, so the App field
integration failure seen in PR tangency-labs#3322 does not apply. No local Cargo, compilation,
tests, app or native execution ran; hosted CI must verify this combined tree.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Merged pinned current main e34d772cb63ba509d7b957f42d28f1e419ce8d6d in dabe13e0542169f246ea94641997f3a5c6a04a6c, with no textual conflicts and both histories retained. Main's app/startup sources remain exact, so the App-initializer integration error from #3322 does not apply.

I also diagnosed the two app-geometry failures. Both are moved inherited code: main's member_section body became untrimmed_member_section (only the recursive name differs), and main's inline paste block became reframe_wires (only the existing document/reference arguments differ). Source comparisons prove these equalities. I migrated the two existing ledger entries to their helper names and removed stale eval_feature_kind. The ledger shrinks by one; there are no added geometry exemptions or changed calculations/tests/goldens.

Pinned rustfmt/source and whitespace checks pass. No local compilation, tests, app/native execution or new screenshots ran; hosted CI is pending. The requested full-window Trim/Extend-flow evidence remains pending, with the existing images retaining their historical labels.

@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

The default-change warning is comparing against an older main snapshot. I checked the actual merged main parent e34d772cb63ba509d7b957f42d28f1e419ce8d6d against head dabe13e0542169f246ea94641997f3a5c6a04a6c:

  • crates/ui-egui/src/prefs/fields/layout.rs is byte-identical (blob 035e40fa576f7e61dc13cf62faf3453bd2ee66c0), including workspace_follows_view and its default.
  • crates/ui-egui/src/keymap.rs is byte-identical (blob bf00b78e56b828a3873173634ba29c5159698d95), including the sketch-tool predicate and modifier handling.
  • workspace::enter is identical. This PR's workspace delta only adds Trim to the Weldments MODIFY ribbon, its label and its ribbon placement.

The source at that main parent already contains workspace_follows_view, focus_workspace, enter_legacy and the modifier preference. There is no workspace/keymap default change in this PR, so Changes a default: no remains accurate. I have not changed main's accepted defaults in response to this warning.

The current-head Format and repository check passes, including the repaired app-geometry guard. The description records source-only local checks and preserves historical validation/capture provenance; fresh screenshots are still explicitly pending.

@bherbruck bherbruck added the approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) label Nov 24, 2026
@bherbruck

Copy link
Copy Markdown
Collaborator

@Karl-VonRichter You're right: the default-change warning compared against an older main. This change doesn't change a default, so "Changes a default: no" stands. I've re-run its checks on a fresh merge.

One thing is still needed, though: your gusset plates PR, #8115, has merged since, and it touched the same files, so this now conflicts in clipboard.rs, document.rs, cmd/browser.rs, cmd/component_clone.rs, dialogs.rs, dialogs_dense.rs, workspace.rs, docs/frames.md and solidcore-ops/src/lib.rs (keep both mod lines, sorted), plus three test files (keep both sides' tests). Since both are yours, keep the gussets as they are on main and re-apply the trim/extend changes on top:

git fetch https://github.com/tangency-labs/solidcraft.git main
git merge FETCH_HEAD
# resolve, then
git add -A && git commit --no-edit && git push

It goes in once that's green.

Merge pinned main ba2da2f after the
maintainer identified conflicts with the landed gusset work. Keep main's gusset,
continuous-member, clipboard, clone, rename, dialog and ribbon behavior. Retain
both independent test additions, sorted op modules and documentation updates.

Apply Trim's section adjustment after main's path-aware section lookup, leaving
the ordinary evaluator and final member-identity pass intact. Preserve that
member identity when Trim rebuilds a body so later gusset and plate attachments
can identify it. Add an existing-module regression for a gusset attached after
trimming and cached reopen, with analytic volume and unchanged-support checks.

Direct pinned rustfmt passes for all 41 PR Rust files with their crate editions.
Whitespace, both-parent test retention and constructor/source checks pass.
Reversing only the declared Trim hooks reproduces main's complete evaluator;
gusset and continuous-path implementations remain exact main source. No local
Cargo, compilation, tests, app/native or WSL execution ran. The new regression
is unexecuted locally and fresh hosted CI must verify this merged tree.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Resolved the conflicts with landed gussets and merged pinned main ba2da2fd4da8bf07f7c311e2c814ce46e4c474bb in 5959148. Both histories are retained. All 15 conflicting files are resolved, keeping main's gusset clipboard/clone/rename handlers, dialogs and ribbon entry alongside Trim. Both sides' test additions remain and the three frame op modules are sorted.

Main now also includes the continuous-member route. Its complete ordinary evaluator, final identity pass, gusset implementation and path implementation are retained. The Trim section hook reads main's actual section before applying trim ends.

The integration exposed one necessary metadata fix: rebuilding a trimmed body discarded the member-line identity used by gusset/plate attachments. Trim now preserves it. An added existing-module regression checks attaching a gusset after trimming and cached reopen, with analytic volumes and unchanged support geometry. It is unrun locally.

Pinned rustfmt for all 41 PR Rust files, whitespace, source-retention and initializer checks pass. Reversing only the declared Trim hooks reproduces main's full evaluator source. No local Cargo, compilation, tests, app/native or WSL execution ran. Fresh hosted CI is pending; the requested uncropped Trim/Extend-flow screenshots remain pending for native evidence and Nate's review. The description now opens with the user-visible change and #4003, and separates current status from historical evidence.

Remove the unreachable older frame_member match arm introduced by combining
Trim's recipe support with main's continuous-member translator. Retain main's
complete frame_member translation and the separate frame_trim arm unchanged.
This resolves the Native Linux Clippy unreachable-pattern error without a lint
allowance, geometry change or test expectation change.

Pinned rustfmt, whitespace and unique recipe-arm source checks pass. Removing
only the Trim arm reproduces the entire pinned-main recipe source exactly.
No local Cargo, compilation, tests or app/native execution ran; hosted CI must
verify this follow-up. Existing validation stays scoped to its original heads.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Fixed the current Native Linux Clippy failure in b8262ad. The merge had retained two frame_member recipe arms. The older one was unreachable. It is now removed, keeping main's complete continuous-member translator and the separate frame_trim arm. No lint allowance, geometry or test expectation changed. Removing only the Trim arm reproduces pinned main's entire recipe file. Direct rustfmt and whitespace checks pass; no local build/tests ran. Fresh hosted CI is pending.

The new defaults warning misreads the integrated main pin ba2da2fd4da8bf07f7c311e2c814ce46e4c474bb:

  • Main's frame.member declaration already uses .begins_edit(). The declaration is byte-identical here; this PR does not add that behavior.
  • Main's WELDMENTS CREATE section already has promoted: 4 with member, end cap, mounting plate and gusset. That row is also byte-identical here. The only ribbon command added by this PR is Trim in MODIFY.

Changes a default: no remains accurate. The description records the compile failure and this exact follow-up; historical evidence stays scoped to its original tree. Fresh full-flow screenshots remain pending, with no new native execution claimed.

Use the ui.frame_trim.to message for the target selection field and add its
translations in the eight locales already covered by the Trim dialog. This
fixes both hosted label-enforcement regressions without changing their tests,
geometry, command policies or existing catalog entries.

Pinned rustfmt, whitespace, duplicate-id and exact source/catalog delta checks
pass. No local Cargo, compilation, tests or app/native execution ran; hosted
CI must verify this follow-up. Earlier Trim geometry and gusset-cache passes
remain evidence for b8262ad only, whose overall job failed on these labels.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Signed-off-by: Karl Von Richter<karl@embeint.com>
@Karl-VonRichter

Copy link
Copy Markdown
Contributor Author

Fixed the two Native Linux regressions in 6b0d944. Both enforcement tests reported the same missing Trim to label. The field now uses ui.frame_trim.to, translated in English, Japanese, Chinese, German, Korean, Arabic, Hebrew and Vietnamese. Existing catalog values, geometry, test assertions and known-failing entries are unchanged.

The prior b8262ad job explicitly passed a_trimmed_member_keeps_its_gusset_identity_after_cached_reopen, pair-only trim/reopen, modified-stock refusal, and rotated-group trim/reopen. Its overall FAIL remains recorded because the two label-enforcement regressions failed. Those passes are b8262ad evidence only.

Pinned rustfmt, whitespace, duplicate-key/message-id and exact source-delta checks pass. No local Cargo, compilation, tests or native execution ran. Fresh hosted CI must verify this label-only follow-up; the watch remains active.

@bherbruck bherbruck added the ready to merge reviewed, every ask addressed; merge once CI is green label Nov 24, 2026
@bherbruck
bherbruck added this pull request to the merge queue Nov 24, 2026
Merged via the queue into tangency-labs:main with commit aa6c753 Nov 24, 2026
117 of 120 checks passed
brett-heladyne added a commit to brett-heladyne/solidcraft that referenced this pull request Nov 24, 2026
…ency-labs#5312

tangency-labs#5312 (weldment trim and extend) added two remap_plane calls in the
FrameTrim and FrameGusset arms with the old `occurrences, doc` arguments;
this PR changes remap_plane to take `placements`, so the merge queue
could not compile the two together (E0061). As bherbruck asked on the PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NKk9zDMByL6k24pse8ToBg
EliteEng added a commit to EliteEng/solidcraft that referenced this pull request Nov 25, 2026
…e replace ours

Main now has its own Frame Trim (tangency-labs#5312), attached gussets (tangency-labs#8115) and mounting and end plates
(tangency-labs#7485), so our Trim and Gusset are dropped and theirs are used; our Weld, member exports (STEP,
DXF, NC1), cut list, profile library and placement points, personal library and joined groups
stay. The cut list's Plates lists upstream's gussets and mounting plates. Main's split of a
member's section from its path (continuous members) takes our per-group placement, and its
preferences in one file per page take our two library preferences (unpaged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tangency-repo-manager Bot pushed a commit that referenced this pull request Nov 28, 2026
…ut list (#4003)

Each build of frame.member now records, for every body it makes (pieces
too), its two ends [start, end] along its line as
ModelState::member_ends(feature): a plane cut (mitre, butt, angled butt,
set back by the weld gap), coped, fitted or square. The cut planes are
the build's own exact data; bodies, names and face names are unchanged.
The record goes in the saved model cache with the rest of the state,
written only for states that have one.

Trim/Extend (#5312) is a feature of its own and leaves this record as the
build made it: a trimmed member's new end planes stay on its member
record (ModelState::frame_member). Main's member records and path
routing are kept as they are.

Tests work their expected values out by hand from the sketch: mitre
bisectors at 45 degrees with the corner g/2 behind each plane, butt
planes at the tubes' faces, coped, fitted and square ends, an angled
butt at 20 degrees, a saved model keeping the record, and a trim that
leaves it and puts its plane on the member record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sponsored-by: ABASTRAN (https://abastran.com)
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 owner-approved Owner reviewed a sensitive-path change (kernel, CI, build scripts, deps); only the owner adds this 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.

6 participants