Skip to content

feat(ui): the Layout Wizard leads New Layout and the Publish tab - #3297

Merged
jgregoriorincon merged 4 commits into
opengeos:mainfrom
jgregoriorincon:feat/3115-wizard-entry
Nov 29, 2026
Merged

jgregoriorincon merged 4 commits into
opengeos:mainfrom
jgregoriorincon:feat/3115-wizard-entry

Conversation

@jgregoriorincon

@jgregoriorincon jgregoriorincon commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Publication Layout Wizard was the last row of Home › New Layout › Publication Layout, two menus deep, and the Publish tab had no way to make a layout.

  • Layout Wizard… is now the first row of Home › New Layout, with a separator under it. It leaves the end of the Publication Layout submenu, which keeps the one-click sheets and figures.
  • The Publish tab gains a New group with a large Layout Wizard… button, before the reports (after the open layout's groups).
  • It is renamed from "Publication Layout Wizard", window title included: one name wherever it appears (docs/contributing.md), its menu row and button ending in "…" as they ask for input, and not the same as the Publication Layout submenu. The issue's text uses the old name.

No new command: both open the same publicationWizard dialog through ui.dialog. It reaches the ribbon on desktop and in the browser (the touch interface has no ribbon); the command line, Python, the Assistant and MCP keep using layout.publication, unchanged. Command Search and shortcuts do not open the wizard, as before this change: adding it to Command Search is left out of this PR. Opening the wizard makes nothing, and Cancel closes it. The renamed strings wait for the release translation pass.

Ribbon (docs/contributing.md)

  • Task, tab and group: start a publication sheet or figure. Home › New Layout, where a layout is started, and Publish › New, as the product being published is often made there. The button opens a dialog.
  • Why the destination repeats: the Publish tab could make reports and presentations, but no layout.
  • Clicks: from Home, New Layout › hover Publication Layout › Wizard becomes New Layout › Layout Wizard… (2 clicks, one hover fewer). From Publish, a switch to Home and that path becomes 1 click. The one-click sheets and figures are as before.
  • At 1366 px: with no layout open the button is the first control on Publish, and Export Map and Print Map stay in view. The later groups move right by one button. With a layout open its groups lead the tab, so the button is reached by scrolling, or from Home.

Testing

  • the_new_layout_menu_opens_the_wizard (renamed from the_publication_menu_opens_the_wizard): one wizard row with the submenu open, above the first page size; it opens the dialog, closes the menu and makes nothing.
  • the_publish_tab_opens_the_wizard: the Publish button comes before New Report, opens the dialog and makes nothing.
  • Both failed before the change.
  • cargo fmt, cargo clippy with warnings denied, the workspace tests with cargo nextest (10671 passed, 29 skipped), the doctests, the layer check and the schema check passed; after the last commit (one test assertion and a doc line), the two wizard tests, fmt and clippy of rustgis-ui-egui again.
  • Headless ui_shot screenshots before and after.

UI evidence

crop-menu.png
crop-publish.png
wizard-after.png

Related issue

Closes #3115

Summary by CodeRabbit

  • New Features

    • Added the Layout Wizard to the Publish › New menu.
    • Moved the wizard to the top of Home › New Layout, before page-size options.
  • Documentation

    • Updated the getting-started guide and layout guide with the wizard’s new name and locations.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The wizard title changes to “Layout Wizard.” The wizard is added to Home › New Layout and Publish › New, and removed from the Publication Layout submenu. Tests and documentation are updated to reflect the new title and locations.

Changes: Layout Wizard

Layer / File(s) Summary
Wizard title and references
crates/ui-egui/src/dialogs.rs, crates/ui-egui/src/publicationwizard/*
The wizard title, module documentation, draft comment, and test window queries use “Layout Wizard.”
Menu entry points and documentation
crates/ui-egui/src/ribbon.rs, docs/getting-started.md, docs/user-guide/layouts.md
The wizard is added before the page-size options in Home › New Layout and to Publish › New. The Publication Layout submenu entry is removed. Tests and guides reflect the updated locations.

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

Change: Feature

Suggested reviewers: giswqs, elpidioassinaturas, deniial00

Merge Risk: Minimal · up to b37f9

This change moves the Layout Wizard to the first row of Home › New Layout, adds a button on Publish › New, and renames the wizard and its docs. Existing layout creation paths are unchanged. No merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(ui): the Layout Wizard leads New Layout and the Publish tab" names the main change: the Layout Wizard moves to the top of the New Layout menu and gets a button on the Publish tab. It i…
Description check Passed The description follows the template sections: Summary, Testing, UI evidence, and Related issue. The Summary explains the change and the reason for it. Testing lists the new tests, the checks that ran…
Linked Issues check Passed Issue #3115 has one active direct link and no parent context. Its coding requirements are: (1) make the wizard the first item of Home › New Layout, with the one-click Publication Layout submenu kept u…
Out of Scope Changes check Passed All changed areas support the linked issue. ribbon.rs contains the new menu row, the Publish New group, and their tests. texts.rs and publicationwizard/mod.rs contain the window title rename and the m…
Full details: Title check

Explanation

The title "feat(ui): the Layout Wizard leads New Layout and the Publish tab" names the main change: the Layout Wizard moves to the top of the New Layout menu and gets a button on the Publish tab. It is specific, and it matches the summary, objectives, and linked issue #3115. The title uses a conventional commit prefix and is 64 characters long, which is within a reasonable length.

Full details: Description check

Explanation

The description follows the template sections: Summary, Testing, UI evidence, and Related issue. The Summary explains the change and the reason for it. Testing lists the new tests, the checks that ran, and the before-and-after screenshots. The UI evidence section has three screenshots, which the template requires for visible UI changes. The Related issue section links #3115. The template's 'No visible UI change.' line does not apply here, and the author replaced it with screenshots, as the template instructs.

Full details: Linked Issues check

Explanation

Issue #3115 has one active direct link and no parent context. Its coding requirements are: (1) make the wizard the first item of Home › New Layout, with the one-click Publication Layout submenu kept under it; (2) add a button on the Publish tab that opens the same wizard dialog; (3) add no new command. The PR summary and the raw change summary show these changes in crates/ui-egui/src/ribbon.rs. The wizard row sits above the page-size options, the duplicate wizard row is removed from the Publication Layout submenu, and the Publish tab gets a New group with a Layout Wizard button. Both entries open the existing publicationWizard dialog through ui.dialog. The tests cover the menu position, the Publish button position, dialog opening, and that opening creates nothing. The PR also renames the wizard to 'Layout Wizard' in the window title, module docs and test lookups. The issue names the entries 'Publication Layout Wizard…' and 'Publication Layout'. The PR uses 'Layout Wizard…' for both. The PR states this rename as a deliberate choice, and it does not change behavior. Functional requirements are met. I did not inspect the diff directly, so this verdict relies on the PR summary and the change summary.

Full details: Out of Scope Changes check

Explanation

All changed areas support the linked issue. ribbon.rs contains the new menu row, the Publish New group, and their tests. texts.rs and publicationwizard/mod.rs contain the window title rename and the matching test lookups. dialogs.rs changes only a field doc comment. docs/user-guide/layouts.md, docs/getting-started.md and docs/contributing.md document the renamed entry points. These documentation edits follow from the rename and the new entry points. No unrelated behavior change appears in the summaries. The PR does not add a Command Search entry, and it states that this is out of scope. The changes do not touch the command line, Python, Assistant or MCP paths. I did not inspect the diff directly, so this verdict relies on the PR summary and the change summary.

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 finds the wizard’s name,
Now shorter on the window frame.
From Home or Publish, paths appear,
The layout steps are easy to steer.
Tests check the doors that lead inside,
And guides show where the steps reside.

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: 4ca2fd16-62cf-46e6-84d0-900278e14db6
Commits

Reviewing files that changed from the base of the PR and between cbd2f1b and b37f941.

Files selected for processing: 6

  • crates/ui-egui/src/dialogs.rs
  • crates/ui-egui/src/publicationwizard/mod.rs
  • crates/ui-egui/src/publicationwizard/texts.rs
  • crates/ui-egui/src/ribbon.rs
  • docs/getting-started.md
  • docs/user-guide/layouts.md

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

@github-actions

Copy link
Copy Markdown
Contributor

Code review

I read the full diff (6 files, about 60 lines changed), the repository guidelines, and the surrounding code. I found no bugs, security issues or performance problems. Tests were not run, since this review had no shell, so the findings rest on reading the code.

Bugs

None found.

What I checked:

  • Both entry points open the same dialog. The Home menu row and the Publish button both call ui.dialog with publicationWizard, which lib.rs:6172 handles. ui.* ids are always enabled in widgets::enabled, so the new button can't be greyed out by mistake.
  • Accessible labels. big replaces \n with a space in widget_info, so the "Layout\nWizard…" button matches the get_by_label("Layout Wizard…") test.
  • Rename coverage. The old window title has no remaining references in code, tests or catalogs. The i18n catalogs have no row for the old wizard title, so no translation is lost. The window title and both test sites were updated together.
  • Test harnesses. tab_harness is 2400 px wide, so the ≤ 1366 assertion is a real position check, not a no-op.

Security

None found.

Performance

None found. The change adds one button and moves one menu row.

Quality (nits, not posted inline)

  • docs/user-guide/layouts.md around the "Layout Wizard…" bullet: the hard wrap leaves "asks for the size" on its own line with an odd indent, and the bullet reads ragged. Rewrapping it would tidy it.
  • The wizard now appears twice on the Ribbon, with the same label, in Home › New Layout and Publish › New. docs/contributing.md asks for one button per destination. The PR gives a reason for the repeat (different starting context), so this is a judgement call, not a defect. Confidence: low.
  • Command Search still does not reach the wizard. The PR says this is deferred on purpose, which fits the "Reach every surface" rule.

AGENTS.md

No breaks found. The PR updates the window title, the docs and the ribbon guidelines together. The two new tests cover the paths they touch: the menu opens the wizard and makes nothing, and the Publish button opens it and makes nothing.

Prior review threads: none on this PR, so no earlier concerns were left alone.

Change size

Compared with main (merge base 3c0fba7 to PR head b37f941).

Measure Value
Files changed 6 (0 added, 6 modified, 0 removed, 0 renamed)
Size before 761.5 KB
Size after 763.5 KB
Total size change +1.9 KB
File Before After Change
crates/ui-egui/src/ribbon.rs 311.1 KB 313.0 KB +1.9 KB
docs/getting-started.md 4.3 KB 4.4 KB +83 B
crates/ui-egui/src/publicationwizard/mod.rs 47.7 KB 47.6 KB -36 B
docs/user-guide/layouts.md 88.4 KB 88.4 KB +16 B
crates/ui-egui/src/dialogs.rs 297.0 KB 297.0 KB -12 B
crates/ui-egui/src/publicationwizard/texts.rs 13.0 KB 13.0 KB -12 B

@jgregoriorincon
jgregoriorincon added this pull request to the merge queue Nov 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-3297/
Web app https://preview.rustgis.app/pr-3297/app/
Commit b37f941

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).

Merged via the queue into opengeos:main with commit c5e1119 Nov 29, 2026
28 checks passed
@jgregoriorincon
jgregoriorincon deleted the feat/3115-wizard-entry branch November 29, 2026 02:10
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.

[Feature]: Publication Layout Wizard first in New Layout and on the Publish tab

1 participant