Wartung: Cockpit-Layout: StatusLine und NeedsYou direkt in das zweispaltige Haupt-Grid integriert (kein versetzter Freiraum mehr)
This commit is contained in:
@@ -98,27 +98,13 @@ export function CockpitView({ onNavigate }: { onNavigate: (v: string) => void })
|
||||
<p className="text-sm text-muted-foreground">Deine Box auf einen Blick — Details hinter jeder Kachel.</p>
|
||||
</div>
|
||||
|
||||
{/* Top Grid: StatusLine (2/3) und NeedsYou (1/3) */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 items-stretch">
|
||||
<div className="lg:col-span-2">
|
||||
<StatusLine verdict={health.verdict} memory={health.memory} warns={health.warns} />
|
||||
</div>
|
||||
<div>
|
||||
<NeedsYou
|
||||
problems={health.problems}
|
||||
pendingCount={pendingCount}
|
||||
openAuftraege={openAuftraege}
|
||||
busy={busy}
|
||||
onRepair={runRepair}
|
||||
onNavigate={onNavigate}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Main Grid: 2/3 Links (Inhalte & Performance), 1/3 Rechts (Shortcuts & Kalender) */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 items-start">
|
||||
{/* Hauptspalte Links */}
|
||||
<div className="lg:col-span-2 space-y-6">
|
||||
{/* Status-Zeile */}
|
||||
<StatusLine verdict={health.verdict} memory={health.memory} warns={health.warns} />
|
||||
|
||||
{/* Morgenlage — das jüngste Nacht-Gutachten (verschwindet, wenn keines da ist) */}
|
||||
<MorgenlageCard />
|
||||
|
||||
@@ -182,6 +168,16 @@ export function CockpitView({ onNavigate }: { onNavigate: (v: string) => void })
|
||||
|
||||
{/* Seitenspalte Rechts */}
|
||||
<div className="space-y-6">
|
||||
{/* Handlungsbedarf (NeedsYou) */}
|
||||
<NeedsYou
|
||||
problems={health.problems}
|
||||
pendingCount={pendingCount}
|
||||
openAuftraege={openAuftraege}
|
||||
busy={busy}
|
||||
onRepair={runRepair}
|
||||
onNavigate={onNavigate}
|
||||
/>
|
||||
|
||||
{/* Anstehendes — Erinnerungen & Routinen */}
|
||||
<section>
|
||||
<ZoneLabel>Anstehendes</ZoneLabel>
|
||||
|
||||
Reference in New Issue
Block a user