Skip to content

Feat/assets dashboard#428

Merged
yusuftomilola merged 2 commits intoDistinctCodes:mainfrom
Kaylahray:feat/assets-dashboard
Jan 29, 2026
Merged

Feat/assets dashboard#428
yusuftomilola merged 2 commits intoDistinctCodes:mainfrom
Kaylahray:feat/assets-dashboard

Conversation

@Kaylahray
Copy link
Contributor

closes #392

asset.mp4
image image image image

Features

  • Stats Cards: Total Assets, Assets by Status, Total Value, Attention Needed with trend indicators
  • Charts: Pie chart (Assets by Category), Bar chart (Assets by Department), Line chart (Asset Registrations Over Time)
  • Activity Feed: Last 10 activities (created, assigned, transferred, retired) with timestamps and asset links
  • Quick Actions: Register Asset, Generate Report, Bulk Import, Request Asset with navigation

Technical Implementation

  • API Endpoints: /api/dashboard/stats, /api/dashboard/activities, /api/dashboard/charts with date range support
  • Real-time Updates: Configurable polling (10s/30s/60s) with Live/Paused toggle
  • Date Range Filter: 7d/30d/90d/6m/12m selector that filters all widgets
  • Customizable Layout: Drag-and-drop widget rearranging with persisted order
  • React Query: Data fetching with caching and loading states
  • Responsive Design: Works on all screen sizes with equal-height cards

Components

  • StatsSection, StatusBreakdown, DepartmentBreakdown, RegistrationChart, CategoryChart, ActivityFeed, QuickActions

Acceptance Criteria

✅ Dashboard loads within 2 seconds
✅ All stats display accurate data from API
✅ Charts are responsive and interactive
✅ Activity feed updates automatically
✅ Quick actions navigate to correct pages
✅ Dashboard works on all screen sizes
✅ Loading states are smooth and informative

@vercel
Copy link

vercel bot commented Jan 29, 2026

@Kaylahray is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@yusuftomilola yusuftomilola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution.

@yusuftomilola yusuftomilola merged commit a59a3b8 into DistinctCodes:main Jan 29, 2026
0 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.

Build Asset Dashboard with Stats and Quick Actions

2 participants