Repository navigation
fix(layout): say a preview's bug after the Layout Wizard has gone - #3512
jgregoriorincon merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI read the full diff, the base-branch AGENTS.md, and the surrounding wizard code ( Overall the change is sound. It keeps a dropped drawing's answer, lands a bug from it once through Bugs
Security
Performance
Quality
AGENTS.md
Twins checked
Prior reviews
Change sizeCompared with the base branch (merge base 5453f49 to PR head 549fb8f). Files changed: 3 (0 added, 3 modified, 0 removed, 0 renamed).
|
Code reviewPR #3512 makes the Layout Wizard's preview answer reach Messages when the wizard has gone before the drawing finishes. I found no crash paths, no wasm breakage, and no duplicate notices. One minor quality point is posted inline. BugsNone found. I traced the cases:
SecurityNone found. Performance
Quality
AGENTS.md
Twins checked
Change sizeCompared against
|
📖 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
The Layout Wizard draws its preview on a thread of its own in the desktop app (#3480). The channel's receiver lived only in the wizard, so a bug the drawing met was dropped with it: when the wizard was closed, another dialog took its place, or it was closed on another step before the review step had read the answer. Messages never said it.
Drop for Drawing, which each of those goes through, now keeps the receiver, and a per-frame landing, beside the otherland_*calls, says a caught bug in Messages. A drawing that ends well or is only cancelled says nothing, and one the review step already read has nothing left to say, so a bug is said once.Reach: the desktop app and the phone's desktop interface, which draw the preview on a thread. The browser draws it in place and is unchanged. No command, parameter or project change, so the command line, Python, the ribbon, the Assistant and MCP, plugins and undo are not involved.
Testing
publicationwizard/review.rs: a bug met after the wizard is closed or replaced, one unread when it closes on another step, and drawings left that met no bug; the existing once-only test now closes the wizard too. The new ones failed before the fix.cargo nextest run -p rustgis-ui-egui -E 'test(publicationwizard)': 205 passed; clippy on the crate andfmt --checkclean.schema --checkpass; nextest 11749 of 11757. The 8 failures (7 inrustgis-geolibre, and the smoke testline_strokes_editor_edits_one_class) happen on this machine on other branches too and touch nothing changed here.cargo check -p rustgis-web --target wasm32-unknown-unknownpasses.UI evidence
No visible UI change.
Related issue
Closes #3505
Summary by CodeRabbit