Repository navigation
fix(ui): re-seed untouched wizard accent on style change and keep credit template extractable - #3056
Conversation
…dit template extractable
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewReviewed the single changed file, Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared with the base branch (merge base c294550 to PR head 9c2b96f).
|
📖 Docs previewCommit |
Summary
Follow-up to the two review findings on #3041 in
crates/ui-egui/src/publicationwizard.rs:"Pick a colour of your own"is ticked on one style (seedingd.accentfrom that style's default) and the user goes back to Style and picks another style without having customised the colour,style_stepnow re-seedsd.accentto the new style's own accent. Editing the colour picker explicitly recordsd.picked = Some(*c), so a deliberately picked colour (even one equal to a style's default) is preserved across style switches and untick/retick, while an untouched style default is never saved as a stale custom colour."Made with RustGIS · {date}"toi18n::fmt(withtl_raw!("today's date")) so catalog extraction sees the template, whiledefault_credit_matches_the_engines_constantasserts it stays equal torustgis_engine::cmd::layout::PUBLICATION_DEFAULT_CREDIT.Reach every surface
crates/ui-egui/src/publicationwizard.rs(no platform-specific code).ui-touch), Assistant, MCP, plugins: unaffected — no command, parameter, or schema changes.Testing
cargo test -p rustgis-ui-egui --lib publicationwizard::tests(19/19 passed), including new testswitching_style_while_accent_is_ticked_re_seeds_untouched_defaultand strengtheneddefault_credit_matches_the_engines_constant.cargo clippy -p rustgis-ui-egui -p rustgis -p rustgis-web -p rustgis-ui-touch -p rustgis-mobile --all-targets -- -D warningscargo test -p rustgis-ui-egui --test command_ids(2/2 passed)cargo xtask layers,cargo xtask attribution,cargo xtask rows(768/768),cargo xtask test-hygiene,cargo fmt --all --checkUI evidence
No visible UI change.
Related issue
Follow-up to #3041 (#2874).
Summary by CodeRabbit