Skip to content

refactor: rename ModelBuilder to Model Designer - #3557

Merged
Mavrick-F merged 4 commits into
opengeos:mainfrom
Mavrick-F:chore/model-designer
Dec 1, 2026
Merged

Mavrick-F merged 4 commits into
opengeos:mainfrom
Mavrick-F:chore/model-designer

Conversation

@Mavrick-F

@Mavrick-F Mavrick-F commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Renames RustGIS's ModelBuilder to Model Designer. Nothing about how models work changes.

  • Name: the ribbon, Workflows pane, tooltips, view tab, phone chip, command label, messages, docs and code comments.
  • Command: ui.modelDesigner is the new id. ui.modelBuilder still works, so scripts don't break. Saved and imported shortcuts, Quick Access pins and Show Me turn the old id into the new one, and show it as "Model Designer".
  • Languages: the five existing strings in all 21 catalogs. They are retranslated now rather than at release because the old translations contain the old name. Corrections from speakers are welcome.
  • Unchanged: model.new, model.run and the other model.* commands, saved projects, .model.json files, and the modelbuilder icon name, which plugins can use. The schema differs only in two descriptions.

Links to #modelbuilder in the guide still work. The screenshot keeps its file name, as the picture doesn't show the old name.

Reach: desktop, browser and phone share these strings and commands. On the command line, in Python, and through the Assistant and MCP, only the label of model.new and the text of three messages change. Undo is unaffected.

Testing

  • The fork's Linux gate passed on this commit: run.
  • the_old_command_id_still_works: the old id opens and closes the designer, and becomes the new one in saved shortcuts, the import preview, Quick Access pins (toggled and loaded) and Show Me.
  • The Model Designer, translation, command id, command surface, model and phone chip tests pass.
  • cargo xtask schema leaves no further difference.
  • ui_shot renders of the Analyze tab, inspected in English and 13 other languages. The Bengali, Chinese, Georgian, Japanese, Korean, Lao and Persian catalogs were not rendered.

UI evidence

Analyze, before (top) and after:

Analyze tab, before and after

Related issue

None.

Summary by CodeRabbit

  • New Features
    • The modeling tool is now presented as Model Designer throughout the interface and documentation.
    • Existing shortcuts, saved preferences, and Quick Access pins for ModelBuilder continue to work with Model Designer.
    • Quick Access labels now display clearer command names when available.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request renames ModelBuilder to Model Designer across the UI, engine messages, and documentation. The UI uses the new command ID and implementation while retaining the legacy command as an alias. Preference, shortcut, and Quick Access handling canonicalizes the legacy ID.

Changes: Model Designer rename and compatibility

