Commit Graph

510 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
d903e96e13 Implement pipeline monitoring alerts
Approve and implement the Supabase migration for the pipeline monitoring alert system. This includes expanding alert types, adding new monitoring functions, and updating existing ones with escalating thresholds.
2025-11-07 05:05:32 +00:00
gpt-engineer-app[bot]
a74b8d6e74 Fix: Implement pipeline error handling
Implement comprehensive error handling and robustness measures across the entire pipeline as per the detailed plan. This includes database-level security, client-side validation, scheduled maintenance, and fallback mechanisms for edge function failures.
2025-11-07 04:50:17 +00:00
gpt-engineer-app[bot]
e747e1f881 Implement RLS and security functions
Apply Row Level Security to orphaned_images and system_alerts tables. Create RLS policies for admin/moderator access. Replace system_health view with get_system_health() function.
2025-11-07 01:02:58 +00:00
gpt-engineer-app[bot]
6bc5343256 Apply database hardening migrations
Approve and apply the latest set of database migrations for Phase 4: Application Boundary Hardening. These migrations include orphan image cleanup, slug validation triggers, monitoring and alerting infrastructure, and scheduled maintenance functions.
2025-11-07 00:59:49 +00:00
gpt-engineer-app[bot]
eac9902bb0 Implement Phase 3 fixes
The AI has implemented the Phase 3 plan, which includes adding approval failure monitoring to the existing error monitoring page, extending the ErrorAnalytics component with approval metrics, adding performance indexes, and creating the ApprovalFailureModal component.
2025-11-07 00:22:38 +00:00
gpt-engineer-app[bot]
13c6e20f11 Implement Phase 2 improvements
Implement slug uniqueness constraints, foreign key validation, and rate limiting.
2025-11-06 23:59:48 +00:00
gpt-engineer-app[bot]
f3b21260e7 Implement Phase 2 resilience improvements
Applies Phase 2 resilience improvements including slug uniqueness constraints, foreign key validation, and rate limiting. This includes new database migrations for slug uniqueness and foreign key validation, and updates to the edge function for rate limiting.
2025-11-06 23:58:31 +00:00
gpt-engineer-app[bot]
24dbf5bbba Implement critical fixes
Approve and implement Phase 1 critical fixes including CORS, RPC rollback, idempotency, timeouts, and deadlock retry.
2025-11-06 21:51:39 +00:00
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]
67525173cb Approve tool use
The user has approved the tool use.
2025-11-06 20:15:14 +00:00
gpt-engineer-app[bot]
edd12b4454 Approve tool use
Approve tool use based on context.
2025-11-06 20:11:48 +00:00
gpt-engineer-app[bot]
87fae37d90 Implement plan
Implements the plan to update the timeline event card component.
2025-11-06 20:10:09 +00:00
gpt-engineer-app[bot]
461ed9e1f4 Fix session variable pollution
Approve fix for session variable pollution in database function and edge function.
2025-11-06 20:00:22 +00:00
gpt-engineer-app[bot]
5217102ded Fix session variable pollution
Implement all phases to fix session variable pollution by changing `is_local` to `true` in the `create_submission_with_items` database function and the `process-selective-approval` edge function. This ensures session variables are transaction-scoped, preventing data corruption and attribution errors. Includes database migration, edge function updates, and monitoring for attribution mismatches.
2025-11-06 19:46:51 +00:00
gpt-engineer-app[bot]
732ceef38e Refactor: Improve error handling
The AI has approved the use of tools and is now confirming the previous actions. No new code changes are being made in this commit.
2025-11-06 19:20:39 +00:00
gpt-engineer-app[bot]
371995724a feat: Approve tool use
Approve the use of a lovable tool.
2025-11-06 19:13:52 +00:00
gpt-engineer-app[bot]
5c1fbced45 Fix high priority pipeline issues
Implement orphaned image cleanup, temp refs cleanup, deadlock retry, and lock cleanup. These fixes address critical areas of data integrity, resource management, and system resilience within the submission pipeline.
2025-11-06 18:54:47 +00:00
gpt-engineer-app[bot]
85436b5c1e feat: Integrate idempotency
Implement idempotency for the process-selective-approval edge function as per the detailed plan.
2025-11-06 17:24:21 +00:00
gpt-engineer-app[bot]
9362479db2 Fix: Correct idempotency migration issues
Corrected database migration for idempotency keys to address security warnings related to function search path and security definer views.
2025-11-06 16:29:42 +00:00
gpt-engineer-app[bot]
93a3fb93fa Fix: Correct idempotency key migration
Corrected database migration for idempotency keys to resolve issues with partial indexes using `now()`. The migration now includes the `submission_idempotency_keys` table, indexes, RLS policies, a cleanup function, and an `idempotency_stats` view.
2025-11-06 16:29:03 +00:00
gpt-engineer-app[bot]
1cc80e0dc4 Fix edge function transaction boundaries
Wrap edge function approval loop in database transaction to prevent partial data on failures. This change ensures atomicity for approval operations, preventing inconsistent data states in case of errors.
2025-11-06 16:11:52 +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]
1a4e30674f Refactor: Improve timeline event display
Implement changes to enhance the display of timeline event submissions in the moderation queue. This includes updating the `get_submission_items_with_entities` function to include timeline event data, creating a new `RichTimelineEventDisplay` component, and modifying `SubmissionItemsList` and `TimelineEventPreview` components to utilize the new display logic.
2025-11-06 15:25:33 +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]
9f5240ae95 Fix: Add street_address to composite submission approval
Implement the plan to add `street_address` to the location creation logic within the `process-selective-approval` edge function. This ensures that `street_address` is preserved when approving composite submissions, completing the end-to-end pipeline for this field.
2025-11-06 14:24:48 +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]
c1683f9b02 Fix RPC function syntax error
Correct syntax error in RPC function migration due to comments.
2025-11-06 13:14:07 +00:00
gpt-engineer-app[bot]
b189f40c1f Fix date display and edit form issues 2025-11-06 05:01:51 +00:00
gpt-engineer-app[bot]
328a77a0a8 Fix: Normalize park_type in approval function 2025-11-06 04:50:48 +00:00
gpt-engineer-app[bot]
c8a015a15b Fix park type and moderator ID 2025-11-06 04:33:26 +00:00
gpt-engineer-app[bot]
93e48ac457 Fix park type and moderator ID 2025-11-06 04:31:58 +00:00
gpt-engineer-app[bot]
090f6aca48 Refactor: Redeploy edge function 2025-11-06 04:25:29 +00:00
gpt-engineer-app[bot]
f94dbd70f5 Fix validation and RPC function 2025-11-06 04:07:53 +00:00
gpt-engineer-app[bot]
f60b92c600 Fix database migration for park submissions 2025-11-06 03:56:16 +00:00
gpt-engineer-app[bot]
20f3844a58 Fix composite submission location 2025-11-06 01:44:28 +00:00
gpt-engineer-app[bot]
ceeb41768f Fix composite submission location data 2025-11-06 01:43:28 +00:00
gpt-engineer-app[bot]
dfd17e8244 Refactor park submission location handling 2025-11-05 20:46:02 +00:00
gpt-engineer-app[bot]
f9c11cb064 Fix: Improve validation error handling 2025-11-05 20:36: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]
028ea433bb Fix edge function query ambiguity 2025-11-05 20:09:44 +00:00
gpt-engineer-app[bot]
6cc08de96c Fix security vulnerabilities 2025-11-05 19:51:25 +00:00
gpt-engineer-app[bot]
00b2ea2192 Fix duplicate foreign key constraints 2025-11-05 19:47:16 +00:00
gpt-engineer-app[bot]
c0a4a8dc9c Fix duplicate foreign key constraints 2025-11-05 19:46:56 +00:00
gpt-engineer-app[bot]
4d571e4f12 Fix search path security warning 2025-11-05 19:44:01 +00:00
gpt-engineer-app[bot]
a168007e23 Fix search path security warning 2025-11-05 19:43:39 +00:00
gpt-engineer-app[bot]
bd3bffcc20 Fix edge function errors 2025-11-05 19:40:35 +00:00
gpt-engineer-app[bot]
bdd4e046f5 Fix: Resolve edge function auth error 2025-11-05 19:23:25 +00:00
gpt-engineer-app[bot]
435ddf476b Fix edge function bundle timeout 2025-11-05 19:16:31 +00:00