michaelschal
5ee43c8357
Update database connection and storage for production
...
Adjusts database connection to use DATABASE_URL for production and switches to PostgreSQL storage when NODE_ENV is 'production'.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a388004f-01c5-42b1-b1d1-f18daf8bdd0c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/a388004f-01c5-42b1-b1d1-f18daf8bdd0c/h5q2Xzp
2025-08-06 11:27:47 +00:00
michaelschal
a6b0719ebf
Improve clarity and appearance of sales history details
...
Update the styling of the 'categorie' column in the SalesHistory component to use a more visually distinct and informative badge, and adjust text sizes for better readability across product details in the sales history view.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a388004f-01c5-42b1-b1d1-f18daf8bdd0c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/a388004f-01c5-42b1-b1d1-f18daf8bdd0c/pSitqax
2025-08-06 11:24:12 +00:00
michaelschal
01c005adea
Display all product details for sales in history
...
Modify the sales history component to correctly display the type, category, and quantity for each product within a sale, and update the storage to return sales with their associated products.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a388004f-01c5-42b1-b1d1-f18daf8bdd0c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/a388004f-01c5-42b1-b1d1-f18daf8bdd0c/pSitqax
2025-08-06 11:21:11 +00:00
michaelschal
b9ae743ffb
Update sales records to include address and identification details
...
Correctly map `typeIdentite` to `documentType` and `numeroIdentite` to `documentNumber` in sales storage, and add the `adresse` field to the PostgreSQL schema for comprehensive record-keeping.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a388004f-01c5-42b1-b1d1-f18daf8bdd0c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/a388004f-01c5-42b1-b1d1-f18daf8bdd0c/rtjaOGR
2025-08-06 11:18:45 +00:00
michaelschal
40c7975bbc
Update data management to use in-memory storage
...
Modify the application to use an in-memory storage solution, replacing the PostgreSQL database connection and data purging logic. This change impacts session management and data operations, introducing a fallback mechanism for when the database is unavailable.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a388004f-01c5-42b1-b1d1-f18daf8bdd0c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/a388004f-01c5-42b1-b1d1-f18daf8bdd0c/ekgWmFH
2025-08-06 11:15:15 +00:00
michaelschal
430ab669aa
Add customer order tracking and management features to the platform
...
Adds customerOrders and customerOrderProducts tables to shared/schema.ts.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-25 11:10:35 +00:00
michaelschal
e03165bcc0
Remove obsolete files and tidy up project directory
...
Deletes unnecessary production debug files, migration scripts, and alternative Docker files for a cleaner project structure.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-23 15:09:11 +00:00
michaelschal
8a06bb81ef
Confirm resolution of key production issues and improved system stability
...
Update replit.md to document fixes for admin user list, backups, database permissions, and session management.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-23 15:07:25 +00:00
michaelschal
65ffa77fd0
Add image to illustrate a specific element of the fireworks sales system
...
Adds an asset file for visual illustration purposes.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-23 15:06:46 +00:00
michaelschal
d7f7e6a0fd
Provide tools to diagnose user list visibility issue in production
...
Adds a debug script and markdown guide to troubleshoot admin user access problems.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-23 15:05:26 +00:00
michaelschal
2fe3385129
Improve store management and fix admin permissions within the application
...
Fixes store selection, sales creation, API routes and delete permissions using administrator role.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-19 17:20:19 +00:00
michaelschal
fd2ef4f7a1
Enable administrators to delete sales and manage store selections
...
Fixes sales deletion route and updates admin user role in the database.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/gfGF2TH
2025-07-19 17:10:19 +00:00
michaelschal
be78e1497c
Ensure sales are recorded to the correct store based on user selection
...
Fixes sales creation logic to correctly send storeId and updates admin role check.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/mXpFFH6
2025-07-19 16:48:28 +00:00
michaelschal
c909650566
Give administrators access to all stores and fix store selector
...
Updates user role checks and store access logic in /api/stores route, adds a fix script.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/496YcVj
2025-07-19 16:17:15 +00:00
michaelschal
87722d8132
Ensure the admin user always has full access to manage the application
...
Fixes admin role assignment, adds SQL scripts for manual correction, and provides debugging tools for production issues.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/nHdBv6m
2025-07-19 15:50:22 +00:00
michaelschal
a1ff814f6b
Enable admin features on the live website after fixing user permissions
...
Adds SQL script to correct admin user role in the production database.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/w6ajeyy
2025-07-19 15:40:27 +00:00
michaelschal
411ecd551d
Show the proper application startup, backup and purge information messages
...
Display startup messages for express server, backup scheduler, and purge process.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/w6ajeyy
2025-07-19 15:27:36 +00:00
michaelschal
f8fd74574d
Grant admin users access to admin features on the main production site
...
Updates admin role checks in Dashboard.tsx to 'administrator' for consistency.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/0qBys1I
2025-07-19 15:03:21 +00:00
michaelschal
4a7edba1cb
Update user role for administrator accounts, ensuring proper access
...
Updates the admin role from "admin" to "administrator" in both the frontend (Dashboard.tsx) and backend (storage.ts) to fix access issues.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/Sg6WIVT
2025-07-19 14:48:29 +00:00
michaelschal
bf09dcb56b
Fix administrator access and improve production deployment reliability
...
Corrects admin role inconsistencies and updates routes to use 'administrator' role.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/9GNa2aH
2025-07-19 14:44:26 +00:00
michaelschal
58d8c7a449
Improve data handling and fix import issues, enhancing system stability
...
Fixes PostgreSQL SSL config, corrects backup import timestamp conversion, and adds log file.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/0Ex3Oj1
2025-07-19 14:38:37 +00:00
michaelschal
205e4f03c8
Ensure application connects to the database correctly in Docker environment
...
Fixes "The server does not support SSL connections" by disabling SSL in DATABASE_URL for local Docker deployments and in server/db.ts.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/QW0MKzv
2025-07-19 14:33:03 +00:00
michaelschal
f7972c66da
Improve application startup reliability and database migration handling
...
Simplifies the Dockerfile, adds robust migration error handling, and ensures application startup.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/MSYevTt
2025-07-19 14:24:09 +00:00
michaelschal
2dd29e1602
Fix Docker entrypoint issues and improve containerization approach
...
Refactors the Dockerfile to use an inline script and addresses file permission issues for a more robust container build.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/jJHXzkQ
2025-07-19 14:15:16 +00:00
michaelschal
dbcef0133a
Resolve Docker issues preventing the application from starting correctly
...
Fixes "docker-entrypoint.sh not found" and improves Dockerfile for proper entrypoint execution and adds docker-test-quick.sh.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/DWp0Qa4
2025-07-19 14:10:39 +00:00
michaelschal
55e4952e74
Improve deployment process and fix critical Docker issues for production
...
Fixes Docker entrypoint issues, improves deployment guide, and adds a test script.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/tRJufBX
2025-07-19 14:07:26 +00:00
michaelschal
c68e72fa2a
Improve camera functionality and identify potential issues in production
...
Adds camera diagnostics and improves video constraints for production use in useSimpleCamera.tsx and cameraDebug.ts.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/tRJufBX
2025-07-19 14:00:34 +00:00
michaelschal
a939b1068d
Update the application's production environment for enhanced performance
...
Refactors the Docker setup, upgrades Node.js and PostgreSQL versions, and improves security.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/6nnsA2m
2025-07-19 13:46:47 +00:00
michaelschal
de8434c508
Fix camera issues and improve error handling when taking pictures
...
Updates camera access logic with fallbacks, fixes browser compatibility, and enhances error management.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/6nnsA2m
2025-07-19 13:38:42 +00:00
michaelschal
bc632890e5
Refine display of ticket photo label for a more polished interface
...
Removes the "(optionnel)" text from the ticket photo label in `NewSaleFormMulti.tsx` and updates `replit.md`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/Rb1L0tF
2025-07-19 13:35:52 +00:00
michaelschal
b28291496c
Set the default quantity of products sold to one during sales entry
...
Sets default value of 'quantite' field to "1" in NewSaleForm.tsx and NewSaleFormMulti.tsx components.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/Rb1L0tF
2025-07-19 13:34:01 +00:00
michaelschal
ba643b557a
Improve photo capture process with error handling and browser support
...
Implement enhanced camera access with browser compatibility checks and error handling in useSimpleCamera hook and NewSaleFormMulti component.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/N4gXSMv
2025-07-19 13:20:11 +00:00
michaelschal
4254ebf94a
Remove all application code and styles to address app failure
...
Remove all React components, CSS styles, and entry points to resolve runtime errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/ZpUFY2T
2025-07-19 13:18:02 +00:00
michaelschal
ae1fd208c2
Saved your changes before starting work
...
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
2025-07-19 13:16:10 +00:00
michaelschal
a0fd8e0a25
Restore multi-product sales feature, ensuring stability and proper operation
...
Reverts to a stable version of the multi-product sales system with bug fixes.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dba29e89-b855-4de3-a5a0-765e63b7aa34
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/dba29e89-b855-4de3-a5a0-765e63b7aa34/tPD4UrX
2025-07-19 13:09:47 +00:00
michaelschal
f008f3f905
Resolve issues preventing the application from starting correctly
...
Enable SSL for production database connections and replace CameraModal component.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dba29e89-b855-4de3-a5a0-765e63b7aa34
2025-07-19 13:08:57 +00:00
michaelschal
e38d967015
Restore camera functionality and update new sales form component
...
Refactors CameraModal.tsx to restore camera functionality, updates NewSaleForm to NewSaleFormMultiProduct in FireworksApp.tsx.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c7151ec8-4e6b-4fcf-b628-65b094ac18fd/PgD91fN
2025-07-19 13:07:03 +00:00
michaelschal
d1f3fced74
Improve photo capture and product entry in sales form
...
Refactors CameraModal and NewSaleForm components to streamline photo capture and product entry using React hooks and react-hook-form.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c7151ec8-4e6b-4fcf-b628-65b094ac18fd/URbRU29
2025-07-19 13:05:14 +00:00
michaelschal
90e7193682
Improve camera functionality and integrate it into the product forms
...
Refactors camera modal to use a custom hook for simplified photo capture logic across NewSaleForm and NewSaleFormMultiProduct components.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c7151ec8-4e6b-4fcf-b628-65b094ac18fd/URbRU29
2025-07-19 13:02:06 +00:00
michaelschal
b3e003b3d6
Restore ability to record sales of multiple items and improve camera access
...
Reintroduces multi-product sales functionality and replaces SimpleCameraModal with a file upload fallback.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c7151ec8-4e6b-4fcf-b628-65b094ac18fd/0c6Tusu
2025-07-19 12:57:28 +00:00
michaelschal
4be6f23f1f
Improve how payment options and ID types are handled in the sales form
...
Refactors IDENTITY_TYPES and PAYMENT_METHODS to string arrays and adds keys to SelectItem components in NewSaleFormMultiProduct.tsx.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/c7151ec8-4e6b-4fcf-b628-65b094ac18fd/0c6Tusu
2025-07-19 12:55:09 +00:00
michaelschal
2ad8acfb48
Enable the recording of sales with multiple products at the same time
...
Implements a new form component `NewSaleFormMultiProduct.tsx` with React Hook Form and Zod for multi-product sales and replaces the old form.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
2025-07-19 12:47:58 +00:00
michaelschal
0821b70b7d
Restored to '3891ae828b859a29b86a84154ffef43740610335'
...
Replit-Restored-To: 3891ae828b
2025-07-19 12:37:14 +00:00
michaelschal
2f847dd333
Saved your changes before rolling back
...
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c7151ec8-4e6b-4fcf-b628-65b094ac18fd
2025-07-19 12:37:06 +00:00
michaelschal
ad034134d0
Refine form appearance and labels to improve the user experience
...
Updates the NewSaleForm component to enhance UI elements and adjust background colors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/Z9TXgng
2025-07-19 12:36:53 +00:00
michaelschal
e0f15ad15d
Set the default quantity to one when adding new products to a sale
...
Sets the default `quantite` value to '1' in `NewSaleForm.tsx` and updates the input placeholder.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/J2iBQMm
2025-07-19 12:29:03 +00:00
michaelschal
76d47c72c7
Mark identity and receipt photos as optional on the new sales form
...
Update NewSaleForm.tsx and replit.md to reflect optional identity and receipt photos.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/YqEkTym
2025-07-19 12:27:59 +00:00
michaelschal
b2ee16b1c3
Enhance backup and restoration with SQL format for improved data integrity
...
Migrates backup/restore from JSON to SQL using pg_dump/psql, updating the admin UI and scheduler.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/e5OOjbh
2025-07-19 12:25:38 +00:00
michaelschal
3891ae828b
Enable recording of multiple products in each fireworks sale registry
...
Refactors NewSaleForm to handle an array of products, and removes NewSaleFormMulti.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/4xOaQU9
2025-07-19 12:12:15 +00:00
michaelschal
45283de6c6
Improve data handling and ensure database integrity for production deployment
...
Fixes image handling in Excel exports, corrects schema inconsistencies, and adds a SQL script for production data integrity verification.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/6C2qH2a
2025-07-19 11:51:27 +00:00
michaelschal
d2498aefd2
Improve sales data export to correctly include images in spreadsheet
...
Refactors the exportToExcel function to use exceljs, adding image support and fixing data formatting for spreadsheet generation.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/CurNnXi
2025-07-19 11:46:03 +00:00
michaelschal
39c09e328b
Add separate download for photos when exporting sales data to Excel
...
Implements separate photo downloads and alerts the user when exporting sales data to Excel using `downloadImage` and `downloadPhotosForSales` functions in `client/src/lib/export.ts`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/3f8I7WU
2025-07-19 11:30:54 +00:00
michaelschal
0aa27fdbd2
Improve sales data exports with file size and availability information
...
Refactors exportToExcel function in export.ts to include photo size and availability using xlsx library.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/TZiycnz
2025-07-19 11:29:25 +00:00
michaelschal
91f5c13f33
Add photo data to Excel exports and correct database column mappings
...
Adds a "Photos" sheet to Excel exports with links to images and fixes DB column mappings for sales photos.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/z4eyzzt
2025-07-19 11:28:02 +00:00
michaelschal
58a06455f6
Ensure photos are correctly displayed when viewing sales data by store
...
Maps snake_case photo column names to camelCase and adds debug logging to sales retrieval in `server/storage.ts`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/C4b1w7i
2025-07-19 11:22:13 +00:00
michaelschal
39d409203d
Add extensive logging to sales data to troubleshoot missing images
...
Adds debug logs to getAllSales to track sales, photos, and total counts.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/iRu76HV
2025-07-19 11:20:36 +00:00
michaelschal
ec702af70b
Standardize naming for identity verification photo fields in the database
...
Renames `photo_recto`, `photo_verso`, and `photo_ticket` columns to `photoRecto`, `photoVerso`, and `photoTicket` in the DatabaseStorage class.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/odd0JPx
2025-07-19 11:18:34 +00:00
michaelschal
47c750dc93
Investigate why sale #17 's photos are missing from reports
...
Adds debug logging to investigate missing photos in PDF/Excel exports for sale ID 17.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/JR6WwoN
2025-07-19 11:16:41 +00:00
michaelschal
1c58d8a406
Investigate issue preventing application functionality and fix errors
...
Adds debug logging to sales history and database storage for troubleshooting.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/dVex23s
2025-07-19 11:14:41 +00:00
michaelschal
bdeeced6c6
Include customer photos in exported sales records for better documentation
...
Fix: Corrected property names in DatabaseStorage to include customer photos in exports.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/A6ZFmvr
2025-07-19 11:13:03 +00:00
michaelschal
a586798a5d
Provide users a detailed sales report in an easily accessible file
...
Implements sales data export to .xlsx format using the xlsx library and updates related dependencies.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/uQbgywo
2025-07-19 11:11:15 +00:00
michaelschal
c3c1616e04
Display images of documents within sales histories in the PDF reports
...
Implements image embedding within jsPDF reports in SalesHistory.tsx, adding error handling and page breaks.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/7byo1CD
2025-07-19 11:08:23 +00:00
michaelschal
a46a0c63a4
Enhance PDF export to include full sales information and improve layout
...
Modify SalesHistory component to include complete sales data in PDF export using jsPDF.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/lMVWh0V
2025-07-19 11:03:35 +00:00
michaelschal
933ea44342
Improve sales data exports to include individual product details
...
Fixes the sales history and CSV exports to accurately represent each product within a sale.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/KcImq5w
2025-07-19 10:39:08 +00:00
michaelschal
e3cd2f890c
Show all purchased products in the sales details and fixes missing sales
...
Implements `getAllSales` with grouped products and updates `SaleDetailsModal` to display multiple products.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/MCw6J3V
2025-07-19 10:37:04 +00:00
michaelschal
2256a342ea
Add image to enhance document and ticket photo upload instructions
...
Adds image_1752921153443.png to the attached_assets directory.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/wIYHD0z
2025-07-19 10:33:52 +00:00
michaelschal
e91b8f1a8b
Enable support for multiple products within a single sale
...
Implements multi-product sales functionality by adding a `sale_products` table, updating the sales form, and modifying server-side logic.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/58t7aEc
2025-07-19 10:10:41 +00:00
michaelschal
54595e75df
Ensure the application runs correctly in the production environment
...
Fixes `import.meta.dirname` issue in Node.js 18 by patching `/app/dist/index.js` with `sed` in `docker-entrypoint-simple.sh`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/db75d429-4075-4348-b179-bb283fb6d9d3.jpg
2025-07-13 13:35:01 +00:00
michaelschal
5048b3b466
Improve deployment reliability by streamlining the application startup process
...
Updates the Dockerfile and entrypoint to remove Node.js 18 compatibility workaround and fixes cache corruption issues.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/db75d429-4075-4348-b179-bb283fb6d9d3.jpg
2025-07-13 13:26:16 +00:00
michaelschal
0994a3282a
Add documentation to help users with the Docker installation process
...
Include image troubleshooting steps for Docker installation errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/db75d429-4075-4348-b179-bb283fb6d9d3.jpg
2025-07-13 13:20:28 +00:00
michaelschal
816413c789
Add picture upload capabilities to the sales form for document attachments
...
Implements photo upload fields (recto, verso, ticket) in the NewSaleForm.tsx component.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/db75d429-4075-4348-b179-bb283fb6d9d3.jpg
2025-07-13 13:17:25 +00:00
michaelschal
d1a3bfed23
Add reference image for improving photo upload guidance for users
...
Adds an example image to assist users in uploading compliant photos.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430
2025-07-13 13:05:27 +00:00
michaelschal
04e8eea3bd
Restored to 'afb7a90e0a9fbf19dfd193a47ef6054a853fdd60'
...
Replit-Restored-To: afb7a90e0a
2025-07-13 13:04:02 +00:00
michaelschal
55fb5abd45
Connect application to external network for improved deployment flexibility
...
Removes the internal regisflow_network and configures the docker-compose.yml to use the external nginx_default network.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
2025-07-13 12:31:33 +00:00
michaelschal
a6d741fc53
Improve deployment setup by adding network configurations and production files
...
Adds Docker network configuration, production compose file, and documentation updates in replit.md.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
2025-07-13 12:23:55 +00:00
michaelschal
c041256bce
Update the application to use port 3000 across all services
...
Adjusts port configurations from 5000 to 3000 in .replit, Dockerfile, docker-compose.yml, replit.md and server/index.ts for consistent service deployment.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
2025-07-13 12:12:20 +00:00
michaelschal
39cc269d29
Improve application startup process and fix potential database issues
...
Refactors Dockerfile and entrypoint script for enhanced reliability, debugging, and single database migration.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
2025-07-13 12:02:30 +00:00
michaelschal
037e7e2e49
Improve application deployment and database connection reliability
...
Refactors Docker configuration and entrypoint script for robust PostgreSQL connectivity and health checks.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
2025-07-13 11:40:17 +00:00
michaelschal
766b451768
Improve the application's containerization and startup process
...
Refactors Dockerfile and entrypoint script for enhanced reliability and Node.js 18 compatibility, including database migration.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
2025-07-13 11:34:45 +00:00
michaelschal
afb7a90e0a
Update photo properties to ensure correct data flow between front and back
...
Refactor photo property names in `Sale` and `FormData` types to align with the database and API conventions.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/34ee2cfd-a3a7-4fbf-9b2b-8de06d7b79b5.jpg
2025-07-13 10:42:35 +00:00
michaelschal
9016a564ec
Remove unnecessary deployment guides and scripts from the project
...
This commit removes obsolete deployment documentation, shell scripts, and backup files.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/ce49b69a-6c08-46b0-9012-fdaae8591d14.jpg
2025-07-11 19:05:12 +00:00
michaelschal
9d973c12e4
Ensure photo capture and submission process is fully functional
...
Remove debug logs, update field mapping, and verify photo capture works correctly.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/ce49b69a-6c08-46b0-9012-fdaae8591d14.jpg
2025-07-11 19:03:05 +00:00
michaelschal
6d6d8a128a
Add client-side logging to help debug issues with photo ticket submissions
...
Implements client-side console logs to debug photoTicket data in NewSaleForm.tsx during POST requests to the /api/sales endpoint.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4099a3be-c3a6-4039-915b-a1ce8a3727fa.jpg
2025-07-11 18:59:58 +00:00
michaelschal
58d24e0cfb
Add debugging information to track down missing sales ticket photos
...
Adds console logs to inspect request body and identify missing photoTicket data during sales creation.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4099a3be-c3a6-4039-915b-a1ce8a3727fa.jpg
2025-07-11 18:58:14 +00:00
michaelschal
f9e44b06bb
Improve the display of sale details in the information modal window
...
Refactors SaleDetailsModal.tsx to enhance the visual presentation with borders and spacing.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4099a3be-c3a6-4039-915b-a1ce8a3727fa.jpg
2025-07-11 18:52:54 +00:00
michaelschal
08e3258a32
Improve photo handling by ensuring images are correctly saved in the database
...
Removes debug logs and ensures correct mapping of photo data from request body to database columns.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e6f3a8c1-bdaf-4251-a9d4-9326e97ede4b.jpg
2025-07-11 18:49:16 +00:00
michaelschal
c532a2c946
Ensure receipt photos are properly saved when creating new sales records
...
Fix: Map camelCase photo names to snake_case in routes.ts for correct database storage.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/183bde94-866e-4679-97fd-7df41a964b4d.jpg
2025-07-11 18:39:31 +00:00
michaelschal
25d275dfea
Add capture of cash register receipt image to the new sales submission form
...
Implement 'photoTicket' field in NewSaleForm.tsx to capture cash register receipt images during sales creation.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/550c2a92-8c6d-4d21-995a-767c76be93c9.jpg
2025-07-11 18:34:43 +00:00
michaelschal
dab91201ff
Prepare the application for deployment with photo capture and sales details
...
Removes debug photo display and updates replit.md to reflect production readiness.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/584bf76b-cd3a-45fb-a667-85c62de7fd5e.jpg
2025-07-11 18:31:11 +00:00
michaelschal
181945d6f5
Improve data display and correct date filtering in sales registry
...
Adds photo debug information and fixes date range filtering in the sales query using timestamps in `SaleDetailsModal.tsx` and `server/storage.ts`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/584bf76b-cd3a-45fb-a667-85c62de7fd5e.jpg
2025-07-11 18:29:34 +00:00
michaelschal
bfdb9cf1fa
Update database schema to ensure consistency in data storage
...
Standardize naming conventions for photo fields in the sales table schema using Drizzle ORM.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e8963daf-6ce4-40c7-aab9-e1134317a31e.jpg
2025-07-11 18:28:15 +00:00
michaelschal
2265ddcf0a
Show the images in the sales history modal and correct date display
...
Fixes image display and date formatting issues in SaleDetailsModal.tsx.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e8963daf-6ce4-40c7-aab9-e1134317a31e.jpg
2025-07-11 18:23:58 +00:00
michaelschal
9698bb835e
Add ticket photo feature and ensure application is production ready
...
Adds 'photo_ticket' column to the sales table in init.sql and implements a production readiness validation script.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/7df9e24f-d78b-4589-9a08-c70e02d6d7d9.jpg
2025-07-11 18:16:38 +00:00
michaelschal
4f04428dea
Add option to include and display a photo of the sales receipt
...
Implements `photoTicket` field in `Sale` and `FormData` types, adds UI elements in `NewSaleForm` and `SaleDetailsModal` components, and updates schema.ts.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/7df9e24f-d78b-4589-9a08-c70e02d6d7d9.jpg
2025-07-11 18:15:16 +00:00
michaelschal
e48337925c
Improve photo handling and fix data transfer issues during sales recording
...
Removes the camera test button and increases the request size limit in Express to address PayloadTooLargeError.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/7df9e24f-d78b-4589-9a08-c70e02d6d7d9.jpg
2025-07-11 18:11:37 +00:00
michaelschal
a6a188e68f
Implement basic camera feature to allow users to capture identity photos
...
Replaces `useCamera` with `useSimpleCamera` and introduces `SimpleCameraModal` for capturing photos.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/9ada347d-ab83-40f0-9a0e-5fa4d829189e.jpg
2025-07-11 18:02:54 +00:00
michaelschal
97c6f3ec1e
Improve camera reliability and diagnose capture issues more effectively
...
Adds detailed logging and retry logic to address camera startup and dimension detection failures in CameraModal and useCamera.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/eb403944-9342-469a-8dd7-95b8b1a1cf40.jpg
2025-07-11 17:55:49 +00:00
michaelschal
ed38c25c9f
Improve camera functionality and address issues with blank image display
...
Enhances CameraModal and useCamera hook with autoplay, error handling, and metadata checks to resolve blank image issues.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/957e99ed-c3d1-4917-a66f-70911fc0ed4b.jpg
2025-07-11 17:51:04 +00:00
michaelschal
c426abfc33
Improve camera function to reliably capture photo with valid dimensions
...
Adds a dimension check with a timeout to `useCamera.tsx` to ensure the video stream is ready before capturing.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/05f4db99-14a1-408b-902a-26488120fee2.jpg
2025-07-11 17:46:03 +00:00
michaelschal
8d2314b22d
Enable one-click deployment with validated production configurations
...
Adds Replit Deployment integration and validates production configurations.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/7912c80e-aefe-4180-8ad6-c76c5a791f65.jpg
2025-07-11 17:42:11 +00:00