Layer / File(s) Summary
Rename the implementation and connect it to the UI
crates/ui-egui/src/modeldesigner.rs, crates/ui-egui/src/lib.rs, crates/ui-egui/src/mapview.rs
The UI implementation and app field now use ModelDesigner. Import handling, map-view calls, and the new command use the renamed implementation.
Keep legacy command identifiers working
crates/ui-egui/src/keymap.rs, crates/ui-egui/src/lib.rs, crates/ui-egui/src/showme.rs, crates/ui-egui/src/shortcutfile.rs
The legacy command ID resolves to ui.modelDesigner. Key preferences, Quick Access entries, shortcuts, and Show Me use canonical IDs.
Update UI entry points, labels, and tests
crates/ui-egui/src/analysispane.rs, crates/ui-egui/src/chrome.rs, crates/ui-egui/src/ribbon.rs, crates/ui-egui/src/workspacepanes.rs, crates/ui-egui/tests/*, crates/ui-touch/src/*
UI controls and touch view chips use Model Designer labels or the new command ID. Related tests use the updated names and commands.
Update engine and documentation terminology
crates/engine/src/*, README.md, docs/*, schema/project.schema.json, apps/rustgis/src/*
Engine labels, messages, comments, schema descriptions, and documentation now refer to Model Designer. The described workflows and validation rules are unchanged.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Refactor

Suggested reviewers: jgregoriorincon, giswqs, elpidioassinaturas

Merge Risk: Minimal · up to 1ba3c · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "refactor: rename ModelBuilder to Model Designer" states the primary change. The PR renames the ModelBuilder feature to Model Designer across UI labels, commands, docs, and code comments, an…
Description check Passed The description follows the template's Summary, Testing, and UI evidence sections, and includes a Related issue section. The Summary explains the rename and the compatibility behavior for ui.modelBuil…
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.
Full details: Title check

Explanation

The title "refactor: rename ModelBuilder to Model Designer" states the primary change. The PR renames the ModelBuilder feature to Model Designer across UI labels, commands, docs, and code comments, and the raw summary and objectives confirm this. It is short, specific, and uses a conventional commit prefix.

Full details: Description check

Explanation

The description follows the template's Summary, Testing, and UI evidence sections, and includes a Related issue section. The Summary explains the rename and the compatibility behavior for ui.modelBuilder. Testing lists the CI run, the new the_old_command_id_still_works test, and other checks. UI evidence includes a before/after screenshot for the Analyze tab, which matches the template's requirement for visible UI changes. The Related issue section states None. The description is complete, so it passes.

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

A rabbit taps the renamed key,
The canvas answers, “Designer,” to me.
Old paths still find the open door,
New labels greet the tools once more.
I nibble clover, pleased to see.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a06e0e8d-c1ed-4dcc-9a5d-1850134d8535
Commits

Reviewing files that changed from the base of the PR and between e11b061 and 1ba3cc7.

Files ignored due to path filters: 21

  • crates/ui-egui/src/i18n/az.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/bn.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/de.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/el.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/es.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/fa.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/fr.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/id.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/it.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ja.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ka.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ko.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/lo.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/nl.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/pl.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/pt.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/ru.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/tr.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/vi.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/zh-tw.tsv is excluded by !**/*.tsv
  • crates/ui-egui/src/i18n/zh.tsv is excluded by !**/*.tsv
Files selected for processing: 35

  • README.md
  • apps/rustgis/src/main.rs
  • apps/rustgis/src/menu.rs
  • crates/engine/src/cmd/sharing.rs
  • crates/engine/src/cmd/workflows.rs
  • crates/engine/src/lib.rs
  • crates/engine/src/model.rs
  • crates/engine/src/project.rs
  • crates/engine/src/tests.rs
  • crates/ui-egui/src/analysispane.rs
  • crates/ui-egui/src/chrome.rs
  • crates/ui-egui/src/cubesui.rs
  • crates/ui-egui/src/inuse.rs
  • crates/ui-egui/src/keymap.rs
  • crates/ui-egui/src/layoutview/format.rs
  • crates/ui-egui/src/layoutview/tests.rs
  • crates/ui-egui/src/lib.rs
  • crates/ui-egui/src/mapview.rs
  • crates/ui-egui/src/modeldesigner.rs
  • crates/ui-egui/src/readjob.rs
  • crates/ui-egui/src/ribbon.rs
  • crates/ui-egui/src/shortcutfile.rs
  • crates/ui-egui/src/showme.rs
  • crates/ui-egui/src/workspacepanes.rs
  • crates/ui-egui/tests/integration/tool_field_lists.rs
  • crates/ui-egui/tests/smoke.rs
  • crates/ui-touch/src/assistant.rs
  • crates/ui-touch/src/lib.rs
  • docs/comparison/index.md
  • docs/comparison/qgis.md
  • docs/geolibre-parity.md
  • docs/index.md
  • docs/user-guide/analysis.md
  • docs/user-guide/index.md
  • schema/project.schema.json

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

Comment on lines +203 to +204
let names = UI_LABELS.iter().copied().chain(crate::chrome::UI_COMMANDS.iter().map(|&(id, label, _)| (id, label)));
names.into_iter().find(|(known, _)| *known == id).map(|(_, label)| label)

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.

names is already an iterator, so the .into_iter() on line 204 is a no-op. I believe clippy's useless_conversion lint (warn by default) flags it, and CI runs clippy with -D warnings, so this would fail the clippy gate (I haven't run clippy). The fix is to drop the call and make the binding mut for find:

Suggested change
let names = UI_LABELS.iter().copied().chain(crate::chrome::UI_COMMANDS.iter().map(|&(id, label, _)| (id, label)));
names.into_iter().find(|(known, _)| *known == id).map(|(_, label)| label)
let mut names = UI_LABELS.iter().copied().chain(crate::chrome::UI_COMMANDS.iter().map(|&(id, label, _)| (id, label)));
names.find(|(known, _)| *known == id).map(|(_, label)| label)

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Clippy passes on this commit (the Lint job), so the gate isn't affected. The redundant .into_iter() is left for the release quality pass.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Code review

Scope: rename of ModelBuilder to Model Designer, with ui.modelBuilder kept as an alias. I read the whole diff and the surrounding code, including the id mapping in keymap.rs, the shortcut import in shortcutfile.rs, Quick Access load and save in lib.rs, Show Me, the Tasks catalog, the touch views, and the model.new label. I found no bugs, security issues or performance problems.

Bugs

  • None found. The old id is mapped at every entry point I traced: Keymap::assign, apply_preferences, Quick Access load and ui.quickAccess, and Show Me. keymap::label checks the registry before ui_label, so registry labels are unchanged. (High confidence.)

Security

  • None found.

Performance

  • None found.

Quality

  • crates/ui-egui/src/keymap.rs:203-204: .into_iter() is called on an iterator that is already one. I believe clippy's useless_conversion flags it, and CI runs clippy with -D warnings, so it could fail the gate. I haven't run clippy. (Medium confidence.) Inline comment posted with a suggestion.
  • crates/ui-egui/src/shortcutfile.rs:116 and :129: the import passes the raw file id to shortcutui::reserved, while the rest of the import maps it first. No forwarded shortcut uses the old id today, so nothing changes in practice. (High confidence in the inconsistency, low severity.) The inline comment could not be placed because these lines are not in the diff, so it is noted here only.

AGENTS.md

  • None found. The checks I could verify by reading:
    • schema/project.schema.json is updated with the two description changes.
    • All 21 catalogs have the five retranslated keys, and no ModelBuilder string is left in the source outside the intended old-id code and docs.
    • The ui.modelDesigner id has a match arm in run_ui, so the command-id test should pass.
    • Command labels are not in command-surface.txt, so the snapshot is unaffected.
    • No new unwrap, expect or unsafe appears in the added code.
    • No #[cfg(target_arch = "wasm32")] branch changed.
  • Surfaces checked: the ribbon, Quick Access, Show Me, Tasks, Command Search, the touch views, the shortcut import and export, and the Analyze pane. The CLI and Python package have no references to the old id.

Prior threads: none exist on this PR, so there were no earlier concerns to leave alone.

I did not run the build, tests or clippy; I had no shell.

Change size

Compared: the whole PR against main (merge base 5799813 to PR head 1ba3cc7).

Measure Value
Files changed 56 (added 0, modified 55, removed 0, renamed 1)
Size before 16.69 MB
Size after 16.69 MB
Total size change +4.6 KB
Path Before After Change
crates/ui-egui/src/modeldesigner.rs 98.6 KB 100.9 KB +2.3 KB
crates/ui-egui/src/keymap.rs 27.0 KB 27.5 KB +502 B
crates/ui-egui/src/lib.rs 631.7 KB 632.1 KB +371 B
crates/ui-egui/src/i18n/ka.tsv 655.2 KB 655.4 KB +181 B
crates/ui-egui/src/i18n/lo.tsv 611.6 KB 611.7 KB +144 B
crates/ui-egui/src/i18n/el.tsv 540.1 KB 540.1 KB +129 B
crates/ui-egui/src/i18n/bn.tsv 563.6 KB 563.7 KB +89 B
crates/ui-egui/src/i18n/vi.tsv 398.8 KB 398.9 KB +83 B
crates/ui-egui/src/i18n/ru.tsv 500.5 KB 500.5 KB +81 B
crates/ui-egui/src/i18n/fr.tsv 388.1 KB 388.1 KB +67 B
crates/ui-egui/src/i18n/es.tsv 374.9 KB 374.9 KB +62 B
crates/ui-egui/src/i18n/ja.tsv 429.6 KB 429.7 KB +57 B
crates/ui-egui/src/i18n/it.tsv 370.6 KB 370.6 KB +53 B
crates/ui-egui/src/chrome.rs 147.0 KB 147.0 KB +49 B
crates/ui-egui/src/ribbon.rs 324.6 KB 324.6 KB +48 B
crates/ui-egui/src/i18n/pt.tsv 370.3 KB 370.4 KB +47 B
crates/ui-egui/src/i18n/ko.tsv 384.6 KB 384.7 KB +43 B
docs/user-guide/analysis.md 207.7 KB 207.7 KB +40 B
crates/ui-egui/src/shortcutfile.rs 13.0 KB 13.0 KB +37 B
crates/ui-touch/src/lib.rs 176.8 KB 176.8 KB +36 B

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-3557/
Web app https://preview.rustgis.app/pr-3557/app/
Commit 1ba3cc7

GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the preview label (once per commit).

@Mavrick-F
Mavrick-F added this pull request to the merge queue Dec 1, 2026
Merged via the queue into opengeos:main with commit 342ebb8 Dec 1, 2026
28 checks passed
@Mavrick-F
Mavrick-F deleted the chore/model-designer branch December 1, 2026 19:36
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.

1 participant