Skip to content

[FE-18] Complete Dashboard page with summary cards and Recharts charts in opsce folder #828

@yusuftomilola

Description

@yusuftomilola

Problem

frontend/app/(dashboard)/dashboard/page.tsx exists but is largely empty. recharts v3 is installed but not used. Managers have no visual overview of the asset fleet health, distribution, or activity.

Proposed Solution

Create frontend/opsce/features/dashboard/DashboardPage.tsx with summary cards and two Recharts visualizations. Fetch data from the reports API at GET /api/reports.

Acceptance Criteria

  • Summary cards: Total Assets, Active Assets, Assets in Maintenance, Total Asset Value — each with a trend indicator (up/down vs. last month)
  • AssetsByStatusChart: a Recharts PieChart showing asset count per status (Active, Maintenance, Retired, Inactive)
  • AssetsByDepartmentChart: a Recharts BarChart showing asset count per top 5 departments
  • Charts are responsive (use ResponsiveContainer)
  • All cards and charts show loading skeletons while data is fetching
  • A "Recent Activity" section shows the last 5 audit log entries

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions