Commit Graph
1020 Commits
Author SHA1 Message Date
Michael 16ef17957d fix(db): increase connection pool size and timeout to handle concurrent verifications 2026-01-13 16:54:26 +01:00
Michael 03cb562866 fix(server): resolve duplicate fetch declaration in invoice proxy 2026-01-13 16:44:46 +01:00
Michael 443093573a chore(server): add logging for webhook url in invoice proxy 2026-01-13 16:41:47 +01:00
Michael 65eb74a96e fix(server): use createRequire for form-data to resolve dynamic import issues 2026-01-13 16:36:46 +01:00
Michael 9c0ba9559d fix(server): fix form-data dynamic import for webhook invoice sending 2026-01-13 16:27:35 +01:00
Michael f39b8240e7 chore(deps): npm audit fix - reduce vulnerabilities 2026-01-12 14:36:25 +01:00
Michael 0f8920f326 feat(security): ameliorations securite - CSRF, sanitization validator.js, eval removal 2026-01-12 14:29:02 +01: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 eb3fb119ee feat: add Publicities page with comprehensive management functionalities including list/calendar views and CRUD operations. 2026-01-05 17:10:10 +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 583a2469c9 feat: introduce RouterProduction component for authenticated and responsive application routing. 2025-12-10 13:50:01 +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 cca262230e Remove Multer dependency and implement custom multipart form data parsing
Replace Multer with a custom multipart form data parser in the invoice sending route to handle file uploads manually.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06ccc22f-0202-44ef-842e-1398da8ca1f8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c4f6adde-b136-457f-ac0c-fcdc03a680db
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/06ccc22f-0202-44ef-842e-1398da8ca1f8/leGOKHM
2025-11-04 16:42:20 +00:00
michaelschal 881a747ebc Update invoice sending to use Multer for file uploads
Replace Busboy with Multer for handling multipart/form-data uploads for the invoice sending API endpoint in `server/routes.ts`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06ccc22f-0202-44ef-842e-1398da8ca1f8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 57dda692-8f64-40f3-b873-418a8c7efa67
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/06ccc22f-0202-44ef-842e-1398da8ca1f8/leGOKHM
2025-11-04 16:38:21 +00:00
michaelschal 1b34e274b9 Add file upload capability to the system
Integrate Busboy to handle multipart/form-data requests for file uploads.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06ccc22f-0202-44ef-842e-1398da8ca1f8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: bfef1078-7f0e-4c03-aedc-d4660547e68a
2025-11-04 15:40:15 +00:00
michaelschal 8c803118a7 Saved your changes before starting work
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06ccc22f-0202-44ef-842e-1398da8ca1f8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: aa1ed600-fe9b-4592-8866-be941903ef4c
2025-11-04 15:33:08 +00:00
michaelschal 4a13ed24f6 Improve error logging and user search functionality for enterprise tasks
Adds detailed log entries for user searches, including success and failure cases, and enhances announcement fetching logic by querying the PostgreSQL DASHBOARD_MESSAGES table.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: dcc2bb67-c5b7-44cd-ab53-25ebb1dd1d09
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:30:19 +00: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 fb6c06d150 Update file upload handling to use native Node.js FormData
Migrate from the 'form-data' npm package to Node.js's built-in 'node:buffer' module for FormData, File, and Blob to resolve dynamic require errors and improve compatibility with newer Node.js versions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: fb46322f-df17-46db-ba41-3f694e6331a9
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 15:08:20 +00:00
michaelschal e9827c333d Add ability to upload files to external webhooks
Import and utilize the 'form-data' library in server/routes.ts to construct and send multipart/form-data payloads to external webhooks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 181f13b7-a0a2-4b4f-989d-214861ea2c19
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:54:28 +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 0f497eb447 Improve error handling for director role access
Fix an issue where users with the director role encounter an error when accessing certain functionalities, while admin roles function correctly.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6e25cf99-6627-4391-aa4b-689f0acef7c9
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:45:39 +00:00
michaelschal bfb69f8e72 Address visual inconsistencies in the user interface
Investigate and resolve visual glitches causing grayed-out lines at the beginning of the interface.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: e41c4ad0-bd40-4298-9fbd-e4517326a95a
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:43:02 +00:00
michaelschal c55ee2aabe Update product sorting to show active items first
Modify the database query in `server/storage.ts` to prioritize active products (status not 'valides' and not processed/stock épuisé) to appear before processed, stock épuisé, or valides products in the results.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 427b5397-73ab-43e6-8938-8421d3c5aef4
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:31:01 +00:00