The dashboard is the first screen you see after logging in to the DRTC Fluvial Admin panel. It consolidates the most important operational data into a single view: active registrations, pending appointments, incoming traffic, and a mini agenda for the current day. From here you can navigate to any module using the sidebar on the left.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Bran258/drtc-fluvial-admin/llms.txt
Use this file to discover all available pages before exploring further.
KPI statistics cards
The stats grid at the top of the dashboard renders a row ofStatsCard components. Each card displays a metric label (title) and its current value (value). The cards are populated by calling GET /api/dashboard via the getDashboardStats service function:
useDashboardData hook, which maps each item in the returned array to a StatsCard. Cards are arranged in a three-column grid — if the API returns six metrics, you will see two rows of three cards.
The
/api/dashboard endpoint returns the full stats array. There is no separate /api/dashboard/stats route in the current codebase — all statistics are served from the single /dashboard path.Dashboard layout sections
The dashboard is composed of four distinct areas:Stats grid
The top section renders the KPI cards returned by
GET /api/dashboard. Each card shows a plain-language metric title and a bold numeric or text value. The grid uses three columns on desktop and stacks to a single column on mobile.Live sidebar
The
LiveSidebar component sits on the left side of the main content area (4 of 12 columns). It shows real-time activity such as which vessels or operators are currently being processed.Traffic insight
The
TrafficInsight component appears below the live sidebar. It visualises incoming request volume so operators can anticipate busy periods and allocate attention windows accordingly.Mini agenda
The
MiniAgenda component occupies the right 8 columns of the main content area. It displays a condensed view of today’s scheduled appointments, giving operators an at-a-glance timeline without leaving the dashboard.Operational alert
When three or more appointments exceed the 15-minute wait threshold, the appointments agenda panel surfaces aDelayAlert banner. This alert is also visible from the dashboard’s mini agenda section so you can respond without switching views.
Interactive guided tour
The first time you open the dashboard, an interactive overlay tour launches automatically. The tour is defined inshared/tours/dashboard.tour.ts and highlights two elements:
| Tour step | Target element | Description |
|---|---|---|
| 1 | #menu | Points to the left sidebar and explains how to navigate between modules |
| 2 | #cards | Points to the KPI stats grid and explains the primary indicators |
useTour hook. Once completed, a flag is written to localStorage so the tour does not replay on subsequent visits.