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

推荐订阅源

Martin Fowler
Martin Fowler
D
DataBreaches.Net
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
M
MIT News - Artificial intelligence
美团技术团队
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Cloudflare Blog
有赞技术团队
有赞技术团队
L
LangChain Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
S
SegmentFault 最新的问题
V
Visual Studio Blog
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
B
Blog
I
InfoQ

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
fix(ios): move approvals to settings · openclaw/openclaw@...
joshavant · 2026-06-06 · via Recent Commits to openclaw:main

@@ -118,6 +118,13 @@ extension SettingsProTab {

118118119119

var settingsListSection: some View {

120120

VStack(spacing: 10) {

121+

self.settingsListRow(

122+

icon: "checkmark.shield.fill",

123+

title: "Approvals",

124+

detail: self.approvalsDetail,

125+

route: .approvals,

126+

color: self.pendingApproval == nil ? .secondary : OpenClawBrand.warn,

127+

badgeValue: self.pendingApproval == nil ? nil : "1")

121128

self.settingsListRow(

122129

icon: "person.2",

123130

title: "Permissions",

@@ -156,11 +163,13 @@ extension SettingsProTab {

156163

icon: String,

157164

title: String,

158165

detail: String,

159-

route: SettingsRoute) -> some View

166+

route: SettingsRoute,

167+

color: Color = .secondary,

168+

badgeValue: String? = nil) -> some View

160169

{

161170

NavigationLink(value: route) {

162171

HStack(spacing: 12) {

163-

ProIconBadge(systemName: icon, color: .secondary)

172+

ProIconBadge(systemName: icon, color: color)

164173

VStack(alignment: .leading, spacing: 2) {

165174

Text(title)

166175

.font(.subheadline.weight(.semibold))

@@ -170,6 +179,9 @@ extension SettingsProTab {

170179

.lineLimit(1)

171180

}

172181

Spacer(minLength: 8)

182+

if let badgeValue {

183+

ProValuePill(value: badgeValue, color: color)

184+

}

173185

Image(systemName: "chevron.right")

174186

.font(.caption.weight(.semibold))

175187

.foregroundStyle(.secondary)

@@ -189,6 +201,8 @@ extension SettingsProTab {

189201

switch route {

190202

case .gateway:

191203

self.gatewayDestination

204+

case .approvals:

205+

self.approvalsDestination

192206

case .permissions:

193207

self.permissionsDestination

194208

case .voice:

@@ -250,6 +264,90 @@ extension SettingsProTab {

250264

}

251265

}

252266267+

var approvalsDestination: some View {

268+

VStack(alignment: .leading, spacing: 14) {

269+

self.detailStatusCard(

270+

icon: "checkmark.shield.fill",

271+

title: "Approvals",

272+

detail: self.pendingApproval == nil ? "No gateway actions are waiting for review." :

273+

"Review the pending gateway action.",

274+

value: self.pendingApproval == nil ? "clear" : "1 waiting",

275+

color: self.pendingApproval == nil ? OpenClawBrand.ok : OpenClawBrand.warn)

276+277+

self.approvalsReviewCard

278+

}

279+

}

280+281+

var approvalsReviewCard: some View {

282+

ProCard(radius: SettingsLayout.cardRadius) {

283+

VStack(alignment: .leading, spacing: 12) {

284+

if let pendingApproval {

285+

VStack(spacing: 0) {

286+

ForEach(Array(self.approvalItems.enumerated()), id: \.element.id) { index, item in

287+

SettingsApprovalRow(item: item)

288+

if index < self.approvalItems.count - 1 {

289+

Divider().padding(.leading, 46)

290+

}

291+

}

292+

}

293+294+

if let errorText = self.appModel.pendingExecApprovalPromptErrorText {

295+

Text(errorText)

296+

.font(.caption2.weight(.medium))

297+

.foregroundStyle(OpenClawBrand.danger)

298+

}

299+300+

HStack(spacing: 8) {

301+

Button {

302+

Task { await self.appModel.resolvePendingExecApprovalPrompt(decision: "allow-once") }

303+

} label: {

304+

Label("Allow", systemImage: "checkmark")

305+

}

306+

.buttonStyle(.borderedProminent)

307+

.disabled(self.appModel.pendingExecApprovalPromptResolving)

308+309+

if pendingApproval.allowsAllowAlways {

310+

Button {

311+

Task {

312+

await self.appModel.resolvePendingExecApprovalPrompt(decision: "allow-always")

313+

}

314+

} label: {

315+

Label("Always", systemImage: "checkmark.shield")

316+

}

317+

.buttonStyle(.bordered)

318+

.disabled(self.appModel.pendingExecApprovalPromptResolving)

319+

}

320+321+

Button(role: .destructive) {

322+

Task { await self.appModel.resolvePendingExecApprovalPrompt(decision: "deny") }

323+

} label: {

324+

Label("Deny", systemImage: "xmark")

325+

}

326+

.buttonStyle(.bordered)

327+

.disabled(self.appModel.pendingExecApprovalPromptResolving)

328+329+

Spacer(minLength: 0)

330+

}

331+

.controlSize(.small)

332+

} else {

333+

HStack(spacing: 12) {

334+

ProIconBadge(systemName: "checkmark.shield.fill", color: OpenClawBrand.ok)

335+

VStack(alignment: .leading, spacing: 3) {

336+

Text("No approvals waiting")

337+

.font(.subheadline.weight(.semibold))

338+

Text(self

339+

.gatewayConnected ? "Gateway requests will appear here." : "Connect to the gateway.")

340+

.font(.caption)

341+

.foregroundStyle(.secondary)

342+

.lineLimit(2)

343+

}

344+

}

345+

}

346+

}

347+

}

348+

.padding(.horizontal, OpenClawProMetric.pagePadding)

349+

}

350+253351

var permissionsDestination: some View {

254352

VStack(alignment: .leading, spacing: 14) {

255353

self.toggleCard(