Commit Graph

364 Commits

Author SHA1 Message Date
pac7
bfba3baf7e Improve component stability and user experience with safety checks
Implement robust error handling, safety checks for data structures, and state management improvements across various components to prevent runtime errors and enhance user experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 19:27:31 +00:00
pac7
3832439d67 Improve image upload and test data generation functionalities
Refactors `uploadPendingImages` to use `Promise.allSettled` for parallel uploads and implements JSON path queries in `clearTestData` and `getTestDataStats` for more robust test data management. Enhances `seed-test-data` function to support creating data conflicts and version chains, and adds validation for `imageId` format in `upload-image` function. Updates `AutocompleteSearch` to use a default search types constant.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dc31cf9d-7a06-4420-8ade-e7b7f5200e71
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 18:14:34 +00:00
pac7
0f2219f849 Improve image handling, optimize hooks, and add rate limiting
This commit introduces several improvements:
- Enhances `RideModelCard` by safely accessing and displaying ride count and image data, preventing potential errors.
- Refactors `useEntityVersions` and `useSearch` hooks to use `useCallback` and improve performance and prevent race conditions.
- Introduces a `MAX_MAP_SIZE` and cleanup mechanism for the rate limiting map in `detect-location` Supabase function to prevent memory leaks.
- Adds robust error handling and cleanup for image uploads in `uploadPendingImages`.
- Modifies `ManufacturerModels` to correctly map and display ride counts.
- Includes error handling for topological sort in `process-selective-approval` Supabase function.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 39bb006b-d046-477f-a1f9-b7821836f3a1
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 17:55:37 +00:00
pac7
ab05998b58 Improve logging and update development server port
Add error handling for notification log insertion and change Vite dev server port from 8080 to 5000.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 853a87ae-e13d-4762-9a69-fbd3990ed527
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 15:37:50 +00:00
pac7
6737431379 Improve error handling and navigation safety across the application
Add robust error handling for image uploads, improve navigation logic in AutocompleteSearch with toast notifications for missing identifiers, refine useIsMobile hook return type, and update Supabase function error reporting to handle non-Error types.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a759d451-40bf-440d-96f5-a19ad6af18a8
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 15:25:37 +00:00
pac7
88ed3207c4 Improve error handling and authentication for uploads and notifications
Refactor PhotoUpload component to fetch session token before polling, enhance error handling in NotificationService and versioningHelpers with `instanceof Error` checks, and add comprehensive validation for request body fields in the create-novu-subscriber Supabase function.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8d708ff6-09f1-4b67-8edc-de3fcb2349b3
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 14:55:35 +00:00
gpt-engineer-app[bot]
fd20c02e5e Implement comprehensive fix 2025-10-06 19:38:39 +00:00
gpt-engineer-app[bot]
71f497a001 Fix N+1 query and UI flashing 2025-10-06 19:19:02 +00:00
gpt-engineer-app[bot]
cc3ec7a6e4 Fix auto-refresh and queue claiming 2025-10-06 19:01:49 +00:00
gpt-engineer-app[bot]
2f71312f7c Implement Test Data Generator 2025-10-06 18:48:24 +00:00
gpt-engineer-app[bot]
b1112e6261 Refactor: Implement non-disruptive auto-refresh 2025-10-06 18:33:00 +00:00
gpt-engineer-app[bot]
63a7877314 Refactor: Approve tool use 2025-10-06 18:24:20 +00:00
gpt-engineer-app[bot]
c2c70524f7 Fix photo_delete display issues 2025-10-06 18:16:49 +00:00
gpt-engineer-app[bot]
3f1e4abb62 Fix submission display issues 2025-10-06 18:07:19 +00:00
gpt-engineer-app[bot]
2fc67ebf39 Fix submission display issues 2025-10-06 17:59:34 +00:00
gpt-engineer-app[bot]
d6bddd6459 feat: Implement system activity log (Phases 1-3) 2025-10-06 17:52:08 +00:00
gpt-engineer-app[bot]
fae8542c45 Fix: Correct RLS policies and function security 2025-10-06 16:50:00 +00:00
gpt-engineer-app[bot]
badf3507de Implement Phase 2, Part 2 2025-10-06 15:43:50 +00:00
gpt-engineer-app[bot]
6919f396e6 Fix: Detect location changes and new entity creation 2025-10-06 14:20:07 +00:00
gpt-engineer-app[bot]
035f332912 Fix change detection false positives 2025-10-06 14:13:18 +00:00
gpt-engineer-app[bot]
0b033cdd47 Fix submission display and change detection 2025-10-06 13:32:56 +00:00
gpt-engineer-app[bot]
7308109af3 Fix 406 errors and realtime timeouts 2025-10-03 17:12:41 +00:00
gpt-engineer-app[bot]
1cf13efc97 Fix: Sanitize original_data for JSONB compatibility 2025-10-03 16:51:47 +00:00
gpt-engineer-app[bot]
2426da66cb Fix submission update functions 2025-10-03 16:03:07 +00:00
gpt-engineer-app[bot]
b047291eb6 feat: Implement photo change detection 2025-10-03 15:54:46 +00:00
gpt-engineer-app[bot]
86fb99c696 feat: Implement comprehensive change display 2025-10-03 15:46:55 +00:00
gpt-engineer-app[bot]
fe33169ed7 feat: Standardize submission display 2025-10-03 15:32:23 +00:00
gpt-engineer-app[bot]
404444d5b4 Fix: Implement location data storage fix 2025-10-03 15:08:31 +00:00
gpt-engineer-app[bot]
b778fc95f6 Refactor: Implement Phase 3C cleanup 2025-10-03 14:24:43 +00:00
gpt-engineer-app[bot]
0ac87b4dde feat: Implement Phase 1 Frontend Code Cleanup 2025-10-03 14:07:47 +00:00
gpt-engineer-app[bot]
f061bb9d5f Refactor: Implement cleanup plan 2025-10-03 13:54:27 +00:00
gpt-engineer-app[bot]
b3f8c40e63 Fix unit conversion logic 2025-10-03 13:17:15 +00:00
gpt-engineer-app[bot]
be8288956c Fix unit conversions in forms 2025-10-03 13:09:27 +00:00
gpt-engineer-app[bot]
4629fc0df5 Fix JSON violations 2025-10-02 19:23:33 +00:00
gpt-engineer-app[bot]
90b5b943d3 feat: Implement submission reset functionality 2025-10-02 16:05:26 +00:00
gpt-engineer-app[bot]
36603cdb80 Refactor: Enforce submission queue for all edits 2025-10-02 14:46:49 +00:00
gpt-engineer-app[bot]
ee1ea52f2e Refactor: Update user list item interfaces 2025-10-02 12:02:36 +00:00
gpt-engineer-app[bot]
2324d276e4 feat: Implement comprehensive entity submission architecture 2025-10-01 20:45:11 +00:00
gpt-engineer-app[bot]
65c3e92c70 Fix image upload and moderation display 2025-10-01 20:28:34 +00:00
gpt-engineer-app[bot]
db839ef957 Fix content submissions constraint violation 2025-10-01 20:11:12 +00:00
gpt-engineer-app[bot]
d100e0188b Refactor: Unify moderation queue for all entities 2025-10-01 20:00:22 +00:00
gpt-engineer-app[bot]
c582e6fc1b feat: Enhance image uploader with context menu and deferred upload 2025-10-01 19:21:50 +00:00
gpt-engineer-app[bot]
37b70111c6 feat: Implement enhanced multi-image upload 2025-10-01 18:51:48 +00:00
gpt-engineer-app[bot]
91afb4f769 Refactor: Implement app-wide slug generation 2025-10-01 17:02:03 +00:00
gpt-engineer-app[bot]
18669a4e6c feat: Implement Novu username and update functionality 2025-10-01 14:01:44 +00:00
gpt-engineer-app[bot]
e2f0df22cc feat: Implement Novu notification system 2025-10-01 12:26:12 +00:00
gpt-engineer-app[bot]
7bbf67156b feat: Implement photo processing logic 2025-09-30 15:40:49 +00:00
gpt-engineer-app[bot]
14c399f293 Implement conflict resolution logic 2025-09-30 15:14:45 +00:00
gpt-engineer-app[bot]
40f20e5850 feat: Implement entity creation functions 2025-09-30 14:39:08 +00:00
gpt-engineer-app[bot]
337552224b feat: Implement item editing capability 2025-09-30 14:16:59 +00:00