Commit Graph

90 Commits

Author SHA1 Message Date
g
f697181d00 fix 2025-12-15 18:09:38 +00:00
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
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
NotII
fcba1a853d Adjust chat UI padding for safe area insets
Updated padding calculations in ChatDetail to account for device safe area insets, improving layout on devices with notches or rounded corners. This affects both the chat scroll container and the input area at the bottom.
2025-10-28 11:07:07 +00:00
NotII
130ecac208 Add Chromebook compatibility fixes and optimizations
Implemented comprehensive Chromebook-specific fixes including viewport adjustments, enhanced touch and keyboard detection, improved scrolling and keyboard navigation hooks, and extensive CSS optimizations for better usability. Updated chat and dashboard interfaces for larger touch targets, better focus management, and responsive layouts. Added documentation in docs/CHROMEBOOK-FIXES.md and new hooks for Chromebook scroll and keyboard handling.
2025-10-26 18:29:23 +00:00
NotII
1fc29e6cbf Improve accessibility and touch support in dashboard
Enhances accessibility and usability for touch devices and Chromebooks by updating global styles, adding ARIA attributes, and optimizing component layouts. Introduces a new useIsTouchDevice hook, improves focus states, and increases viewport scalability. ChatDetail now supports better keyboard navigation and larger touch targets.
2025-10-22 17:53:30 +01: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
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
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
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
343a66523d Update ChatTable.tsx 2025-05-29 12:18:25 +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
2f48ee38c2 weewoo 2025-04-07 19:25:24 +01: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
NotII
be0f9aa3af weewoo 2025-03-24 00:44:19 +00:00
NotII
37d4d0930c Update ChatDetail.tsx 2025-03-24 00:30:57 +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
102c65ebc6 Update content.tsx 2025-03-23 23:28:58 +00:00
NotII
2b40ee668f fix 2025-03-23 23:27:49 +00:00
NotII
631929f1fd Update ChatDetail.tsx 2025-03-23 23:23:17 +00:00
NotII
e521f061ab Update ChatDetail.tsx 2025-03-23 23:19:35 +00:00
NotII
f6a2a69ac4 i hope this fixed it 2025-03-23 23:18:17 +00:00
NotII
64ee9b842e hmm 2025-03-23 23:08:09 +00:00
NotII
998986b9fc Update BuyerOrderInfo.tsx 2025-03-18 19:12:29 +01:00
NotII
22bfa73b14 balls 2025-03-18 18:51:51 +01:00
NotII
2715d3a0e7 fix 2025-03-18 18:19:24 +01:00
NotII
5c8d4b48fe Update ChatDetail.tsx 2025-03-18 04:18:14 +01:00
NotII
5346b3a3b7 Update ChatTable.tsx 2025-03-18 04:17:44 +01:00
NotII
350bd4759d Update ChatDetail.tsx 2025-03-18 04:16:14 +01:00
NotII
122c52474c Update ChatTable.tsx 2025-03-18 04:16:11 +01:00
NotII
e069ca865c Update NewChatForm.tsx 2025-03-18 04:05:16 +01:00
NotII
e0752fd7bb Updates 2025-03-18 04:03:48 +01:00