From 785133a761e139845ecc1b99529075918ac0ceeb Mon Sep 17 00:00:00 2001 From: pac7 <47831526-pac7@users.noreply.replit.com> Date: Mon, 13 Oct 2025 16:12:50 +0000 Subject: [PATCH] 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 --- replit.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/replit.md b/replit.md index 963eec01..f8930560 100644 --- a/replit.md +++ b/replit.md @@ -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. ## 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: - 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)