Skip to content

feat(advanced): create enterprise fleet manager dashboard - #55

Merged
johdanike merged 5 commits into
SwiftChainn:mainfrom
nonso7:feat/fleet-dashboard-v2
May 3, 2026
Merged

feat(advanced): create enterprise fleet manager dashboard#55
johdanike merged 5 commits into
SwiftChainn:mainfrom
nonso7:feat/fleet-dashboard-v2

Conversation

@nonso7

@nonso7 nonso7 commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Implements the Fleet Operator dashboard at /fleet using a strict Component -> Hook -> Service architecture.

  • types/fleet.ts: shared driver/fleet types
  • services/fleetService.ts: axios client for /fleet/drivers endpoints
  • store/authStore.ts: adds Fleet Operator role for gating
  • hooks/useFleet.ts: data hook with abort + refetch
  • hooks/useRequireRole.ts: page-level role gate
  • components/fleet/: FleetMap (react-leaflet w/ grid clustering), FleetStats (recharts bar chart), DriverList
  • app/(dashboard)/fleet/page.tsx: composed page

CI workflow fixes:

  • Migrated to ESLint flat config (Next 16 removed next lint)
  • Bumped Node matrix to 20.x/22.x (Next 16 requires Node >= 20.9.0)
  • Regenerated package-lock.json for new deps (recharts, react-leaflet, leaflet, ts-node)

Closes #47

@drips-wave

drips-wave Bot commented Apr 25, 2026

Copy link
Copy Markdown

@nonso7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Implements the Fleet Operator dashboard at /fleet using a strict
Component -> Hook -> Service architecture.

- types/fleet.ts: shared driver/fleet types
- services/fleetService.ts: axios client for /fleet/drivers endpoints
- store/authStore.ts: adds Fleet Operator role for gating
- hooks/useFleet.ts: data hook with abort + refetch
- hooks/useRequireRole.ts: page-level role gate
- components/fleet/: FleetMap (react-leaflet w/ grid clustering),
  FleetStats (recharts bar chart), DriverList
- app/(dashboard)/fleet/page.tsx: composed page

CI workflow fixes:
- Migrated to ESLint flat config (Next 16 removed `next lint`)
- Bumped Node matrix to 20.x/22.x (Next 16 requires Node >= 20.9.0)
- Regenerated package-lock.json for new deps
  (recharts, react-leaflet, leaflet, ts-node)
@nonso7
nonso7 force-pushed the feat/fleet-dashboard-v2 branch from a11e866 to d295a18 Compare April 25, 2026 03:05
@johdanike

Copy link
Copy Markdown
Contributor

resolve conflicts and revert @nonso7

@johdanike

Copy link
Copy Markdown
Contributor

Please resolve conflicts @nonso7

@nonso7

nonso7 commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

I have resolved the conflict. Please confirm

@nonso7

nonso7 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

I have resolved the merge conflict

@johdanike

Copy link
Copy Markdown
Contributor

I have resolved the merge conflict

Not entirely, please review

@nonso7

nonso7 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

you can check it now

@nonso7

nonso7 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

Please check it out now
I think all conflicts has been cleared

@johdanike
johdanike merged commit 6f32eb5 into SwiftChainn:main May 3, 2026
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.

Frontend: Enterprise Fleet Manager Dashboard

2 participants