Improve how user avatars are displayed throughout the application

Update all avatar display locations to use a new UserAvatar component with enhanced retry logic, cache-busting, and support for size variants.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ef7037e7-a631-48a2-94d1-9a4b52d7c35a
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7cdf4e95-3f41-4180-b8e3-8ef56d032c0e/ef7037e7-a631-48a2-94d1-9a4b52d7c35a/OwE1IU0
This commit is contained in:
pac7
2025-10-13 16:12:50 +00:00
committed by pacnpal
parent 8a2d57b08c
commit 785133a761

View File

@@ -4,7 +4,19 @@
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. 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 ## Recent Changes
**October 2025 - Critical Bug Fixes & Stability Improvements (Latest)** **October 2025 - Avatar Display System Improvements (Latest)**
- **Unified Avatar Component**: Created centralized UserAvatar component with robust retry logic and cache-busting to fix inconsistent avatar display across the application
- Implemented bounded retry mechanism with two attempts and query parameter-based cache-busting
- Added loading and error states with smooth transitions
- Supports size variants (sm, md, lg) for different UI contexts
- Automatically resets state when avatar URL changes to prevent stale displays
- **Comprehensive Avatar Integration**: Updated all avatar display locations to use UserAvatar component
- Replaced Avatar usage in AuthButtons header with UserAvatar using key prop for forced re-renders
- Updated ReviewsList to use UserAvatar for consistent review author avatars
- Migrated QueueItem moderator and reviewer avatars to UserAvatar component
- Ensured fallback text generation handles null/undefined cases gracefully across all usages
**October 2025 - Critical Bug Fixes & Stability Improvements**
- **Moderation Queue Sorting Enhancement**: Enhanced sorting controls with visual loading indicators and diagnostic logging: - **Moderation Queue Sorting Enhancement**: Enhanced sorting controls with visual loading indicators and diagnostic logging:
- Added animated spinners to sort controls (label and direction button) during data fetch operations - Added animated spinners to sort controls (label and direction button) during data fetch operations
- Added comprehensive logging to track multi-level sort queries (escalated DESC → user-selected sort → created_at tertiary) - Added comprehensive logging to track multi-level sort queries (escalated DESC → user-selected sort → created_at tertiary)