Skip to content

feat: implement address book, ROI dashboard, and analytics service - #920

Merged
johdanike merged 2 commits into
SwiftChainn:mainfrom
Faisat-Creator:feat/address-book-and-roi-dashboard
Oct 1, 2026
Merged

johdanike merged 2 commits into
SwiftChainn:mainfrom
Faisat-Creator:feat/address-book-and-roi-dashboard

Conversation

@Faisat-Creator

Copy link
Copy Markdown
Contributor
  • Add analyticsService for fleet ROI and metrics API integration (Service: analyticsService for Fleet ROI and Metrics API Integration #862)

    • Comprehensive fleet performance analytics
    • Vehicle-specific and fleet-wide ROI calculations
    • Historical trend analysis with projections
    • Cost and revenue breakdowns
    • Built-in caching with 5-minute TTL
    • Type-safe API responses
  • Add useAddressBook hook for saved address management (Hook: useAddressBook for Saved Address Management #854)

    • Full CRUD operations for customer addresses
    • Optimistic UI updates with rollback on error
    • Default address management
    • Search and filter functionality
    • Local caching with auto-refresh
    • Loading states per operation
  • Add AddressBookList component for address display (Frontend: Customer Address Book - List View Component #851)

    • Responsive grid layout (1/2/3 columns)
    • Real-time search filtering
    • Default address highlighting
    • Edit, delete, and set-default actions
    • Empty state and loading skeletons
    • Selectable mode for shipment forms
  • Add RoiDashboard with ROI visualizations (Frontend: ROI Dashboard with Return on Investment Visualizations #860)

    • Key performance metrics cards
    • Historical ROI trend line chart
    • Revenue vs costs bar chart
    • Top/bottom performing vehicles
    • Multiple date range filters (7d/30d/90d/1y)
    • Export to CSV functionality
    • Dark mode support with responsive layout

Closes #851
Closes #854
Closes #860
Closes #862

- Add analyticsService for fleet ROI and metrics API integration (SwiftChainn#862)
  * Comprehensive fleet performance analytics
  * Vehicle-specific and fleet-wide ROI calculations
  * Historical trend analysis with projections
  * Cost and revenue breakdowns
  * Built-in caching with 5-minute TTL
  * Type-safe API responses

- Add useAddressBook hook for saved address management (SwiftChainn#854)
  * Full CRUD operations for customer addresses
  * Optimistic UI updates with rollback on error
  * Default address management
  * Search and filter functionality
  * Local caching with auto-refresh
  * Loading states per operation

- Add AddressBookList component for address display (SwiftChainn#851)
  * Responsive grid layout (1/2/3 columns)
  * Real-time search filtering
  * Default address highlighting
  * Edit, delete, and set-default actions
  * Empty state and loading skeletons
  * Selectable mode for shipment forms

- Add RoiDashboard with ROI visualizations (SwiftChainn#860)
  * Key performance metrics cards
  * Historical ROI trend line chart
  * Revenue vs costs bar chart
  * Top/bottom performing vehicles
  * Multiple date range filters (7d/30d/90d/1y)
  * Export to CSV functionality
  * Dark mode support with responsive layout
@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@Faisat-Creator 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

@johdanike

johdanike commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

@Faisat-Creator Please resolve conflicts
Thanks for contributing to Swiftchainn

@johdanike
johdanike merged commit c01c511 into SwiftChainn:main Oct 1, 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

2 participants