Ask a tool for a responsive inbox triage screen, inspired by Inbox Zero, using 14 synthetic messages. Then check whether it holds up at 320px, from the keyboard, and with a screen reader.
Stack
React + TypeScript
Data
14 synthetic messages
Checks
20
Tool runs
None published
The task
Someone is clearing a busy inbox. They need to see what needs a reply, open a message, archive it and move on, with a mouse, a thumb or the keyboard. The screen has to work as three panes on a laptop, two on a tablet and one on a phone.
The brief is deliberately narrow: one screen, no backend, no auth. That keeps runs comparable and quick to check, and puts the weight on the parts of frontend work that are easy to demo and hard to get right: truncation, responsive panes, undo, shortcuts, focus and announcements.
It is inspired by Inbox Zero, the open-source email assistant built by FrontWork’s author. Every person, company and address in the data is invented and uses the reserved .example domain.
The prompt
Copy it whole. The synthetic data is included at the end, so a single paste is the entire setup.
Build a responsive inbox triage screen as a single-page React + TypeScript app.
CONTEXT
- The user is clearing a busy inbox. They want to see what needs attention, open a message, and archive it quickly with mouse, touch, or keyboard.
- Use ONLY the synthetic messages in the JSON at the end of this prompt. Do not fetch anything from the network. Do not add real people, brands, or email addresses.
- Any styling approach is fine. No backend.
LAYOUT
- Wide (960px and up): category navigation, message list, and reading pane side by side.
- Medium (640-959px): message list and reading pane side by side; categories become a compact control above the list.
- Narrow (below 640px; test at 375px and 320px): the list fills the screen. Opening a message shows it full-screen with a visible Back control.
- No horizontal scrolling at any width. Long senders and subjects truncate with an ellipsis and never overlap the time.
MESSAGE LIST
- Newest first. Each row shows sender, subject, snippet, time, and category.
- Unread rows are visually distinct in a way that does not rely on colour alone.
- Categories: "All", "To reply", "FYI", "Newsletter", "Receipt", "Cold outreach". Each shows how many messages remain in it.
- A search field filters by sender, subject, and snippet as you type. If nothing matches, show an empty state with a way to clear the search.
- Display times relative to the dataset's fixed "now" of 2026-11-30T17:00:00Z (UTC): same day as HH:MM, otherwise a short weekday or date.
TRIAGE ACTIONS
- Archive a message from the list or from the reading pane. The list and counts update immediately and the next message is selected.
- After any archive, offer Undo. Undo puts messages back in their original position.
- Toggle read/unread. Opening a message marks it read.
- Select several messages with checkboxes and archive them together.
- When a view has no messages left, show a clear "done" state instead of a blank pane. Provide a way to reset the demo data.
KEYBOARD
- j / k (and Down / Up arrows in the list) move between messages; Enter opens; e archives; u toggles read; x selects; z undoes; / focuses search; Esc closes the open message on narrow screens.
- Shortcuts must not fire while typing in the search field.
- Show the shortcuts somewhere on screen.
ACCESSIBILITY
- Every control is reachable and operable with the keyboard alone, with a visible focus indicator.
- Icon-only buttons have accessible names. Use landmarks, and a heading for the open message.
- Announce archive and undo results through a polite live region.
- Keep focus on a sensible element after archive, undo, and closing a message. Never drop it to the page body.
- Text meets WCAG 2.2 AA contrast. Respect prefers-reduced-motion.
DELIVERABLE
- The complete source and short instructions to run it locally.
SYNTHETIC DATA (JSON)
[
{
"id": "m01",
"from": {
"name": "Priya Raman",
"email": "priya@lattice-labs.example"
},
"subject": "Can you sign off on the Q1 roadmap by Thursday?",
"snippet": "I've folded in the notes from Monday. The only open question is whether onboarding v2 ships before or after the pricing change.",
"body": [
"Hi,",
"I've folded in the notes from Monday. The only open question is whether onboarding v2 ships before or after the pricing change.",
"If you can sign off by Thursday I can share it with the wider team on Friday morning."
],
"receivedAt": "2026-11-30T16:42:00Z",
"category": "To reply",
"unread": true
},
{
"id": "m02",
"from": {
"name": "Harbor Hosting",
"email": "billing@harborhosting.example"
},
"subject": "Receipt for invoice #20931",
"snippet": "Thanks for your payment of $48.00 for the Starter plan. Your next invoice is due on 30 December.",
"body": [
"Thanks for your payment of $48.00 for the Starter plan.",
"Your next invoice is due on 30 December. You can download a PDF copy from your billing settings."
],
"receivedAt": "2026-11-30T15:05:00Z",
"category": "Receipt",
"unread": true
},
{
"id": "m03",
"from": {
"name": "Tomasz Kowalczyk-Vandenberghe",
"email": "tomasz@foldline.example"
},
"subject": "Re: Re: Re: Contract renewal — updated terms attached, plus a question about the data processing addendum and invoicing cadence",
"snippet": "Legal came back with two small changes. Neither affects pricing, but the DPA wording around sub-processors changed.",
"body": [
"Legal came back with two small changes. Neither affects pricing, but the DPA wording around sub-processors changed.",
"Could you confirm you're happy with quarterly invoicing instead of monthly? If so I'll send the final version for signature."
],
"receivedAt": "2026-11-30T13:18:00Z",
"category": "To reply",
"unread": false
},
{
"id": "m04",
"from": {
"name": "The Interface Weekly",
"email": "hello@interfaceweekly.example"
},
"subject": "Issue 212: Container queries in production",
"snippet": "This week: three teams on what broke when they moved layout logic from the viewport to the component.",
"body": [
"This week: three teams on what broke when they moved layout logic from the viewport to the component.",
"Also: a short history of the focus ring, and why skip links still matter."
],
"receivedAt": "2026-11-30T11:00:00Z",
"category": "Newsletter",
"unread": true
},
{
"id": "m05",
"from": {
"name": "Jordan Ellis",
"email": "jordan@growthwise.example"
},
"subject": "Quick question about your outbound strategy",
"snippet": "I noticed your team is growing fast. We help companies like yours book 30+ meetings a month on autopilot.",
"body": [
"I noticed your team is growing fast. We help companies like yours book 30+ meetings a month on autopilot.",
"Worth a 15 minute call next week?"
],
"receivedAt": "2026-11-30T09:37:00Z",
"category": "Cold outreach",
"unread": true
},
{
"id": "m06",
"from": {
"name": "Mei Lin",
"email": "mei@lattice-labs.example"
},
"subject": "Design review moved to 3pm",
"snippet": "Same room, same agenda. Nothing to prepare — just a heads-up that the time changed.",
"body": [
"Same room, same agenda. Nothing to prepare — just a heads-up that the time changed."
],
"receivedAt": "2026-11-30T08:12:00Z",
"category": "FYI",
"unread": false
},
{
"id": "m07",
"from": {
"name": "Sam Okafor",
"email": "sam@okafor-studio.example"
},
"subject": "Draft illustrations for the help center",
"snippet": "Five drafts are in the shared folder. I'd love a yes/no on the overall style before I do the remaining twelve.",
"body": [
"Five drafts are in the shared folder. I'd love a yes/no on the overall style before I do the remaining twelve.",
"No rush on detailed feedback — a direction is enough for now."
],
"receivedAt": "2026-11-29T18:50:00Z",
"category": "To reply",
"unread": true
},
{
"id": "m08",
"from": {
"name": "Pinecart",
"email": "orders@pinecart.example"
},
"subject": "Your order has shipped",
"snippet": "Order #PC-55120 (2 items) is on its way and should arrive Wednesday.",
"body": [
"Order #PC-55120 (2 items) is on its way and should arrive Wednesday.",
"Track your parcel from your account page."
],
"receivedAt": "2026-11-29T14:21:00Z",
"category": "Receipt",
"unread": false
},
{
"id": "m09",
"from": {
"name": "Release Notes Digest",
"email": "digest@releasenotes.example"
},
"subject": "This week in frontend tooling",
"snippet": "A roundup of changelogs: bundlers, test runners, and two new accessibility linters.",
"body": [
"A roundup of changelogs: bundlers, test runners, and two new accessibility linters.",
"Unsubscribe or change your frequency at any time from your preferences."
],
"receivedAt": "2026-11-29T10:00:00Z",
"category": "Newsletter",
"unread": false
},
{
"id": "m10",
"from": {
"name": "Ava Thompson",
"email": "ava@northpoint-vc.example"
},
"subject": "Intro: you and Daniel should talk",
"snippet": "Daniel runs platform at a fintech and is evaluating the same tools you wrote about. Happy to make an intro if useful.",
"body": [
"Daniel runs platform at a fintech and is evaluating the same tools you wrote about.",
"Happy to make an intro if useful — just reply and I'll connect you both."
],
"receivedAt": "2026-11-28T16:33:00Z",
"category": "To reply",
"unread": false
},
{
"id": "m11",
"from": {
"name": "Security Notifications",
"email": "no-reply@accounts.example"
},
"subject": "New sign-in from a recognized device",
"snippet": "We noticed a sign-in from Firefox on macOS. If this was you, there's nothing to do.",
"body": [
"We noticed a sign-in from Firefox on macOS. If this was you, there's nothing to do.",
"If it wasn't, reset your password from your account settings."
],
"receivedAt": "2026-11-28T07:45:00Z",
"category": "FYI",
"unread": false
},
{
"id": "m12",
"from": {
"name": "Riley from Stackpilot",
"email": "riley@stackpilot.example"
},
"subject": "Following up (3rd time)",
"snippet": "Just bumping this to the top of your inbox in case you missed my last two notes.",
"body": [
"Just bumping this to the top of your inbox in case you missed my last two notes."
],
"receivedAt": "2026-11-27T12:10:00Z",
"category": "Cold outreach",
"unread": false
},
{
"id": "m13",
"from": {
"name": "Noor Haddad",
"email": "noor@lattice-labs.example"
},
"subject": "Team offsite photos",
"snippet": "Uploaded everything from last week. Feel free to grab any for the blog post.",
"body": [
"Uploaded everything from last week. Feel free to grab any for the blog post."
],
"receivedAt": "2026-11-26T19:02:00Z",
"category": "FYI",
"unread": false
},
{
"id": "m14",
"from": {
"name": "Oakline Coworking",
"email": "frontdesk@oakline.example"
},
"subject": "December membership receipt",
"snippet": "Payment received: $220.00 for a dedicated desk, 1–31 December.",
"body": [
"Payment received: $220.00 for a dedicated desk, 1–31 December.",
"See you soon."
],
"receivedAt": "2026-11-26T09:00:00Z",
"category": "Receipt",
"unread": false
}
]
Reference build
A working implementation of the brief, so each check has an example of “pass”. It is the target, not a competitor: it was written for this page, it is not the output of any tool under evaluation and it is never scored.
I've folded in the notes from Monday. The only open question is whether onboarding v2 ships before or after the pricing change.
If you can sign off by Thursday I can share it with the wider team on Friday morning.
Working reference for Brief 001, written for FrontWork with AI coding assistance to show the target is achievable and to make every check concrete. It is not one of the tools being compared and it is not a benchmark result. Click into it and try jkez.
20 checks
Each check is pass, partial or fail. Test layout at 1280, 768, 375 and 320px viewports. The leaderboard counts fully passed checks and shows partial passes separately.
Layout
L1
Three panes at 1280px
At a 1280px viewport, category navigation, message list and reading pane are all visible at once.
L2
Two panes at 768px
At 768px, list and reading pane sit side by side and the categories are still reachable from a compact control.
L3
List-then-detail at 375px
At 375px the list fills the screen. Opening a message shows it full-screen with a visible Back control that returns to the list.
L4
No horizontal scroll at 320px
At 320px, document.documentElement.scrollWidth equals the viewport width in both list and detail views.
L5
Long text truncates cleanly
The sender "Tomasz Kowalczyk-Vandenberghe" and the long "Re: Re: Re:" subject truncate with an ellipsis and never overlap the time.
Triage
T1
Archive updates everything
Archiving the open message removes it from the list, decrements its category count and the All count, and selects the next message.
T2
Undo restores position
Archive the third message, then Undo. It returns as the third message, with its read state intact.
T3
Search and its empty state
Typing "receipt" shows only matching messages. Typing "zzzz" shows an empty state whose clear action restores the list.
T4
Bulk archive
Select three messages with their checkboxes, archive them together, then one Undo brings all three back.
T5
Done state
Archiving every "Cold outreach" message shows a done state for that view, not a blank pane. Reset brings all 14 messages back.
T6
Read state
Opening an unread message marks it read and u toggles it back. Unread is shown by more than colour, such as weight or a marker with text.
Keyboard
K1
Shortcuts work
With focus in the list: j/k move, Enter opens, e archives, u toggles read, x selects, z undoes, / focuses search.
K2
Shortcuts stay out of the way
Typing "jekyll" into the search field types the word and archives nothing.
K3
Tab-only operation
Every action, including Undo and Reset, can be reached and used with Tab, Shift+Tab, Enter and Space, with a visible focus ring.
K4
Focus is never lost
After archive, undo and Back, document.activeElement is a control inside the inbox, not <body>.
Accessibility
A1
Named controls
Every icon-only button and every checkbox has an accessible name that says what it acts on.
A2
Announcements
Archive and undo results are announced through a polite live region; a screen reader reads them without moving focus.
A3
Structure
There are landmarks for navigation and main content, and the open message has a heading.
A4
Contrast and motion
Text and focus indicators meet WCAG 2.2 AA contrast. With prefers-reduced-motion set, nothing slides or animates.
Integrity
I1
Only the provided data
The app shows the 14 synthetic messages, makes no network requests after load, and invents no extra people or brands.
How to run it
Start a fresh session or project in the tool you are evaluating. No custom rules, memory or prior context.
Paste the prompt exactly as copied, as the first message. Data included.
Don’t steer. If the tool asks a question, answer briefly and write down what you said.
Run the result locally. If it doesn’t build, record the error and stop; that is a result too.
Go through every check at the stated widths and mark it pass, partial or fail, with a screenshot or note as evidence.
Record the tool, version, model and date alongside the transcript and output.