LogiFlow
172cb7bc0a
Merge pull request #188 from R0m1k3/1.1
...
Remove store selection and simplify announcement creation
2025-08-16 16:52:09 +02:00
michaelschal
ce92323060
Remove store selection and simplify announcement creation
...
Remove the store selection field and associated logic from the announcement creation form and backend API to simplify the process and ensure all announcements are globally applicable.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/CvLQ6E2
2025-08-16 14:47:02 +00:00
LogiFlow
f9933c42e2
Merge pull request #187 from R0m1k3/1.1
...
Update announcement cards to show different message types
2025-08-16 16:36:45 +02:00
michaelschal
ec1fe2284f
Update announcement cards to show different message types
...
Refactor the announcement card component to support new message types (info, warning, error, success) and update form schemas and UI elements accordingly.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/k6mBZF3
2025-08-16 14:36:16 +00:00
LogiFlow
f4bbd8cb75
Merge pull request #186 from R0m1k3/1.1
...
Update announcement system to use new dashboard messages table
2025-08-16 16:13:39 +02:00
michaelschal
e7b33c5325
Update announcement system to use new dashboard messages table
...
Refactors the announcement storage and schema to utilize the new `dashboard_messages` table, renaming fields like `priority` to `type` and `groupId` to `storeId`, and updating sorting logic to reflect the new type system.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/VpUPpsj
2025-08-16 14:11:58 +00:00
LogiFlow
8bd0366824
Merge pull request #185 from R0m1k3/1.1
...
Refine database connections and handle potential errors during startup
2025-08-16 15:58:41 +02:00
michaelschal
2659a48e4e
Refine database connections and handle potential errors during startup
...
Adjust the database connection logic to better distinguish between production and development environments, specifically addressing potential issues with PostgreSQL and Neon connections to prevent startup failures and improve error handling.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/zIqUatC
2025-08-16 13:57:49 +00:00
LogiFlow
4d96c1cad2
Merge pull request #184 from R0m1k3/1.1
...
1.1
2025-08-16 15:38:01 +02:00
michaelschal
b1ea9dcc9b
Ensure PostgreSQL tables are created and data is migrated
...
This commit modifies the database connection logic to prioritize PostgreSQL, introduces a new PostgreSQL initialization script with table creation and test data, and refactors announcement storage to use a global instance.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/zIqUatC
2025-08-16 13:27:09 +00:00
michaelschal
a3889dd088
Add ability for administrators to edit existing announcements
...
Implement update functionality for announcements via a PUT API endpoint, including necessary backend storage and client-side UI adjustments.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/HjMubBV
2025-08-16 13:21:24 +00:00
LogiFlow
958e99de0d
Merge pull request #183 from R0m1k3/1.1
...
1.1
2025-08-16 15:13:53 +02:00
michaelschal
ad396339f0
Update announcement card to show priority and simplify admin actions
...
Refactor AnnouncementCard component to include priority display using Shadcn/ui dialogs and buttons, and move the admin trigger button.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 13:03:49 +00:00
michaelschal
7591d5699e
Update announcement cards to match task card design and functionality
...
Refactors `AnnouncementCard.tsx` to mirror the design and priority display of task cards, introducing new icons and a `getPriorityConfig` function for consistent visual representation of announcement priorities (urgent, important, normal).
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:56:56 +00:00
LogiFlow
0091ac7666
Merge pull request #182 from R0m1k3/1.1
...
1.1
2025-08-16 14:48:50 +02:00
michaelschal
5b6be55904
Remove the 'selected store' notification from the dashboard
...
Remove the badge component that displayed "Magasin sélectionné" when a store was selected by an admin user on the Dashboard page.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:36:14 +00:00
michaelschal
c72e8b920c
Present announcements in a card format similar to task cards
...
Update AnnouncementCard component to display announcements in a card layout, add loading state and conditional fetching.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:35:41 +00:00
michaelschal
ff5908a731
Remove the direct test button from the announcement card
...
Removes the 'Test Direct' button and its associated functionality from the AnnouncementCard component in the client.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:33:20 +00:00
LogiFlow
f72b629d2f
Merge pull request #181 from R0m1k3/1.1
...
Add direct test button to create announcements with simplified valida…
2025-08-16 14:28:47 +02:00
michaelschal
6be4e2a0e4
Add direct test button to create announcements with simplified validation
...
Introduce a direct test button in the AnnouncementCard component for easier debugging and validation testing.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:27:13 +00:00
LogiFlow
325ad58d69
Merge pull request #180 from R0m1k3/1.1
...
Add detailed logging to announcement creation for debugging
2025-08-16 14:24:06 +02:00
michaelschal
3134732cb2
Add detailed logging to announcement creation for debugging
...
Add extensive console logging on both client and server to aid in debugging announcement creation issues, including validation checks and user role verification.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:22:50 +00:00
LogiFlow
9b77d79d97
Merge pull request #179 from R0m1k3/1.1
...
Add feedback and error handling for creating new announcements
2025-08-16 14:18:06 +02:00
michaelschal
d7aed9dc25
Add feedback and error handling for creating new announcements
...
Implement toast notifications for successful announcement creation and display detailed error messages from the API response if creation fails.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:17:41 +00:00
LogiFlow
4c7a235815
Merge pull request #178 from R0m1k3/1.1
...
Refactor announcement system to use in-memory storage
2025-08-16 14:12:24 +02:00
michaelschal
f2d056ee5d
Refactor announcement system to use in-memory storage
...
Move announcement data management from SQL to an in-memory solution with a limit of 5 entries.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/aVFsaJG
2025-08-16 12:11:56 +00:00
LogiFlow
e39d25c315
Merge pull request #177 from R0m1k3/1.1
...
Fix error when accessing announcements and update production scripts
2025-08-16 14:06:01 +02:00
michaelschal
48b784d0f1
Fix error when accessing announcements and update production scripts
...
Updates SQL scripts and a bash script to correctly create the `announcements` table in production, resolving a "relation does not exist" error.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 12:05:12 +00:00
LogiFlow
4bccea202c
Merge pull request #176 from R0m1k3/1.1
...
Update Dockerfile to fix entrypoint error and improve startup
2025-08-16 14:02:58 +02:00
michaelschal
34e303c6e4
Update Dockerfile to fix entrypoint error and improve startup
...
Remove the custom entrypoint script from the Dockerfile, disabling its execution on container startup and allowing the application to start directly.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 12:02:07 +00:00
LogiFlow
2bacf463f9
Merge pull request #175 from R0m1k3/1.1
...
1.1
2025-08-16 13:53:36 +02:00
michaelschal
d45d3562ba
Created a checkpoint
...
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 11:40:57 +00:00
michaelschal
0dc7ef49c0
Add a dedicated script for creating missing announcement tables
...
Introduce a new script `fix-announcements-only.sh` to specifically create the `announcements` table if it does not exist, streamlining the migration process for this critical component.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 11:28:32 +00:00
michaelschal
74e7eb8118
Automate database table creation during Docker updates
...
Add scripts and Dockerfile modifications to ensure database tables are automatically created or updated when the Docker image is rebuilt and deployed.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 11:25:04 +00:00
michaelschal
e8007d52b1
Provide instructions to create missing database table for announcements
...
Add a new SQL script and documentation to guide users in creating the `announcements` table in their production environment to resolve the "relation does not exist" error.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 11:22:40 +00:00
LogiFlow
0b6d2461f9
Merge pull request #174 from R0m1k3/1.1
...
Create announcement table to fix production database errors
2025-08-16 13:13:23 +02:00
michaelschal
506b7681d0
Create announcement table to fix production database errors
...
Create the 'announcements' table in the production PostgreSQL database using a SQL script to resolve "relation 'announcements' does not exist" errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 11:12:46 +00:00
LogiFlow
8b63c4d9aa
Merge pull request #173 from R0m1k3/1.1
...
Provide instructions to fix missing announcement table in production
2025-08-16 12:52:42 +02:00
michaelschal
9a5060baa5
Provide instructions to fix missing announcement table in production
...
Add a new file `INSTRUCTIONS_PRODUCTION.md` detailing steps to resolve the "relation "announcements" does not exist" error in the production environment, along with a SQL script `fix_production_announcements.sql` to create the missing table.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 10:50:24 +00:00
LogiFlow
60ef9e1328
Merge pull request #172 from R0m1k3/1.1
...
Add announcement table to database for storing important information
2025-08-16 12:47:26 +02:00
michaelschal
b80af1d2d8
Add announcement table to database for storing important information
...
Implement database migration scripts and SQL to create the 'announcements' table with relevant columns, constraints, and indexes. Also, adjust frontend component logic for handling 'all' store selection.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 10:42:31 +00:00
LogiFlow
d717f02577
Merge pull request #171 from R0m1k3/1.1
...
1.1
2025-08-16 12:38:10 +02:00
michaelschal
aefc519045
Add initial database structure for new installations
...
Create the complete `init.sql` file to set up all necessary database tables for a fresh application deployment.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 10:10:34 +00:00
michaelschal
30cfc4b3de
Introduce an information system for important announcements
...
Implement a new announcement system with priority levels, role-based access, and store-specific filtering, replacing the customer order statistics card on the dashboard.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
2025-08-16 09:54:34 +00:00
LogiFlow
64106407b0
Merge pull request #170 from R0m1k3/1.1
...
Ensure tasks display correctly for selected stores by admins
2025-08-16 10:30:03 +02:00
michaelschal
5688450117
Ensure tasks display correctly for selected stores by admins
...
Fixes an issue where admin users had to refresh the page to see tasks filtered by their selected store. This change ensures the store selection is properly initialized and validated before fetching tasks, preventing stale data and improving the user experience. The backend task fetching logic is also updated to correctly handle store filtering.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/OvGzl7P
2025-08-16 07:48:04 +00:00
LogiFlow
d8ff876ce3
Merge pull request #169 from R0m1k3/1.1
...
Fix issue where multiple page reloads are needed to see selected stor…
2025-08-16 09:42:20 +02:00
michaelschal
9d9344f52e
Fix issue where multiple page reloads are needed to see selected store's tasks
...
Update React Query cache invalidation to include `/api/tasks` and ensure automatic cache invalidation when the selected store changes.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-16 07:41:56 +00:00
LogiFlow
67a2236942
Merge pull request #168 from R0m1k3/1.1
...
1.1
2025-08-16 09:37:55 +02:00
michaelschal
15cf7f32a1
Restored to 'c6c9369fcb5c7d3e28183ea74a5639cbc7677de6'
...
Replit-Restored-To: c6c9369fcb
2025-08-16 07:37:28 +00:00