Commit Graph

364 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
bd2f9a5a9e Remove old approval flow
Implement the destructive migration plan to remove the old approval flow entirely. This includes deleting the legacy edge function, removing the toggle component, simplifying frontend code, and updating documentation.
2025-11-06 21:14:59 +00:00
gpt-engineer-app[bot]
406edc96df Implement 100% atomic transaction rollout
Update actions.ts and ApprovalTransactionToggle.tsx to default to the new atomic transaction RPC flow. The feature flag can now be used to disable the new flow for emergency rollback.
2025-11-06 20:48:18 +00:00
gpt-engineer-app[bot]
67525173cb Approve tool use
The user has approved the tool use.
2025-11-06 20:15:14 +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]
bd4f75bfb2 Fix entity submission pipelines
Refactor park updates, ride updates, and timeline event submissions to use dedicated relational tables instead of JSON blobs in `submission_items.item_data`. This enforces the "NO JSON IN SQL" rule, improving queryability, data integrity, and consistency across the pipeline.
2025-11-06 15:13:36 +00:00
gpt-engineer-app[bot]
ed9d17bf10 Fix ride model technical specs
Implement plan to fix ride model technical specifications pipeline. This includes creating a new migration for the `ride_model_submission_technical_specifications` table, updating `entitySubmissionHelpers.ts` to handle insertion of technical specifications, and modifying the edge function `process-selective-approval/index.ts` to fetch these specifications. This ensures no data loss for ride model technical specifications.
2025-11-06 15:03:51 +00:00
gpt-engineer-app[bot]
de9a48951f Fix ride submission data loss
Implement the plan to fix critical data loss in ride submissions. This includes:
- Storing ride technical specifications, coaster statistics, and name history in submission tables.
- Adding missing category-specific fields to the `ride_submissions` table via a new migration.
- Updating submission helpers and the edge function to include these new fields.
- Fixing the park location Zod schema to include `street_address`.
2025-11-06 14:51:36 +00:00
gpt-engineer-app[bot]
9159b2ce89 Fix submission flow for street address
Update submission and moderation pipeline to correctly handle `street_address`. This includes:
- Adding `street_address` to the Zod schema in `ParkForm.tsx`.
- Ensuring `street_address` is included in `tempLocationData` for park and composite park creations in `entitySubmissionHelpers.ts`.
- Preserving `street_address` when editing submissions in `submissionItemsService.ts`.
- Saving `street_address` when new locations are created during submission approval in `submissionItemsService.ts`.
2025-11-06 14:15:45 +00:00
gpt-engineer-app[bot]
98fbc94476 feat: Add street address to locations
Adds a street_address column to the locations table and updates the LocationSearch component to capture, store, and display full street addresses. This includes database migration, interface updates, and formatter logic.
2025-11-06 13:51:40 +00:00
gpt-engineer-app[bot]
e631ecc2b1 Fix: Remove unused 'content' column from submissions 2025-11-06 05:09:44 +00:00
gpt-engineer-app[bot]
d00ea2a3ee Fix 406 errors in validation 2025-11-06 04:47:35 +00:00
gpt-engineer-app[bot]
a6c687b367 Fix validation and RPC function 2025-11-06 04:07:11 +00:00
gpt-engineer-app[bot]
36878c05af Implement location data fix 2025-11-06 02:02:57 +00:00
gpt-engineer-app[bot]
20f3844a58 Fix composite submission location 2025-11-06 01:44:28 +00:00
gpt-engineer-app[bot]
0f8e98a85a Fix: Re-evaluate initial submission validation 2025-11-06 00:11:31 +00:00
gpt-engineer-app[bot]
2b56629a75 Add logging for submission data 2025-11-06 00:04:07 +00:00
gpt-engineer-app[bot]
b653ed118c Fix submission update logic 2025-11-06 00:01:31 +00:00
gpt-engineer-app[bot]
d9f406e539 Fix: Transform location data for park submissions 2025-11-05 23:42:57 +00:00
gpt-engineer-app[bot]
34300a89c4 Fix: Add client-side validation 2025-11-05 21:13:04 +00:00
gpt-engineer-app[bot]
caa6c788df Fix: Save submission edits to relational tables 2025-11-05 21:08:53 +00:00
gpt-engineer-app[bot]
6c5b5363c0 Fix park validation schema 2025-11-05 21:02:52 +00:00
gpt-engineer-app[bot]
dfd17e8244 Refactor park submission location handling 2025-11-05 20:46:02 +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]
5513f532ee Fix submission items queries 2025-11-05 20:01:26 +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]
972505f53b Fix Zod validation for optional fields 2025-11-05 17:46:44 +00:00
gpt-engineer-app[bot]
14f413daab Fix validation for optional fields 2025-11-05 17:03:59 +00:00
gpt-engineer-app[bot]
11a1ae5f65 Fix entity validation and data loading 2025-11-05 16:48:14 +00:00
gpt-engineer-app[bot]
c966b6c5ee Fix date input normalization 2025-11-05 16:21:22 +00:00
gpt-engineer-app[bot]
5a61a2b49e Fix: Replace require with ES module imports 2025-11-05 16:12:47 +00:00
gpt-engineer-app[bot]
6e1ff944c8 Refactor: Remove Cronitor RUM tracking 2025-11-05 15:59:05 +00:00
gpt-engineer-app[bot]
1f93e7433b feat: Implement automatic API connectivity banner 2025-11-05 15:55:02 +00:00
gpt-engineer-app[bot]
0106bdb1d5 feat: Integrate Cronitor RUM 2025-11-05 15:07:31 +00:00
gpt-engineer-app[bot]
e08aacaff3 Refactor: Remove circuit breaker system 2025-11-05 15:02:17 +00:00
gpt-engineer-app[bot]
116eaa2635 Fix composite submission error logging 2025-11-05 14:20:56 +00:00
gpt-engineer-app[bot]
e773ca58d1 feat: Implement network status banner 2025-11-05 14:12:23 +00:00
gpt-engineer-app[bot]
783284a47a Implement success/failure states 2025-11-05 14:02:34 +00:00
gpt-engineer-app[bot]
dcc9e2af8f feat: Add retry logic to updates 2025-11-05 13:56:08 +00:00
gpt-engineer-app[bot]
80826a83a8 Fix migration for admin settings 2025-11-05 13:40:25 +00:00
gpt-engineer-app[bot]
ec5181b9e6 feat: Implement circuit breaker and retry logic 2025-11-05 13:27:22 +00:00
gpt-engineer-app[bot]
5e0640252c feat: Implement retry logic for composite submissions 2025-11-05 13:16:30 +00:00
gpt-engineer-app[bot]
876119c079 Fix composite submission error handling 2025-11-05 13:09:54 +00:00
gpt-engineer-app[bot]
66bdb36b03 Implement client-side error timing 2025-11-05 04:20:55 +00:00
gpt-engineer-app[bot]
acfbf872d2 Fix Recent Activity errors 2025-11-05 03:53:58 +00:00
gpt-engineer-app[bot]
5616a4ffe8 Fix orphaned submission data 2025-11-05 03:01:30 +00:00