Commit Graph
400 Commits
Author SHA1 Message Date
MichaelandClaude Sonnet 4.6 b8ecacee3b merge(main): resolve conflicts keeping codefou + email on suppliers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 11:14:35 +02:00
MichaelandClaude Sonnet 4.6 805664dc32 feat(contacts): add contacts page with per-store management and supplier email field
- New contacts table (group_id, name, role, phone, email, notes) per store
- Suppliers table: add email field with form and card display
- Page /contacts: two-column layout (suppliers read-only / free contacts CRUD)
- Permissions: read all roles, create/edit/delete admin + directeur + manager
- Admin can filter contacts by store; other roles see their own stores only
- Migration SQL: 20260515_add_contacts_and_supplier_email.sql

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 10:44:39 +02:00
Michael 71625031df feat: add WebhookBAPConfig page for managing and testing n8n webhook settings 2026-04-02 14:52:51 +02:00
Michael 8aa5dd1c83 feat: add mobile-optimized customer orders page with creation form and article lookup integration 2026-04-02 14:25:08 +02:00
Michael 22897ede48 feat: add CustomerOrderForm component with automated product lookup and supplier matching 2026-04-02 13:37:16 +02:00
Michael cf57cb5b2d feat: add CustomerOrders page with CRUD operations, status management, and client contact tracking 2026-04-02 12:58:56 +02:00
Michael 55191c511b feat: implement BAP webhook configuration management and customer order tracking support 2026-04-02 12:52:20 +02:00
Michael 576db2d7f4 feat: implement customer order form with automated product lookup and mobile-responsive order page 2026-04-02 11:50:46 +02:00
Michael 6df51a3934 feat: add CustomerOrderForm component with automated article lookup and supplier matching 2026-04-02 11:40:50 +02:00
Michael 58dde2f785 feat: implement CustomerOrderForm component with automated product lookup and create mobile-responsive customer orders page 2026-04-02 11:36:02 +02:00
Michael a91027c10b feat: implement DLC tracking page with EAN lookup and CRUD operations for product expiration management 2026-04-02 09:46:59 +02:00
Michael 44950d2239 feat: implement supplier management module with CRUD operations and optimistic updates 2026-04-02 09:38:30 +02:00
Michael 1488accbdb feat: implement mobile-optimized DLC management page with EAN lookup and status-based filtering 2026-04-02 09:28:46 +02:00
Michael 475c52cede feat: implement dashboard page with store-specific stats, announcement modals, and DLC alerts 2026-04-02 09:25:09 +02:00
Michael b090c8f36a feat: implement DLC management page with EAN lookup, filtering, and CRUD operations 2026-04-02 09:20:54 +02:00
Michael 4318bb3b5c feat: implement production router with mobile/desktop support and add sidebar navigation component 2026-04-02 08:54:39 +02:00
Michael 78adc2c5ae feat(BAP): remplacer destinataire Celia par Jeremy 2026-01-12 14:13:21 +01:00
Michael 8772e7e0b2 feat(BAP): remplacer destinataire Celia par Jeremy 2026-01-12 14:09:25 +01:00
Michael 78b53f576b feat: Implement new dashboard, publicity management, and calendar pages with corresponding server routes. 2026-01-06 11:39:28 +01:00
Michael 18c51959af publicité 2026-01-05 13:50:50 +01:00
Michael 5ab5b32ca5 feat: add mobile customer orders page with creation and management functionality 2025-12-10 16:55:03 +01:00
Michael e626659915 feat: implement mobile credit notes management page with CRUD operations and filtering. 2025-12-10 16:48:21 +01:00
Michael 77bbeed9c0 feat: add mobile page for managing credit notes (Avoirs) with search, filter, and CRUD functionalities 2025-12-10 16:31:58 +01:00
Michael 4a25c2040b feat: add mobile customer orders page with order creation and status update functionality 2025-12-10 16:12:57 +01:00
Michael 676d8cee96 feat: add mobile pages for SAV, customer orders, credit notes, and DLC, along with a production router. 2025-12-10 16:04:01 +01:00
Michael 75be8e75b3 feat: add mobile pages for customer orders, publicities, and calendar, and introduce a production router component. 2025-12-10 15:41:47 +01:00
Michael a7c3b2913e feat: add mobile calendar page to display orders and deliveries 2025-12-10 15:11:43 +01:00
Michael 6f94d96420 feat: Implement a mobile calendar page to display orders and deliveries as events. 2025-12-10 14:58:19 +01:00
Michael d64ed9bbcd feat: add mobile calendar page to display orders and deliveries 2025-12-10 14:51:22 +01:00
Michael 8212bf002d feat: add mobile calendar page to display orders and deliveries as events. 2025-12-10 14:44:54 +01:00
Michael 6378fa5a7c feat: add mobile calendar page to display orders and deliveries as events. 2025-12-10 14:24:18 +01:00
Michael 7043884e68 feat: add mobile pages for delivery and order listing with search and filter capabilities. 2025-12-10 14:17:32 +01:00
Michael 29520c4264 feat: add base mobile layout component with header, bottom navigation, and side menu. 2025-12-10 14:06:45 +01:00
Michael 7c7a4478c3 feat: add MobileApp wrapper with StoreProvider and integrate mobile-specific routing for mobile pages. 2025-12-10 14:02:37 +01:00
Michael 7f4c172eeb feat: implement dedicated mobile layout with bottom navigation and store selection. 2025-12-10 13:56:42 +01:00
Michael 946b5f30bd feat: add mobile layout and bottom navigation components 2025-12-10 13:42:05 +01:00
Michael 69773e3d2f feat: add mobile tasks page with creation/edit form and new layout component 2025-12-10 13:25:24 +01:00
Michael dd682024fd feat: implement mobile task management page for mobile devices, including task creation, editing, and listing. 2025-12-10 13:16:45 +01:00
Michael 3a8183f6a5 feat: Add mobile tasks page with task creation, editing, and listing functionalities. 2025-12-10 13:09:24 +01:00
Michael 5894b486b7 feat: implement mobile task management page with create and edit task form 2025-12-10 13:03:30 +01:00
Michael b51687f301 feat: introduce responsive task management with a dedicated mobile tasks page and form 2025-12-10 12:51:58 +01:00
Michael 1df477927a feat: Add publicities management page with year/month filtering, list/calendar views, and CRUD functionality. 2025-12-10 12:06:14 +01:00
michaelschal ca576dc289 Improve invoice sending by proxying requests through the backend
Introduces a new backend API endpoint to proxy invoice sending requests, resolving CORS issues and enhancing error handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: df58cf24-9a7e-4197-bdbe-786d56d0c35e
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/qOJ89TE
2025-11-04 15:26:40 +00:00
michaelschal e3785d4457 Update invoice sending to directly use webhook URL and add timeout
Replaced the backend proxy route for sending invoices with a direct fetch to the webhook URL, incorporating a 60-second timeout using AbortController. Also added 'busboy' and '@types/busboy' to package.json.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ca0ae43e-5b56-4b02-8cb5-0e76adf608ba
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/qOJ89TE
2025-11-04 15:21:16 +00:00
michaelschal 89211e4f28 Improve invoice sending by proxying through backend
Replaces direct webhook calls for invoice sending with a backend API endpoint, utilizing multer for file uploads and form-data for robust data transmission. Includes improved error handling and logging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: e89da884-7d51-4b3d-8af5-22493ce6f2c1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/qOJ89TE
2025-11-04 15:17:17 +00:00
michaelschal 4dffada355 Update invoice sending to use direct webhook requests with timeouts
Refactors BLReconciliation.tsx to replace the backend proxy call with a direct fetch to the webhook URL, implementing FormData for file uploads and adding a 60-second timeout using AbortController.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 4d220e6b-5c4b-4c79-badc-e764c86cbe43
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/qOJ89TE
2025-11-04 15:12:48 +00:00
michaelschal cbcef39aa2 Enable admins and directors to send invoices via webhook
Introduce a new backend route `/api/reconciliation/send-invoice-webhook` to proxy invoice data to external webhooks, converting files to base64 and handling CORS issues.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6f3c3694-5a67-4b47-b27c-af49da7ad447
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/LXHtbOp
2025-11-04 14:49:08 +00:00
michaelschal 42a7c494f2 Display processed products first and visually indicate their status
Adjusted product display logic to prioritize and style products that have been processed or validated, ensuring they appear at the beginning of the list with a distinct visual treatment.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 7b704198-c867-4dc2-bcfa-f3fd0e9ea029
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/LXHtbOp
2025-11-04 14:24:37 +00:00
michaelschal f257234f64 Improve delivery deletion by updating the local cache and refetching data
Implement optimistic UI updates for delivery deletion by using `setQueryData` to remove the item from the cache locally and then using `refetchQueries` to ensure data consistency with the server. Includes error handling to refetch on failure.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3527f812-5444-4cba-9693-7eb9aae7ec50
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/lCj0xbO
2025-11-04 14:11:04 +00:00
michaelschal 351b22186e Adjust invoice validation and tab navigation
Remove success toast for verified invoices and update tab switching logic after validation/invalidation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 711f132b-0305-4599-b521-607de6b4a3da
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/lCj0xbO
2025-11-04 14:01:19 +00:00