Commit Graph

185 Commits

Author SHA1 Message Date
NotII
8e591a3d88 Refactor and relocate customer insights in order details
Moved the customer insights section from a separate card to the customer history area within the order details page. Simplified the display and removed unused icon imports for a cleaner UI.
2025-08-31 18:56:52 +01:00
NotII
a10b9e0094 Add customer insights to order details page
Introduces a customer insights panel on the order details page, displaying metrics such as total orders, total spent, payment success rate, and customer tenure. Removes customer insights logic and display from the order table component for a more focused and relevant presentation.
2025-08-31 18:30:54 +01:00
NotII
be746664c5 Add profit analysis modal and cost tracking for products
Introduces a Profit Analysis modal for products, allowing users to view profit, margin, and markup calculations based on cost per unit and pricing tiers. Adds cost per unit input to the product modal, updates product types, and integrates the analysis modal into the products page and product table. This enhances product management with profit tracking and analysis features.
2025-08-26 20:52:38 +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
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
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
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
639277dc2b Update page.tsx 2025-07-26 21:36:12 +02:00
NotII
0e99952b72 Update page.tsx 2025-07-26 15:10:35 +02:00
NotII
707f7e359f Update page.tsx 2025-07-25 20:56:22 +01: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
ad108298a6 Update loading.tsx 2025-06-30 13:52:58 +01:00
NotII
236a676ac5 holy fkn airball 2025-06-29 04:13:50 +01:00
NotII
e9b943a00a Create loading.tsx 2025-06-29 03:10:54 +01:00
NotII
f61a7e0276 Metrics 2025-06-29 03:05:42 +01:00
NotII
b77f0d007d Add ML, fix product stock data 2025-06-09 22:06:33 +01:00
NotII
48ad96fbec Update page.tsx 2025-05-29 14:25:50 +01:00
NotII
ee5fc4a9d6 Update page.tsx 2025-05-29 12:48:38 +01:00
NotII
10d7307725 hmm 2025-05-23 10:01:32 +01:00
NotII
a54b5c017f Update layout.tsx 2025-05-19 01:34:45 +01:00
NotII
f8e3173067 Cleanup 2025-05-17 17:52:25 +01:00
NotII
e338a5d0b2 Update page.tsx 2025-04-25 00:14:52 +01:00
NotII
dd4dac888f Update page.tsx 2025-04-21 17:25:10 +01:00
NotII
0fa841aaf6 Add Icons 2025-04-21 17:24:45 +01:00
NotII
17e983fed1 Update page.tsx 2025-04-21 16:48:10 +01:00
NotII
0431b799fb Update page.tsx 2025-04-21 16:14:55 +01:00
NotII
34e995601d Update page.tsx 2025-04-21 15:59:06 +01:00
NotII
679f59bba7 Update page.tsx 2025-04-21 15:56:25 +01:00
NotII
6a0f2ff803 Update page.tsx 2025-04-21 15:44:41 +01:00
NotII
63c7d602e4 update storefront page 2025-04-21 15:32:18 +01:00
NotII
b4bae9ae18 update orders page 2025-04-21 15:32:08 +01:00
NotII
68b5aebc17 Update page.tsx 2025-04-21 14:37:00 +01:00
NotII
41653cd9bb Merge branch 'main' of https://github.com/NotII/ember-market-frontend 2025-04-19 16:20:54 +01:00
NotII
9138cc842f Update page.tsx 2025-04-19 16:20:41 +01:00
NotII
d46487a91d Update page.tsx 2025-04-19 16:10:16 +01:00
NotII
92ce910bad Update page.tsx 2025-04-10 01:04:49 +01:00
NotII
907831d6a7 :3 blehhh 2025-04-10 00:52:42 +01:00
NotII
2221c39df9 fk it 2025-04-10 00:28:44 +01:00
NotII
3deeda4075 Update page.tsx 2025-04-09 14:23:23 +01:00
NotII
bbdd327de5 Update page.tsx 2025-04-08 02:14:52 +01:00
NotII
054ea4802d fk 2025-04-08 02:10:47 +01:00