Skip to content

fix(ios): unify Talk and Settings row typography on one branded detail row#100515

Merged
steipete merged 2 commits into
mainfrom
claude/youthful-elion-eb5598
Jul 6, 2026
Merged

fix(ios): unify Talk and Settings row typography on one branded detail row#100515
steipete merged 2 commits into
mainfrom
claude/youthful-elion-eb5598

Conversation

@steipete

@steipete steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where the iOS Talk tab and its Voice & Talk settings screen mixed three different row-title type treatments in one list: the "Voice Wake" / "Talk Mode" / "Background Listening" / "Speakerphone" toggles rendered at 15pt (OpenClawType.subhead) while the adjacent "Speech Language" picker and other toggles rendered at 17pt (OpenClawType.body), and label/value rows built with string-shorthand LabeledContent ("Wake Words", "Speech language", "Voice Mode", the Talk tab's Conversation and Voice Mode sections, and the Settings gateway rows) rendered their titles in the unbranded system font instead of the app's Inter typeface.

Why This Change Was Made

The drift came from duplicated per-surface row styling. This lands one canonical SettingsDetailRow (branded 17pt body label, subhead secondary value with middle truncation) in SettingsProTabSupport.swift, replaces the duplicated detailRow/simpleSettingsRow helpers and all raw string-shorthand LabeledContent rows on the Talk and Settings surfaces with it, and moves the settingsToggle title from subhead to body so every row title on these lists uses the same size and typeface. The typography audit test now also flags string-shorthand LabeledContent( calls without a branded font so this class of regression is caught at test time.

User Impact

Row titles on the Talk tab and in Voice & Talk, Gateway, Diagnostics, About, and Device settings now share one consistent size and the branded Inter typeface. No behavior changes.

Evidence

  • Focused simulator tests pass: OpenClawTypographyTests, RootTabsSourceGuardTests, SwiftUIRenderSmokeTests (xcodebuild, iPhone 17 simulator).
  • The extended typography audit (iOS app text and control calls keep branded font boundaries) reports zero offenders with the new LabeledContent shorthand rule.
  • Before: settingsToggle titles used OpenClawType.subhead (15pt) directly above the Speech Language picker at OpenClawType.body (17pt); LabeledContent("…", value:) labels rendered SF system font. After: all these rows go through SettingsDetailRow / OpenClawType.body.

@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios size: S maintainer Maintainer-authored PR labels Jul 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 598eff0428

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +43 to +44
Text(self.label)
.font(OpenClawType.body)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve localized labels in the shared detail row

In non-English locales, rows whose labels were previously SwiftUI string-literal labels now pass through a stored String, so Text(self.label) renders the label verbatim instead of using the LocalizedStringKey lookup that LabeledContent("Agent", value:) used before. For example, the Talk row now calls SettingsDetailRow("Agent", ...) while Agent is translated in Resources/Localizable.xcstrings, so that row falls back to English; keep the helper's label as LocalizedStringKey/LocalizedStringResource or accept a label builder.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 9:52 PM ET / 01:52 UTC.

Summary
The PR replaces duplicated iOS Talk and Settings label/value rows with a shared branded SettingsDetailRow, adjusts settings-toggle title typography, and updates iOS typography/source-guard expectations.

PR surface: Other +7. Total +7 across 7 files.

Reproducibility: yes. Source inspection shows localized literal LabeledContent rows being replaced by SettingsDetailRow whose label is stored as String, and the Agent key has translated catalog entries.

Review metrics: none identified.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Change SettingsDetailRow to preserve localized label lookup for literal rows.
  • [P2] After the label fix, rerun native i18n checks plus focused iOS typography/render tests.

Risk before merge

  • [P1] Merging the current helper as-is would make translated Talk and Settings row labels fall back to their English keys in non-English locales.
  • [P1] The PR branch has maintainerCanModify: false, so an automated repair may need a replacement branch or author update rather than a direct push to the contributor branch.

Maintainer options:

  1. Preserve localized row labels before merge (recommended)
    Change SettingsDetailRow to accept a localized key/resource or label builder, then rerun the native i18n checks and focused iOS typography/render tests.
  2. Wait for author update
    Keep the PR open and wait for the contributor to update the helper and refresh any generated i18n inventory affected by that change.

Next step before merge

  • [P1] The remaining blocker is a narrow mechanical repair to the shared row label API, but the branch may require an author update or replacement branch because maintainers cannot modify it directly.

Security
Cleared: The diff only changes iOS SwiftUI presentation, generated native string inventory, and tests; no dependency, workflow, secret, package, or code-execution surface is modified.

Review findings

  • [P2] Preserve localized labels in SettingsDetailRow — apps/ios/Sources/Design/SettingsProTabSupport.swift:43
Review details

Best possible solution:

Keep the shared row helper, but make its label API preserve SwiftUI localization before merge and leave the value styling/truncation behavior unchanged.

Do we have a high-confidence way to reproduce the issue?

Yes. Source inspection shows localized literal LabeledContent rows being replaced by SettingsDetailRow whose label is stored as String, and the Agent key has translated catalog entries.

Is this the best way to solve the issue?

No. A shared branded row is the right shape, but the helper should accept a localized key/resource or label builder so the typography fix does not regress localization.

Full review comments:

  • [P2] Preserve localized labels in SettingsDetailRow — apps/ios/Sources/Design/SettingsProTabSupport.swift:43
    Rows such as Talk's Agent used to be string-literal LabeledContent("Agent", value:), and Agent has translated entries in Localizable.xcstrings. The new helper stores the label as String and renders Text(self.label), so these rows fall back to English in non-English locales; keep the helper shared, but make the label a localized key/resource or label builder.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2db5bd3394f7.

Label changes

Label changes:

  • add merge-risk: 🚨 compatibility: The diff can regress existing non-English iOS users by replacing localized literal row labels with a stored String rendered verbatim.

Label justifications:

  • P2: This is a bounded iOS UI correctness regression in an open PR, affecting localized labels without threatening core runtime availability or data safety.
  • merge-risk: 🚨 compatibility: The diff can regress existing non-English iOS users by replacing localized literal row labels with a stored String rendered verbatim.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The PR is protected with the maintainer label, so the external contributor real-behavior proof gate is not applied; the simulator-test claims remain supplemental review context.
Evidence reviewed

PR surface:

Other +7. Total +7 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 7 127 120 +7
Total 7 127 120 +7

Acceptance criteria:

  • [P1] pnpm native:i18n:check.
  • [P1] pnpm apple:i18n:check.
  • [P1] pnpm ios:gen && cd apps/ios && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination "platform=iOS Simulator,name=iPhone 17" -only-testing:OpenClawTests/OpenClawTypographyTests -only-testing:OpenClawTests/RootTabsSourceGuardTests -only-testing:OpenClawTests/SwiftUIRenderSmokeTests test.

What I checked:

Likely related people:

  • steipete: Current-main blame for the Settings and Talk SwiftUI rows points to commit 655b18c, which added these iOS design files before this PR. (role: introduced current main surface; confidence: medium; commits: 655b18c7064c; files: apps/ios/Sources/Design/TalkProTab.swift, apps/ios/Sources/Design/SettingsProTabSections.swift, apps/ios/Sources/Design/SettingsProTabSupport.swift)
  • joshavant: Recent commits branded remaining SwiftUI controls and audited iOS typography coverage around the same rendered text/control boundary. (role: adjacent typography contributor; confidence: medium; commits: 17f152ddd0e1, 37a9b9a91c91; files: apps/ios/Sources/Design/SettingsProTabSections.swift, apps/ios/Sources/Design/TalkProTab.swift, apps/ios/Tests/OpenClawTypographyTests.swift)
  • Vincent Koc: Recent Apple/native localization commits own the Localizable.xcstrings catalog that makes the row-label regression visible. (role: adjacent localization contributor; confidence: medium; commits: fe18aa38dbb6, 9cfbd1b65cb1; files: apps/ios/Resources/Localizable.xcstrings)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-06T01:21:59.704Z sha 598eff0 :: needs real behavior proof before merge. :: [P2] Preserve localized labels in SettingsDetailRow

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. labels Jul 6, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 6, 2026
@steipete
steipete force-pushed the claude/youthful-elion-eb5598 branch from d7d2b9b to 13b64da Compare July 6, 2026 06:44
@steipete
steipete merged commit f1d28c8 into main Jul 6, 2026
71 of 72 checks passed
@steipete
steipete deleted the claude/youthful-elion-eb5598 branch July 6, 2026 06:46
vincentkoc added a commit to zhangqueping/openclaw that referenced this pull request Jul 6, 2026
* origin/main: (1287 commits)
  fix(android): block loopback canvas navigation (openclaw#99874)
  fix(hooks): suppress unhandled stdout/stderr stream errors in gmail watcher (openclaw#100519)
  fix(memory-core): guard qmd mcporter JSON.parse against non-JSON stdout (openclaw#98381)
  fix(build): fall back to tsx for build TypeScript scripts (openclaw#91262)
  feat(skills): suggest saving detected reusable workflows by default (openclaw#95477) (openclaw#100692)
  docs(changelog): remove generated release-note entries
  feat(telegram): offer BotFather web app flow in setup help and docs (openclaw#100540)
  fix(ios): unify Talk and Settings row typography on one branded detail row (openclaw#100515)
  feat(gateway): add persisted crash-loop breaker and fatal-config exit contract
  refactor(macos): lock and unify PortGuardian tunnel record persistence so concurrent app instances cannot lose orphan records (openclaw#100601)
  fix: stop reconnecting on protocol mismatch (openclaw#98414)
  fix(maint): reuse recent hosted gates after rebase (openclaw#100663)
  fix(ui): reopen web terminals without stale content (openclaw#100665)
  fix(browser): diagnose empty WSL2 Chrome replies (openclaw#100590)
  fix(ios): chat snaps back to bottom when scrolling to top via status-bar tap (openclaw#100502)
  Treat already-compacted CLI compaction as no-op (openclaw#99136)
  docs(changelog): remove direct main fix entry
  fix(feishu): strip internal tool-trace banners from outbound text (openclaw#98705)
  fix(message): thread --limit through to CLI formatter and surface provider pagination hints (openclaw#99089)
  fix(voyage): close response body stream when batch output JSONL parsing throws (openclaw#98840)
  ...

# Conflicts:
#	extensions/memory-wiki/package.json
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 6, 2026
…l row (openclaw#100515)

* fix(ios): unify Talk and Settings row typography on one branded detail row

* chore(i18n): sync native string inventory for iOS detail row refactor
giodl73-repo pushed a commit to giodl73-repo/openclaw that referenced this pull request Jul 8, 2026
…l row (openclaw#100515)

* fix(ios): unify Talk and Settings row typography on one branded detail row

* chore(i18n): sync native string inventory for iOS detail row refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant