Introducing a new way to review your PRs.

Read the announcement

arhamkhnz / next-shadcn-admin-dashboard

Modern Admin Dashboard Template built with Shadcn UI and Next.js 16

View on GitHub

22 documents · Updated Nov 23, 2026

docs / dashboard-specialized-monitoring

Specialized monitoring dashboards

Specialized monitoring dashboards support focused work that does not fit the general dashboard views. The patient-monitoring view presents a central view of patient status, live-looking vital traces, alarms, trends, and recent events. The dashboard route also provides a standard not-found response for unknown sections and keeps older versioned dashboard views available.

Dashboard scope

The specialized views sit within the wider dashboard experience. They serve distinct work areas rather than one shared summary: patient monitoring focuses on bedside signals, while sibling pages cover analytics and commerce, operations and work management, people and customer management, and content and communication views.

Patient monitoring dashboard

The patient-monitoring dashboard is a central view for a group of cardiac-care patients. It combines a patient list with a selected-patient workspace so an operator can scan many beds and then inspect one patient in more detail.

Patient overview

The patient overview links bed-level scanning to focused review. Each patient card shows identity, alarm state, a compact ECG trace, heart rate, and oxygen saturation. Selecting a card updates the detail area for that patient. The selected workspace adds patient context, an alarm notice with acknowledgement, five vital traces, six numeric vitals, and review tabs.

The workspace separates immediate observation from later review:

  • Real time describes the active live-monitoring state.
  • Event review lists recent patient events.
  • Trends shows heart rate, oxygen saturation, and mean arterial pressure over time.
  • Full disclosure represents access to continuous waveform history.

References: src/…/patient-monitoring.tsx• L22-141 src/…/patient-card.tsx• L16-70 src/…/patient-detail.tsx• L72-123

Alarm acknowledgement

Alarm state connects the patient list with the selected-patient workspace. An alarm patient remains visibly active until the operator acknowledges that patient. The acknowledgement changes the alarm presentation and disables the acknowledgement action for that patient during the current view.

The page also exposes monitoring context around the workspace. It shows the patient count, current date and time, alarm-audio status, network status, and a connected device indicator. Footer actions name common monitoring tasks such as alarm review, wave review, trends, printing, and silence control.

References: src/…/patient-monitoring.tsx• L22-31 src/…/patient-monitoring.tsx• L61-91 src/…/page.tsx• L22-78

Realtime vital presentation

The monitoring display uses a shared time signal to keep compact bedside traces, detailed traces, and trend strips moving together. The display presents generated signal series from each patient’s baseline values and signal profile. It is a visual monitoring experience rather than a feed from an external device.

Realtime tick

The realtime tick is the clock for the monitoring display. Waveform views receive frequent updates, while trend views advance at a slower one-second cadence. The monitoring speed scales both clocks, and each clock runs only while a view subscribes to it. This keeps the compact cards and selected-patient traces responsive without treating every display element as a separate clock.

The flow from the clock to the visible chart is:

flowchart LR
  A[Realtime ticker] --> B[Waveform or trend tick]
  B --> C[Patient vital series]
  C --> D[Compact patient card]
  C --> E[Detailed vital traces]
  C --> F[Trend strips]
  D --> G[Operator scan]
  E --> H[Selected patient review]
  F --> H

References: src/…/realtime-utils.ts• L1-31 src/…/use-realtime-tick.ts• L5-22 src/…/use-patient-vital-series.ts• L169-200

Vital series

The vital-series layer turns a patient record into a moving window of values for the chart layer. It supports ECG leads II and V5, pleth, respiration, arterial pressure, and trend series for heart rate, mean arterial pressure, and oxygen saturation. Patient-specific rate, pressure, oxygen, rhythm, amplitude, and phase values shape the presentation so each bed has a distinct trace.

Waveforms use a short rolling window for each redraw. Trends use a longer fixed window with bounded ranges and labeled reference ticks. The chart layer then presents these series with consistent colors and optional grid lines so an operator can compare signal types without reading chart controls.

