refactor(web): split dashboard into combat stats and reference stats

Hull and Armor current are always editable with steppers at the top
of the dashboard — these are the values that change every combat round.

All other stats (AC, Con, Speed, Class, Size, Max values, Crew,
Hardpoints, Cargo) are shown in a compact read-only reference grid
with an Edit button to toggle into editable mode when needed.

Removes separate MobilitySection and CrewSection in favor of a unified
ShipStatsSection that combines all reference stats in one place.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bas van Rossem
2026-02-19 17:22:42 +01:00
parent 642f1f70e8
commit 836a5d7a49
6 changed files with 112 additions and 175 deletions

View File

@@ -321,10 +321,17 @@ button:disabled {
padding-bottom: var(--spacing-xs);
}
.dashboard-toolbar {
display: flex;
justify-content: flex-end;
margin-bottom: var(--spacing-md);
.combat-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--spacing-md);
}
.combat-stat {
background: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: var(--spacing-sm);
}
.stat-grid {