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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
U
Unit 42
T
Tailwind CSS Blog
罗磊的独立博客
WordPress大学
WordPress大学
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 聂微东
Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
V
V2EX
博客园 - 三生石上(FineUI控件)
I
InfoQ
雷峰网
雷峰网
G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
B
Blog
腾讯CDC
A
About on SuperTechFans
博客园 - 叶小钗

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(ios): consolidate notification permission UX · openc...
joshavant · 2026-06-22 · via Recent Commits to openclaw:main

@@ -308,15 +308,58 @@ extension SettingsProTab {

308308

self.detailStatusCard(

309309

icon: "checkmark.shield.fill",

310310

title: "Approvals",

311-

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

312-

"Review the pending gateway action.",

313-

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

314-

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

311+

detail: self.notificationsNeedAttention

312+

? "Out-of-app approval alerts need notification permission."

313+

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

314+

"Review the pending gateway action."),

315+

value: self.notificationsNeedAttention

316+

? "alerts off"

317+

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

318+

color: self.notificationsNeedAttention ? OpenClawBrand.warn :

319+

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

320+321+

if self.notificationsNeedAttention {

322+

self.approvalNotificationsWarningCard

323+

}

315324316325

self.approvalsReviewCard

317326

}

318327

}

319328329+

var approvalNotificationsWarningCard: some View {

330+

ProCard(radius: SettingsLayout.cardRadius) {

331+

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

332+

HStack(alignment: .top, spacing: 12) {

333+

ProIconBadge(systemName: "bell.slash.fill", color: OpenClawBrand.warn)

334+

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

335+

Text("Approval alerts are off")

336+

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

337+

Text(

338+

"""

339+

OpenClaw can still show approval review while the app is open and connected. \

340+

Enable Notifications to receive approval prompts outside the app.

341+

""")

342+

.font(.caption)

343+

.foregroundStyle(.secondary)

344+

.fixedSize(horizontal: false, vertical: true)

345+

}

346+

}

347+348+

if self.directRoute == nil {

349+

Button {

350+

self.openNotificationsRouteFromApprovals()

351+

} label: {

352+

Label("Open Notifications", systemImage: "bell.badge")

353+

.frame(maxWidth: .infinity)

354+

}

355+

.buttonStyle(.bordered)

356+

.controlSize(.small)

357+

}

358+

}

359+

}

360+

.padding(.horizontal, OpenClawProMetric.pagePadding)

361+

}

362+320363

var approvalsReviewCard: some View {

321364

ProCard(radius: SettingsLayout.cardRadius) {

322365

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

@@ -490,7 +533,7 @@ extension SettingsProTab {

490533

self.detailStatusCard(

491534

icon: "bell",

492535

title: "Notifications",

493-

detail: "Approvals and event alerts from OpenClaw.",

536+

detail: self.notificationStatusDetail,

494537

value: self.notificationStatusText,

495538

color: self.notificationStatus.color)

496539

@@ -506,10 +549,25 @@ extension SettingsProTab {

506549

}

507550

.buttonStyle(.borderedProminent)

508551

.controlSize(.small)

552+

.disabled(self.notificationStatus == .checking || self.isRequestingNotificationAuthorization)

509553510-

Text("OpenClaw uses notifications for approval prompts and mirrored event alerts.")

554+

Text(self.notificationStatusDetail)

511555

.font(.caption)

512556

.foregroundStyle(.secondary)

557+

.fixedSize(horizontal: false, vertical: true)

558+559+

Divider()

560+561+

HStack(alignment: .top, spacing: 10) {

562+

Image(systemName: "network")

563+

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

564+

.foregroundStyle(OpenClawBrand.accent)

565+

.frame(width: 22, height: 22)

566+

Text(self.notificationRelayDetail)

567+

.font(.caption)

568+

.foregroundStyle(.secondary)

569+

.fixedSize(horizontal: false, vertical: true)

570+

}

513571

}

514572

}

515573

.padding(.horizontal, OpenClawProMetric.pagePadding)