Skip to content

feat(ios): implement branded typography design system - #99246

Merged
joshavant merged 24 commits into
openclaw:mainfrom
joelnishanth:feat/ios-typography
Jul 3, 2026
Merged

joshavant merged 24 commits into
openclaw:mainfrom
joelnishanth:feat/ios-typography

Conversation

@joelnishanth

@joelnishanth joelnishanth commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The iOS app had inconsistent typography coverage: many screens and controls still rendered with default system fonts, which made the branded iOS experience uneven and easy to regress as new SwiftUI surfaces were added.

Why This Change Was Made

This PR adds and applies the iOS branded typography system across app, shared chat, watch, and Live Activity surfaces using Red Hat Display, Inter, and JetBrains Mono. It also aligns bundled third-party license acknowledgements, adds scoped iOS agent guidance for typography work, and expands typography tests so bare text/control regressions are caught before review.

The latest rebase also audited incoming iOS typography work from origin/main and folded the new Control row Label title into the branded type system.

User Impact

Users should see branded typography consistently across Settings, Gateway, Chat, Onboarding, Agent, Talk, alerts, menus, toolbar actions, picker rows, secure-field placeholders, and supporting controls. Dynamic Type remains supported, and custom secure-field placeholder styling preserves accessibility labels.

Evidence

  • Rebased on latest origin/main at 010b6174637.
  • Focused typography tests passed:
    xcodebuild -quiet -project apps/ios/OpenClaw.xcodeproj -scheme OpenClaw -destination 'platform=iOS Simulator,name=iPhone 17 Pro Max' -only-testing:OpenClawTests/OpenClawTypographyTests test
  • i18n, formatting, and whitespace checks passed:
    pnpm native:i18n:check
    swiftformat --lint --config config/swiftformat apps/ios/Sources/Design/RootTabsPhoneControlHub.swift apps/ios/Sources/Design/OpenClawTypography.swift apps/ios/WatchApp/Sources/WatchClawTypography.swift apps/ios/Tests/OpenClawTypographyTests.swift apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatView.swift
    swiftformat --lint --config config/swiftformat apps/ios/Sources/Design/SettingsProTabSections.swift apps/ios/Tests/OpenClawTypographyTests.swift
    git diff --check
  • Fresh branch autoreview after the rebase follow-up reported no accepted/actionable findings:
    .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
  • PR CI completed green on head 670544ffcedcde91f2fb93de37a504b00fbd6542, including ios-build, macos-swift, native-i18n, Scan iOS dead code, QA Smoke CI, and the Node compact suites.

Known limits: this evidence is simulator/build/test based; it is not a full physical-device or VoiceOver pass.

@clawsweeper

clawsweeper Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 7:39 PM ET / 23:39 UTC.

Summary
The PR adds iOS, Watch, Live Activity, and shared chat typography helpers, bundled font assets and license provenance, target font registration, broad SwiftUI call-site updates, scoped iOS guidance, and typography tests.

PR surface: Docs +32, Other +2191. Total +2223 across 71 files.

Reproducibility: not applicable. this is a design-system feature PR, not a bug report with a current-main failure path. The relevant checks are current-main absence, source/test coverage, supply-chain provenance, CI, and rendered UI proof.

Review metrics: 3 noteworthy metrics.

  • Bundled font hashes: 6/6 matched manifest. Redistributed TTF assets are a supply-chain surface, and the PR head bytes match the documented SHA-256 provenance.
  • Font target registrations: 3 targets updated. The iOS app, Live Activity widget, and Watch app all need resource and UIAppFonts coverage for runtime font loading.
  • Rendered proof media: 0 screenshots/recordings linked. The broad visual and Dynamic Type change still needs real UI evidence beyond source tests and CI.

Stored data model
Persistent data-model change detected: vector/embedding metadata: apps/ios/Resources/Licenses/Inter.txt, vector/embedding metadata: apps/ios/Resources/Licenses/JetBrains Mono.txt, vector/embedding metadata: apps/ios/Resources/Licenses/Red Hat Display.txt. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🐚 platinum hermit
Result: blocked until real behavior proof is added.

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

