Commit Graph

80 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
1df9ada8ae Reverted to commit 96a961d95c 2025-10-11 15:58:11 +00:00
gpt-engineer-app[bot]
092337ee9e Fix: Improve preview loading and error handling 2025-10-11 14:45:22 +00:00
gpt-engineer-app[bot]
1e30dedca2 Reverted to commit db532afcef 2025-10-11 14:37:17 +00:00
gpt-engineer-app[bot]
be265632ad Reverted to commit 06ed528d76 2025-10-11 14:35:02 +00:00
gpt-engineer-app[bot]
5a00767914 Fix AuthProvider loading state bug 2025-10-11 14:29:30 +00:00
gpt-engineer-app[bot]
06ed528d76 Fix: Resolve authentication state recognition issues 2025-10-11 00:54:27 +00:00
gpt-engineer-app[bot]
3f08dcb203 Refactor: Simplify CAPTCHA bypass logic 2025-10-11 00:47:34 +00:00
gpt-engineer-app[bot]
21acbb948c Implement two-layer CAPTCHA bypass 2025-10-11 00:41:13 +00:00
gpt-engineer-app[bot]
9969fe2692 Fix: Implement iframe-compatible authentication 2025-10-10 23:52:43 +00:00
gpt-engineer-app[bot]
e005ef59c4 Fix: Add fetchVersions to useEffect dependency array 2025-10-10 23:15:20 +00:00
gpt-engineer-app[bot]
0d625f3dc7 Fix version history errors 2025-10-10 23:05:53 +00:00
gpt-engineer-app[bot]
356cf2b54b Fix admin page flashing 2025-10-09 17:14:45 +00:00
gpt-engineer-app[bot]
039fe46e55 Refactor: Implement debouncing and anti-flashing fixes 2025-10-09 15:47:09 +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
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
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
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
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
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
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
0050032681 Implement claim and freeze system for moderation queue
Refactors the moderation queue to implement a "claim and freeze" model, preventing automatic updates during background polling and enforcing claim/lock isolation. Adds a `claimSubmission` function to `useModerationQueue` and modifies `ModerationQueue.tsx` to filter submissions based on claim status and update handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e14c2292-b0e5-43fe-b301-a4ad668949e9
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 14:48:15 +00:00
pac7
852adc51d6 Improve mobile detection hook for better cross-device compatibility
Update useIsMobile hook to use MediaQueryList.matches for detecting mobile devices, addressing SSR compatibility and improving initial value setting and event listening.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fe5b902e-beda-40fc-bf87-a3c4ab300e3a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:54:03 +00:00
pac7
4718db4002 Improve authentication hook to avoid development refresh issues
Refactors the AuthProvider component in `src/hooks/useAuth.tsx` to properly export the component, addressing Fast Refresh compatibility warnings and improving developer experience.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fe5b902e-beda-40fc-bf87-a3c4ab300e3a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 12:51:25 +00:00
pac7
994a07f4af Update user authentication to correctly track previous email addresses
Replaces `previousEmail` state with a ref (`previousEmailRef`) to accurately track the user's old email address during authentication flow, specifically for handling email change notifications.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a16cce43-1d93-4e5c-a1e6-6ca90e68cc4f
Replit-Commit-Checkpoint-Type: full_checkpoint
2025-10-08 12:44:37 +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
8afa0bbad2 Improve reliability when updating data subscriptions
Add try-catch block to handle potential errors during Supabase channel removal in `useEntityVersions.ts`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8e00d8b1-e8de-4f48-99ca-dbba7279e1a6
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 15:46:16 +00:00
pac7
f97bb91b11 Improve handling of recent searches to prevent errors
Add error handling and validation for parsing recent searches from localStorage in src/hooks/useSearch.tsx.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8e00d8b1-e8de-4f48-99ca-dbba7279e1a6
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-07 15:44:45 +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]
f5c59aa072 Fix admin dashboard auto-refresh 2025-10-06 18:36:43 +00:00
gpt-engineer-app[bot]
a3928c7f23 Add versioning system tables 2025-10-06 15:37:10 +00:00
gpt-engineer-app[bot]
3dec0b2a97 feat: Implement complete queue system 2025-10-06 14:43:31 +00:00
gpt-engineer-app[bot]
d955037990 feat: Implement frontend queue integration 2025-10-06 14:39:21 +00:00
pacnpal
095907b3a5 Merge branch 'main' of https://github.com/pacnpal/thrilltrack-explorer 2025-10-04 14:34:37 +00:00
pac7
3389c3d12c Improve mobile detection logic to handle server-side rendering
Add a check for `window` existence in `useIsMobile` hook to prevent errors during SSR.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f44f1d1b-1dd8-407b-8603-db12902e1a15
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-04 14:24:37 +00:00
gpt-engineer-app[bot]
b221c75d4a Refactor polling to prevent interruptions 2025-10-03 19:12:50 +00:00
gpt-engineer-app[bot]
a2d3ed5ea4 Refactor moderation queues 2025-10-03 18:40:34 +00:00
gpt-engineer-app[bot]
e6238c45b3 Add admin panel refresh settings 2025-10-03 18:37:16 +00:00
gpt-engineer-app[bot]
91826f0b48 Fix broadcast function search path 2025-10-03 18:08:02 +00:00
gpt-engineer-app[bot]
8e6c8728a3 Refactor: Simplify Realtime channel creation 2025-10-03 17:25:10 +00:00
gpt-engineer-app[bot]
08b842052a Fix 406 errors and realtime auth 2025-10-03 17:17:40 +00:00
gpt-engineer-app[bot]
2d0a45b5b0 Fix real-time stats and submission refresh 2025-10-03 17:06:44 +00:00
gpt-engineer-app[bot]
b778fc95f6 Refactor: Implement Phase 3C cleanup 2025-10-03 14:24:43 +00:00
gpt-engineer-app[bot]
15caad0c8e feat: Implement enhanced realtime subscriptions 2025-10-02 20:38:30 +00:00
gpt-engineer-app[bot]
14ab8a72d6 Fix search to use slugs 2025-10-02 20:12:12 +00:00
gpt-engineer-app[bot]
ee1ea52f2e Refactor: Update user list item interfaces 2025-10-02 12:02:36 +00:00
gpt-engineer-app[bot]
ef4663b09f Fix realtime subscription loop 2025-10-01 20:34:56 +00:00
gpt-engineer-app[bot]
c00f991b1e Fix: Prevent logout on email change cancellation 2025-10-01 16:39:52 +00:00