Repository navigation
refactor: rename ModelBuilder to Model Designer - #3557
Conversation
ui.modelDesigner is the new command id; ui.modelBuilder still works.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| 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) |
There was a problem hiding this comment.
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:
| 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
There was a problem hiding this comment.
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.
Code reviewScope: rename of ModelBuilder to Model Designer, with Bugs
Security
Performance
Quality
AGENTS.md
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 sizeCompared: the whole PR against main (merge base 5799813 to PR head 1ba3cc7).
|
📖 Docs preview
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 |
Summary
Renames RustGIS's ModelBuilder to Model Designer. Nothing about how models work changes.
ui.modelDesigneris the new id.ui.modelBuilderstill 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".model.new,model.runand the othermodel.*commands, saved projects,.model.jsonfiles, and themodelbuildericon name, which plugins can use. The schema differs only in two descriptions.Links to
#modelbuilderin 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.newand the text of three messages change. Undo is unaffected.Testing
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.cargo xtask schemaleaves no further difference.ui_shotrenders 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:
Related issue
None.
Summary by CodeRabbit