Skip to content

Frames: Trim/Extend has no compact ribbon label, failing the ribbon label test #5770

Closed as not planned

Description

@Karl-VonRichter

Found while getting #5312 (Frames: Trim/Extend, part of #4003) ready to merge.

What's wrong

frame.trim is promoted on Weldments › Modify with the label Trim/Extend. The ribbon fits a label under its button only when no word is longer than 9 characters (and the whole label is at most 12). "Trim/Extend" is one 11-character word, and it has no compact ribbon label in RIBBON_LABELS (crates/ui-egui/src/workspace.rs).

workspace::tests::promoted_long_labels_have_compact_ribbon_names checks exactly this, and fails on #5312's branch:

missing compact label for frame.trim

The local checks run on #5312 so far only included the frame dialog and Weldments tab tests, so they never ran this test; CI's full ui-egui suite would fail on it.

Reproduce

On #5312's branch: cargo test --profile ci -p solidcraft-ui-egui --lib promoted_long_labels.

Expected

The ribbon button reads a short label, its tooltip the full name Trim/Extend, as for the other promoted commands with long labels (Capture Pos., Mass Center, …).

Proposed fix

A ("frame.trim", "Trim") row in RIBBON_LABELS. "Trim" is already a translated string (ui.trim), so the label is translated in every catalog with no new key.

This depends on #5312 (frame.trim isn't on main yet), so its PR is stacked on #5312.

Activity

  1. added
    needs-triage
    in progress
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Claimed by @Karl-VonRichter through #5772. The claim lapses after 14 days without pushes.

  3. Karl-VonRichter commented on Oct 24, 2026

    @Karl-VonRichter
    ContributorAuthor

    Closed: this was a gap in #5312, which isn't merged; the fix is in #5312 itself (Frames: a compact ribbon label for Trim/Extend).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

in progressneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions