michaelschal
287b2aa702
Order advertisements by their number from smallest to largest
...
Update server/storage.ts to sort publicities by pubNumber in ascending order using asc(publicities.pubNumber).
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2e1318c6-77b3-4174-b8c7-432d781590ed
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/2e1318c6-77b3-4174-b8c7-432d781590ed/D0szOHB
2025-08-21 10:22:17 +00:00
michaelschal
07f64d4713
Sort advertisements by publication number in descending order
...
Update server/storage.ts to sort publicities by `pubNumber` in descending order instead of `createdAt`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2e1318c6-77b3-4174-b8c7-432d781590ed
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/2e1318c6-77b3-4174-b8c7-432d781590ed/XToCG0X
2025-08-21 10:14:08 +00:00
michaelschal
58c62c3c8d
Prevent deliveries from linking to orders from different stores
...
Implement validation to ensure that a delivery is only linked to an order belonging to the same store, preventing cross-store order linking in the delivery module.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2e1318c6-77b3-4174-b8c7-432d781590ed
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/2e1318c6-77b3-4174-b8c7-432d781590ed/zdg8r7D
2025-08-21 10:02:39 +00:00
michaelschal
cca9942178
Fix calendar data filtering for all user roles
...
Apply store filtering to the calendar view for all user roles, resolving issues with persistent data display after reload.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 15f19c36-9aac-46a4-a181-3dc5f496fabd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/15f19c36-9aac-46a4-a181-3dc5f496fabd/6vGI9xw
2025-08-20 10:03:42 +00:00
michaelschal
e98abae9fe
Fix calendar view to correctly filter stores for all user roles
...
Adjusted the calendar page logic to apply store filtering for all user roles, not just administrators.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 15f19c36-9aac-46a4-a181-3dc5f496fabd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/15f19c36-9aac-46a4-a181-3dc5f496fabd/s75PPM5
2025-08-20 10:00:03 +00:00
michaelschal
9dbb5e0768
Ensure linked orders are marked as planned when deliveries are updated
...
Correctly update order status to 'planned' when a delivery is linked or edited in the calendar, addressing an issue where orders were not transitioning to the planned state.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 15f19c36-9aac-46a4-a181-3dc5f496fabd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/15f19c36-9aac-46a4-a181-3dc5f496fabd/s75PPM5
2025-08-20 09:51:58 +00:00
michaelschal
20efd9251e
Ensure all users can view relevant data by filtering it by their selected store
...
Fix data fetching logic to correctly apply store filtering for all user roles, and add an alert for managers/directors if no store is selected.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 15f19c36-9aac-46a4-a181-3dc5f496fabd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/15f19c36-9aac-46a4-a181-3dc5f496fabd/H1nJA1b
2025-08-20 08:58:29 +00:00
michaelschal
46de48f459
Make sure directors and managers see correct store data
...
Fixes an issue where directors and managers might see data from multiple stores incorrectly. Ensures roles with limited store access only view their designated information and prompts explicit store selection when no store is chosen. Updates the UI to correctly display store selectors based on user roles. Also adds cache invalidation for user data upon authentication updates and refines API filtering for orders and deliveries to respect user roles and store selections.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 15f19c36-9aac-46a4-a181-3dc5f496fabd
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-08-20 08:46:04 +00:00
michaelschal
c1b5d66f1e
Remove rounded corners from task modals and restore the close button
...
Update task modals to have square corners and reintroduce the close button in the top-right corner for both creation and editing.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7bae60c-959e-464e-9a81-d3f674984466
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d7bae60c-959e-464e-9a81-d3f674984466/7Rj2nWl
2025-08-19 12:56:29 +00:00
michaelschal
31f4cc3b00
Simplify task modal by removing redundant cancel button
...
Remove duplicate "Annuler" button from the Task creation/editing modal to improve UI clarity.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7bae60c-959e-464e-9a81-d3f674984466
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d7bae60c-959e-464e-9a81-d3f674984466/S7zPZtF
2025-08-19 12:49:30 +00:00
michaelschal
fe20a21885
Remove rounded corners from dialogs and task input fields
...
Update DialogContent component to remove rounded corners by setting `rounded-none` class. Modify TaskFormInline component in Tasks.tsx to remove `borderRadius: '6px'` and set `borderRadius: '0px'` for various input elements and buttons. Also, change the default value of the 'assignedTo' input field from 'admin' to an empty string.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7bae60c-959e-464e-9a81-d3f674984466
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d7bae60c-959e-464e-9a81-d3f674984466/JW835E1
2025-08-19 12:45:23 +00:00
michaelschal
f41e33c896
Update task creation form to remove rounded corners and default assignee
...
Remove rounded corners from form elements and set the default "assigned to" field to be empty in the task creation and editing modals.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7bae60c-959e-464e-9a81-d3f674984466
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d7bae60c-959e-464e-9a81-d3f674984466/16EhXFp
2025-08-19 12:40:44 +00:00
michaelschal
2d265a71da
Update calendar to use white backgrounds for day headers and lighter gray for separators
...
Modify CalendarGrid.tsx to apply white background to day headers and lighter gray to grid separators.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7bae60c-959e-464e-9a81-d3f674984466
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d7bae60c-959e-464e-9a81-d3f674984466/Hzw8izO
2025-08-19 11:54:59 +00:00
michaelschal
15dc6246ba
Align detail modals across orders, deliveries, and calendar
...
Update Deliveries and Orders pages to use a unified data structure for detail modals, ensuring consistent information display with the Calendar module.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d7bae60c-959e-464e-9a81-d3f674984466
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d7bae60c-959e-464e-9a81-d3f674984466/PdrdCCE
2025-08-19 11:44:39 +00:00
michaelschal
f407cdceb7
Improve task feedback and show scheduled tasks to directors
...
Replace alerts with toast notifications for task operations and grant directors visibility into scheduled tasks, previously only visible to admins.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/IUKNI3f
2025-08-19 11:35:36 +00:00
michaelschal
90480201ee
Improve task date handling to prevent errors
...
Update task storage logic to correctly format and handle date values for PostgreSQL, preventing potential 500 errors caused by type mismatches and incorrect date parsing.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/U0y2tJ3
2025-08-19 11:28:00 +00:00
michaelschal
24b7d67745
Improve task update logging and handle date formatting errors
...
Refine error logging in task update routes and storage, and adjust date handling to correctly process null or empty date strings, preventing runtime errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/mibRh7v
2025-08-19 11:23:54 +00:00
michaelschal
c3f08bb788
Add debugging tools to test production endpoints and diagnose issues
...
Add a new Node.js script (`debug_production.js`) to test various API endpoints in the production environment, including health checks, credential validation, login attempts, and task-related operations. Also includes an HTML file (`test_task_update.html`) for manually testing the task update endpoint.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/grlWN1D
2025-08-19 11:20:37 +00:00
michaelschal
54c637b7b6
Improve task update data handling and error logging
...
Refactors task update logic in server/routes.ts to correctly handle undefined and empty string values, and enhances error logging by including task ID, error details, and request body.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/grlWN1D
2025-08-19 11:15:48 +00:00
michaelschal
a2eecfb2ac
Update task module presentation and resolve console errors
...
Refactor task route to use a new component and implement data validation and cleaning before updating tasks in the database to prevent errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/grlWN1D
2025-08-19 11:12:49 +00:00
michaelschal
26579affb3
Restore previous task list view and fix task update issues
...
Revert client-side task routing to use the previous `TasksListSimple` component and implement server-side data cleaning for task updates, specifically addressing potential issues with `startDate` and `dueDate` when they are empty strings.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/fN5Ayh3
2025-08-19 11:07:48 +00:00
michaelschal
e199100278
Update task management to a simplified, dependency-free version
...
Refactors the task management route to use a new, self-contained `TasksProductionSimple` component, replacing the previous `Tasks` and `TasksSimplified` implementations. This change aims to reduce external dependencies and improve stability.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/OMMBlSh
2025-08-19 10:45:14 +00:00
michaelschal
71caf68643
Fix task editing and creation errors in the API
...
Update task editing endpoint from PATCH to PUT, add logging for API requests and responses, and improve error handling to capture and display API error messages for better debugging of 404 errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/iPlRXOE
2025-08-19 10:37:20 +00:00
michaelschal
a0f3984479
Update task creation and editing to use custom modal components
...
Replace existing modal library components with custom-built modal implementations for task creation and editing in the Tasks page.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/meVozfu
2025-08-19 10:25:52 +00:00
michaelschal
650c377cf2
Integrate task creation and editing directly into the main task view
...
Embed the task form within the Tasks page to streamline the user experience and resolve production deployment issues.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/xMJh9yr
2025-08-19 10:20:15 +00:00
michaelschal
d8375c7100
Update task form to use a simpler version for production
...
Replaces the production task form with a simplified HTML-only version to address an error, removing external UI dependencies and implementing direct form submission handling.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/Dqo1mSA
2025-08-19 09:58:47 +00:00
michaelschal
ad9f27b6bf
Remove unnecessary dependencies for cleaner production build
...
Simplify TaskForm by removing external libraries like react-hook-form, react-query, and zod, and switch to a production-ready version.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/Z9bK9TV
2025-08-19 09:47:42 +00:00
michaelschal
b40924aec5
Adjust date picker to display placeholder text when no date is selected
...
Fix an issue in the task creation form where the date picker component did not display placeholder text correctly when no date was selected.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/yX1PBud
2025-08-19 09:41:20 +00:00
michaelschal
a951c0be4c
Refine task form title to avoid duplication
...
Remove redundant "Modifier la tâche" heading in the task editing form.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/gKbtsJQ
2025-08-19 09:34:18 +00:00
michaelschal
85be1c0cbf
Fix duplicate title in task editing modal
...
Correct the heading in the task editing modal from "Modifier la tâche Modifier la tâche" to "Modifier la tâche".
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/b56g3AR
2025-08-19 09:32:05 +00:00
michaelschal
adc9edcfd8
Allow assigning tasks on weekends and improve calendar styling
...
Update task form schema to remove weekend restrictions for dates and enhance calendar component's weekend styling to be selectable.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/xVNiZBn
2025-08-19 09:30:14 +00:00
michaelschal
6831b2ea81
Refine task display and form components for consistent behavior
...
Update the task form component to use a clean implementation and adjust styling classes in the task list for consistency across development and production environments.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/xVNiZBn
2025-08-19 09:25:24 +00:00
michaelschal
174208d8af
Fix errors in task creation and update forms
...
Replace problematic `cn` function with direct CSS classes and fix API request syntax in task forms.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/3ua2Tiy
2025-08-19 09:10:28 +00:00
michaelschal
ba045a11a5
Remove problematic utility to fix production task form errors
...
Create a new task form component that completely removes the 'cn' utility to resolve `ReferenceError: cn is not defined` in production, and update the main task form export to use this new version.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/fw7PcEX
2025-08-19 09:00:59 +00:00
michaelschal
ecd38c0308
Fix error when using utility function for styling elements
...
Integrate the `cn` utility function directly into the `SimpleTaskForm.tsx` component to resolve a `ReferenceError` in production environments, ensuring proper styling functionality.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/bNRhnSG
2025-08-19 08:45:02 +00:00
michaelschal
3a2413cc4a
Add start date functionality to the task creation form
...
Update task creation form to include start and due dates, implement date validation, and resolve production errors.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/Rmyoa6U
2025-08-19 08:37:33 +00:00
michaelschal
a062ed4ef0
Temporarily disable new task date features to fix production loading issue
...
Rollback TaskForm to use SimpleTaskForm, disabling start date functionality due to production errors. Update SimpleTaskForm onError to include error logging.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/0taewQN
2025-08-19 08:29:03 +00:00
michaelschal
cc291e4b72
Fix task module issues impacting user operations
...
Resolve critical bugs in the task management module to restore full functionality.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/0taewQN
2025-08-19 08:05:24 +00:00
michaelschal
0d863da97e
Improve task management by handling date errors and ensuring data integrity
...
Implement robust error handling and data validation for task dates and properties in both frontend and backend to resolve production issues.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/0taewQN
2025-08-19 07:39:33 +00:00
michaelschal
aa1906a9bb
Enhance task management with start dates and improved visibility
...
Introduce task start dates, allowing for future task scheduling and better visibility for managers and employees. Admins can now see all tasks, while other roles only see tasks that have started or have no start date. Includes UI updates to visually distinguish future tasks and a new form for creating tasks with start and due dates.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/kX6A8MG
2025-08-19 07:23:52 +00:00
michaelschal
87cc2a0f88
Fix task due date not saving correctly to a future date
...
Add console logging to client and server to debug and fix an issue where task due dates were not being saved correctly, defaulting to the current date instead of the selected future date.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/xi95nEa
2025-08-19 06:57:42 +00:00
michaelschal
c8b76c8b2e
Allow setting task due dates beyond the current day
...
Remove the date restriction in the task form to enable selecting any due date.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/CDwGDqK
2025-08-19 06:50:56 +00:00
michaelschal
da7d1463ba
Correct date handling for task due dates to prevent errors
...
Update the schema to use the `date` type for due dates instead of `timestamp` to resolve a TypeError when creating tasks.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/GypDGUs
2025-08-19 06:42:06 +00:00
michaelschal
e7b9003e06
Update calendar to use a more pleasant green for pending items
...
Refactor the `CalendarGrid.tsx` component to replace all instances of `bg-teal-*` and `border-teal-*` with `bg-green-*` and `border-green-*` respectively, aligning with user feedback on color preference.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/JD1K1zt
2025-08-18 15:49:03 +00:00
michaelschal
286a603fc5
Update calendar to use a more distinct green color for pending items
...
Adjusted CSS classes in CalendarGrid.tsx to use `teal` color palette for pending status, replacing `emerald`.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/oLvsgfc
2025-08-18 15:39:35 +00:00
michaelschal
bacb6fa608
Adjust colors for pending deliveries to be less vibrant
...
Update CSS classes in CalendarGrid.tsx to use 'emerald' shades instead of 'green' for pending and delivered items, improving visual aesthetics.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/enXY1uJ
2025-08-18 15:33:54 +00:00
michaelschal
79c3a609d9
Reduce the size of displayed items in daily modals
...
Adjust modal dialog content and item card styling to improve layout and display more items within the daily overview.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/hgMHSZ6
2025-08-18 14:53:46 +00:00
michaelschal
5e55b08740
Make daily order and delivery cards larger and more readable
...
Expand the size and improve the visual clarity of order and delivery cards in the calendar view, and update the delivery order modal to eliminate scrollbars for better usability.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/o69iJI6
2025-08-18 14:48:02 +00:00
michaelschal
07fc38e5f0
Prevent opening the creation modal when clicking on additional items
...
Prevent the task creation modal from opening when interacting with the "+X others" button on the calendar.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/q1m3qte
2025-08-18 14:42:30 +00:00
michaelschal
1228613dca
Improve calendar item display and interaction for orders and deliveries
...
Refactors the `CalendarGrid` component to enhance the display of orders and deliveries within the calendar. This includes fixing modal positioning issues, improving the visual representation of items within modals with custom styling and status indicators, and enabling direct interaction with individual items to trigger relevant actions and close modals.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/IpHUjkz
2025-08-18 14:38:57 +00:00