feat: implement Products List, Add Product, and Category pages - #82
Open
giorgigordiashvili wants to merge 1 commit into
Open
giorgigordiashvili wants to merge 1 commit into
giorgigordiashvili wants to merge 1 commit into
Conversation
Add three pages under Pages > Products: - Products List: data table with 18 products, search, status filter, sort, pagination, row selection, and delete action - Add Product: form with General Information, Media, Pricing, and Inventory cards using react-hook-form + Zod validation - Categories: data table with 10 categories, add/edit dialogs, delete action, search, and sort Uses TanStack React Table, callback-based column factories for functional row actions, and local state for CRUD operations.
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/products/list): TanStack React Table with 18 seed products, product image + name column, SKU, category, price (formatted currency), stock, status badges (In Stock/Low Stock/Out of Stock), search by name, status filter dropdown, column sorting, pagination, row selection, and functional delete action/pages/products/add): Form with 4 card sections — General Information (title, SKU, description, category select, tags), Media (FileDropzone), Pricing (price, compare-at price), Inventory (stock, status). Uses react-hook-form + Zod validation/pages/products/category): Data table with 10 seed categories, add/edit via Dialog forms, delete action, search, sort, and pagination. Full local CRUD via useStateAll three pages follow existing project patterns (TanStack Table, Shadcn/ui, Zod + react-hook-form). 25 new files.
Test plan
/ar/pages/products/list