mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 06:11:11 -05:00
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
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
ThrillWiki is a community-driven web application for discovering, reviewing, and tracking theme parks, rides, and related entities globally. Its core purpose is to provide a centralized platform for enthusiasts to research attractions and contribute to a collaborative knowledge base through user contributions and reviews, offering a comprehensive encyclopedia for the theme park world.
|
||||
|
||||
## Recent Changes
|
||||
**October 2025 - Comprehensive Bug Analysis & Fixes (Latest)**
|
||||
- **Rate Limiting Optimization**: Fixed detect-location edge function to only perform cleanup when adding new IPs at capacity, improving performance by short-circuiting existing entries
|
||||
- **Null Safety**: Fixed PhotoSubmissionDisplay null reference errors by switching from !inner join to regular join with filtering
|
||||
- **User-Facing Error Messages**: Added error state handling to useSearch and LocationSearch hooks, displaying user-friendly error messages instead of silent failures
|
||||
- **Image Upload Cleanup**: Enhanced error tracking in imageUploadHelper to report orphaned assets and detailed cleanup failures
|
||||
- **Type Safety in Edge Functions**: Added explicit null checks and error handling for RPC calls and crypto.randomUUID availability in seed-test-data
|
||||
- **Improved Error Messages**: Updated all Supabase edge functions with clearer, user-oriented error messages
|
||||
|
||||
**October 2025 - Bug Fixes & Stability Improvements**
|
||||
- Fixed Fast Refresh/HMR issues by separating hook exports from component files (useSidebar, uploadPendingImages)
|
||||
- Added comprehensive null/undefined safety checks across PhotoModal, EntityHistoryTimeline, useEntityVersions, and EntityEditPreview components
|
||||
|
||||
Reference in New Issue
Block a user