refactor: move trouble codes to bottom of dashboard

This commit is contained in:
2026-06-12 10:50:23 +01:00
parent 6c57086f25
commit 05a5acac10
@@ -77,12 +77,6 @@ fun DashboardScreen(
// Telemetry Panels
if (frame != null) {
// Trouble Codes Card (Flashing if active)
if (frame.activeFaultCodes.isNotEmpty()) {
TroubleCodesCard(activeCodes = frame.activeFaultCodes)
Spacer(modifier = Modifier.height(12.dp))
}
// Gauges row: RPM and TPS
Row(
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp),
@@ -220,7 +214,13 @@ fun DashboardScreen(
// Status Badges Section
StatusFlagsPanel(frame = frame)
Spacer(modifier = Modifier.height(16.dp))
Spacer(modifier = Modifier.height(12.dp))
// Trouble Codes Card (at bottom - moved from top)
if (frame.activeFaultCodes.isNotEmpty()) {
TroubleCodesCard(activeCodes = frame.activeFaultCodes)
Spacer(modifier = Modifier.height(16.dp))
}
} else {
// Empty / Waiting display
Box(