Skip to content

Command Search: Decorative Text, not WordArt - #4420

Open
Hamza0101 wants to merge 1 commit into
storytold:mainfrom
Hamza0101:fix/decorative-text-command-labels
Open

Hamza0101 wants to merge 1 commit into
storytold:mainfrom
Hamza0101:fix/decorative-text-command-labels

Conversation

@Hamza0101

@Hamza0101 Hamza0101 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #4416

What was wrong

docs/feature-names.md names the feature Decorative Text, and the catalog and the Insert ribbon follow it. The two command specs in crates/engine/src/cmd/wordart.rs were still labelled "WordArt" and "Format WordArt". Command Search and gridcraft-cli commands show those labels as they are.

What changed

  • insert.wordArt is labelled Decorative Text, the catalog's and the ribbon's name for it.
  • wordArt.set is labelled Format Decorative Text.
  • The command ids are unchanged, as the doc's compatibility boundary says.

QA report

Main vs branch, end to end (gridcraft-cli commands --search …)

main is a CLI built from origin/main (d60709a1) and the branch is this PR (4c335f1f). cmp confirmed the two binaries differ.

Search main this PR
word insert.wordArt WordArt (Insert > Text), wordArt.set Format WordArt insert.wordArt Decorative Text (Insert > Text), wordArt.set Format Decorative Text
decorative 0 commands both commands

word still finds both on this branch, because Command Search matches the command id too.

Test

tests::command_labels_use_the_feature_names checks the two labels. It also checks that no command's label names WordArt or SmartArt as a word, the same word test ui-egui/tests/display_names.rs uses. That guard scans the UI sources and catalog.rs, not the command specs, which is how these two labels slipped past it.

Negative controls

Each was an edit on top of 4c335f1f, run, then restored with git checkout:

Control Result
C1: wordArt.set labelled Format WordArt again the test fails: left Some("Format WordArt"), right Some("Format Decorative Text")
C2: a label naming SmartArt (wordArt.set labelled SmartArt Format, its exact-label check removed) the test fails at the scan: wordArt.set: SmartArt Format

Gate (macOS arm64, at 4c335f1f)

Step Result
cargo fmt --all -- --check clean
cargo clippy -p gridcraft-engine --all-targets -- -D warnings clean
cargo test -p gridcraft-engine 1005 (+1 ignored) + 120 + 7 passed, 0 failed
cargo test -p gridcraft-ui-egui --test display_names 3 passed

Not covered

  • Translations: Command Search doesn't translate any command label (dialogs/command_search.rs shows c.label as is). So these two show in English in every language, as the other commands do. Translating Command Search is a broader change than this issue.
  • Messages and parameter docs still say WordArt: unknown WordArt style, no such WordArt, the shape is not WordArt, WordArt text must not be empty, and {id: WordArt id, …}. They are errors and agent-facing parameter docs, not the labels this issue lists. I can rename them here if wanted.
  • cargo xtask ci: I didn't run the full cargo xtask ci (wasm, layers, the other crates).

Summary by CodeRabbit

  • User Interface
    • Updated the command labels to “Decorative Text” and “Format Decorative Text.” The commands’ behavior and available options are unchanged.

The catalog and the Insert ribbon call the feature Decorative Text
(docs/feature-names.md), but the two command specs Command Search lists
were still labelled WordArt and Format WordArt. They are now Decorative
Text and Format Decorative Text. The command ids stay as they are.

Fixes storytold#4416
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The insert.wordArt and wordArt.set command labels now use “Decorative Text” names. A test verifies both labels and checks that command labels do not contain standalone “WordArt” or “SmartArt.”

Changes: Decorative Text command labels

Layer / File(s) Summary
Update command labels and coverage
crates/engine/src/cmd/wordart.rs, crates/engine/src/tests.rs
The insert.wordArt label changes to “Decorative Text,” and wordArt.set changes to “Format Decorative Text.” A test checks these labels and excludes standalone “WordArt” and “SmartArt” from command labels.

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

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: vangel76

Merge Risk: Minimal · up to 4c335

The change only renames two command labels to Decorative Text names. Command IDs are unchanged, so existing behavior should not be affected. The risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the Command Search label for insert.wordArt and wordArt.set changes from WordArt wording to Decorative Text wording. The raw summary confirms the label change in crate…
Linked Issues check Passed Issue #4416 asks that the WordArt command labels follow the Decorative Text naming map, with the command IDs unchanged. The PR changes the label of insert.wordArt to "Decorative Text" and the label …
Out of Scope Changes check Passed All reported changes concern the two command labels in crates/engine/src/cmd/wordart.rs and the regression test in crates/engine/src/tests.rs. Both implement issue #4416. The PR does not change comman…
Full details: Title check

Explanation

The title names the main change: the Command Search label for insert.wordArt and wordArt.set changes from WordArt wording to Decorative Text wording. The raw summary confirms the label change in crates/engine/src/cmd/wordart.rs and a new test in crates/engine/src/tests.rs. The title is specific and does not describe unrelated work. It does not mention the format label, but that label falls under the same rename, so the title still covers the primary change.

Full details: Linked Issues check

Explanation

Issue #4416 asks that the WordArt command labels follow the Decorative Text naming map, with the command IDs unchanged. The PR changes the label of insert.wordArt to "Decorative Text" and the label of wordArt.set to "Format Decorative Text" in crates/engine/src/cmd/wordart.rs (summary: +2/-2, IDs, parameters, and handlers unchanged). The reviewed catalog (crates/engine/src/catalog.rs) already maps insert.wordArt to "Decorative Text", so the label now matches the catalog and the ribbon. The issue's example labels match the PR. The PR adds test tests::command_labels_use_the_feature_names in crates/engine/src/tests.rs (+21), which asserts both labels and rejects WordArt or SmartArt as a standalone word in any command label. The author reports two negative controls that fail as expected and a passing gate. Not verified: the whole-PR diff could not be read because changed blobs are missing from the checkout, so the evidence comes from the summary, the PR description, and the catalog file. The issue's phrase "catalog entries for the new labels" is read as satisfied by the existing catalog entry for insert.wordArt. The PR does not add a translation or a catalog entry for "Format Decorative Text". The issue states that translation is blocked by the display-name guard, and the PR describes translating Command Search as a broader change. Those points are not treated as unmet requirements of this issue.

Full details: Out of Scope Changes check

Explanation

All reported changes concern the two command labels in crates/engine/src/cmd/wordart.rs and the regression test in crates/engine/src/tests.rs. Both implement issue #4416. The PR does not change command IDs, parameters, or handlers. It does not alter error messages or parameter documentation, and it reports those remaining WordArt references as deliberately unchanged. No unrelated change is evident from the summary. Not verified: the full diff could not be read because changed blobs are missing from the checkout, so this verdict relies on the raw summary and PR description.

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d60709a and 4c335f1.

Files selected for processing: 2

  • crates/engine/src/cmd/wordart.rs
  • crates/engine/src/tests.rs

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

emrahoksak pushed a commit to emrahoksak/girdcraft- that referenced this pull request Nov 18, 2026

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.

Naming: the WordArt commands are still labelled "WordArt" in Command Search

1 participant