feat(admin/products): rework product management UX - #24
Conversation
- List shows active products only (filtered by isDeleted, not isActive) - Fetch all products via full offset pagination (was capped at 100) - Details column → actions (edit/deactivate); edit moved to a dialog - Category picker: parent → child cascade, active-only, child-first auto-fills parent; child is a searchable autocomplete - Table category cell shows parent + child; even column spacing - Read-only meta: id/created/updated on one even row - Edit image is click-to-enlarge in a preview dialog - Units in the product form are active-only - Fix "no image" placeholder clipping Vietnamese diacritics Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Code Review Could Not Complete
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ✅ |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe admin product catalog now loads complete product lists, filters inactive records, supports parent/child category selection, and uses dedicated edit dialogs with image previews and metadata. English and Vietnamese translations add CRUD and category labels. ChangesCatalog workflow
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant ProductsComponent
participant CatalogAdminService
participant Catalog APIs
participant Edit dialog
ProductsComponent->>CatalogAdminService: Load active catalog options
CatalogAdminService->>Catalog APIs: Request products, units, and categories
Catalog APIs-->>CatalogAdminService: Return catalog data
ProductsComponent->>Edit dialog: Open selected product
Edit dialog->>ProductsComponent: Submit edited product fields
ProductsComponent->>CatalogAdminService: Save or deactivate product
CatalogAdminService->>Catalog APIs: Persist catalog change
Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit