Commit Graph

262 Commits

Author SHA1 Message Date
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
db1ebcb19d Refactor KeepOnline logic and add useKeepOnline hook
Moved dashboard path check from KeepOnline to a new KeepOnlineWrapper component for cleaner separation of concerns. Introduced a reusable useKeepOnline hook to encapsulate the online status update logic. Updated layout to use KeepOnlineWrapper and simplified KeepOnline. Minor cleanup in broadcast-dialog.tsx.
2025-08-01 15:27:52 +01:00
NotII
5b78e4f86c Improve broadcast dialog and product selector UI
Enhanced the broadcast dialog with better product selection UX, including a 'Done' button and improved selected products display. Updated the product selector to show more concise product descriptions, adjusted scroll area height, and improved price styling for clarity.
2025-07-30 16:05:46 +02:00
NotII
4d1c37de92 hmm 2025-07-30 12:25:46 +02: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
48cfd45fb1 Add notification context and privacy toggle for analytics
Introduces a NotificationProvider context to centralize notification logic and state, refactoring UnifiedNotifications to use this context. Adds a privacy toggle to AnalyticsDashboard and RevenueChart to allow hiding sensitive numbers. Updates layout to wrap the app with NotificationProvider.
2025-07-28 22:50:55 +02: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
f1e7583219 Add paidAt field and display to order details and table
Introduces the optional 'paidAt' field to the Order interface and updates both the order details page and the order table to display the payment date. Also adds sorting by 'paidAt' in the order table and improves date formatting for both order and payment dates.
2025-07-26 22:32:47 +02:00
NotII
cb1335b8fd ficks 2025-07-22 02:40:36 +01:00
NotII
b329c8422d oh 2025-07-20 23:34:42 +01:00
NotII
0fa33df2ad hmm 2025-07-17 16:07:07 +01:00
NotII
57e130a247 i need a shit 2025-07-17 11:06:58 +01:00
NotII
18e87721e2 fix 2025-07-01 01:49:49 +01:00
NotII
401873b8bb fix up 2025-06-30 18:38:51 +01:00
NotII
84e4515a26 anal 2025-06-30 16:56:57 +01:00
NotII
356da4606d uwu 2025-06-30 14:54:13 +01:00
NotII
236a676ac5 holy fkn airball 2025-06-29 04:13:50 +01:00
NotII
86ddadb5cf eek 2025-06-29 03:07:48 +01:00
NotII
f61a7e0276 Metrics 2025-06-29 03:05:42 +01:00
NotII
2df47e1052 Add options 2025-06-14 00:32:02 +01:00
NotII
05ec33aa9d Update product-modal.tsx 2025-06-09 22:10:07 +01:00
NotII
bc8eda5eb8 Update product-modal.tsx 2025-06-09 21:56:08 +01:00
NotII
343a66523d Update ChatTable.tsx 2025-05-29 12:18:25 +01:00
NotII
10d7307725 hmm 2025-05-23 10:01:32 +01:00
NotII
308a816736 uwu 2025-05-19 17:51:06 +01:00
NotII
f8e3173067 Cleanup 2025-05-17 17:52:25 +01:00
NotII
907831d6a7 :3 blehhh 2025-04-10 00:52:42 +01:00
NotII
2011a33c4d fix 2025-04-08 01:54:20 +01:00
NotII
c85af30518 ?? 2025-04-08 01:46:57 +01:00
NotII
c89552197d weird fkn globe 2025-04-08 01:46:13 +01:00
NotII
2f48ee38c2 weewoo 2025-04-07 19:25:24 +01:00
NotII
375dd90551 Update order-table.tsx 2025-04-02 15:41:40 +01:00
NotII
e5eba12cbe woohoo 2025-04-02 00:27:27 +01:00
NotII
a1a337caac Update animated-stats-section.tsx 2025-03-28 23:45:05 +00:00
NotII
1bec653206 ugh 2025-03-28 22:56:57 +00:00
NotII
56ef98bb52 fix colors 2025-03-28 22:30:39 +00:00
NotII
0567e04deb stats 2025-03-28 22:09:52 +00:00
NotII
f209fb6a3a Update ChatTable.tsx 2025-03-24 17:27:40 +00:00
NotII
9f4e873d4a Update ChatTable.tsx 2025-03-24 17:24:39 +00:00
NotII
06984b53ef fix auth 2025-03-24 17:18:27 +00:00
NotII
3e73e3b74e Merge main into upgrade-nextjs with resolved conflicts 2025-03-24 15:12:47 +00:00
NotII
edcd0c1e06 erm what the sigma 2025-03-24 13:43:42 +00:00
NotII
39c349509c ugh 2025-03-24 01:46:11 +00:00
NotII
1e395b8684 Update BuyerOrderInfo.tsx 2025-03-24 01:09:49 +00:00
NotII
92a27192ee weewoo 2025-03-24 01:08:18 +00:00
NotII
6fafe69f2c Update ChatDetail.tsx 2025-03-24 00:45:05 +00:00