Commit Graph

15 Commits

Author SHA1 Message Date
g
0176f89cb7 Add CSV export for orders and update UI symbols
Introduces an exportOrdersToCSV function in lib/api-client.ts to allow exporting orders by status as a CSV file. Updates various UI components to use the '•' (bullet) symbol instead of '·' (middle dot) and replaces some emoji/unicode characters for improved consistency and compatibility. Also normalizes the 'use client' directive to include a BOM in many files.
2025-12-15 17:57:18 +00:00
NotII
be952509a1 Improve ProductSelector response handling and UI
Enhanced the ProductSelector to robustly handle different response shapes from the products API, preventing runtime errors. Also adjusted dropdown and scroll area sizing for better UI consistency.
2025-09-23 22:41:27 +01:00
NotII
e2db2d5027 Optimize form loading and update product selection UI
Dynamically import ChatDetail, NewChatForm, and ProductSelector components with skeleton loading states for improved performance. Refine product selection logic in promotion forms to show blacklist selector only for 'all' mode and clarify labels and descriptions for better user understanding.
2025-08-08 16:14:41 +01:00
NotII
f19ddc415c eeeee 2025-08-07 23:24:51 +01:00
NotII
dad54c4df3 Update PromotionDetailsModal.tsx 2025-08-07 17:31:48 +01:00
NotII
3cef1076d0 Add promotion details and modal to orders and promotions
Introduces promotion-related fields to the Order interface and displays promotion discounts in both the order details and order table. Adds a PromotionDetailsModal component for viewing detailed promotion analytics and eligibility, and integrates it into the PromotionsList with a new 'view details' action.
2025-08-07 17:16:49 +01:00
NotII
2c48ecd2b4 Add product applicability controls to promotion forms
Introduces product selection and exclusion controls to both new and edit promotion forms, allowing promotions to target all, specific, or all-but-specific products. Adds a reusable ProductSelector component, updates promotion types to support new fields, and adjusts cookie max-age for authentication. Also adds two new business quotes.
2025-08-07 16:05:31 +01:00
NotII
1b51f29c24 Add flexible date pickers and export options to stock dashboard
Introduces a reusable date picker component with support for single date, date range, and month selection. Updates the stock management page to allow exporting reports by daily, weekly, monthly, or custom date ranges using the new pickers. Refactors promotion form to use the new date picker for start and end dates. Adds more business quotes to the quotes config.
2025-07-30 00:38:25 +02:00
NotII
2f48ee38c2 weewoo 2025-04-07 19:25:24 +01:00
NotII
9fe457dee7 lets hope this doesn't break stuff 2025-03-08 05:49:04 +00:00
NotII
d708098bd9 Update NewPromotionForm.tsx 2025-03-08 05:15:55 +00:00
NotII
8ea692eda2 cluster fuck 2025-03-08 05:14:50 +00:00
NotII
b8e6e1dfc0 Update EditPromotionForm.tsx 2025-03-08 04:59:25 +00:00
NotII
de45a8ecfc Update NewPromotionForm.tsx 2025-03-08 04:59:12 +00:00
NotII
8968c974d4 uh oh stinky 2025-03-08 04:44:35 +00:00