Skip to content

feat(dashboard): Add Shipment Exception Rate Dashboard (issue #417)#464

Merged
Damidesign merged 2 commits into
Navin-xmr:mainfrom
MAN7A-afk:feature/417-shipment-exception-dashboard
Jun 28, 2026
Merged

feat(dashboard): Add Shipment Exception Rate Dashboard (issue #417)#464
Damidesign merged 2 commits into
Navin-xmr:mainfrom
MAN7A-afk:feature/417-shipment-exception-dashboard

Conversation

@MAN7A-afk

Copy link
Copy Markdown
Contributor

Overview
Closes #417
Adds a Shipment Exception Rate Dashboard to help operations monitor and resolve shipment exceptions (delays, damage, lost shipments, returns, customs holds) from within the app.

What I changed

Added new page:
frontend/src/pages/dashboard/ExceptionDashboard.tsx
frontend/src/pages/dashboard/ExceptionDashboard.test.tsx
Registered route:
added lazy route /dashboard/analytics/exceptions in frontend/src/App.tsx
No backend persistence yet — UI uses mocked/local state for demo.
Features

Exception types: DELAYED, DAMAGED, LOST, RETURNED, CUSTOMS_HOLD
KPI row: total exceptions this week, exception rate %, MoM change, avg resolution time (hours)
Trend chart: stacked daily exception counts by type for the last 30 days (Recharts)
Exception table: open exceptions, sortable by age/type/owner, includes shipment, route, and action
Resolve action: opens an inline update form; saving marks the item RESOLVED in UI
Filters: type, date range, and route — applied across KPIs, chart, and table
Styling follows existing dashboard UI patterns and uses existing components where practical
Acceptance criteria coverage

KPI cards show aggregated metrics (calculated from visible/open exceptions)
Stacked area chart renders by exception type
Exception table shows open exceptions with required columns and sorting
Resolve button opens inline form and updates status in the UI
Filters update KPI/chart/table together (client-side)
How to test locally

Checkout branch and run dev server:
Open the app and navigate to:
/dashboard/analytics/exceptions
Verify KPI cards, stacked trend chart, table sorting, filters, and inline resolve flow.

@Damidesign
Damidesign merged commit d9246d9 into Navin-xmr:main Jun 28, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant