Refactor: ModelsView auf Hooks + Leaf-Komponenten ausgelagert (Phase 4b)
- JobsBar -> components/models/JobsBar.tsx (useJobs + Invalidierung, useDialog). - FitBadge/getBrandInfo/ROLES -> components/models/ModelBadges.tsx. - Cockpit + Discover: manuelles Promise.all+setInterval durch useModels/ useRouting/useConnect/useUpdates/useDiscover ersetzt; lokaler Dialog-State + showAlert/showConfirm/showPrompt durch useDialog; Mutationen invalidieren die Query-Keys statt load(). AddModel-Aktionen bleiben imperativ (api()). - ModelsView 1660 -> 1455 Zeilen; tote Format-/Typ-Importe entfernt. Verifiziert: tsc grün, Build grün, Cockpit- und Discover-Tab rendern ohne Konsolenfehler (VRAM-HUD, Registry). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<title>Mission Control 2.0</title>
|
||||
<script type="module" crossorigin src="/assets/index-CpG8j7ha.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DSczZxZr.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DiSNgbNY.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user