Skip to content

#805 Option card picker that fits every Timeline Style - #808

Merged
ivanfenenko merged 1 commit into
feature/805-timeline-style-pickerfrom
fix/805-picker-sheet-fits-all
Oct 23, 2026
Merged

ivanfenenko merged 1 commit into
feature/805-timeline-style-pickerfrom
fix/805-picker-sheet-fits-all

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #807: review that first; this PR's base switches to main when #807 merges.

Summary

  • New component OpenCodeOptionCard (iOS + Android, Component Collection → Lists, gallery entry): one choice in a single-choice list. Bordered card with a leading radio, title, optional small tag, up to 3 lines of subtitle, and a 92×56 skeleton illustration preview. Selected = interactive border + surface-interactive-weak fill; disabled = 50%. The tag moves under the title when both don't fit, so the title never wraps for it. Meant for other pickers later.
  • OpenCodeTag accent tone (interactive text on a 12% interactive fill), next to the existing neutral look.
  • Bottom sheet fitAllContent height: wraps all content up to the tallest card the screen allows (the expanded-sheet top limit) and only scrolls past that, instead of dropping to the 50% detent at 420pt. fitContent and half are unchanged.
  • Timeline Style picker uses all three: option cards, accent "Recommended", neutral "Current", and fitAllContent, so every style is in view. On iOS Step Rail was below the fold in #805 One-time Timeline Style picker with option cards #807.
Picker Selected
iOS
Android

Checks

  • iOS: app builds; OpenCodeBottomSheetHeightTests (38, incl. new fit-all limit tests) and SessionChatDisplayPreferencesTests pass; SessionChatViewModelTests (200) pass. One unrelated timing test (sendPrompt_postSendReloadMatchingUser_dropsOptimistic) failed once and passed on two re-runs.
  • Android: :app:assembleDebug and the full :app:testDebugUnitTest pass, including new OpenCodeOptionCardTest, SessionChatTimelineStylePickerSheetTest and 5 fit-all layout tests; ktlintCheck clean on added lines.
  • Real apps against a local opencode v1 server (iPhone 17 simulator, Pixel 9a emulator): all four cards visible, selection moves and the button follows, Use stores the style and shows the notice.

Issue

Risks / Follow-ups

  • Android keeps the fit-all limit at least as tall as a half-height sheet on very short windows; iOS has no such floor (it scrolls at whatever the limit is).
  • The bottom-sheet entry illustration decorator and tag from #805 One-time Timeline Style picker with option cards #807 are now used only by the gallery.
  • Checked in light theme only.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need.

Adds OpenCodeOptionCard, a reusable single-choice card with a radio,
title, tag, subtitle, and illustration preview; an accent tone for
OpenCodeTag; and a fitAllContent bottom sheet height that grows to the
screen's sheet limit before scrolling. The Timeline Style picker uses
all three, so every option is in view and the sheet matches prototype B.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko
ivanfenenko merged commit 904f171 into feature/805-timeline-style-picker Oct 23, 2026
1 of 2 checks passed
@ivanfenenko
ivanfenenko deleted the fix/805-picker-sheet-fits-all branch October 23, 2026 20:40
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Folded into #807 as one PR: commit 904f171 is now on feature/805-timeline-style-picker.

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.

1 participant