Rank-up moves:

  • [P1] Add redacted simulator or device screenshots or a short recording showing representative Settings, Chat, Onboarding, and large Dynamic Type typography.
  • After adding proof, update the PR body so ClawSweeper can re-review the exact head.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR body provides tests, CI, and provenance, but no screenshot, recording, live output, linked artifact, or redacted log showing the rendered after-change typography. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Mantis proof suggestion
A visible iOS simulator proof would materially help review because the PR changes rendered typography across many screens. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis visual task: capture iOS simulator Settings, Chat, Onboarding, and large Dynamic Type screens after this PR, showing branded typography and no clipped controls.

Risk before merge

  • [P1] The typography rollout touches many visible iOS, Watch, Live Activity, and shared chat surfaces, so clipping, Dynamic Type, and accessibility regressions are not settled by source tests alone.
  • [P1] The PR body's proof is test/build based and does not show the rendered after-change UI in a real simulator or device setup.

Maintainer options:

  1. Add representative rendered proof (recommended)
    Before merge, attach redacted simulator or device screenshots or a short recording covering representative Settings, Chat, Onboarding, and large Dynamic Type typography.
  2. Accept the visual proof gap
    Maintainers can intentionally merge based on source tests and CI, accepting that visual clipping or accessibility issues may be found after release.

Next step before merge

  • [P1] Contributor or maintainer action is needed for rendered UI proof and final current-head merge gating; no narrow automated code repair is identified.

Security
Cleared: No concrete security or supply-chain concern remains on the current net diff; the font hashes match the provenance manifest and the Location permission changes are no longer present.

Review details

Best possible solution:

Merge a typography-focused branch after current-head checks are clean and redacted screenshots or a short recording show representative Settings, Chat, Onboarding, and large Dynamic Type rendering without clipped controls.

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

Not applicable; this is a design-system feature PR, not a bug report with a current-main failure path. The relevant checks are current-main absence, source/test coverage, supply-chain provenance, CI, and rendered UI proof.

Is this the best way to solve the issue?

Yes with a proof caveat; centralized helpers at the iOS, shared chat, Watch, and Live Activity boundaries are the maintainable shape, and current main lacks that system. The merge-ready path still needs rendered UI proof for the broad visual change.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 02250d957fed.

Label changes

Label changes:

  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 other.

Label justifications:

  • P2: This is a normal-priority user-facing iOS design-system PR with broad visual blast radius but no emergency runtime breakage.
  • merge-risk: 🚨 other: Merging the broad typography rollout without rendered UI proof could ship clipping, Dynamic Type, or accessibility regressions that green CI would not catch.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body provides tests, CI, and provenance, but no screenshot, recording, live output, linked artifact, or redacted log showing the rendered after-change typography. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Docs +32, Other +2191. Total +2223 across 71 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 2 32 0 +32
Config 0 0 0 0
Generated 0 0 0 0
Other 69 3727 1536 +2191
Total 71 3759 1536 +2223

What I checked:

  • Repository policy read: Root AGENTS.md and apps/ios/AGENTS.md were read fully; the root PR proof/review policy and scoped iOS license/font guidance affected this review. (AGENTS.md:1, 02250d957fed)
  • Current main lacks the typography system: origin/main has no OpenClawType, OpenClawChatTypography, WatchClawType, or OpenClawActivityType symbols, while many iOS SwiftUI surfaces still use bare system font modifiers. (02250d957fed)
  • PR head adds centralized iOS typography: OpenClawType defines branded font tokens, registered PostScript names, UIKit appearance installation, and Dynamic Type refresh support. (apps/ios/Sources/Design/OpenClawTypography.swift:5, 638205dac1f6)
  • Font target registration present: The PR registers Sources/Fonts resources and UIAppFonts entries for the iOS app, Live Activity widget, and Watch app targets. (apps/ios/project.yml:66, 638205dac1f6)
  • Typography regression coverage added: The PR adds tests for bundled font loading, extension registration, UIKit Dynamic Type refresh, text/control typography boundaries, and secure-field placeholder accessibility. (apps/ios/Tests/OpenClawTypographyTests.swift:8, 638205dac1f6)
  • Font supply-chain provenance checked: The six bundled TTF SHA-256 hashes match the PR's THIRD_PARTY_FONTS.md manifest, and the user-visible license acknowledgements are OFL text files under Resources/Licenses. (apps/ios/THIRD_PARTY_FONTS.md:9, 638205dac1f6)

