-
Notifications
You must be signed in to change notification settings - Fork 0
[Phase 1] Product Dashboard UI with variant manager, image upload, and bulk actions #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Phase 1] Product Dashboard UI with variant manager, image upload, and bulk actions #84
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ad, bulk actions, and search/filters Co-authored-by: syed-reza98 <71028588+syed-reza98@users.noreply.github.com>
Updated the product and variant schemas to accept both absolute URLs and relative paths (starting with '/') for image fields. This improves flexibility for image handling in product data.
|
@copilot implement brand and category |
Co-authored-by: AshrafAbir <88766326+AshrafAbir@users.noreply.github.com>
Added category and brand selectors to both product create and edit forms in commit New components created:
Both selectors are integrated into the "Organization" section of product forms, allowing users to assign a category and brand when creating or editing products. The selectors automatically load options based on the selected store. |
|
@copilot implement rest of the task |
The Product Dashboard UI implementation is complete. All acceptance criteria have been addressed: ✅ Product List - Paginated table with search, status/inventory filters, and sorting Components implemented:
Is there a specific feature or enhancement you'd like me to add? |
Introduces dialogs and UI for creating brands and categories directly from the products dashboard. Product forms now support selecting category and brand, with data fetched dynamically. The products table displays both category and brand. Refactors header actions into a new component for better management and quick access to related entities.
…/CodeStorm-Hub/stormcomui into copilot/add-product-dashboard-ui
…add-product-dashboard-ui
|
@copilot check all the latest commits and the pull request #83 based upon all the implementations and the whole codebase perform a comprehensive analysis. Then Map all the APIs related UI in issue #17. Based upon your analysis (suggestions/ improvements/enhance/missing UI) and the issue details implement all the tasks. Run type-check, lint, build and for errors check and fix them. Re-validate all the implementations after finishing the tasks, also add UI documentation |
…ashboard Co-authored-by: syed-reza98 <71028588+syed-reza98@users.noreply.github.com>
Completed comprehensive analysis and implementation in commit Analysis Summary:
Fixes Applied:
Documentation Added:
Validation Results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements Phase 1 of the Product Dashboard UI with comprehensive product management features including variant management, image upload, bulk actions, search/filtering, and pagination. The implementation follows the existing design system using shadcn-ui components and includes proper TypeScript typing, validation, and responsive design across all target breakpoints (375px, 768px, 1024px).
Key changes:
- Enhanced product listing with advanced search, filters, pagination, and bulk operations
- Complete product create/edit forms with tabbed interface and validation
- Variant management supporting up to 100 variants with inline editing
- Image upload with drag-to-reorder functionality using @dnd-kit
- Category and brand selector components with API integration
Reviewed changes
Copilot reviewed 27 out of 29 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/lib/services/product.service.ts | Added flexible URL validation for images accepting both absolute URLs and relative paths |
| src/components/ui/scroll-area.tsx | New shadcn-ui scroll area component for variant list |
| src/components/ui/progress.tsx | New progress component for import/export operations |
| src/components/ui/alert.tsx | New alert component for notifications |
| src/components/products-table.tsx | Enhanced table with pagination, selection, images, and dropdown actions |
| src/components/products-page-client.tsx | Complete rewrite with search, filters, bulk actions, and import/export |
| src/components/products-header-actions.tsx | New header actions component with category/brand dialogs |
| src/components/product/variant-manager.tsx | New variant management with inline editing and validation |
| src/components/product/product-export-dialog.tsx | CSV export dialog implementation |
| src/components/product/index.ts | Barrel export for product components |
| src/components/product/image-upload.tsx | Drag-drop image upload with reordering via @dnd-kit |
| src/components/product/category-selector.tsx | Category dropdown with API integration |
| src/components/product/bulk-import-dialog.tsx | CSV import dialog with validation |
| src/components/product/brand-selector.tsx | Brand dropdown with API integration |
| src/components/product/attributes-manager.tsx | Product attributes management (mock data) |
| src/components/product-form.tsx | Complete rewrite with tabs, validation, and integrations |
| src/components/product-edit-form.tsx | Enhanced edit form with variant and image support |
| src/components/create-category-dialog.tsx | Quick category creation dialog |
| src/components/create-brand-dialog.tsx | Quick brand creation dialog |
| src/components/ClientOnly.tsx | Client-only wrapper to prevent hydration issues |
| src/app/dashboard/products/page.tsx | Updated to use new header actions component |
| src/app/dashboard/products/new/page.tsx | Wrapped AppSidebar in ClientOnly |
| src/app/api/product-attributes/route.ts | Demo API endpoint for attributes |
| public/test-products.csv | Test CSV data for import testing |
| package.json & package-lock.json | Added @radix-ui/react-progress and react-scroll-area dependencies |
| docs/PRODUCT_UI_TESTING_GUIDE.md | Comprehensive manual testing guide |
| docs/PRODUCT_DASHBOARD_UI.md | Complete component documentation |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
c6747bc
into
copilot/implement-product-crud-api-again
src/components/product/variant-manager.tsx)src/components/product/image-upload.tsx)src/components/products-page-client.tsx)src/components/products-table.tsx)src/components/product-form.tsx)src/components/product-edit-form.tsx)src/components/product/category-selector.tsx)src/components/product/brand-selector.tsx)anytypes with proper type annotations)docs/PRODUCT_DASHBOARD_UI.md)Summary of Changes
Bug Fixes
categoryIdandbrandIdfields in product form submissionsetCategoryId,setBrandId,setCategories,setBrands) in product-edit-formanytype annotations with proper TypeScript typesDocumentation
docs/PRODUCT_DASHBOARD_UI.mdcovering:Original prompt
This section details on the original issue you should resolve
<issue_title>[Phase 1] Product Dashboard UI</issue_title>
<issue_description>## Priority: P0 (Critical)
Phase: 1 - E-Commerce Core
Epic: Product Management
Estimate: 5 days
Type: Story
Context
Build admin product dashboard UI with list, create/edit forms, variant management, and bulk operations using shadcn-ui components.
Acceptance Criteria
Technical Implementation
1. Product List Page (
src/app/(dashboard)/products/page.tsx)2. Product Create/Edit Form (
src/app/(dashboard)/products/[id]/page.tsx)