Commit Graph

11 Commits

Author SHA1 Message Date
NotII
864e1e9804 Improve pricing tier input handling and precision
Refactored PricingTiers component to better handle empty, null, and undefined values, prevent formatting issues, and add error handling for tier changes. Updated ProductModal to use parseFloat for price values to improve precision. Minor robustness improvements to event handling and sorting.
2025-10-09 21:05:13 +01:00
NotII
32bf9d790f Refactor pricing tiers form UI and logic
Simplifies the pricing tiers form by removing help text, card layout, and validation logic. Switches to a compact grid-based UI, adds editable total price field, and streamlines event handling for tier changes. Improves user experience and code maintainability.
2025-10-09 20:54:33 +01:00
NotII
051d33df33 Improve pricing tier validation logic
Validation now only checks for duplicate quantities when both minQuantity and pricePerUnit are set and positive. Error messages and input styling are updated to reflect more accurate validation states, and the placeholder for minQuantity is changed to 'e.g. 29'.
2025-10-09 20:49:25 +01:00
NotII
a912967fd4 Revamp pricing tiers form UI and validation
Improves the pricing tiers form with enhanced UI using Card and Label components, adds help text, and introduces validation for quantity, price, and duplicate tiers. The form now displays errors inline and sorts tiers by quantity for better usability.
2025-10-09 20:43:44 +01:00
NotII
d1f3e6b214 Bulk update category order and improve number formatting
Category order is now updated via a bulk API endpoint instead of individual requests, improving efficiency. Number formatting in pricing tiers form now avoids cursor jumping by only formatting decimals when necessary.
2025-10-02 04:17:27 +01:00
NotII
2452a3c5f6 Sort pricing tiers by minQuantity in UI
Pricing tiers are now displayed sorted by minQuantity, improving clarity for users. Event handlers are updated to use the original index to ensure correct tier manipulation after sorting.
2025-07-27 00:24:57 +02:00
NotII
689a82705b add formatting 2025-02-21 03:01:35 +00:00
NotII
ac2be9df4a Update pricing-tiers.tsx 2025-02-16 17:26:50 +00:00
NotII
62e2602d28 :D 2025-02-16 16:30:57 +00:00
g
72ea64df15 weewoo 2025-02-09 02:15:26 +00:00
g
468fd69cb5 Cleanup 2025-02-08 00:54:11 +00:00