Commit Graph

535 Commits

Author SHA1 Message Date
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]
e1e8fa2ddc Fix auto-refresh and queue claiming 2025-10-06 18:58:21 +00:00
gpt-engineer-app[bot]
2f71312f7c Implement Test Data Generator 2025-10-06 18:48:24 +00:00
gpt-engineer-app[bot]
f5c59aa072 Fix admin dashboard auto-refresh 2025-10-06 18:36:43 +00:00
gpt-engineer-app[bot]
63a7877314 Refactor: Approve tool use 2025-10-06 18:24:20 +00:00
gpt-engineer-app[bot]
3210147654 Fix: Add dashboard widget for flow violations 2025-10-06 17:01:41 +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]
02a9fdad84 Refactor: Implement submission flow enforcement 2025-10-06 16:46:52 +00:00
gpt-engineer-app[bot]
badf3507de Implement Phase 2, Part 2 2025-10-06 15:43:50 +00:00
gpt-engineer-app[bot]
a3928c7f23 Add versioning system tables 2025-10-06 15:37:10 +00:00
gpt-engineer-app[bot]
f89b8d447a Implement database queue infrastructure 2025-10-06 14:35:58 +00:00
gpt-engineer-app[bot]
68ece425e0 Implement remaining queue functions 2025-10-06 14:35:29 +00:00
gpt-engineer-app[bot]
93a99432ec Refactor: Implement database queue infrastructure 2025-10-06 14:34:11 +00:00
gpt-engineer-app[bot]
a340985f32 feat: Implement database queue infrastructure 2025-10-06 14:33:09 +00:00
gpt-engineer-app[bot]
d82d5719ec Fix profile viewing policy 2025-10-04 01:34:42 +00:00
gpt-engineer-app[bot]
756d6a5300 Fix security vulnerabilities 2025-10-04 01:11:43 +00:00
gpt-engineer-app[bot]
e6238c45b3 Add admin panel refresh settings 2025-10-03 18:37:16 +00:00
gpt-engineer-app[bot]
47138df86d Add broadcast triggers 2025-10-03 18:30:20 +00:00
gpt-engineer-app[bot]
fa582218b3 Add INSERT RLS policy for Realtime 2025-10-03 18:26:04 +00:00
gpt-engineer-app[bot]
fca2f77342 Fix Realtime broadcast insert permissions 2025-10-03 18:22:13 +00:00
gpt-engineer-app[bot]
91826f0b48 Fix broadcast function search path 2025-10-03 18:08:02 +00:00
gpt-engineer-app[bot]
ed94454df8 Implement broadcast-based Realtime 2025-10-03 17:54:41 +00:00
gpt-engineer-app[bot]
2342a5affd Add RLS policies for Realtime 2025-10-03 17:36:53 +00:00
gpt-engineer-app[bot]
d794c99aae Fix: Enable Realtime for moderation tables 2025-10-03 17:30:26 +00:00
gpt-engineer-app[bot]
c42f523cc4 Refactor: Simplify RLS for Realtime 2025-10-03 17:21:23 +00:00
gpt-engineer-app[bot]
98688f1821 Fix realtime connection issues 2025-10-03 17:13:20 +00:00
gpt-engineer-app[bot]
22ad29d06a Fix 406 errors and realtime timeouts 2025-10-03 17:13:00 +00:00
gpt-engineer-app[bot]
e15705e94d Fix RLS policy syntax 2025-10-03 15:11:51 +00:00
gpt-engineer-app[bot]
4493b0824e Fix Phase 3D migration errors 2025-10-03 14:54:01 +00:00
gpt-engineer-app[bot]
b8f1efee97 Fix UserListManager insert statement 2025-10-03 14:19:15 +00:00
gpt-engineer-app[bot]
ee17c2d086 Refactor: Remove unused JSON columns 2025-10-03 14:12:38 +00:00
gpt-engineer-app[bot]
63e8370991 Refactor realtime hooks 2025-10-02 20:39:37 +00:00
gpt-engineer-app[bot]
f9825eefbb Fix database migration 2025-10-02 19:28:29 +00:00
gpt-engineer-app[bot]
85097a20b3 Fix JSON storage violations 2025-10-02 19:24:15 +00:00
gpt-engineer-app[bot]
f82c2151df Fix: Update submission_items constraint 2025-10-02 19:10:18 +00:00
gpt-engineer-app[bot]
6fb85cddc0 Fix: Update content_submissions constraint 2025-10-02 19:08:26 +00:00
gpt-engineer-app[bot]
8fe5bf5c1c Fix: Correct foreign key constraint for reviews 2025-10-02 18:33:31 +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