Skip to content

KEY-CROP: name the crop panel "Crop & Geometry" - #3477

Open
Hafer-Nil wants to merge 2 commits into
storytold:mainfrom
Hafer-Nil:i18n/crop-and-geometry
Open

Hafer-Nil wants to merge 2 commits into
storytold:mainfrom
Hafer-Nil:i18n/crop-and-geometry

Conversation

@Hafer-Nil

@Hafer-Nil Hafer-Nil commented Oct 31, 2026 •

Copy link
Copy Markdown

The crop panel is named after its two sections, Crop and Geometry.

What the user saw: Window → Crop & Rotate (C) opens a panel with the sections Crop and Geometry, so the name undersells it. The code already calls it "Crop & Geometry" (menus/run.rs, KEY-GUIDEDUPRIGHT in the parity checklist).

What changed: the menu item, the tool strip tooltip, the tests that look the button up by name, the user guide and the KEY-CROP row of the parity checklist. English only (AGENTS.md rule 16): the catalogs are untouched, so other languages show the English name until they have rows for the new keys. German: storytold/craft-i18n#619.

Tests: tool_strip_and_toolbar_buttons_are_named_by_label_with_the_shortcut_as_description and the tool strip tests in widgets/icon_button_tests.rs look for the new name.

Verification (Linux, local): cargo xtask ci --quick passed fmt, clippy and heif. In its test step, 8 tests in lightcraft-ui-egui --lib failed, and they fail the same way without this change: 7 pass with LC_ALL=en_US.UTF-8 (my system uses a decimal comma), filmstrip_stack_badge_expands_and_collapses_the_stack fails either way. parity, layers, assets, roots and wasm passed. Not checked in the running app since the merge of main.

Summary by CodeRabbit

  • Updates
    • Renamed the Crop tool to Crop & Geometry in the menu, toolbar, and photo-editing guide. The C shortcut remains unchanged.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The crop tool label changes from “Crop & Rotate” to “Crop & Geometry” in the command, tooltip, accessibility tests, and documentation. The C shortcut and command ID remain unchanged.

Changes: Crop Tool Label

Layer / File(s) Summary
Update crop tool labels
crates/ui-egui/src/menus/ui_commands.rs, crates/ui-egui/src/panels/strip.rs, crates/ui-egui/src/widgets/icon_button_tests.rs, crates/ui-egui/tests/it/accessibility.rs, docs/user/guides/edit-a-photo.md, docs/parity-checklist.md
The command label, tooltip, accessibility test expectations, and documentation use “Crop & Geometry” instead of “Crop & Rotate.” The C shortcut and command ID are unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: nledford, echelon, aiongg

Merge Risk: Minimal · up to 297fb

This renames the crop panel label to "Crop & Geometry" in the menu, tooltip, tests, and docs. The shortcut and command ID are unchanged. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the crop panel label moves from "Crop & Rotate" to "Crop & Geometry" under the KEY-CROP item. The raw summary and PR objectives confirm that the menu item, tool strip toolt…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the change: the crop panel label moves from "Crop & Rotate" to "Crop & Geometry" under the KEY-CROP item. The raw summary and PR objectives confirm that the menu item, tool strip tooltip, accessibility test, user guide, and parity checklist all carry this rename. The title is specific, concise, and matches the main change.

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.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 932961f and 297fb6d.

Files selected for processing: 5

  • crates/ui-egui/src/menus/ui_commands.rs
  • crates/ui-egui/src/panels/strip.rs
  • crates/ui-egui/src/widgets/icon_button_tests.rs
  • crates/ui-egui/tests/it/accessibility.rs
  • docs/parity-checklist.md
Files skipped from review as they are similar to previous changes: 3

  • crates/ui-egui/src/menus/ui_commands.rs
  • crates/ui-egui/src/panels/strip.rs
  • docs/parity-checklist.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

The panel behind Window → Crop & Rotate (C) has two sections, Crop and
Geometry (panels/right/crop.rs), and the code already calls it
"Crop & Geometry" (menus/run.rs, parity checklist KEY-GUIDEDUPRIGHT).
Rename the menu item and the tool strip tooltip. The catalogs follow
the new key and keep their current translations, so no language falls
back to English; only German gets the new name ("Zuschneiden und
Geometrie").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hafer-Nil
Hafer-Nil force-pushed the i18n/crop-and-geometry branch from e376f95 to 932961f Compare October 31, 2026 19:41
@Hafer-Nil Hafer-Nil changed the title i18n: name the crop panel "Crop & Geometry" KEY-CROP: name the crop panel "Crop & Geometry" Oct 31, 2026

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReviewerA — source-read COMMENT (not an approval)

I read the visible hunks: the crop panel's label key changes from "Crop & Rotate" to "Crop & Geometry" in the locale files. In the Czech file the keys changed but the values are still the old "Oříznout a otočit" (Crop & Rotate), while German was updated to "Zuschneiden und Geometrie". Please update every locale's text (or leave a note that the others fall back to the old wording), and check no code path still looks up the old key.

I ran nothing and have no exact-head CI result for this PR, so this is not an approval. Where a diff was long I read its code hunks rather than every generated or documentation line.

Status: waiting_author.

@Hafer-Nil

Copy link
Copy Markdown
Author

Thanks! Keeping the existing translations is intentional (see "Not in this PR" in the description): every catalog moves to the new key but keeps its current text, so no language falls back to English. I only changed German, which I can check as a native speaker; the other translators may want to adopt the new name later. No code path looks up the old key anymore — git grep '"Crop & Rotate"' on the branch head finds nothing.

@wanikhawar wanikhawar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rename changes the Crop & Rotate and Crop & Rotate (C) keys in 22 locale files but keeps the old translations, e.g. Czech "Oříznout a otočit" and Spanish "Recortar y rotar", which still say "rotate". Rule 16 also sends translations to storytold/craft-i18n, not crates/ui-egui/locales/. Please change the English key and strings only, and let craft-i18n follow.

Review feedback and AGENTS.md rule 16: a feature PR changes English only,
so the locale files are back to what main has. Until craft-i18n has rows
for the new keys, the menu item and the tooltip show in English.

Also rename the label in widgets/icon_button_tests.rs, new on main.
@Hafer-Nil

Copy link
Copy Markdown
Author

Thanks, done: the PR now changes the English key and strings only, and the catalogs are as on main. I merged main to resolve the conflict in panels/strip.rs. The German rows are in storytold/craft-i18n#619.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants