Metrics DashboardPro
Work screens / Metrics dashboard: a web analytics overview. A date range (7 days to 12 months) and Export, five KPI tabs (visitors, page views, signups, bounce rate, visit duration) over one chart with hover readouts, drag across to zoom and a Compare switch for the period before, then pages, sources and places with inline bars. Saved views in the sidebar set the range; an Online now card sits above the account.
oxyn add metrics-dashboard- Lumenfield
- Overview
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Read a site's traffic at a glance and dig into one metric over a chosen period.
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
Metrics Dashboard is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add metrics-dashboardUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data, the page as an inset card beside the sidebar.
- Lumenfield
- Overview
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same view with the page edge to edge.
- Lumenfield
- Overview
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons where the data lands.
- Lumenfield
- Overview
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
A first run: what will show here and how to start.
- Lumenfield
- Overview
No visits yet
Add the tracking snippet to your site; visits show here within a minute.
No pages yet
No referrers yet
No countries yet
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Compare
The previous period drawn dashed under the current one.
- Lumenfield
- Overview
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Zoomed
A dragged window of two weeks, with Reset zoom.
- Lumenfield
- Overview
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Exported
Export done: the button turns to Exported and the file name shows.
- Lumenfield
- Overview
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
MetricsDashboardScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`. |
state | String | "sample" | A state key. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Range, Export, the KPI tabs, Compare, then each table's tabs and rows |
| Escape | Close the range or filter menu |
Accessibility
- The KPI tabs are a tablist; the chart is an image named for its metric and dates.
- Compare is a switch; zoom resets with a labelled button.
- Every action reports in a polite live region.
Responsive behaviour
- Authored on the 1440 × 900 canvas: a 248 px sidebar, the page as an inset card and, where the screen has one, a 328 px right card in the gutter.
- Under 960 px the sidebar becomes a drawer from the header's menu button and the right card hides.
- Under 640 px header actions turn into icon buttons, grids drop to one column and labels ellipsise.
Edge cases (spec)
Authored on the 1440 × 900 stage and scaled to its column; /full renders at the real viewport. Under 960 px the sidebar is a drawer from the header's menu button (Escape or the scrim closes it). Under 960 px the five KPI tabs stay in one row with tighter padding; under 640 px they wrap into two columns (Visit duration spans both), so none is cut off or hidden behind a sideways scroll. Under 640 px header actions become icon buttons, the meta line hides and grids drop to one column. scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.
Notes for AI
- Import
MetricsDashboardScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
MetricsDashboardElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.