Repository navigation
feat(mobile): one-line Chat tab rows with the provider icon - #473
Conversation
Chat rows on iOS drop the "No project · provider · model" line and show the provider mark before the title on a single line. The Threads tab card is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code-quality review of 6f5376ec0a77cbb70c651fec0e7ed579837de2ea (base 92ea9f7b78).
Hoisting providerMark and trailingMarks is a good move. It removes the duplicated provider-icon logic, and the Threads card and the Chat row now draw their marks the same way. The file goes from about 837 to 862 lines, which stays under 1k.
The main problem is how the new layout is modelled. Not approving yet because of point 1.
-
chatLine?: booleanadds a second layout setting that only works together with the first.No3yThreadRownow has three layouts (slim, card, chat), but they come from two props. Nothing stopsvariant="slim" chatLine, and that combination is silently ignored. The body insiderenderPressablealso grows into a nested ternary (isSlim ? … : props.chatLine ? … : …) in an already large component. Make the layout a single value instead:variant: "card" | "slim" | "chat"on the row, mapped once to the upstream"card" | "slim"whereresolveThreadListV2SwipeActionsandresetKeyneed it (const listVariant = variant === "chat" ? "card" : variant). Then turn the three bodies into aswitchover named sub-elements, sorenderPressablestays a thin shell (pressable, padding, selection background). -
There's a further simplification available: the slim body and the chat body are the same one-line row. Both are
[leading?] Title(numberOfLines=1, flex:1) [trailing]and differ only in title size (14 vs 16), the leading mark, and the trailing content (queued + time vstrailingMarks). A smallOneLineRowBody({ leading, titleSize, trailing })would remove the duplicated title<Text>style block. The row would then be "one line or two lines", not three hand-written layouts. -
Small point:
estimatedItemSize={42}inNo3yChatTabis reallypaddingVertical 12 × 2 + lineHeight 18, and those values live in another file. Export a constant fromNo3yThreadRow, or put a short comment next to the number, so the estimate doesn't drift the next time the row's padding changes.
No other structural issues: the change is scoped to fork files, the Threads tab card is unchanged, and the compact swipe style does come from ThreadSwipeable's measured-height check, as the PR body says.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code review of 6f5376ec0a77cbb70c651fec0e7ed579837de2ea (base 92ea9f7b78). Nothing blocking; two nits.
Nit: .fork/customizations.yaml ~L8655 (not in this diff). The no3y-mobile-redesign intent still says the Chat tab lists chats "as thread cards". It doesn't mention the one-line chatLine rows (provider mark, title, trailing marks, no meta line). An upstream sync ports from this text, so it could bring back the two-line cards. Worth a sentence there.
I checked these and they aren't findings: dropping the error text, the PR badge and the model label is intended, as the PR body says. onOpenThreadPullRequests is still a required prop. The cost of the hoisted elements doesn't matter.
🤖 Reviewed by Claude Opus 5.5 (claude-opus-5-5) via Claude Code (/code-review)
Replace the chatLine flag with variant "chat" (mapped to "card" for swipe actions), pick the row body with a switch, share a one-line title between the slim and chat bodies, reserve the provider slot so titles stay aligned while providers load, and note the chat rows in the manifest intent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed both reviews in cb589fc:
|
Chat rows on the iOS Chat tab took two lines: the title, then "No project", a PR badge, and the provider icon with the model name. For quick chats, the only things that matter are the title and whether it went to Claude or ChatGPT.
Each Chat row is now one line: the provider mark, the title (one line, truncated), then the existing queued, pin and status marks.
No3yThreadRowgets a third variant,"chat". It's mapped to"card"for swipe actions. OnlyNo3yChatTabuses it, so the Threads tab card is unchanged.switchover the three variants. The slim and chat bodies share a one-lineOneLineTitle, and the provider mark and trailing marks are shared elements.estimatedItemSizedrops from 64 to 42 to match the shorter row.ThreadSwipeablealready picks from the measured row height, the same style slim rows use..fork/customizations.yamlno3y-mobile-redesignintent now describes the one-line chat rows.Checks:
vp run check:changedand.fork/lint-owned.mjspass. Reviewed with neon-review: 1 round with Gemini 4 Neon (thought_level high). Neon verdict: approved.🤖 Signed: Claude Opus 5.5 (
claude-opus-5-5) via Claude Codegemini-4-neon, thought_level high) via Antigravity: reviewed the first commit, no findings.🤖 Generated with Claude Code