Likely related people:

  • joshavant: The live PR is assigned to and review-requested from joshavant, and the branch includes many follow-up commits covering typography surfaces, licenses, provenance, accessibility, and the rebase audit; current history also shows recent UI simplification work by this author. (role: current branch follow-up owner and recent UI contributor; confidence: high; commits: 61f426e3c0ac, 09ae7c6415d8, 638205dac1f6; files: apps/ios/Sources/Design/OpenClawTypography.swift, apps/ios/Tests/OpenClawTypographyTests.swift, apps/ios/project.yml)
  • Mariano Belinky: Git history shows substantial iOS, Watch, Live Activity, gateway, and shared chat work in the surfaces this PR updates. (role: iOS app, Watch, and Live Activity feature contributor; confidence: medium; commits: bd25182d5a9f, 9476dda9f617, 738b011624c7; files: apps/ios/ActivityWidget/OpenClawLiveActivity.swift, apps/ios/WatchApp/Sources/WatchInboxView.swift, apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatView.swift)
  • Nimrod Gutman: Git history shows repeated recent work on iOS onboarding, gateway UX, Watch approval, release, and app configuration paths that overlap this PR's UI surfaces. (role: recent iOS onboarding, gateway, and app-surface contributor; confidence: medium; commits: 496176d73834, 6380c872bcc2, 6f566585d84f; files: apps/ios/Sources/Onboarding/OnboardingWizardView.swift, apps/ios/Sources/Gateway/GatewayProblemView.swift, apps/ios/WatchApp/Sources/WatchInboxView.swift)
  • steipete: Repository history and GitHub metadata show steipete merging recent iOS work and the related Location Always PR, so this is a useful routing candidate for broad iOS visual/product acceptance. (role: recent iOS area merger and release owner signal; confidence: medium; commits: 19d621e760be, 671c31507242; files: apps/ios/Sources/Design, apps/ios/Sources/Location/LocationPermissionSummary.swift)
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.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Jul 2, 2026
@joelnishanth

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed all P1/P2 findings:

  • Removed leaked UIBackgroundModes: location (was from a different branch, not typography)
  • Restored emptyAssistantIntro in ChatProTab
  • Restored accessibilityIdentifier("chat-gateway-status") and gatewayAccessibilityLabel
  • Updated PR body with real behavior proof section and font provenance links

— Joel Nishanth · offlyn.AI

@clawsweeper

clawsweeper Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 2, 2026
@joelnishanth
joelnishanth force-pushed the feat/ios-typography branch from 251153b to ce2f538 Compare July 2, 2026 22:14
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 2, 2026
@joelnishanth
joelnishanth force-pushed the feat/ios-typography branch from ce2f538 to 2ff77bd Compare July 2, 2026 23:17
@joelnishanth

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed all findings from the previous review:

  1. Location guidance removed — deleted locationAlwaysGuidance, openSettingsButton, import CoreLocation, and its call site from SettingsProTabSections.swift
  2. Chat source guards preserved — reverted to connectionStatusButton/connectionStatusIcon with .buttonStyle(.plain), .contentShape(Circle()), and chat-gateway-status identifier matching RootTabsSourceGuardTests
  3. Dynamic Type fixed — changed all OpenClawType tokens from static let to static var computed properties so UIFontMetrics.scaledFont(for:) is re-evaluated on each access when content size changes
  4. Font provenance complete — added exact upstream release URLs and SHA-256 checksums for all 14 bundled TTF files in apps/ios/Sources/Fonts/LICENSE

Branch is now rebased on latest upstream/main (2501ca3).

— Joel Nishanth · offlyn.AI

@clawsweeper

clawsweeper Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 2, 2026
@joshavant
joshavant self-requested a review July 2, 2026 23:42
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 3, 2026
@joshavant
joshavant force-pushed the feat/ios-typography branch from 1bd12a2 to 638205d Compare July 3, 2026 23:34
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jul 3, 2026
@joshavant
joshavant merged commit 37474b2 into openclaw:main Jul 3, 2026
77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants