From 8faa5b05823f3b227587dd7fa5b3f6d8ef252947 Mon Sep 17 00:00:00 2001 From: Fiz <34069775+Hafizzle@users.noreply.github.com> Date: Tue, 16 Sep 2025 22:12:41 -0500 Subject: [PATCH] Updates & Fixes: Profile Modal Tab URLs, Chat Mention Case-Insensitive, G1G1 Updates, Challenge Participants, End Challenge Modal (#15493) * Fix profile modal tab navigation URLs for both own and other users profiles - Add routes for /user/profile, /user/stats, and /user/achievements - Update selectPage() to properly update URLs when switching tabs - Own profile uses /user/{tab} format - Other users' profiles use /profile/{userId}#{tab} format - Parse hash fragments when navigating to other users' profile tabs - Ensure direct navigation to tab URLs opens correct tab * Fix undefined userId * Server now matches usernames case insensitively like client - Preserves original capitalization in mention text - Fixes profile links not working with wrong case mentions * lint fixes * g1g1 width auto sizing w/padding * Challenge participants spacing & text sizing fix * Fix inconsistent profile URL format between own and other users' profiles - Update profile tab navigation to use consistent URL format for all users - Redirect old /user/* routes to new format for backward compatibility - Update all navigation points (dropdown menu, notifications) to use new URLs * Update End Challenge modal - Replace dropdown with searchable input (384x32px) for winner selection - Add visual badge state with gems icons for challenge completion - Update Delete Challenge flow with refund info and proper styling - Add close button (X) with opacity hover effect - Enhance Award Winner button with gem icon and dynamic prize display - Apply conditional styling based on winner selection state - Update text colors: Maroon/50 for delete warning, Gray/100 for "OR" text - Add proper translations for gem/gems and refund description * lint error fixes * end challenge modal fixes * lint fix * Use existing closeX component, minor UI fixes to close challenge modal * fix lint * Delete icon color to match text on close challenge modal use color field to set delete icon color * Highlight username on close challenge modal color updates - Background color on hover: purple-600 - Text color on hover: purple-300 - Changed transition from just background-color to all so both color changes animate smoothly * Fix strings * Refactor g1g1 notifications from database-driven to event-based system Changed g1g1 (gift one get one) notifications to display automatically during event periods instead of requiring database storage. Notifications now appear based on event calendar dates and use sessionStorage for dismissal state. - Display g1g1 notification when event is active in worldState - Store dismissal state in sessionStorage with event-specific keys - Remove dependency on user.notifications database array - Maintain identical user experience and appearance * Update prize card to match participants card on challenges * End Challenge modal UI tweaks * Prevent false mention highlights Prevent false mention highlights when a user's display name matches another user's username. The purple mention indicator now only appears for actual @username mentions. * lint fixes * Remove mention highlight * Mention highlighting to only highlight w/username mentions * Update G1G1 Notification - Updated text styling for title & description - Updated button styling - Updated close button * lint fix * Add updated G1G1 notification SVGs * Don't highlight display name w/mention * g1g1 UI updates - Fix sizing of gift SVGs (96px tall) - Update button to use button element and styles @@ -60,14 +103,27 @@
- {{ $t('doYouWantedToDeleteChallenge') }} + {{ $t('doYouWantedToDeleteChallenge') }} +
+
+ {{ $t('deleteChallengeRefundDescription') }}
@@ -82,6 +138,7 @@