dwindown
875213f7ec
fix: Edit route, price input alignment, and currency in variations
Fixed 3 issues:
1. Edit Page Route - FIXED
Problem: URL shows /products/332/edit but page says "New Product"
Root Cause: Route pointing to wrong component
App.tsx changes:
- Import ProductEdit component
- Fix route: /products/:id/edit → ProductEdit (was ProductNew)
- Remove duplicate /products/:id route
Result:
- Edit page now shows "Edit Product" title
- Product data loads correctly
- Proper page header and actions
2. Price Input Alignment - FIXED
Problem: Currency symbol overlaps input, no right-align
GeneralTab.tsx:
- Changed pl-10 → pl-9 (better padding for symbol)
- Added pr-3 (right padding)
- Added text-right (right-align numbers)
VariationsTab.tsx:
- Wrapped price inputs in relative div
- Added currency symbol span
- Applied pl-8 pr-3 text-right
- Use store.decimals for step (1 or 0.01)
Result:
- Currency symbol visible without overlap
- Numbers right-aligned (better UX)
- Proper spacing
- Works for all currencies (Rp, $, RM, etc.)
3. Categories/Tags Management - NOTED
Current: Can only select existing categories/tags
Solution: Users should manage in Categories and Tags tabs
Future: Could add inline create with + button
For now: Use dedicated tabs to add new categories/tags
Result:
- Edit page works correctly
- Price inputs look professional
- Currency support complete
- Clear workflow for categories/tags
2025-11-19 23:47:04 +07:00
..
2025-11-04 11:19:00 +07:00
2025-11-19 23:47:04 +07:00
2025-11-05 18:54:41 +07:00
2025-11-13 10:13:17 +07:00
2025-11-04 11:19:00 +07:00
2025-11-13 11:50:38 +07:00
2025-11-15 20:05:50 +07:00
2025-11-13 09:50:33 +07:00
2025-11-13 13:47:22 +07:00
2025-11-13 15:44:06 +07:00
2025-11-13 11:57:55 +07:00
2025-11-13 12:20:41 +07:00
2025-11-13 12:20:41 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-13 10:34:07 +07:00
2025-11-04 11:19:00 +07:00