Commit Graph

88 Commits

Author SHA1 Message Date
g
adb01009eb Handle play() and load() promises for audio elements
Updated audio playback and preloading logic to check for and handle returned promises from play() and load() methods. This prevents uncaught promise rejections in browsers where these methods may return undefined, improving reliability and error handling for notification sounds.
2025-12-09 22:17:20 +00:00
g
54cfc62e35 Switch notification sound to hohoho.mp3 and add download script
Replaced all references to notification.mp3 with hohoho.mp3 in notification-related components and context. Added hohoho.mp3 to the public directory. Introduced a script (download-notification-sound.js) for downloading notification sounds from YouTube using @distube/ytdl-core, which was added as a devDependency. Also added yt-dlp.exe for alternative audio downloading.
2025-12-08 18:42:11 +00:00
g
e7fcfd63a2 Add Christmas theme and snow effects for December
Introduces a Christmas theme that activates in December, including themed colors, subtle background patterns, and snowflake effects on loading screens. Adds a reusable SnowLoader component and utility for December detection. Updates layout and loading components to conditionally apply decorations and styles only during December.
2025-12-08 00:47:57 +00:00
g
4b0bd2cf8c Revamp admin dashboard analytics and UI
Refactored the admin dashboard to use tabbed navigation for analytics and management. Enhanced AdminAnalytics with Recharts visualizations, added top vendors by revenue, and improved chart tooltips. Removed unused columns from vendor table. Updated layout and notification context to exclude admin pages from dashboard-specific UI and notifications. Minor debug logging added to SystemStatusCard.
2025-11-28 19:08:40 +00:00
g
b10b2f2701 Add custom date range support to profit analytics
Introduces a date range picker to the profit analytics dashboard, allowing users to select custom date ranges for profit calculations. Updates ProfitAnalyticsChart and profit-analytics-service to handle both period and date range queries, improving flexibility and user experience.
2025-11-28 18:32:38 +00:00
NotII
928d94cecd Update server-api.ts 2025-10-30 23:35:21 +00:00
NotII
f0d18a9e67 Add dashboard navigation and request timeouts
Added 'Back to Dashboard' buttons to all admin dashboard pages for improved navigation. Introduced AbortSignal timeouts to API client and middleware requests to prevent hanging network calls. Also enabled messaging customers from the order details page if Telegram info is available.
2025-10-30 18:35:09 +00:00
NotII
74b7aa4877 Add shipping dialog with tracking number to order page
Introduces a shipping dialog to the order details page, allowing users to optionally enter a tracking number when marking an order as shipped. Updates API client logic to better handle HTTP-only authentication cookies. Improves broadcast dialog validation and message handling.
2025-09-22 00:45:29 +01:00
NotII
5ce716d2ab Refactor docs structure and update API env config
Moved documentation files into a new docs/ directory and added a documentation index (docs/README.md). Updated the main README with improved project and documentation details. Set explicit API environment variables in Dockerfile for production. Enhanced next.config.mjs with improved API_BASE_URL handling and logging for better deployment clarity.
2025-09-01 16:48:42 +01:00
NotII
57c2fbdf50 Add CapRover deployment fix and improve env var handling
Added CAPROVER-DEPLOYMENT-FIX.md with instructions for required environment variables to prevent 500 errors. Improved validation and fallback logic for SERVER_API_URL and API_BASE_URL in server-api.ts, route.ts, and next.config.mjs to handle missing or invalid values gracefully and log warnings instead of crashing.
2025-09-01 16:31:12 +01:00
NotII
29ec1be68c Refactor API URLs and add environment config example
Replaces hardcoded production API URLs with localhost defaults for local development in both server and client code. Updates Dockerfile to require API URLs via deployment environment variables. Improves ChatTable to use a batch endpoint for chats and unread counts, with backward compatibility. Adds an env.example file to document required environment variables. Updates next.config.mjs to use environment variables for backend API rewrites and image domains.
2025-09-01 15:35:10 +01:00
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