36 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
3797e34e0b Add backfill configs with JWT
- Update supabase/config.toml to include:
  - [functions.backfill-park-locations] verify_jwt = true
  - [functions.backfill-ride-data] verify_jwt = true
  - [functions.backfill-company-data] verify_jwt = true
2025-11-11 18:19:20 +00:00
gpt-engineer-app[bot]
28fa2fd0d4 Monitor rate limits progress
Implement monitor-rate-limits edge function to compare metrics against alert configurations, trigger notifications, and record alerts; update config and groundwork for admin UI integration.
2025-11-11 00:19:13 +00:00
gpt-engineer-app[bot]
f15190351d Create rate-limit-metrics edge function
Add an edge function rate-limit-metrics to expose metrics via API, including authentication guards, CORS headers, and multiple query endpoints for recent metrics, stats, and function/user/IP-specific data. Integrates with new metrics and auth helpers and uses existing rate limiter.
2025-11-11 00:02:55 +00:00
gpt-engineer-app[bot]
dc12ccbc0d Enable JWT for rejection function
Update supabase/config.toml to set verify_jwt = true for process-selective-rejection, aligning platform authentication with function usage and allowing POST requests to reach the edge function.
2025-11-10 21:09:37 +00:00
gpt-engineer-app[bot]
1b765a636c Enable JWT verification for process-selective-approval
Update supabase/config.toml to set verify_jwt = true for the process-selective-approval function, aligning platform authentication with the function’s requirements and allowing authenticated POST requests to reach the edge function.
2025-11-10 20:56:18 +00:00
gpt-engineer-app[bot]
1551a2f08d Add structured moderation logging
Enhance edge functions process-selective-approval and process-selective-rejection with edgeLogger-based, structured logging. Introduce request tracking (startRequest/endRequest), replace all console logs, add comprehensive logging points (auth, payload validation, idempotency, RPC calls, deadlocks, errors, locks), and register process-selective-rejection in config.toml. Also sanitize sensitive data in logs and ensure duration metrics are captured.
2025-11-10 14:32:37 +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]
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]
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]
deabb72330 feat: Implement sitemap generator 2025-11-04 21:48:50 +00:00
gpt-engineer-app[bot]
d44f806afa Fix notification logs migration 2025-11-03 00:28:33 +00:00
gpt-engineer-app[bot]
9529dd340e Fix admin delete user unauthorized error 2025-11-02 02:39:31 +00:00
gpt-engineer-app[bot]
133141d474 Reverted to commit 0091584677 2025-11-01 15:22:30 +00:00
gpt-engineer-app[bot]
b2bf9a6e20 Implement Auth0 migration 2025-11-01 01:08:11 +00:00
gpt-engineer-app[bot]
cdb1d0f762 Fix: Implement RLS policies for MFA 2025-10-31 17:12:59 +00:00
gpt-engineer-app[bot]
db101bc5f2 Fix: Correct ban migration logic 2025-10-30 12:03:55 +00:00
gpt-engineer-app[bot]
1da0bc04d6 feat: Implement ticket merging 2025-10-28 22:48:03 +00:00
gpt-engineer-app[bot]
c42b34b327 Approve database migration 2025-10-28 17:35:40 +00:00
gpt-engineer-app[bot]
80e63ab355 Fix contact page errors 2025-10-28 17:05:13 +00:00
gpt-engineer-app[bot]
199f57e00e feat: Implement notification edge functions 2025-10-22 12:35:13 +00:00
gpt-engineer-app[bot]
fe898716a3 Fix edge function authentication 2025-10-17 23:41:57 +00:00
gpt-engineer-app[bot]
3833ba9748 Fix: Implement Phase 1 and 2 for Account & Profile tab 2025-10-14 18:44:14 +00:00
gpt-engineer-app[bot]
92a0bf1257 feat: Implement password addition email notification 2025-10-14 15:33:05 +00:00
gpt-engineer-app[bot]
825584d9b6 feat: Implement Novu topics for moderator notifications 2025-10-12 18:20:02 +00:00
gpt-engineer-app[bot]
8d5e235772 Fix Cloudflare avatar upload 2025-10-12 00:11:01 +00:00
pac7
ce91c387bc Enable JWT verification for image upload function
Update supabase/config.toml to set verify_jwt to true for the upload-image function.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 364fb426-1d27-49b2-a244-a34e41c335e4
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:28:25 +00:00
gpt-engineer-app[bot]
2f71312f7c Implement Test Data Generator 2025-10-06 18:48:24 +00:00
gpt-engineer-app[bot]
13626922cc feat: Create edge function to cancel email changes 2025-10-01 15:57:30 +00:00
gpt-engineer-app[bot]
e2f0df22cc feat: Implement Novu notification system 2025-10-01 12:26:12 +00:00
gpt-engineer-app[bot]
ed9357d299 Add email secrets 2025-09-30 21:11:01 +00:00
gpt-engineer-app[bot]
9319aadfed Reverted to commit 026a4e9362 2025-09-30 20:10:02 +00:00
gpt-engineer-app[bot]
3d8bd5e0f7 feat: Use forwardemail_proxy function 2025-09-30 18:33:10 +00:00
gpt-engineer-app[bot]
8f13796567 Add unit preferences to user settings 2025-09-28 21:26:09 +00:00
gpt-engineer-app[bot]
ee2a8382d8 Connect to Supabase project 2025-09-20 00:13:47 +00:00