

























@@ -7,6 +7,7 @@ import ai.openclaw.app.ui.design.ClawPanel
77import ai.openclaw.app.ui.design.ClawSecondaryButton
88import ai.openclaw.app.ui.design.ClawStatus
99import ai.openclaw.app.ui.design.ClawStatusPill
10+import ai.openclaw.app.ui.design.ClawStatusRow
1011import ai.openclaw.app.ui.design.ClawTheme
1112import androidx.activity.compose.BackHandler
1213import androidx.compose.foundation.clickable
@@ -165,37 +166,21 @@ private fun HealthStatusPanel(
165166) {
166167ClawPanel(contentPadding = PaddingValues(horizontal = 0.dp, vertical = 0.dp)) {
167168Column {
168-HealthStatusRow(title = "Gateway", value = gateway, healthy = isConnected)
169+ClawStatusRow(title = "Gateway", value = gateway, healthy = isConnected)
169170HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)
170-HealthStatusRow(title = "Phone Node", value = node, healthy = isNodeConnected)
171+ClawStatusRow(title = "Phone Node", value = node, healthy = isNodeConnected)
171172HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)
172-HealthStatusRow(title = "Chat", value = chat, healthy = chatHealthOk)
173+ClawStatusRow(title = "Chat", value = chat, healthy = chatHealthOk)
173174HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)
174-HealthStatusRow(title = "Models", value = models, healthy = modelsReady)
175+ClawStatusRow(title = "Models", value = models, healthy = modelsReady)
175176HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)
176-HealthStatusRow(title = "Voice", value = voice, healthy = voiceReady)
177+ClawStatusRow(title = "Voice", value = voice, healthy = voiceReady)
177178HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)
178-HealthStatusRow(title = "Runs", value = runs, healthy = true)
179+ClawStatusRow(title = "Runs", value = runs, healthy = true)
179180 }
180181 }
181182}
182183183-@Composable
184-private fun HealthStatusRow(
185-title: String,
186-value: String,
187-healthy: Boolean,
188-) {
189-Row(
190- modifier = Modifier.fillMaxWidth().padding(horizontal = 10.dp, vertical = 7.dp),
191- verticalAlignment = Alignment.CenterVertically,
192- horizontalArrangement = Arrangement.spacedBy(9.dp),
193- ) {
194-Text(text = title, style = ClawTheme.type.body, color = ClawTheme.colors.text, modifier = Modifier.weight(1f), maxLines = 1)
195-ClawStatusPill(text = value, status = if (healthy) ClawStatus.Success else ClawStatus.Warning)
196- }
197-}
198-199184@Composable
200185private fun GatewayLogsPanel(
201186isConnected: Boolean,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。