ClientProject #3070
Updated by Nazmul Hossain Shovon 7 months ago
* Added a new user dashboard page at /user/dashboard with dummy data for development.
* Introduced three new components:
* UserAccountInfo: Displays user info and account balances.
* FilterSection: Provides filtering options for purchase history.
* PurchaseHistory: Shows a detailed table of user purchases with mock data.
* Created a dashboard component index for easier imports.
* Updated dependencies: added moment for date formatting.
* Updated package.json and pnpm-lock.yaml to include new dependency.
* Added reusable BalanceCard component for displaying currency balances
* Refactored user dashboard to use BalanceCard, simplifying balance display code
* Introduced InvoiceAddressDetails modal for viewing detailed invoice addresses
* Improved layout and styling in filter and purchase history sections
* Enhanced overall dashboard UI consistency and maintainability
* Removed moment.js dependency from PurchaseHistory.tsx.
* Added a custom formatDate function for date formatting.
* Updated all date formatting in the component to use the new formatDate function.
* Reduced padding and gaps in BalanceCard and UserAccountInfo for a more compact look.
* Adjusted text sizes and spacing for better consistency and responsiveness.
* Updated FilterSection input/button heights and spacing for improved alignment and usability.