Repository navigation
refactor(ui): split the publication wizard into a module with one file per step (#3096) - #3099
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no defects in this PR. It moves Bugs: none found. Confidence high.
Security: none. The change adds no input handling and no I/O. Performance: none. Behaviour is unchanged. Quality: none worth an inline comment. The only item I noticed is that some test modules repeat AGENTS.md: no violations found.
Twins checked: not applicable. This is a refactor with no change in behaviour, so no format read route, overlay tool, add or open command, or wasm/desktop branch needed the same change. Prior reviews: none existed on this PR, so no earlier concerns were left alone. Not verified: build, clippy, and tests. The author's description reports them passing on the head commit, which I have not re-run. Change sizeCompared: the whole PR against main (merge base bf02b5d to PR head 9de78dd).
|
📖 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
Splits
crates/ui-egui/src/publicationwizard.rs(907 lines) into the modulepublicationwizard/, so the steps still to come can be added in separate files. Nothing changes in the app.mod.rs:Step,Orientation,Draft, the window (show), what several steps share, a#[cfg(test)] mod harnesswith the test helpers, and the tests that cross steps.size.rs,style.rs,texts.rs,accent.rs,review.rs: one step each, with the tests of that step.Items are moved whole. The only edits are the
modanduselines each file needs,pub(super)on the step functions and the test helpers, a one-line module comment per new file, and theharnesswrapper. Review withgit diff --color-moved=dimmed-zebra.Testing
cargo xtask schema --checkall passed.cargo clippy -p rustgis-ui-egui --all-targets -- -D warningsclean;cargo nextest run -p rustgis-ui-egui -E 'test(publicationwizard)': 19 passed, the same 19 tests as before the move;cargo check -p rustgis-web --target wasm32-unknown-unknownpassed.UI evidence
No visible UI change.
Related issue
Closes #3096
Summary by CodeRabbit