Commit Graph

77 Commits

Author SHA1 Message Date
NotII
fabc8f2d71 Add pagination to Customer Insights top customers list
Implemented pagination controls and page size selection for the top customers section in CustomerInsightsChart. Updated analytics-service to support paginated customer insights API calls and handle pagination metadata. Improves usability for stores with large customer bases.
2025-08-30 21:07:00 +01:00
NotII
50d0100056 Improve profit analytics chart and modal data handling
Enhanced ProfitAnalyticsChart to display more robust skeleton loaders and improved summary card logic with fallbacks for missing data. Updated the chart to distinguish between tracked and total revenue, and improved cost data coverage display. In the profit analysis modal, profit margin tiers are now sorted by minimum quantity. Updated the ProfitOverview interface to include revenueFromTrackedProducts.
2025-08-26 21:36:08 +01:00
NotII
f3fb067da7 Add profit analytics chart and service
Introduces a new ProfitAnalyticsChart component to display profit-related metrics, including total revenue, cost, profit, and top profitable products. Updates the AnalyticsDashboard to include a Profit tab and adds a profit-analytics-service for fetching profit data from the backend.
2025-08-26 21:03:05 +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
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
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
b329c8422d oh 2025-07-20 23:34:42 +01:00
NotII
57e130a247 i need a shit 2025-07-17 11:06:58 +01:00
NotII
6516c6d2f9 Update analytics-service.ts 2025-06-30 15:55:27 +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
2df47e1052 Add options 2025-06-14 00:32:02 +01:00
NotII
b77f0d007d Add ML, fix product stock data 2025-06-09 22:06:33 +01:00
NotII
10d7307725 hmm 2025-05-23 10:01:32 +01:00
NotII
1b5f1d4b16 Update server-api.ts 2025-04-09 02:40:02 +01:00
NotII
db26544926 fix 2025-04-08 23:47:09 +01:00
NotII
054ea4802d fk 2025-04-08 02:10:47 +01:00
NotII
2011a33c4d fix 2025-04-08 01:54:20 +01:00
NotII
c89552197d weird fkn globe 2025-04-08 01:46:13 +01:00
NotII
d249d88e35 Update git.ts 2025-04-08 01:32:00 +01:00
NotII
0c1d1cf8ed Update index.ts 2025-04-07 19:49:20 +01:00
NotII
2f48ee38c2 weewoo 2025-04-07 19:25:24 +01:00
NotII
7f7dd78818 Update git-utils.ts 2025-04-06 16:41:08 +01:00
NotII
3cd46c63ad Update git-utils.ts 2025-04-06 16:34:57 +01:00
NotII
8da4d0085e revert 2025-04-06 16:23:02 +01:00
NotII
a5f46d68f0 Update git-utils.ts 2025-04-06 16:08:19 +01:00
NotII
be2455dda0 test 2025-04-06 16:00:44 +01:00
NotII
59a9063bfc update 2025-04-06 15:48:11 +01:00
NotII
1bec653206 ugh 2025-03-28 22:56:57 +00:00
NotII
0567e04deb stats 2025-03-28 22:09:52 +00:00
NotII
06984b53ef fix auth 2025-03-24 17:18:27 +00:00
NotII
8534ed040c fix 2025-03-24 16:53:19 +00:00
NotII
0aac1ab1f3 fiux linting errors 2025-03-24 16:11:42 +00:00
NotII
3e73e3b74e Merge main into upgrade-nextjs with resolved conflicts 2025-03-24 15:12:47 +00:00
NotII
d3c61ef1de erm what the sigma 2025-03-24 13:46:53 +00:00
NotII
f5b5608f9d erm what the sigma 2025-03-24 13:44:44 +00:00
NotII
edcd0c1e06 erm what the sigma 2025-03-24 13:43:42 +00:00
NotII
dd25a45abc clean up 2025-03-24 01:56:17 +00:00
NotII
39c349509c ugh 2025-03-24 01:46:11 +00:00
NotII
1aaf349d3d fix 2025-03-24 00:52:02 +00:00
NotII
7234acc0d4 woohoo 2025-03-24 00:30:01 +00:00
NotII
6566b427b0 fux 2025-03-24 00:17:45 +00:00
NotII
c65511aa5d hmmmammamam 2025-03-24 00:08:32 +00:00
NotII
5d11228f29 Update shippingHelper.ts 2025-03-23 23:53:53 +00:00
NotII
3413e3b1e8 ugh 2025-03-23 23:53:45 +00:00
NotII
edc220bc5d weee 2025-03-23 23:38:45 +00:00
NotII
2b40ee668f fix 2025-03-23 23:27:49 +00:00
NotII
f6a2a69ac4 i hope this fixed it 2025-03-23 23:18:17 +00:00
NotII
259898cef0 Update auth-utils.ts 2025-03-23 23:03:54 +00:00
NotII
8d7d9b9e1c cleanup 2025-03-23 21:25:37 +00:00