Commit Graph

79 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
d24de6a9e6 Fix location name handling in approval
Implement comprehensive update to process_approval_transaction to ensure location records are created with proper name fields during park creation and updates, and prepare migration to apply fixes in multiple phases. Includes backfill improvements and targeted fixes for Lagoon.
2025-11-12 04:42:21 +00:00
gpt-engineer-app[bot]
403bc78765 Add schema validation tests
Create automated tests to validate schema consistency across submission, version, and main entity tables. This includes checking for missing fields, data type mismatches, and correct field presence in critical functions. Also includes a pre-migration validation script and GitHub Actions workflow for automated checks.
2025-11-08 04:17:36 +00:00
gpt-engineer-app[bot]
26e38b6d49 Create submission pipeline documentation
Create comprehensive documentation mapping all entity types to their exact schema fields across the submission pipeline to prevent future schema mismatches. This document includes an overview of the pipeline flow, details on each entity type (parks, rides, companies, ride models, photos, timeline events), their main, submission, and version tables, and a reference to critical functions.
2025-11-08 04:13:18 +00:00
gpt-engineer-app[bot]
91a5b0e7dd Implement Phase 3: Enhanced Error Handling
This commit implements Phase 3 of the Sacred Pipeline, focusing on enhanced error handling. It includes:

- **Transaction Status Polling Endpoint**: A new edge function `check-transaction-status` allows clients to poll the status of moderation transactions using idempotency keys.
- **Expanded Error Sanitizer Patterns**: The `src/lib/errorSanitizer.ts` file has been updated with more comprehensive patterns to remove sensitive information from error messages, making them safer for display and logging. User-friendly replacements for common errors are also included.
- **Rate Limiting for Submission Creation**: Client-side rate limiting has been implemented in `src/lib/submissionRateLimiter.ts` and applied to key submission functions within `src/lib/entitySubmissionHelpers.ts` (e.g., `submitParkCreation`, `submitRideCreation`, `submitParkUpdate`, `submitRideUpdate`) to prevent abuse and accidental duplicate submissions.
2025-11-07 18:22:27 +00:00
gpt-engineer-app[bot]
93b9553e2c Connect to Lovable Cloud
Connect to Lovable Cloud using the supabase--enable tool.
2025-11-07 18:02:30 +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]
1ba843132c Implement Phase 2 improvements
Implement resilience improvements including slug uniqueness constraints, foreign key validation, and rate limiting.
2025-11-06 23:56:45 +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]
7cc4e4ff17 Update migration completion date
Update the date placeholder in `docs/ATOMIC_APPROVAL_TRANSACTIONS.md` from `2025-01-XX` to `2025-11-06` to accurately reflect the migration completion date.
2025-11-06 21:28:13 +00:00
gpt-engineer-app[bot]
1a8395f0a0 Update documentation references
Update remaining documentation files to remove references to the old approval flow and feature flags.
2025-11-06 21:23:29 +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]
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]
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]
87589ee08f feat: Implement comprehensive error handling 2025-11-04 17:34:16 +00:00
gpt-engineer-app[bot]
ec7fae3d86 Fix and test error logging 2025-11-03 22:19:27 +00:00
gpt-engineer-app[bot]
1a2b9f69cf Fix remaining component imports 2025-11-03 22:08:59 +00:00
gpt-engineer-app[bot]
0b4c4c99ef Fix error logging issues 2025-11-03 21:56:28 +00:00
gpt-engineer-app[bot]
b1d9f9c72b Fix error logging and metadata 2025-11-03 21:49:21 +00:00
gpt-engineer-app[bot]
b5cbc42cdf Fix remaining JSONB references 2025-11-03 21:36:08 +00:00
gpt-engineer-app[bot]
22f4a68bd8 Refactor: Database and UI updates 2025-11-03 21:32:04 +00:00
gpt-engineer-app[bot]
19b1451f32 Refactor log_request_metadata function 2025-11-03 20:58:52 +00:00
gpt-engineer-app[bot]
50e560f7cd Refactor: Update audit log functions 2025-11-03 20:45:37 +00:00
gpt-engineer-app[bot]
3d07198454 Fix critical 'any' types in components 2025-11-03 20:30:01 +00:00
gpt-engineer-app[bot]
2cd6b2c6c3 Fix remaining console logs and types 2025-11-03 20:04:11 +00:00
gpt-engineer-app[bot]
e9b9faa3e1 Refactor: Implement logging and JSONB cleanup 2025-11-03 18:05:58 +00:00
gpt-engineer-app[bot]
12de4e2ec1 Fix error propagation in forms 2025-11-03 16:51:49 +00:00
gpt-engineer-app[bot]
700c29c910 Fix form submission toasts 2025-11-03 16:48:03 +00:00
gpt-engineer-app[bot]
fdfe141f31 feat: Implement security fix plan 2025-11-03 15:50:07 +00:00
gpt-engineer-app[bot]
a86da6e833 Approve database migration 2025-11-03 15:18:06 +00:00
gpt-engineer-app[bot]
5612d19d07 feat: Add database indexes 2025-11-03 14:58:12 +00:00
gpt-engineer-app[bot]
ee09e3652c feat: Add error boundaries 2025-11-03 14:51:39 +00:00
gpt-engineer-app[bot]
3ee65403ea feat: Add ESLint rule for console statements 2025-11-03 14:46:49 +00:00
gpt-engineer-app[bot]
c3f30b8417 Refactor submission item handling 2025-11-03 14:28:58 +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]
a9644c0bee Approve tool use 2025-11-02 21:46:47 +00:00
gpt-engineer-app[bot]
f3c898dfc1 feat: Implement all 7 phases 2025-11-02 21:00:22 +00:00
gpt-engineer-app[bot]
0f742f36b6 Fix timezone-independent date display 2025-11-02 19:24:54 +00:00
gpt-engineer-app[bot]
dae687292b Add documentation for hooks 2025-11-02 19:09:45 +00:00
gpt-engineer-app[bot]
133141d474 Reverted to commit 0091584677 2025-11-01 15:22:30 +00:00
gpt-engineer-app[bot]
dade374c2a feat: Implement all authentication compliance phases 2025-10-31 14:01:45 +00:00
pacnpal
89ca76ead2 Merge Sessions tab into Security tab and update date
Updated the date for the account security improvements and merged the Sessions tab into the Security tab, removing the redundant Sessions component.
2025-10-30 12:41:28 -04:00
gpt-engineer-app[bot]
1700411b91 Fix ride versioning inconsistencies 2025-10-30 13:56:26 +00:00
gpt-engineer-app[bot]
6a70267a57 feat: Lazy load admin forms 2025-10-21 18:43:38 +00:00
gpt-engineer-app[bot]
70a8534da7 Refactor: Implement Code Splitting 2025-10-21 18:31:08 +00:00
gpt-engineer-app[bot]
da0f01a785 Continue localStorage cleanup 2025-10-21 18:20:45 +00:00
gpt-engineer-app[bot]
3b82887974 Move to Phase 4-5 2025-10-21 18:15:22 +00:00
gpt-engineer-app[bot]
431b5197ba Fix: Implement Phases 2 and 3 2025-10-21 17:57:06 +00:00
gpt-engineer-app[bot]
d74ece69ee Refactor: Complete JSONB elimination 2025-10-21 17:52:13 +00:00