fix: apply DebugName wrappers to tab components (BUG 7 partial) and other updates
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m12s

This commit is contained in:
2026-05-07 13:32:04 +02:00
parent 32a86c3e62
commit 482320b519
17 changed files with 603 additions and 12 deletions
+8 -5
View File
@@ -40,6 +40,7 @@ import { ScrollArea } from '@/components/ui/scroll-area';
import { RotateCcw, Mountain } from 'lucide-react';
import { TooltipProvider } from '@/components/ui/tooltip';
import { ErrorBoundary } from '@/components/ErrorBoundary';
import { DebugName } from '@/lib/game/debug-context';
// Import extracted components
import { GameOverScreen } from './components/GameOverScreen';
@@ -89,11 +90,12 @@ function GrimoireTab() {
const availablePages = Math.ceil(grimoireSpells.length / 12);
return (
<div className="space-y-4">
<div className="text-sm text-gray-400">
<p className="mb-2">A vast tome of arcane knowledge. Study carefully each spell costs insight to transcribe into your repertoire.</p>
<p>Available pages: {availablePages}. Spells in grimoire: {grimoireSpells.length}.</p>
</div>
<DebugName name="GrimoireTab">
<div className="space-y-4">
<div className="text-sm text-gray-400">
<p className="mb-2">A vast tome of arcane knowledge. Study carefully each spell costs insight to transcribe into your repertoire.</p>
<p>Available pages: {availablePages}. Spells in grimoire: {grimoireSpells.length}.</p>
</div>
<ScrollArea className="h-[600px] rounded border border-gray-700 p-4">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
@@ -119,6 +121,7 @@ function GrimoireTab() {
</div>
</ScrollArea>
</div>
</DebugName>
);
}