Stripe-Style Telemetry & Revenue Analytics Dashboard

profile: web-app archetype: analytics-dashboard scroll: inner-canvas tokens: DESIGN.md modal <= 4 fields skeleton >= 150ms touch >= 44px
Linter: PASS (0 errors, 0 warnings)

1. Interactive App Shell & Viewport Budget Simulator

Desktop Budget (1280px): Left Nav 220px + Right Panel 0px + Outer Padding 48px + Min Content 760px = 1028px
<PageHeader> (sticky z-10) [Primary CTA]
<PageSection> + <DataStateBoundary> scroll_owner: inner-canvas | CLS = 0 reservation 4 mandatory states: Loading (Skeleton) | Empty (CTA) | Error (In-place Retry) | Populated

2. Core Page Archetypes (3)

Archetype: MetricOverview

Executive and operational telemetry dashboard (`max-w: 1280px`).

Primary CTA: Top-right slot of `<PageHeader>` (`+ Create Alert` or `Export CSV`).

+--------------------------------------------------------------------+
| Telemetry Overview                        [Export CSV] [+ Alert]   |
+--------------------------------------------------------------------+
| [Env: Production] [Range: Last 7d] [Compare: Previous Period]      |
+----------------+----------------+----------------+-----------------+
| Net Volume     | Success Rate   | P95 Latency    | Failed Events   |
| $142,890 (+4%) | 99.94% (+0.1%) | 184ms (-12ms)  | 28 (-19%)       |
+----------------+----------------+----------------+-----------------+
| Primary Time-Series Chart (320px height, synchronized crosshair)   |
+--------------------------------------------------------------------+

Archetype: ExplorerDrilldown

High-density event log and facet query explorer (`max-w: 1280px`, `36px` row height).

Primary CTA: Top-right slot of `<PageHeader>` (`Save View`).

+--------------------------------------------------------------------+
| Event Explorer                                         [Save View] |
+--------------------------------------------------------------------+
| [Query: status>=400 AND path:/v1/charges]           142 events     |
+--------------------------------------------------------------------+
| Timestamp (UTC)      | Status | Endpoint      | Latency | Event ID |
| 2026-11-18 20:14:02  | 502    | /v1/charges   | 1,420ms | evt_9a8b |
+--------------------------------------------------------------------+

Archetype: ReportConfig

Single-column threshold alert and webhook configuration form (`max-w: 640px`).

Primary CTA: Sticky bottom-right form action bar (`Save Alert Rule`).

+--------------------------------------------------+
| Alerts & Webhooks / New Threshold Rule           |
+--------------------------------------------------+
| [Select Metric: P95 Latency                    ] |
| [Threshold: > 500 ms over 5 minute window      ] |
| [Destination: Slack #ops-alerts                ] |
+--------------------------------------------------+
|                        [Cancel] [Save Alert Rule]|
+--------------------------------------------------+

3. Route Reachability Graph (4 Routes)

Route Archetype Entry Trigger Primary Action Exit / Cancel Fallback
/overview MetricOverview Left Nav Overview link or root redirect Scrub time-series charts or drill into /explorer Switch environment or reset date range
/explorer ExplorerDrilldown Left Nav Event Explorer or chart data-point click Filter event logs and inspect row payload (?event=id) Return to /overview preserving ?from=&to=&env=
/alerts ExplorerDrilldown Left Nav Alerts & Webhooks Inspect active alert rules or navigate to /alerts/new Return to /overview
/alerts/new ReportConfig + Alert CTA in <PageHeader> Save threshold rule and test webhook delivery Discard draft and return to /alerts

4. Mandatory 4-State View Matrix

View / Component Loading (Skeleton) Empty (Copy + CTA) Error (In-Place Retry) Populated (Density & Overflow)
/overview (MetricOverview) 4 KPI card skeletons (104px height) + 320px chart shimmer frame (CLS = 0) Zero-traffic banner inside chart frame: *"No events recorded for Production in the last 7 days."* + [Expand to Last 30 Days] or [View SDK Setup Guide] CTA Inline chart error state with HTTP status + [Retry Query] button 4-column KPI strip + synchronized SVG/Canvas charts with tabular-nums axes
/explorer (ExplorerDrilldown) 12 shimmer table rows (36px height) matching timestamp, status, endpoint, latency, and ID columns Centered 420px block: *"0 events matched your filter query."* + [Clear Query Filters] CTA Persistent query error banner above table (highlighting syntax error or timeout) + [Run Query Again] 36px monospace rows, 50 rows/page cursor pagination, right-aligned latency (ms)
/alerts (ExplorerDrilldown) 6 row skeletons (48px height) Centered 420px block: *"No alert rules configured."* + [+ Create First Alert Rule] CTA Inline error card + [Retry Load] button Status pill (Firing, OK, Muted), threshold summary, last triggered timestamp
/alerts/new (ReportConfig) 4 form block skeletons (72px height) within 640px width Webhook destination dropdown shows [+ Connect Slack or Webhook] option Persistent top validation banner + field-level message Grouped fieldsets with live threshold preview sparkline

5. Monotonic Z-Index Elevation Contract

base 0
sticky 10
navigation 20
drawer 30
modal 40
popover 50
toast 60
tooltip 70