refactor: move trouble codes to bottom of dashboard
This commit is contained in:
@@ -77,12 +77,6 @@ fun DashboardScreen(
|
|||||||
|
|
||||||
// Telemetry Panels
|
// Telemetry Panels
|
||||||
if (frame != null) {
|
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
|
// Gauges row: RPM and TPS
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp),
|
modifier = Modifier.fillMaxWidth().padding(horizontal = 16.dp),
|
||||||
@@ -220,7 +214,13 @@ fun DashboardScreen(
|
|||||||
// Status Badges Section
|
// Status Badges Section
|
||||||
StatusFlagsPanel(frame = frame)
|
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 {
|
} else {
|
||||||
// Empty / Waiting display
|
// Empty / Waiting display
|
||||||
Box(
|
Box(
|
||||||
|
|||||||
Reference in New Issue
Block a user