Repository navigation
Redesign map setup as four map-side steps with clearer navigation - #65
Conversation
Map setup becomes Map layers → Site outline → Zones → Publish. Every step keeps one map beside its task, the header carries a Sites › site › Map setup trail and the ways out, and a step bar shows what is done and what is next. - Layers: one compact list replaces per-feature fields. A whole layer takes one decision, features keep individual choices, and each carries its QGIS name or its shape and number. The open layer is numbered on the map; the list and the map select each other. Nothing is classified until chosen. - Map files shrink to one row after import, with separate Add data files and Replace project actions; missing sources offer the recovery action in place. - Outline and zones are separate steps with one map each. The outline is drawn by clicking the map; typed coordinates and point edits sit one level down. - Publish shows the map observers will get beside a checklist and the forms. - Save and leave and a More menu (recovery file, discard with a dialog that says what is removed) stay in the header; Continue names what is missing. - An unnamed zone shows its code on the map instead of its identity. - The QGIS page says that a map belongs to its site and opens under Sites. Saved links keep working: add-map and review keep their addresses and the earlier boundaries address opens Zones. Draft saving, conflict handling, unfinished-drawing protection, source replacement review and publication checks are unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WZcT2LHobTwr3Ft4xQcovk
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d43ca2afd5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Typed zone corners now count as unfinished work until the zone is finished or cancelled, and their section stays open while it holds points, so closing it can no longer hide them from the leave and step guards. Adopting a whole layer as zones reports itself as pending while it runs, so Save and leave or a step change cannot save the draft without those assignments. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WZcT2LHobTwr3Ft4xQcovk
Whole-layer zone adoption now works out every zone identity first and then applies them to the content as it stands, so a choice made meanwhile is kept instead of overwritten; a single feature's choice does the same. Pressing a feature in a layer other than the numbered one brings it into view at the first press. The discard dialog cannot be dismissed, and Keep draft is off, once discarding has started. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WZcT2LHobTwr3Ft4xQcovk
What this changes
Map setup worked, but it was hard to read and slow to complete: full-width buttons, a feature list several screens long, two maps stacked on one step, and file-replacement controls that stayed prominent after import. This redesigns the journey from choosing a QGIS project to publishing, inside Contour.
The flow: Map layers → Site outline → Zones → Publish
lgthe map comes first. The first-run screen holds the same layout, so nothing jumps after import.Sites › site › Map setuptrail, site name in the title, Save and leave and a More menu (recovery file, discard). A step bar shows what is done; the save state sits beside it with its existing honest wording.Navigation decision
Three approaches were weighed:
The QGIS page section is now "Site maps" and states that a map belongs to its site and opens under Sites. Leaving always returns to the site page, because that is where the draft and the published map are shown. A return to the page you came from was rejected: QGIS and Overview do not show draft state, so a saved draft would seem to vanish there.
Also fixed
Compatibility
add-mapandreviewkeep their addresses; newoutlineandzones; the earlierboundariesaddress opens Zones (or the latest step the draft allows).StepBargains optionalonSelect,reachableanddisabledprops for flows that change step on the page. Existing link-based use is unchanged. The collector'sStepBarwas not changed.Checks
pnpm check(types, lint),pnpm tokens:check: pass.map-setup-steps.test.mjscovers step gating, the legacy address and feature naming.map-setup.spec.tsandqgis-map-setup-navigation.spec.tspass on desktop-1440 and phone-390 (touch drawing included). A new test covers whole-layer decisions, list and map selection, the bulk-change refusal, unfinished drawing not being saved, step navigation and the discard dialog. Related specs (sites, packages, qgis-reports, overview, honesty, forms-version-delivery, zones-editor, hydration, removed-routes) pass on desktop: 93 tests.Not verified
screenshots.spec.tsfails with "Missing route in existing acceptance catalog: packages-upload (manager)". This also happens on the tree without this change, so specs were run by file.pnpm format:checkreportssrc/features/zones/ZonesScreen.tsx, which this PR does not touch.Generated by Claude Code


Confidence Score: 5/5
The PR appears safe to merge; the three numbered previous findings are addressed, with no new actionable issues found.Summary
Map setup now separates Map layers, Site outline, Zones, and Publish, with clearer navigation and a map beside each task.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A["Map layers"] -->|"All features decided"| B["Site outline"] B -->|"Outline added"| C["Zones"] C -->|"At least one zone"| D["Publish"] D -->|"Saved map passes checks"| E["Published map"]Reviews (3) · Last reviewed commit: "Apply layer choices to current content; ..." · Reviewed by Greptile