Flow A: Report a problem, review it, and track it
Maya Thompson, resident · on her phone, between errands
Goal
Report a broken streetlight once, check it before sending, and leave with a reference she can find again.
Entry points
- Home hero pill “Report a Problem”
- Home service card “Potholes, streetlights & more”
- Service Center (/demo/) › Report a Problem
- “Report a problem →” link on City Insights
Success criteria
- Every required field is answered and checked before the review step
- A sample reference (SF-DEMO-…) on the confirmation screen
- The same reference appears in City Insights with status Received
Scroll the chart sideways to follow the whole flow.
Text version of this flow
- Home Report a Problem (start) — then Step 1 · Details issue type, location, details, name, email.
- Step 1 · Details issue type, location, details, name, email (screen / step) — then All required fields valid?.
- All required fields valid? (decision) — if “No”, go to Browser flags the first invalid field; other answers stay; if “Yes”, go to Step 2 · Review every answer listed before submitting.
- Step 2 · Review every answer listed before submitting (screen / step) — then Submit preview or edit?.
- Submit preview or edit? (decision) — if “Edit details”, go to Step 1 · Details issue type, location, details, name, email; then Step 3 · Confirmation SF-DEMO reference, print or start again.
- Step 3 · Confirmation SF-DEMO reference, print or start again (system action) — then Session storage available?.
- Session storage available? (decision) — if “Yes”, go to Save a minimal record category · reference · status Received; if “No”, go to Preview complete, but not added to City Insights.
- Fill with sample details (optional) (alternate path) — then Step 1 · Details issue type, location, details, name, email.
- Browser flags the first invalid field; other answers stay (alternate path) — then Step 1 · Details issue type, location, details, name, email.
- Save a minimal record category · reference · status Received (system action) — then Track in City Insights →.
- Preview complete, but not added to City Insights (alternate path) — then Done nothing was sent.
- Track in City Insights → (end)
- Done nothing was sent (end)
Design decisions
1One short form, five fields, all required, with the rule stated up front: “All fields are required. Use sample information to try the form.” A three-step indicator (Details · Review · Confirmation) marks the current step with aria-current.
2“Fill with sample details” fills every field in one tap, so a visitor can try the whole journey on a phone without typing, and without being tempted to enter real personal data.
3Validation runs on submit with the browser’s own messages. Nothing is cleared: a missing location is flagged while the issue type and details stay exactly as typed.
4The review step lists every answer as label and value, with “Submit preview” and “Edit details”. Edit returns to Step 1 with all answers intact and focus on the first field.
5Only problem reports are tracked, and only the minimum: reference, category and status Received, in this tab’s session storage. Name, email, location and details are never stored.
6The confirmation adds “Track in City Insights →”, so the journey ends with a useful next step instead of a dead end. If storage is blocked, the confirmation says so plainly.