References: src/…/use-patient-vital-series.ts• L19-32 src/…/use-patient-vital-series.ts• L96-167 src/…/vital-waveform.tsx• L8-71 src/…/patient-trends.tsx• L10-143

Dashboard route variants

The dashboard route family supports current specialized views, a standard not-found response for unknown sections, and older named variants. As part of the wider route composition, these routes let the product present different dashboard experiences while keeping the meaning of each entry point clear.

Fallback route

The catch-all route handles an unrecognized dashboard section by invoking the framework’s not-found behavior. This sends the user to the application’s standard not-found experience instead of rendering a blank or misleading dashboard workspace.

References: src/…/page.tsx• L1-5

Legacy dashboard variants

The legacy variants preserve earlier dashboard experiences under explicit versioned names. Each variant still presents a complete high-level work surface:

VariantPrimary work surface
analytics-v1Analytics overview, forecasts, coverage triage, manager actions, and risk review
crm-v1CRM overview, insights, operational cards, and recent leads
default-v1Summary cards, an interactive area view, and proposal sections
finance-v1Financial overview with account, cash-flow, spending, income, and net-worth views

These routes are separate from the patient-monitoring flow. A change to a current dashboard should not be assumed to change a legacy variant unless both routes share the same product contract.

References: src/…/page.tsx• L1-21 src/…/page.tsx• L1-15 src/…/page.tsx• L1-13 src/…/page.tsx• L1-54

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the patient record fields aligned with the vital and trend series that read them. A renamed baseline or signal profile field can make the charts disagree with the numeric values.
  • Keep waveform kinds, ECG leads, colors, and chart domains aligned across the series layer and the compact and detailed presentations.
  • Keep the waveform and trend tick ownership consistent. A change to update cadence affects both visual motion and the amount of history shown in each window.
  • Keep route names and legacy version labels aligned with the dashboard navigation contract so old links do not fall into the not-found response.
  • Keep alarm acknowledgement behavior aligned between patient cards and the selected-patient alarm panel.
  • Keep the monitoring page status bar and footer actions aligned with the status and device signals shown around the patient workspace.

Important failure modes

TriggerConsequenceGuard
A dashboard path does not match a named routeThe user sees the standard not-found experience instead of a dashboardAdd the route deliberately or update the route contract before linking to it
A patient is marked as alarm state but acknowledgement state is not shared by the card and detail viewThe list and selected-patient panel show different alarm statusUse the same patient identifier for both views
A vital kind has no matching series domain or presentation colorThe trace can display with the wrong scale or visual meaningUpdate the series definition and waveform presentation together
A realtime subscriber is left active after its view closesThe display can keep work running when no chart needs updatesPreserve subscription cleanup when changing monitoring views
A legacy version route is removed or renamed without link reviewExisting versioned links stop at the not-found responseTreat version labels as stable route contracts
The page status context does not match the monitoring workspaceOperators can read stale or misleading patient count, time, network, audio, or device stateKeep page-level status indicators tied to the same monitoring session contract as the workspace

Key files

FileWhy to read it
src/…/page.tsxShows the monitoring page boundary, status context, metadata, and operator actions
src/…/patient-monitoring.tsxExplains patient selection, alarm acknowledgement, and review tabs
src/…/use-realtime-tick.tsDefines the shared update clocks for waveforms and trends
src/…/use-patient-vital-series.tsConnects patient values and time ticks to waveform and trend windows
src/…/patient-card.tsxShows the compact bedside view and its link to the selected patient
src/…/patient-detail.tsxShows the selected-patient trace and numeric-vital presentation
src/…/patient-trends.tsxShows the trend presentation and recent-event context
src/…/vital-waveform.tsxDefines the shared visual form for compact and detailed waveform views
src/…/page.tsxDefines the unknown-dashboard not-found behavior
src/…/page.tsxShows the legacy analytics dashboard composition
src/…/page.tsxShows the legacy CRM dashboard composition
src/…/page.tsxShows the legacy default dashboard composition
src/…/page.tsxShows the legacy finance dashboard composition