Block 164 of 297
Report an Issue
A 311-style guide to reporting a problem, with common issue links, phone and app options, and what happens next.
- Puck key
- ReportAnIssueBlock
- Export
- reportAnIssueBlock
- React component
- <ReportAnIssue />
- Path
- components/puck/report-an-issue-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A 311-style help section in up to four parts: numbered reporting steps beside a grid of common issue shortcuts, a row of other ways to report, and a dark "what happens next" timeline. A report button and a 911 notice sit at the top. Sections drop away when their lists are empty, and everything stacks to one column on phones.
- A city 311 or service request landing page
- A public works "report a pothole or streetlight" page
- A help section on a resident services portal
Writing the content
- Start each Step with a verb, like "Add a photo". The block allows up to five steps, five reporting options and five next stages.
- Common issues take an icon from a fixed list and up to 12 entries. Point each Link at the form pre-filtered for that issue type.
- For Other ways to report, write the full link scheme yourself: tel:, mailto:, sms: or a web address. Leave Link blank to show plain text.
Accessibility
- Steps are an ordered list, and each step heading includes hidden text such as "Step 2:" because the number circles are hidden from screen readers (WCAG 1.3.1).
- Every issue tile and reporting option shows a written label next to its icon; the icons themselves are hidden from assistive technology.
Customizing the code
- Add issue types or reporting channels in the issueIcons and channelIcons records; each needs a label and a 24px stroke icon path.
- The timeline panel is bg-neutral-950 with indigo-400 markers; the emergency notice uses a neutral-950 left border rather than red.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Emergency noticetextarea
- Report button texttext
- Report button linktext
- Steps headingtext
- Stepsarray
- Common issues headingtext
- Common issuesarray
- Other ways headingtext
- Other ways to reportarray
- What happens next headingtext
- What happens nextarray