UIPrompt Library
Account
App DashboardsFreeOperationssingle-screenStructure checked

RelayOps Dispatch Exception Review Dashboard

Build an operations queue with searchable exceptions, per-record drafts, recoverable local review and a real JSON handoff.

Prompt output preview

RelayOps Dispatch Exception Review Dashboard

RelayOps Dispatch Exception Review Dashboard prototype poster
AI-reviewed exampleExample overview
Open interactive preview

Try the working example

  • Search and combine status/priority filters
  • Select records and preserve separate drafts
  • Validate, save, cancel, update or reopen local review

Example output from this prompt. Your result will vary with your AI tool and edits.

Prompt
Build RelayOps, a responsive dispatch exception review dashboard. Return a complete runnable single-file HTML implementation with inline CSS and vanilla JavaScript, no build step, remote assets, libraries, backend, or external requests. This is an interactive local fictional demo for an operations manager deciding what to do before dispatch. Do not return another prompt or a static mockup.

BUYER JOB AND HONEST BOUNDARIES
A manager needs to find unresolved delivery exceptions, inspect their evidence, assign a clear next action, and export a handoff for colleagues. All records below are fictional. Prominently say “Local demo · changes reset on reload”. No real deliveries, messages, dispatch, integrations, maps, live clock, fabricated performance metrics, customer endorsements or claims that an exported handoff was sent. Any completed action means reviewed locally, not operationally resolved. Name the export “local review handoff”.

INPUTS AND CUSTOMIZATION
Centralize a SAMPLE_RECORDS constant and branding configuration. Allow adapters to replace company name, depot, cutoff label, accent, records, reason categories and action choices. Fixed display context is “North depot · sample shift”, “Dispatch cutoff 16:30”; never imply the current time. Use exactly these four sample records, all initially unreviewed:
- EX-1042 / Willow Books / Route N-12 / Address mismatch / High / owner Mara Chen / “Street number differs between label and order.” / “Confirm address with the account team before release.”
- EX-1043 / Harbor Kitchen / Route N-07 / Missing scan / Medium / owner Ellis Park / “Package received; departure scan absent.” / “Ask depot team to locate the package and record a scan.”
- EX-1044 / Moss Studio / Route N-12 / Capacity risk / High / owner Noor Ali / “Two cartons exceed the assigned van allocation.” / “Review allocation before moving cartons to another route.”
- EX-1045 / Pine Supply / Route N-03 / Missing scan / Low / owner Mara Chen / “Inbound label was reprinted; scan not linked.” / “Check the reprinted label against the original record.”
No personal/customer contact details beyond this fictional data.

VISUAL SYSTEM AND STRUCTURE
Create a precise operations desk with warm off-white canvas, dark ink, subdued sage accent, fine borders and restrained amber risk chips. Use system sans typography; mono only for IDs and route labels. Clear hierarchy and generous readable details matter more than decorative chrome. Desktop: compact brand/navigation header, title “Review the dispatch exceptions”, short local-only explanation, truthful counts for total/unreviewed/reviewed, then wide queue beside a detail panel. Avoid inert navigation and decorative charts. The selected row uses both border/shape and accessible selection indication. Heading, metrics, filters and first records should be visible at 1440×900. Each queue row/card must expose ID, customer, route, reason, priority, owner and reviewed status. The detail panel has evidence, recommended next step, current saved review and review form. Footer shows export and reset plus short boundaries. No hidden horizontal scroll.

QUEUE BEHAVIOR
Provide labelled search input (ID/customer/route/owner/reason, case insensitive, trimmed), status filter All/Unreviewed/Reviewed and priority All/High/Medium/Low. Show result count. Search and both filters compose. Empty state says “No matching exceptions”, offers Clear filters and retains total counters. Selecting a record must be a real keyboard-operable control; mobile can scroll the detail heading into view on explicit selection only. If filters remove the selected record, select the first visible record; no results hides the form in favor of an instructional empty detail. Search/filter changes must not silently carry a draft into another record. Store unsaved drafts per record in memory so selection/filtering preserves typed text for that same record only. Derive all counts from records.

