Commit Graph

1280 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
039fe46e55 Refactor: Implement debouncing and anti-flashing fixes 2025-10-09 15:47:09 +00:00
gpt-engineer-app[bot]
f01c58a056 Fix moderation queue flashing 2025-10-09 15:35:30 +00:00
gpt-engineer-app[bot]
1557def354 feat: Implement test data generation improvements 2025-10-09 14:49:54 +00:00
gpt-engineer-app[bot]
1d45294703 Implement realtime queue fix 2025-10-09 13:54:39 +00:00
gpt-engineer-app[bot]
57368eb309 Fix: Correctly drop and recreate claim_next_submission function 2025-10-09 13:43:23 +00:00
gpt-engineer-app[bot]
6ec5ca3bc4 Fix database trigger for moderation queue 2025-10-09 13:38:49 +00:00
gpt-engineer-app[bot]
5f22281961 Fix moderation queue refresh logic 2025-10-09 13:33:11 +00:00
gpt-engineer-app[bot]
cec8b0e0b5 Fix moderation queue infinite refresh 2025-10-09 13:18:08 +00:00
gpt-engineer-app[bot]
d4b41b6d75 Fix silent polling filter 2025-10-09 13:06:20 +00:00
gpt-engineer-app[bot]
a02442a3cc Fix silent polling logic 2025-10-09 13:00:53 +00:00
gpt-engineer-app[bot]
b1c62093aa Fix: Stop infinite fetchItems loop 2025-10-09 12:55:25 +00:00
gpt-engineer-app[bot]
c79b12da76 Refactor: Use admin settings for queue refresh 2025-10-09 12:45:28 +00:00
gpt-engineer-app[bot]
732efa9992 Fix: App not loading 2025-10-09 12:28:04 +00:00
gpt-engineer-app[bot]
fb4396e217 Fix moderation queue refreshing 2025-10-09 12:18:50 +00:00
gpt-engineer-app[bot]
c054b90e7a Fix: Supabase environment variables missing 2025-10-09 12:10:49 +00:00
gpt-engineer-app[bot]
9471d25939 Fix: Re-add RLS policy for user profiles 2025-10-09 12:09:04 +00:00
gpt-engineer-app[bot]
036baf9f6d Fix profile data exposure 2025-10-09 12:05:08 +00:00
gpt-engineer-app[bot]
dc53f04d87 Fix RLS policy for profiles 2025-10-09 12:02:31 +00:00
gpt-engineer-app[bot]
07f14cdcb5 Fix: Address security findings 2025-10-09 00:34:37 +00:00
gpt-engineer-app[bot]
10098e3bcc Fix: Implement field-level privacy for profiles 2025-10-08 23:23:03 +00:00
gpt-engineer-app[bot]
5578db1697 Fix: Explicitly declare security invoker for view 2025-10-08 22:55:44 +00:00
gpt-engineer-app[bot]
e1615903e6 Fix: Restrict access to profiles table 2025-10-08 22:44:23 +00:00
gpt-engineer-app[bot]
72bfa69139 Fix: Remove SECURITY DEFINER views 2025-10-08 22:34:05 +00:00
pacnpal
ee4f81b99b .replit 2025-10-08 22:29:50 +00:00
pac7
811b64a370 Improve app stability by fixing critical bugs and enhancing error handling
Fixes React Hooks violations, race conditions, and CORS security issues. Improves error logging and rate limit resilience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f4df1950-6410-48d0-b2de-f4096732504b
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 20:24:38 +00:00
pac7
b580db3fb0 Improve error handling and stability across the application
Refactor error handling in `useEntityVersions` and `useSearch` hooks, enhance `NotificationService` with better error extraction and logging, and implement critical fallback mechanisms in the `detect-location` function's rate limit cleanup. Update CORS configuration in `upload-image` function for stricter origin checks and better security.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f4df1950-6410-48d0-b2de-f4096732504b
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 20:23:01 +00:00
pac7
26aeb46c8a Improve error handling and fix bugs across the platform
Update Supabase edge functions with improved error messages and null checks, optimize rate limiting, and fix null reference errors in photo submission.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2741d09b-80fb-4f0a-bfd6-ababb2ac4bfc
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 19:57:04 +00:00
pac7
13a4d8f64c Improve error handling and display for searches and uploads
Enhance user feedback by displaying search errors, refine photo submission fetching, add rate limiting cleanup logic, improve image upload cleanup, and strengthen moderator permission checks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2741d09b-80fb-4f0a-bfd6-ababb2ac4bfc
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 19:55:55 +00:00
pac7
7101632977 Fix an issue that prevented users from accessing specific website features
No changes were made in this commit.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0cbed76-4668-44f7-95b4-a456009b318d
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 19:43:00 +00:00
pac7
166ef04589 Update sidebar to remove unused import
Remove the unused `useSidebar` import from the `AdminSidebar` component.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0cbed76-4668-44f7-95b4-a456009b318d
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 19:42:30 +00:00
pac7
023f56eed7 Improve image upload functionality for authenticated users
Refactor `supabase/functions/upload-image/index.ts` to extract Supabase client creation into a new helper function `createAuthenticatedSupabaseClient`. This improves code organization and reusability by centralizing the logic for initializing an authenticated Supabase client using JWT authentication.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0cbed76-4668-44f7-95b4-a456009b318d
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 19:40:07 +00:00
pac7
7e771d1fc2 Saved your changes before starting work
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0cbed76-4668-44f7-95b4-a456009b318d
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 19:35:40 +00:00
pac7
892431889e Add ability to allow users to log in to their accounts
Add authentication endpoint and JWT token generation for user sessions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25/aEgTPrv
2025-10-08 19:30:33 +00:00
pac7
82c835d505 Improve application stability and fix various critical bugs
Update `useEntityVersions` hook to prevent race conditions, enhance error handling in Edge Functions, and resolve browser storage crashes and memory leaks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25/aEgTPrv
2025-10-08 19:29:16 +00:00
pac7
bfba3baf7e Improve component stability and user experience with safety checks
Implement robust error handling, safety checks for data structures, and state management improvements across various components to prevent runtime errors and enhance user experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a71e826a-1d38-4b6e-a34f-fbf5ba1f1b25
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 19:27:31 +00:00
pac7
f21602b992 Improve application reliability by fixing critical bugs and race conditions
Introduces fixes for race conditions in version history, enhanced error handling in Edge Functions, resolved browser storage crashes, and memory leak issues in rate limiters and image uploads. Also addresses company form validation and production domain placeholders.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b9af4867-23a7-43cc-baeb-4a97f66b4150
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 18:59:50 +00:00
pac7
4bdbdac7c3 Improve form validation and image handling for entities
Refactor validation logic for 'founded_year' in multiple form components, enhance image cleanup in `EntityMultiImageUploader`, update `useEntityVersions` to prevent race conditions, improve error handling for recent searches in `useSearch`, refine rate limiting logic in `detect-location` Supabase function, and update CORS configuration for `upload-image` Supabase function.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b9af4867-23a7-43cc-baeb-4a97f66b4150
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 18:58:43 +00:00
pac7
a85c0fcd11 Fix issues affecting app performance and user experience
No changes detected.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: b9af4867-23a7-43cc-baeb-4a97f66b4150
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 18:40:05 +00:00
pac7
e4d0e2c57c Fix security vulnerabilities and improve application stability
Address critical bugs including CORS vulnerability, navigation errors, and component crashes, and resolve an image upload race condition.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 567218be-0199-4aaa-af7e-8307f67d4453
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 18:34:26 +00:00
pac7
21bd962767 Improve ride model card to show unknown for missing category or type
Update RideModelCardProps to accept null or undefined for category and type, returning 'Unknown' if they are not provided.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 567218be-0199-4aaa-af7e-8307f67d4453
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 18:32:24 +00:00
pac7
57082de69a Update company search navigation to handle missing identifiers gracefully
Modify AutocompleteSearch.tsx to remove direct use of companyId for navigation, instead handling unknown company types and missing identifiers by showing a toast and returning to search results.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 567218be-0199-4aaa-af7e-8307f67d4453
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 18:31:59 +00:00
pac7
ed7580fefc Update image upload to securely handle cross-origin requests
Refactor CORS configuration in the image upload Supabase function to implement environment-aware origin validation and allow-credentials for improved security.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 567218be-0199-4aaa-af7e-8307f67d4453
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 18:30:37 +00:00
pac7
064bf86bce Fix critical bugs and improve performance for several features
Resolve race conditions in image uploads, fix infinite loops in search components, enhance test data generation, and correct PostgreSQL queries.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dc31cf9d-7a06-4420-8ade-e7b7f5200e71
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 18:15:52 +00:00
pac7
3832439d67 Improve image upload and test data generation functionalities
Refactors `uploadPendingImages` to use `Promise.allSettled` for parallel uploads and implements JSON path queries in `clearTestData` and `getTestDataStats` for more robust test data management. Enhances `seed-test-data` function to support creating data conflicts and version chains, and adds validation for `imageId` format in `upload-image` function. Updates `AutocompleteSearch` to use a default search types constant.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dc31cf9d-7a06-4420-8ade-e7b7f5200e71
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 18:14:34 +00:00
pac7
bdc9f5695e Fix critical bugs and improve application reliability
Resolve infinite loops, hook order violations, race conditions, and enhance validation stability across various hooks and edge functions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 39bb006b-d046-477f-a1f9-b7821836f3a1
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 17:58:33 +00:00
pac7
0f2219f849 Improve image handling, optimize hooks, and add rate limiting
This commit introduces several improvements:
- Enhances `RideModelCard` by safely accessing and displaying ride count and image data, preventing potential errors.
- Refactors `useEntityVersions` and `useSearch` hooks to use `useCallback` and improve performance and prevent race conditions.
- Introduces a `MAX_MAP_SIZE` and cleanup mechanism for the rate limiting map in `detect-location` Supabase function to prevent memory leaks.
- Adds robust error handling and cleanup for image uploads in `uploadPendingImages`.
- Modifies `ManufacturerModels` to correctly map and display ride counts.
- Includes error handling for topological sort in `process-selective-approval` Supabase function.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 39bb006b-d046-477f-a1f9-b7821836f3a1
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 17:55:37 +00:00
pac7
b17d36de03 Improve the performance and reliability of the application
This commit addresses several minor bugs and enhances the overall stability of the application.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4889cc73-529a-4909-b9a6-6d16dba724ad
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 17:35:03 +00:00
pac7
0ba594c16d Improve error handling and fix minor code issues
Address HMR errors, enhance Supabase Edge Function error handling, and resolve minor code quality issues in hooks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 5191c2bb-cd42-429f-a7dc-1c028b81e199
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/5191c2bb-cd42-429f-a7dc-1c028b81e199/b4xFOCI
2025-10-08 17:29:24 +00:00
pac7
fff532a191 Improve theme hook performance by removing unused dependency
Optimize useNovuTheme hook by removing the unused theme variable from the useMemo dependency array, preventing unnecessary recalculations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 5191c2bb-cd42-429f-a7dc-1c028b81e199
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/5191c2bb-cd42-429f-a7dc-1c028b81e199/U85RZre
2025-10-08 17:27:23 +00:00
pac7
6270241109 Improve logging and error handling for better system stability
Update application to implement more robust logging mechanisms and improve error handling routines, ensuring greater system stability and easier debugging.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 5191c2bb-cd42-429f-a7dc-1c028b81e199
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/5191c2bb-cd42-429f-a7dc-1c028b81e199/U85RZre
2025-10-08 17:24:39 +00:00