feat: implement Customers List and Customer Details pages#84
Open
giorgigordiashvili wants to merge 1 commit into
Open
feat: implement Customers List and Customer Details pages#84giorgigordiashvili wants to merge 1 commit into
giorgigordiashvili wants to merge 1 commit into
Conversation
Add two pages under Pages > Customers: - Customers List: data table with 20 customers, avatar + name + email column, phone, status filter (Active/VIP/Inactive), total orders, total spent, join date, search, sort, pagination, delete action - Customer Details: dynamic [id] route with profile-style layout — header card with avatar and status badge, info card with contact details, stats cards (total orders, total spent, avg order value), and recent orders table with payment status badges Follows established patterns (TanStack Table, localized Links, ScrollArea for mobile, ARIA labels, logical CSS for RTL).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/pages/customers/list): TanStack React Table with 20 seed customers, avatar + name + email column (clickable link to details), phone, status badges (Active/VIP/Inactive), total orders, total spent (formatted currency), join date, search by name, status filter, column sorting, pagination, row selection, and delete action/pages/customers/[id]): Dynamic route with profile-style layout:20 seed customers with 5 avatar variants, mix of Active/VIP/Inactive statuses, realistic order data. RTL-safe with logical CSS properties, ARIA labels on search/filter inputs.
Test plan
/en/pages/customers/INVALID— shows "Customer Not Found"/pages/customers/CUS-1001/ar/pages/customers/listand/ar/pages/customers/CUS-1001