LOCAL REVIEW FLOW
The detail form has a labelled action select with blank initial option and choices “Request clarification”, “Check depot evidence”, “Review route allocation”; plus required Review note textarea, 10–400 trimmed characters, with visible length guidance. A button “Save local review” validates both, displays inline errors connected with aria-describedby/aria-invalid, summarizes errors and focuses the first invalid control. Text is plain data, never HTML. Valid save enters a visible 450ms pending state, disables duplicate submission and form editing, then stores action/note/record ID in memory and marks only that record reviewed. Do not invent completion timestamps. Show saved action and exact note; clear form errors. Editing a reviewed record permits explicit “Update local review”. Counters and filtered queue update consistently after save, including disappearance under Unreviewed. Provide “Reopen review” for reviewed records, clearing saved result and restoring its note/action as an editable draft. Export uses saved reviews only; unsaved edits must not replace a saved review until successful update.

STATE AND RACE SAFETY
Provide an unobtrusive native details section “Demo failure controls” with “Fail next save” and “Fail next download” checkboxes. Save failure is one-shot, preserves draft and existing saved result, shows useful retry copy and returns focus to submit. Invalid submission must not consume failure flags. Pending save has a Cancel button; cancellation does not mutate records. Selection/filter/reset while pending must cancel work and prevent a late completion affecting another record. Form controls can be disabled pending; search/selection remain usable. Reset restores the initial four records, draft/filter/search/selection/output/error/failure state and counters; pending timers are invalidated. Refresh also resets without persistence. No loading skeleton that never resolves.

EXPORT
A real Download handoff button creates a UTF-8 JSON Blob and downloads relayops-review-handoff.json. Export is disabled with zero reviewed records and a visible explanation. Shape: { schemaVersion: 1, demo: true, depot: "North depot", cutoff: "16:30", reviews: [{ id, customer, route, reason, priority, owner, action, note }] }. Use original sample order and saved strings verbatim. Show a readonly textarea JSON preview when at least one saved review exists, updated only from saved reviews. Add Select handoff text for manual copying. On successful anchor invocation say “Download requested. If no file appeared, select the handoff text.” Never claim disk-write confirmation. Catch Blob, URL and anchor failures, retain readable preview, show retry and manual-copy guidance, clean up temporary links/object URLs. Fake failure is one-shot. Do not use clipboard permission or network API. Reset/reopen must remove stale output when nothing is reviewed.

ACCESSIBILITY AND RESPONSIVENESS
Semantic header/main/sections, one h1, logical heading order, explicit input labels, visible :focus-visible, real buttons, appropriate aria-pressed on selected record controls, polite status and assertive form error summary. Keep text contrast >=4.5:1, large controls >=44px high, errors in text rather than color alone. Avoid an ARIA grid or modal. At 768px switch queue and detail to stacked sections; at 390 and 320px use readable cards, wrapped controls, and full-width actions. Do not hide workflow-essential data on mobile. No sticky overlays that obscure focused content. Honor prefers-reduced-motion; minimal state transitions, no continuous animation. At 200% zoom retain all controls without page-level horizontal overflow. Escape nothing by unsafe innerHTML interpolation: use textContent, DOM construction or controlled static markup.

ACCEPTANCE CHECKLIST
- All four records, truthful 4/4/0 counters and a meaningful initial selected record render without console errors or external requests.
- Search/filter composition, no-results recovery, keyboard selection, per-record drafts and responsive cards work at 1440,1024,768,390,320.
- Blank action/short or whitespace note rejects; valid note saves only the selected ID and changes derived counts.
- Saved review and export remain unchanged by unsaved edits or a failed update; retry saves new values explicitly.
- Cancel, reset and selection/filter changes during pending save prevent stale updates; duplicate submit cannot create multiple reviews.
- Reopen restores editable draft and removes that saved record from exact JSON preview/export.
- Actual downloaded JSON equals preview bytes, includes only saved reviews in original order and preserves Unicode/hostile-looking text as inert data.
- Forced save/download and real browser factory failures preserve recoverable state; manual selection selects the complete JSON.
- Reset/refresh restore the fictional default and do not persist or send anything.
- Keyboard focus, empty/loading/error/reviewed states, contrast, 200% zoom and reduced motion are verified in browser; capture genuine desktop/mobile screenshots of this implementation and report actual tool/model/date without invented human testing.
Share a result example

Paste a public image URL from a result this prompt helped create. Submissions stay private until reviewed.

Related prompts