Commit Graph
94 Commits
Author SHA1 Message Date
Michael 359d196c4d feat: implement user authentication and authorization with NextAuth, including user schema, password hashing, and role-based access control. 2026-02-22 14:11:36 +01:00
Michael c842c2447a feat: Implement snapshot and export listing, restoration, and deletion with a new success modal and floating summary bar. 2026-02-22 13:54:24 +01:00
Michael a93b1b36fc feat: Implement snapshot and export management, including API endpoints, database schema, and UI for listing, saving, loading, and deleting. 2026-02-22 13:49:51 +01:00
Michael 7288b3da72 feat: implement server-side function to save session snapshots, including input validation and database table creation fallback. 2026-02-22 13:41:49 +01:00
Michael 0bec6b953b feat: implement server action to save session snapshots, including table auto-creation. 2026-02-22 13:39:01 +01:00
Michael 3b3021d85f feat: Add API to save session snapshots and initialize the corresponding database table. 2026-02-22 13:35:34 +01:00
Michael 77fb61ef79 feat: Add floating summary bar with draft management, snapshot, and Excel export functionalities. 2026-02-22 13:31:38 +01:00
Michael c9cf83d4c7 feat: implement session snapshot creation and history viewing with new pages and components. 2026-02-22 13:29:12 +01:00
Michael 7765f97a1f feat: Add AI Copilot store for product analysis and a floating summary bar component with AI insight integration. 2026-02-22 13:24:59 +01:00
Michael 804328a525 feat: Implement a new heatmap grid component for product data visualization and selection, and create new bulk AI analyzer and floating summary bar components. 2026-02-22 13:23:11 +01:00
Michael a04d6d4e7a feat: add product score explanation page detailing calculation, principles, and interpretation. 2026-02-22 13:18:19 +01:00
Michael 8767b1cf1e feat: add AI Copilot Zustand store for managing product insights and analysis. 2026-02-22 13:12:34 +01:00
Michael c23f74d32d feat: Add Excel export for modified gammes via a new API route and a button in the floating summary bar. 2026-02-22 13:10:10 +01:00
Michael b0d25eb4d7 feat: Add FloatingSummaryBar component to display grid summary, draft changes, and save/export actions. 2026-02-22 13:05:15 +01:00
Michael 8b9803fffc feat: introduce AI-powered bulk product analysis feature with dedicated engine, types, and UI component. 2026-02-22 12:32:09 +01:00
Michael 335cf15ffa feat: Introduce AI copilot for bulk product analysis and integrate a new product scoring engine. 2026-02-22 12:28:50 +01:00
Michael 425d9e8088 feat: Add Bulk AI Analyzer component to process products, call an AI analysis API with concurrency and retry logic, and update grid insights and recommendations. 2026-02-22 12:21:05 +01:00
Michael 661704bf38 feat: Add bulk AI product analysis component with supporting data types and AI system prompt. 2026-02-22 12:11:32 +01:00
Michael b015d1f093 feat: Add AnalysisEngine for generating AI prompts and extracting recommendations for product range analysis. 2026-02-22 12:08:35 +01:00
Michael 8e2c2d4c15 feat: Add AnalysisEngine for AI copilot product analysis prompt generation and recommendation extraction. 2026-02-22 12:02:42 +01:00
Michael 3de16d15d7 feat: Introduce bulk AI product analysis, integrating with OpenRouter via a new API and UI. 2026-02-22 11:59:15 +01:00
Michael 04e6ed70f6 feat: Implement bulk AI product analysis functionality with a new UI component and API route. 2026-02-22 11:19:54 +01:00
Michael 7f9c07b58e feat: Add bulk AI product analysis feature with a new UI component and API route. 2026-02-22 11:00:44 +01:00
Michael 4b3672e65a feat: Add AI product analysis endpoint supporting individual and batch processing modes. 2026-02-22 09:42:51 +01:00
Michael 9744502788 feat: add AI product analysis API route supporting individual and batch modes 2026-02-22 09:23:04 +01:00
Michael ce0085a5c7 feat: Implement bulk AI product categorization through a new UI component and API route. 2026-02-22 09:17:52 +01:00
Michael 9c79b631cb feat: implement batch AI product analysis API route and UI component for product categorization. 2026-02-22 09:10:19 +01:00
Michael d644043aa5 feat: Add batch AI product categorization API and a bulk analyzer UI component. 2026-02-22 01:07:17 +01:00
Michael 259fb60638 feat(ai): performance-first logic with store awareness extrapolation and change count fix 2026-02-22 00:21:53 +01:00
Michael c5cacd9b5a fix(ai): final overhaul to performance-first, supplier-agnostic logic 2026-02-22 00:12:14 +01:00
Michael 0bb73ebcca feat(ai): update batch analysis to use global supplier weight (CA/Margin) 2026-02-21 23:27:54 +01:00
Michael c89e046dee feat(ai): synchronize analysis quality, optimize batch performance and implement context-aware weighting 2026-02-21 23:14:12 +01:00
Michael e8cc89cb2f feat(ai): synchronize batch and individual analysis payloads and models, optimize concurrency 2026-02-21 22:48:16 +01:00
Michael 66f28956ce fix(ai): fix syntax error in batch prompt and update types for score support 2026-02-21 22:41:48 +01:00
Michael 5c8910825b feat(ai): integrate performance score for smarter analysis and parallelize batch processing 2026-02-21 22:41:10 +01:00
Michael 4dac21dfac fix(grid): contextualize draft changes count and validation to visible products 2026-02-21 22:39:00 +01:00
Michael fe8d0f1b32 fix(ai): improved seasonality detection in batch by sending detailed month-by-month history 2026-02-21 22:28:41 +01:00
Michael 4f7701fa14 fix(ai): simplified categories to A (Permanent), C (Seasonal), Z (Exit) and removed B 2026-02-21 22:24:58 +01:00
Michael a186bb1989 fix(ai): prevent AI from using placeholder justification string in batch analysis 2026-02-21 22:20:07 +01:00
Michael 1ec8ae3f02 fix(ai): aligned batch system prompt with successful individual analysis prompt 2026-02-21 22:17:21 +01:00
Michael 816ec6e483 feat(ai): smarter batch analysis with revenue, history, nomenclature and strict retail rules 2026-02-21 22:09:28 +01:00
Michael 8ad2894301 fix(ai): batch-analyze uses user-configured model (Gemini 2.5) instead of hardcoded Llama 3.3 2026-02-21 22:05:18 +01:00
Michael 3d26dc0b9b fix(ai): client-side retry on 429, server returns retryAfter, hardcoded llama-3.3 free model 2026-02-21 22:04:08 +01:00
Michael 41c3ab34b6 fix(ai): server-side retry-with-backoff on 429, reads Retry-After header, up to 3 attempts 2026-02-21 21:58:25 +01:00
Michael 163d80dfe2 fix(ai): throttle now applies on ALL chunk iterations (incl. errors), delay bumped to 20s 2026-02-21 21:56:16 +01:00
Michael bcbea69d0a fix(ai): add 3s throttle between batch chunks to avoid OpenRouter 429 rate limiting 2026-02-21 21:53:14 +01:00
Michael d3dfcf6be4 fix(ai): batch-analyze now reads OpenRouter key from DB config instead of env var 2026-02-21 21:50:24 +01:00
Michael 1cda9cef9d debug(ai): add verbose logging and improved error visibility in batch analyzer 2026-02-21 21:45:58 +01:00
Michael c6148b58a4 fix(ai): prefix insight text with recommended gamme letter for clarity 2026-02-21 21:39:52 +01:00
Michael 09f9c0b097 feat(ai): bulk analysis now populates AI insight column with justification and duplicate flag 2026-02-21 21:38:27 +01:00