feat: surface /api/status memory+disk pressure on connect/status screens (#903) (#908)

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-08-15 13:00:08 +03:00
1 parent 2746d39c7f
commit 85087c70c7
9 files changed
+402 -1

No files matched your search

@@ -39,6 +39,7 @@ import com.m57.hermescontrol.theme.LocalHermesStatusColors
import com.m57.hermescontrol.ui.common.ErrorState
import com.m57.hermescontrol.ui.common.HermesScaffold
import com.m57.hermescontrol.ui.common.NavIcon
import com.m57.hermescontrol.ui.common.PressureBanner
import com.m57.hermescontrol.ui.common.SkeletonListState
import com.m57.hermescontrol.ui.common.ToastEffect
@@ -108,6 +109,11 @@ fun GatewayScreen(
) {
val isRunning = status?.gateway_running == true
// Host-health advisory (issue #903): memory/disk pressure
status?.let { s ->
PressureBanner(memory = s.memory, disk = s.disk)
}
// Status Overview Card
Card(
modifier = Modifier.fillMaxWidth(),