Skip to content

Let the mobile Chats header carry a Host avatar and a custom banner - #1866

Merged
DoodleBears merged 5 commits into
mainfrom
claude/project-thread-lormw9
Oct 15, 2026
Merged

DoodleBears merged 5 commits into
mainfrom
claude/project-thread-lormw9

Conversation

@DoodleBears

Copy link
Copy Markdown
Contributor

Requested by Vain · project thread

Before: the Chats header band is always the accent colour, and the Host chip always shows the Host's initial.

After: Me → Customize header opens a form sheet with a live preview where each Host gets its own look, kept on the phone:

  • Avatar: the initial (default), one of eight pixel portraits from the PersonaBot avatar generator, or a photo (cropped square on pick).
  • Banner: Theme (the accent band, default), Color (ten swatches or a typed hex), Gradient (six presets or typed From/To), or Picture (any photo, covered under a dark scrim so the name stays readable).

Custom colours go through the accent band's own steps, so dark mode mutes them the same way; the ink is white or near-black, whichever reads on both stops (a test checks every preset in both schemes).

Light Dark
Chats, default
Editor, gradient + pixel avatar
Editor, solid colour
Editor, picture banner + photo avatar
Chats, pictures
Chats, gradient

Screenshots are the web export at 390 × 844 against a real isolated Host, driven end to end (pair, open Me → Customize header, tap presets, pick the two pictures through the file chooser, go back to Chats).

How: src/ui/design/host-look.ts holds the look types, presets and hostBand(); src/host/host-look.ts is the per-Host store (same shape as the section-collapse store) and native-host-look.ts persists it to a JSON file and copies picked photos into the app's documents. HostBandLayer / HostChipFace (shell) draw the band and chip for both the header and the preview; gradients are drawn with react-native-svg (GradientFill) because React Native Web ignores experimental_backgroundImage. Chip from the Activity filters is exported and reused for the banner kind picker. Phone-only setting, no Host bridge method or route, so no CLI command is needed.

Coordination with the in-flight nav PRs: #1857 removes Me, so whichever lands second moves the "Customize header" row into Settings (an Interface group); #1859 changes home-header.tsx (the chip opens the drawer); this PR moves the chip's tile/name/▾ into HostChipFace and the band into HostBandLayer, so the merge keeps #1859's Pressable props and swaps its children. The drawer can reuse HostTile to show each Host's avatar.

Checks: pnpm --filter @botharness/mobile typecheck, vitest run apps/mobile (new test/host-look.test.tsx: parsing, per-Host store, ink contrast on every preset in both schemes, editor interactions), style guard.

Human QA

  • Development build on the iOS Simulator (JS only, no new native code; expo-image-picker, expo-file-system and react-native-svg are already in the app): pick a photo for the avatar and banner, restart the app and confirm both stay; status bar ink stays light on a picture.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EHJCdYC6XNkimchBqPFT2T


Generated by Claude Code

Customize header (Me) sets, per Host on the phone, an avatar (initial,
eight pixel portraits, or a photo) and a banner (accent, solid or typed
colour, preset or typed gradient, or a picture under a scrim), with a live
preview. Gradients draw with react-native-svg so the web preview shows them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EHJCdYC6XNkimchBqPFT2T
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EHJCdYC6XNkimchBqPFT2T
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a1a0a71-4d5f-4d8f-80e8-fb61cac3ec64
📥 Commits

Reviewing files that changed from the base of the PR and between 9f46852 and 48e9954.

⛔ Files ignored due to path filters: 12
  • .github/pr-screenshots/host-header-look/0-chats-default-dark.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/0-chats-default-light.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/2-editor-gradient-dark.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/2-editor-gradient-light.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/3-editor-color-dark.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/3-editor-color-light.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/4-editor-pictures-dark.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/4-editor-pictures-light.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/5-chats-pictures-dark.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/5-chats-pictures-light.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/6-chats-gradient-dark.jpg is excluded by !**/*.jpg
  • .github/pr-screenshots/host-header-look/6-chats-gradient-light.jpg is excluded by !**/*.jpg
📒 Files selected for processing: 17
  • apps/mobile/DESIGN.md
  • apps/mobile/app/(tabs)/(home)/index.tsx
  • apps/mobile/app/(tabs)/(me)/me.tsx
  • apps/mobile/app/_layout.tsx
  • apps/mobile/app/host-look.tsx
  • apps/mobile/src/host/host-look.ts
  • apps/mobile/src/host/native-host-look.ts
  • apps/mobile/src/ui/design/host-look.ts
  • apps/mobile/src/ui/shell/activity-filters.tsx
  • apps/mobile/src/ui/shell/gradient-fill.tsx
  • apps/mobile/src/ui/shell/home-header.tsx
  • apps/mobile/src/ui/shell/host-band.tsx
  • apps/mobile/src/ui/shell/host-look-editor.tsx
  • apps/mobile/src/ui/shell/host-tile.tsx
  • apps/mobile/src/ui/strings.ts
  • apps/mobile/test/host-look.test.tsx
  • changes/1866-mobile-host-header-look.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EHJCdYC6XNkimchBqPFT2T
@DoodleBears DoodleBears self-assigned this Oct 15, 2026
@DoodleBears
DoodleBears marked this pull request as ready for review October 15, 2026 06:43
@DoodleBears
DoodleBears merged commit bccba3a into main Oct 15, 2026
9 checks passed
DoodleBears pushed a commit that referenced this pull request Oct 15, 2026
Brings in the Host drawer (#1859), Chats search and sections, and
Customize header (#1866). Computers in Settings now closes the sheet and
opens the Host drawer; Customize header moves from Me into a Settings
Interface group.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P4McGrxLaXPVxUuUd2e7xZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants