Commit Graph

43 Commits

Author SHA1 Message Date
pac7
0b57cba16f Improve security and error handling in backend functions
Update Supabase functions for cancel-email-change, detect-location, send-escalation-notification, and upload-image to enhance security and implement robust error handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a46bc7a0-bbf8-43ab-97c0-a58c66c2e365
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:06:35 +00:00
pac7
ccea99fecd Securely handle email change cancellations and improve Supabase function error handling
Update supabase/functions/cancel-email-change/index.ts to use secure base64 decoding for JWTs and enhance error handling for Supabase functions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a46bc7a0-bbf8-43ab-97c0-a58c66c2e365
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:04:35 +00:00
pac7
b8787ee6de Improve security by verifying user authentication and authorization
Update the 'process-selective-approval' Supabase function to enforce authentication and authorization checks before processing requests. Also, modify the 'upload-image' function to prevent banned users from uploading images. Additionally, enable future React Router v7 features for enhanced navigation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6d6e48da-5b1b-47f9-a65c-9fa4a352936a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/6d6e48da-5b1b-47f9-a65c-9fa4a352936a/u05utRo
2025-10-07 20:12:39 +00:00
pac7
6737431379 Improve error handling and navigation safety across the application
Add robust error handling for image uploads, improve navigation logic in AutocompleteSearch with toast notifications for missing identifiers, refine useIsMobile hook return type, and update Supabase function error reporting to handle non-Error types.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a759d451-40bf-440d-96f5-a19ad6af18a8
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 15:25:37 +00:00
pac7
88ed3207c4 Improve error handling and authentication for uploads and notifications
Refactor PhotoUpload component to fetch session token before polling, enhance error handling in NotificationService and versioningHelpers with `instanceof Error` checks, and add comprehensive validation for request body fields in the create-novu-subscriber Supabase function.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8d708ff6-09f1-4b67-8edc-de3fcb2349b3
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 14:55:35 +00:00
pac7
f4020969d8 Add authentication to image upload and status checking endpoints
Implement JWT-based authentication for POST (upload) and GET (status check) requests to the image handling functions, verifying user identity via Supabase Auth.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8d708ff6-09f1-4b67-8edc-de3fcb2349b3
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 14:52:37 +00:00
pac7
1addcbc0dd Improve error handling and environment configuration across the application
Enhance input validation, update environment variable usage for Supabase and Turnstile, and refine image upload and auth logic for better robustness and developer experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cb061c75-702e-4b89-a8d1-77a96cdcdfbb
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/cb061c75-702e-4b89-a8d1-77a96cdcdfbb/ANdRXVZ
2025-10-07 14:42:22 +00:00
gpt-engineer-app[bot]
2f71312f7c Implement Test Data Generator 2025-10-06 18:48:24 +00:00
gpt-engineer-app[bot]
fae8542c45 Fix: Correct RLS policies and function security 2025-10-06 16:50:00 +00:00
gpt-engineer-app[bot]
2750d285cb Refactor photo modification logic 2025-10-02 17:46:45 +00:00
gpt-engineer-app[bot]
9726df6606 Fix duplicate variable declaration 2025-10-02 17:35:06 +00:00
gpt-engineer-app[bot]
8ba049024e Fix form photo upload to photos table 2025-10-02 17:32:42 +00:00
gpt-engineer-app[bot]
0793793d89 Fix: Normalize status in edge function 2025-10-02 17:24:50 +00:00
gpt-engineer-app[bot]
d4d7da977a Fix: Filter database fields in edge function 2025-10-02 17:19:15 +00:00
gpt-engineer-app[bot]
ae74fa5677 Refactor: Update edge function for counts 2025-10-02 16:40:37 +00:00
gpt-engineer-app[bot]
ae84732326 Fix date field handling in forms and edge function 2025-10-02 16:27:13 +00:00
gpt-engineer-app[bot]
dfc697b002 Fix image assignment in edge function 2025-10-02 15:28:17 +00:00
gpt-engineer-app[bot]
0530e27c1a feat: Cascade moderation actions to submission items 2025-10-02 15:15:45 +00:00
gpt-engineer-app[bot]
882d06b70f Fix: Bypass Supabase Auth API issues in edge function 2025-10-01 16:22:20 +00:00
gpt-engineer-app[bot]
cc4da9f8ad Fix: Ensure authorization header is sent 2025-10-01 16:19:57 +00:00
gpt-engineer-app[bot]
11e6b2bf46 Fix edge function and force session refresh 2025-10-01 16:14:59 +00:00
gpt-engineer-app[bot]
50273ed620 Implement PostgreSQL function to cancel email change 2025-10-01 16:09:32 +00:00
gpt-engineer-app[bot]
9ab59e9025 Fix: Properly cancel email changes via direct DB manipulation 2025-10-01 16:03:04 +00:00
gpt-engineer-app[bot]
de284a4328 Fix edge function to clear new_email 2025-10-01 15:59:52 +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]
b52d326f7b Update Novu migration to include username 2025-10-01 14:10:14 +00:00
gpt-engineer-app[bot]
18669a4e6c feat: Implement Novu username and update functionality 2025-10-01 14:01:44 +00:00
gpt-engineer-app[bot]
549b964b60 Fix Novu migration utility query 2025-10-01 13:22:08 +00:00
gpt-engineer-app[bot]
e2f0df22cc feat: Implement Novu notification system 2025-10-01 12:26:12 +00:00
gpt-engineer-app[bot]
db792c7011 Fix ForwardEmail authentication 2025-09-30 21:16:11 +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]
a5a9cc51ad feat: Implement Uppy photo upload 2025-09-29 16:51:50 +00:00
gpt-engineer-app[bot]
a13f11a5d4 Fix CORS policy for image deletion 2025-09-29 02:31:09 +00:00
gpt-engineer-app[bot]
c8ee4bcc71 Fix edge function URL return value 2025-09-29 01:45:23 +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]
2147514784 Refactor: Implement avatar cleanup plan 2025-09-28 17:38:09 +00:00
gpt-engineer-app[bot]
47ef042b6f Fix Cloudflare image upload 2025-09-28 17:26:20 +00:00
gpt-engineer-app[bot]
6c388b0f63 Fix auth and upload issues 2025-09-28 15:35:38 +00:00
gpt-engineer-app[bot]
b8f6444c64 Fix: Implement Cloudflare direct creator upload 2025-09-28 15:10:25 +00:00
gpt-engineer-app[bot]
8dba5a78d1 Refactor: Use Direct Creator Upload 2025-09-20 13:21:25 +00:00
gpt-engineer-app[bot]
2c05925724 Add photo upload functionality 2025-09-20 13:18:03 +00:00