Skip to content
Thrum

Support dashboard

A support page from plain data: open tickets, first response, resolution time and satisfaction, tickets opened and solved per day, first response against its target, the backlog by priority, load by weekday and hour, an agent table and the tickets waiting longest. Feed it from your help desk; for a business overview pick the overview dashboard instead.

Install

npx shadcn@latest add @thrum-pro/support-dashboard

This is a Pro component. The command works once your project has a licence key: set up Pro or see pricing.

Data shape

Type
type SupportFigure = { value: number; delta?: number; deltaLabel?: string; trend?: readonly (number | null)[] };
type TicketPriority = "urgent" | "high" | "normal" | "low";

type SupportDashboardData = {
  summary?: { open?: SupportFigure; firstResponse?: SupportFigure; resolution?: SupportFigure; csat?: SupportFigure }; // minutes, hours, fraction
  volume?: { labels: readonly string[]; opened: readonly (number | null)[]; solved: readonly (number | null)[] };
  firstResponse?: { value: number | null; target: number };                                       // minutes
  backlog?: Partial<Record<TicketPriority, number | null>>;
  load?: { rows: readonly string[]; columns: readonly string[]; values: readonly (readonly (number | null)[])[] };
  agents?: readonly { id: string; name: string; solved: number | null; firstResponse: number | null; csat: number | null; trend: readonly (number | null)[] }[];
  waiting?: readonly { id: string; subject: string; requester?: string; priority: TicketPriority; age: string }[];
};
Sample
{
  summary: { open: { value: 184, delta: -0.06, deltaLabel: "vs last week" }, csat: { value: 0.93 } },
  firstResponse: { value: 42, target: 60 },
  backlog: { urgent: 6, high: 31, normal: 102, low: 45 },
  waiting: [{ id: "T-4821", subject: "Refund not received", requester: "Northwind", priority: "high", age: "3 d 4 h" }],
}

Props

PropTypeDefaultDescription
titlestringRequiredThe heading of the dashboard. It also names the dashboard's region for screen readers.
dataSupportDashboardDataRequiredThe data for the chosen range, one key per section. A section whose key is left out is not drawn, and the grid closes up.
loadingbooleanDefault falseDraw every section as a skeleton and mark the dashboard busy while the data loads.
periodsreadonly { value: string; label: string }[]Default 7 days, 30 days, 90 daysTime ranges offered in the header. Pass fewer than two to hide the control.
periodstring–The selected range, when the parent holds it. Use it with onPeriodChange.
defaultPeriodstring–The range selected at first, when the control holds it itself. Defaults to the first range.
onPeriodChange(period: string) => void–Called with the new range. Answer it by passing the data for that range; the dashboard does not fetch or filter anything itself.
actionsReactNode–Buttons at the end of the header row, after the time range.
titlesPartial<Record<keyof SupportDashboardData, string>>–Section headings to use in place of the English defaults: Key figures, Tickets opened and solved, First response, Backlog by priority, Tickets by weekday and hour, Agents, Waiting longest.
headingLevel1 | 2 | 3 | 4 | 5Default 2The level of the dashboard's heading. Section headings are one level below it.
pausedbooleanDefault falseFreeze the loading shimmer where it is.
localestringDefault "en-US"Locale for every number on the dashboard.
soundbooleanDefault trueLet the parts make their sounds, if the visitor has sound on. Set it to false to silence the whole dashboard.
classNamestring–Sets the size. The layout follows the width of the dashboard itself, so it also works in a narrow column.

Motion and sound

Motion

  • First draw, every time the dashboard mounts: the headline numbers appear at once, the daily bars grow one after another, the gauge sweeps to its reading, the backlog segments grow, the heatmap fills column by column and the waiting tickets fade in one by one. All of it ends within about one second.
  • A new range: every number rolls and every chart moves to its new values in about 400 ms with no overshoot.
  • The layout itself never animates, and nothing loops.
  • Reduced motion: everything appears complete and changes instantly.

Sound

  • The dashboard has no sounds of its own; its parts play theirs.
  • A soft click when the range changes or the agent table is sorted, a tick as a chart cursor moves, one short tone when the headline numbers land on new values, and a two-note signal when first response climbs over its target.
  • Nothing plays when the dashboard first appears.

Sound is off until the visitor turns it on. Pass sound={false} to keep this component silent. How sound works

Accessibility

  • The dashboard is a region named by its title. Each panel is a section with its own heading, one level below the title; the headline numbers have a heading for screen readers only.
  • Every chart keeps its own hidden data table and its own spoken cursor. The gauge is a meter that says its zone in words (Over target, Far over target), and every priority is a word in a badge, never colour alone.
  • The agent table is a real table with sortable headings that say their sort order; its caption is kept for screen readers because the panel heading shows the same words.
  • The layout is one column when the dashboard is narrow, two from 42rem and three from 64rem, measured on the dashboard itself. The reading order is the same in all three.
  • Each panel is a panel surface: under frosted glass it turns translucent, and nothing inside it paints a solid fill over the glass.
  • The KPI names, column headings, priority words and the words “Time range” and “Target” are English and fixed in this version; change them in the file.
KeysAction
TabMove through the range, the actions, the daily chart, the heatmap, the agent table's sort buttons and the table itself, in reading order.
← →On the range: pick the next one. On a chart: move the cursor one step. On the agent table: scroll it sideways when it does not fit.
↑ ↓On the heatmap: move from row to row.
Enter / SpaceOn an agent column heading: sort by it; press again to reverse, a third time to clear.
Home / EndOn the range or a chart: jump to the first or last.
EscOn a chart: hide the cursor.

Source

SourcePro

The source comes with Pro

TypeScript source · Copy-paste ready · MIT-compatible for client projects · Includes all dependencies

Files and dependencies

Adds
components/support-dashboard.tsx
Packages
None
Brings along
Dashboard foundationsKPI gridCombo chartGaugeCategory barHeatmapMetric tableListBadgeSegmented controlSkeletonMotion tokens

Changelog

  1. 1.0.0 · 2026-12-03First release.

Loading index…

Keyboard shortcuts

/Ctrl KSearch components, docs and actions
?Show this list
AAppearance studio
SSound on or off
MFull or reduced motion
TTheme: auto, light, dark
GSurface: solid or frosted
BBackdrop photograph (under glass)
CCorner radius: square to round
RReplay the demo, on a component page
DDraw new data, on a component page
←→HomeEndMove the cursor in a focused chart
EscClose a dialog, or leave a chart cursor