Skip to content

[Feature]: Split the Publication Layout Wizard into a module with one file per step, with no change in behaviour #3096

Done

Description

@jgregoriorincon

Before you start

What problem does this solve?

crates/ui-egui/src/publicationwizard.rs is 907 lines in one file: the draft, the window, all five steps and their tests. The steps layout.publication still lacks in the wizard (extent and name, the map elements, their arrangement, more texts) would each be added to the same file, and every new test at its end, so pull requests on different steps would conflict with each other.

Proposed solution

Move whole items into crates/ui-egui/src/publicationwizard/: mod.rs keeps the draft, the window and what several steps share, and each step gets its own file (size.rs, style.rs, texts.rs, accent.rs, review.rs) with its tests. The only edits inside the moved code are the visibility and imports the split needs, and the rewrapping cargo fmt does after that. Nothing changes in the app. The pull request asks for review with git diff --color-moved=dimmed-zebra.

Estimated scope

Small

Alternatives considered

Leaving the file as is keeps every change to the wizard in conflict with the others.

Activity

  1. jgregoriorincon commented on Nov 27, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions