Skip to content

Redesign map setup as four map-side steps with clearer navigation - #65

Merged
pratyush1712 merged 3 commits into
masterfrom
pratyush-cc/nice-goodall-38xd2h
Nov 12, 2026
Merged

pratyush1712 merged 3 commits into
masterfrom
pratyush-cc/nice-goodall-38xd2h

Conversation

@pratyush1712

@pratyush1712 pratyush1712 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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

  • One composition for every step. The map takes the wide column and the task sits beside it in a readable panel. Below lg the map comes first. The first-run screen holds the same layout, so nothing jumps after import.
  • Persistent header. Sites › site › Map setup trail, 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.
  • Map layers. One compact list replaces a field per feature.
    • A layer with several features takes one decision ("Use all as…"), and any feature can still be decided alone. Nothing is classified or left out until chosen.
    • Features show their QGIS name, or their shape and number ("Area 3"). The open layer is numbered on the map, and the list and the map select each other.
    • Whole layers can become observation zones in one step, but only when no saved zone is waiting to be matched, so zone identities are never replaced silently.
    • Layers of more than eight features start closed.
    • After import, file controls shrink to a Map files row with separate Add data files and Replace project actions. A missing data file offers Add the missing file in place.
  • Site outline and Zones are separate steps, one map each (the old Boundaries step stacked two). The outline is drawn by clicking the map; typed coordinates and point editing are one level down. Zones use the existing zone editor unchanged.
  • Publish shows the map observers will get beside a checklist, the form choices, and Check map / Publish map at natural width.
  • Continue is disabled with its reason ("Decide how to use 4 more features first.") instead of failing after a click.
  • Discard is a dialog that says what is removed and what stays, replacing a browser confirm.

Navigation decision

Three approaches were weighed:

Approach Why not / why
Move map setup under the QGIS tab Maps belong to sites; outline and zone drawing is not QGIS work, and managers without QGIS use it too
Rename or merge the Sites and QGIS tabs Touches every tab's contents, shortcuts and the command palette for a problem that is about signposting
Keep it under Sites and signpost it (chosen) Addresses stay stable; the breadcrumb, title and QGIS page copy now say where you are and why

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

  • An unnamed zone showed its internal identity as its map label; it now shows its code.
  • Focus returns to the More button when the discard dialog closes.

Compatibility

  • add-map and review keep their addresses; new outline and zones; the earlier boundaries address opens Zones (or the latest step the draft allows).
  • Unchanged: draft autosave and acknowledgement, conflict handling, unfinished-drawing protection, source replacement preview and confirmation, publication checks, the current published map staying in use until publication.
  • StepBar gains optional onSelect, reachable and disabled props for flows that change step on the page. Existing link-based use is unchanged. The collector's StepBar was not changed.

Checks

  • pnpm check (types, lint), pnpm tokens:check: pass.
  • Unit: 553 pass. The two boundary-editor regression tests were moved onto the new steps; new map-setup-steps.test.mjs covers step gating, the legacy address and feature naming.
  • Browser, local stack: map-setup.spec.ts and qgis-map-setup-navigation.spec.ts pass 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.
  • Rendered and inspected at 1440, 1180, 1024, 1000, 768 and 390 px with no horizontal overflow; Day and Dusk; long site and layer names; a 40-feature layer; missing data file and online background layer; keyboard focus order with a visible ring on every control; a 720 px viewport as a stand-in for 200% zoom (no sticky element is active there).

Not verified

  • The whole Playwright suite cannot be collected in one run: screenshots.spec.ts fails 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:check reports src/features/zones/ZonesScreen.tsx, which this PR does not touch.
  • No real device, screen reader or real 200% browser zoom was used, and no user research was done.
  • The mobile app and backend are untouched and were not run.

Generated by Claude Code

RetriggerView in GreptileConfidence 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.

  • Map layers show clearer feature names and let managers choose uses by layer or feature.
  • Map setup stays under Sites and guides managers through steps they are ready to take.
  • The site outline and observation zones have separate map-editing steps.
  • The publish step shows the observer-facing map beside its checklist and publish choices.

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"]
Loading

Reviews (3) · Last reviewed commit: "Apply layer choices to current content; ..." · Reviewed by Greptile

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
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
deca-mark Ready Ready Preview Nov 11, 2026 7:58pm UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T19:45:25.722456Z d43ca2a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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
@pratyush1712
pratyush1712 merged commit a4e196d into master Nov 12, 2026
10 checks passed
@pratyush1712
pratyush1712 deleted the pratyush-cc/nice-goodall-38xd2h branch November 12, 2026 13:40

This branch was successfully deployed

1 active deployment
Preview — e8366f1b Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants