惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
A
About on SuperTechFans
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
B
Blog RSS Feed
G
Google Developers Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(android): add settings detail panels (#95148) · open...
Tosko4 · 2026-06-23 · via Recent Commits to openclaw:main

@@ -8,20 +8,27 @@ import ai.openclaw.app.ui.design.ClawSecondaryButton

88

import ai.openclaw.app.ui.design.ClawStatus

99

import ai.openclaw.app.ui.design.ClawStatusPill

1010

import ai.openclaw.app.ui.design.ClawTheme

11+

import androidx.activity.compose.BackHandler

12+

import androidx.compose.foundation.clickable

1113

import androidx.compose.foundation.layout.Arrangement

1214

import androidx.compose.foundation.layout.Column

1315

import androidx.compose.foundation.layout.PaddingValues

1416

import androidx.compose.foundation.layout.Row

1517

import androidx.compose.foundation.layout.fillMaxWidth

1618

import androidx.compose.foundation.layout.padding

1719

import androidx.compose.material.icons.Icons

20+

import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight

1821

import androidx.compose.material.icons.filled.Settings

1922

import androidx.compose.material3.HorizontalDivider

23+

import androidx.compose.material3.Icon

2024

import androidx.compose.material3.Text

2125

import androidx.compose.runtime.Composable

2226

import androidx.compose.runtime.LaunchedEffect

2327

import androidx.compose.runtime.collectAsState

2428

import androidx.compose.runtime.getValue

29+

import androidx.compose.runtime.mutableStateOf

30+

import androidx.compose.runtime.remember

31+

import androidx.compose.runtime.setValue

2532

import androidx.compose.ui.Alignment

2633

import androidx.compose.ui.Modifier

2734

import androidx.compose.ui.text.style.TextOverflow

@@ -43,6 +50,7 @@ internal fun HealthLogsSettingsScreen(

4350

val logsSummary by viewModel.healthLogsSummary.collectAsState()

4451

val logsRefreshing by viewModel.healthLogsRefreshing.collectAsState()

4552

val logsErrorText by viewModel.healthLogsErrorText.collectAsState()

53+

var selectedLogEntry by remember { mutableStateOf<GatewayLogEntry?>(null) }

46544755

LaunchedEffect(isConnected) {

4856

if (isConnected) {

@@ -52,6 +60,11 @@ internal fun HealthLogsSettingsScreen(

5260

}

5361

}

546263+

selectedLogEntry?.let { entry ->

64+

GatewayLogDetailSettingsScreen(entry = entry, onBack = { selectedLogEntry = null })

65+

return

66+

}

67+5568

SettingsDetailFrame(

5669

title = "Health",

5770

subtitle = "Gateway status, phone node readiness, and recent log stream.",

@@ -93,7 +106,46 @@ internal fun HealthLogsSettingsScreen(

93106

Text(text = error, style = ClawTheme.type.body, color = ClawTheme.colors.warning)

94107

}

95108

}

96-

GatewayLogsPanel(isConnected = isConnected, summary = logsSummary)

109+

GatewayLogsPanel(isConnected = isConnected, summary = logsSummary, onLogClick = { selectedLogEntry = it })

110+

}

111+

}

112+113+

@Composable

114+

private fun GatewayLogDetailSettingsScreen(

115+

entry: GatewayLogEntry,

116+

onBack: () -> Unit,

117+

) {

118+

BackHandler(onBack = onBack)

119+

SettingsDetailFrame(

120+

title = "Log Entry",

121+

subtitle = "Readable gateway log detail.",

122+

icon = Icons.Default.Settings,

123+

onBack = onBack,

124+

) {

125+

SettingsMetricPanel(

126+

rows =

127+

listOf(

128+

SettingsMetric("Time", compactLogTime(entry.time)),

129+

SettingsMetric("Level", entry.level?.uppercase() ?: "LOG"),

130+

SettingsMetric("Subsystem", entry.subsystem ?: "Unknown"),

131+

),

132+

)

133+

ClawPanel {

134+

Column(verticalArrangement = Arrangement.spacedBy(6.dp)) {

135+

Text(text = "Message", style = ClawTheme.type.section, color = ClawTheme.colors.text)

136+

Text(text = entry.message, style = ClawTheme.type.body, color = ClawTheme.colors.text)

137+

}

138+

}

139+

ClawPanel {

140+

Column(verticalArrangement = Arrangement.spacedBy(6.dp)) {

141+

Text(text = "Raw", style = ClawTheme.type.section, color = ClawTheme.colors.text)

142+

Text(

143+

text = entry.raw.take(4_000),

144+

style = ClawTheme.type.caption,

145+

color = ClawTheme.colors.textMuted,

146+

)

147+

}

148+

}

97149

}

98150

}

99151

@@ -148,6 +200,7 @@ private fun HealthStatusRow(

148200

private fun GatewayLogsPanel(

149201

isConnected: Boolean,

150202

summary: GatewayHealthLogsSummary,

203+

onLogClick: (GatewayLogEntry) -> Unit,

151204

) {

152205

Column(verticalArrangement = Arrangement.spacedBy(6.dp)) {

153206

Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically) {

@@ -170,7 +223,7 @@ private fun GatewayLogsPanel(

170223

val entries = summary.entries.takeLast(12)

171224

Column {

172225

entries.forEachIndexed { index, entry ->

173-

GatewayLogRow(entry = entry)

226+

GatewayLogRow(entry = entry, onClick = { onLogClick(entry) })

174227

if (index != entries.lastIndex) {

175228

HorizontalDivider(color = ClawTheme.colors.border, thickness = 1.dp)

176229

}

@@ -185,9 +238,16 @@ private fun GatewayLogsPanel(

185238

}

186239187240

@Composable

188-

private fun GatewayLogRow(entry: GatewayLogEntry) {

241+

private fun GatewayLogRow(

242+

entry: GatewayLogEntry,

243+

onClick: () -> Unit,

244+

) {

189245

Row(

190-

modifier = Modifier.fillMaxWidth().padding(horizontal = 10.dp, vertical = 7.dp),

246+

modifier =

247+

Modifier

248+

.fillMaxWidth()

249+

.clickable(onClickLabel = "Open log entry", onClick = onClick)

250+

.padding(horizontal = 10.dp, vertical = 7.dp),

191251

verticalAlignment = Alignment.Top,

192252

horizontalArrangement = Arrangement.spacedBy(9.dp),

193253

) {

@@ -199,6 +259,11 @@ private fun GatewayLogRow(entry: GatewayLogEntry) {

199259

}

200260

}

201261

ClawStatusPill(text = entry.level?.uppercase() ?: "LOG", status = logLevelStatus(entry.level))

262+

Icon(

263+

imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,

264+

contentDescription = null,

265+

tint = ClawTheme.colors.textSubtle,

266+

)

202267

}

203268

}

204269