Commit Graph

32 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
d18632c2b2 Improve moderation edge flow and timeout handling
- Add early logging and health check to process-selective-approval edge function
- Implement idempotency check with timeout to avoid edge timeouts
- Expose health endpoint for connectivity diagnostics
- Increase client moderation action timeout from 30s to 60s
- Update moderation actions hook to accommodate longer timeouts
2025-11-12 13:15:54 +00:00
gpt-engineer-app[bot]
c7bdff313a Move photo logic to RPC path
Refactor: remove duplicate photo handling from useModerationActions.ts and ensure all photo approvals flow through the atomic process_approval_transaction path. This includes deleting the direct DB update block for photos and relying on the unified approval flow through the edge function. Also note required npm install for package-lock.json.
2025-11-10 14:01:34 +00:00
gpt-engineer-app[bot]
92b5d6e33d Implement bulletproof rejection flow
- Adds atomic rejection transaction edge function and RPC
- Updates moderation client to use new rejection path
- Introduces rejection transaction migration and supporting readouts
- Moves photo-related approval handling toward RPC-based flow
- Lays groundwork for idempotency and resilience in moderation actions
2025-11-10 13:20:16 +00:00
gpt-engineer-app[bot]
b917232220 Refactor useModerationActions for resilience
Integrate transaction resilience features into the `useModerationActions` hook by refactoring the `invokeWithIdempotency` function. This change ensures that all moderation paths, including approvals, rejections, and retries, benefit from timeout detection, automatic lock release, and robust idempotency key management. The `invokeWithIdempotency` function has been replaced with a new `invokeWithResilience` function that incorporates these enhancements.
2025-11-07 15:53:54 +00:00
gpt-engineer-app[bot]
b92a62ebc8 feat: Add idempotency to useModerationActions
Implement idempotency integration in the useModerationActions hook as per the detailed plan.
2025-11-06 17:43:16 +00:00
gpt-engineer-app[bot]
e7f5aa9d17 Refactor validation to edge function
Centralize all business logic validation within the edge function for the submission pipeline. Remove validation logic from React hooks, retaining only basic UX validation (e.g., checking for empty fields). This ensures a single source of truth for validation, preventing inconsistencies between the frontend and backend.
2025-11-06 16:18:34 +00:00
gpt-engineer-app[bot]
41a396b063 Fix parenthesis error in moderation actions
Fix missing closing parenthesis in `src/hooks/moderation/useModerationActions.ts` to resolve the build error.
2025-11-06 15:49:49 +00:00
gpt-engineer-app[bot]
5b0ac813e2 Fix park submission locations
Implement Phase 1 of the JSONB violation fix by creating the `park_submission_locations` table. This includes migrating existing data from `park_submissions.temp_location_data` and updating relevant code to read and write to the new relational table. The `temp_location_data` column will be dropped after data migration.
2025-11-06 15:45:12 +00:00
gpt-engineer-app[bot]
dcdf502e67 Fix 406 error in company lookup 2025-11-06 02:32:19 +00:00
gpt-engineer-app[bot]
2b56629a75 Add logging for submission data 2025-11-06 00:04:07 +00:00
gpt-engineer-app[bot]
d00c4f2e92 Fix location validation in moderation 2025-11-05 23:53:27 +00:00
gpt-engineer-app[bot]
c8018b827e feat: Implement retry logic and tracking 2025-11-05 20:19:43 +00:00
gpt-engineer-app[bot]
4ee6419865 Fix ambiguous relationship queries 2025-11-05 19:55:36 +00:00
gpt-engineer-app[bot]
ba974d2243 Fix validation for non-park/ride entities 2025-11-05 19:09:18 +00:00
gpt-engineer-app[bot]
d29e873e14 feat: Implement comprehensive validation error handling 2025-11-05 19:00:28 +00:00
gpt-engineer-app[bot]
0d6d3fb2cc feat: Implement timeline manager 2025-11-05 18:44:57 +00:00
gpt-engineer-app[bot]
162d288cb0 feat: Complete error logging coverage 2025-11-04 19:30:56 +00:00
gpt-engineer-app[bot]
80aa033e70 Fix submission_items foreign keys 2025-11-04 14:57:58 +00:00
gpt-engineer-app[bot]
6af981a6e4 Fix imports and test flow 2025-11-03 22:03:08 +00:00
gpt-engineer-app[bot]
1a3c5ef671 Fix TypeScript errors after JSONB removal 2025-11-03 14:33:34 +00:00
gpt-engineer-app[bot]
9e8e8719b4 Fix: Resolve TypeScript errors 2025-11-03 02:28:57 +00:00
gpt-engineer-app[bot]
d057ddc8cc feat: Implement Sprint 3 Performance Optimizations 2025-11-02 21:52:59 +00:00
gpt-engineer-app[bot]
133141d474 Reverted to commit 0091584677 2025-11-01 15:22:30 +00:00
gpt-engineer-app[bot]
d40f0f13aa Apply all API enhancements 2025-10-30 23:55:18 +00:00
gpt-engineer-app[bot]
1ebb491ffa Fix: Address build errors in moderation logging 2025-10-27 17:17:13 +00:00
gpt-engineer-app[bot]
2de13c12e4 feat: Implement comprehensive audit logging 2025-10-27 17:14:24 +00:00
gpt-engineer-app[bot]
e580f1f4b4 Refactor: Update type safety status 2025-10-21 17:19:19 +00:00
gpt-engineer-app[bot]
827f0f8ea5 Fix: Address HMR failures and Fast Refresh incompatibility 2025-10-21 13:13:10 +00:00
gpt-engineer-app[bot]
c74a41c2e3 Fix: Add validation blocking to main queue approval 2025-10-17 23:04:08 +00:00
gpt-engineer-app[bot]
d54b8a9ae4 Implement type safety and JSONB elimination 2025-10-17 13:29:22 +00:00
gpt-engineer-app[bot]
4b697fe45a feat: Implement Novu subscriber update 2025-10-15 16:49:58 +00:00
gpt-engineer-app[bot]
97337ed7a3 Implement Phase 4 optimizations 2025-10-15 12:28:03 +00:00