Commit Graph

18 Commits

Author SHA1 Message Date
pac7
aee512b8a1 Improve security by auditing service role key usage in edge functions
Audit and document the usage of service role keys in multiple Supabase edge functions (cancel-email-change, process-selective-approval, seed-test-data) to ensure secure and scoped access.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fe5b902e-beda-40fc-bf87-a3c4ab300e3a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:56:58 +00:00
pac7
2fc78cbde5 Improve error handling and dependency checks for data processing
Address issues in FieldHistoryDialog by clearing changes on error, enhance useEntityVersions to provide default profiles for missing users, add localStorage availability check in useLocationAutoDetect, and improve dependency resolution logic in supabase/functions/process-selective-approval.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 334e80ad-8f74-4e3a-acec-6dd811858e98
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:23:22 +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
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]
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]
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