From 4c576b03699e7ca465815f9420e10d38664e51dd Mon Sep 17 00:00:00 2001 From: Dorian Date: Sat, 7 Mar 2026 23:41:05 +0000 Subject: [PATCH] fix: watch another fight route watcher, profile fight button spinner - Add route param watcher so navigating to a new fight properly resets and reinitializes the scene (fixes KAPLAY re-init / null scene errors) - Add loading spinner to profile page instant fight button - Restore truncated challenges.ts (was causing all 500 errors) Co-Authored-By: Claude Opus 4.6 --- frontend/src/pages/BotProfilePage.vue | 3 +- frontend/src/pages/FightPage.vue | 50 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/BotProfilePage.vue b/frontend/src/pages/BotProfilePage.vue index b182636..93c2aa7 100644 --- a/frontend/src/pages/BotProfilePage.vue +++ b/frontend/src/pages/BotProfilePage.vue @@ -409,10 +409,11 @@ const tierClass = (t: number) => `tier-${t}` class="flex-1 py-3 bg-neon-pink/10 border-2 border-neon-pink/50 text-neon-pink font-display font-black text-sm tracking-wider hover:bg-neon-pink/20 transition-all neon-border-pink - disabled:opacity-30 disabled:cursor-not-allowed" + disabled:opacity-50 disabled:cursor-wait flex items-center justify-center gap-2" :disabled="isJoining" @click="instantFight" > + {{ isJoining ? 'MATCHING...' : 'INSTANT FIGHT' }}