feat(mobile): Android drops the rail, bottom bar, and rounded sheets for a denser layout #19424
main fromt3/improve-foldable-android-layout·opened View on GitHubOn Android, and especially on foldables, the app wasted a lot of space:
- An 80dp navigation bar or rail held only two tabs (Chats, PRs).
- New thread and Filter floated over the thread list.
- Content sat in a rounded, inset sheet under the header.
- The thread title stayed on screen while you read history.
With the keyboard open in split view, the chat feed got about two lines.
Navigation
- The bottom bar and the split-view rail are both gone. A small Chats/PRs icon switch takes the brand slot in the list header, on phones and in split view.
- In split view, search, filter, settings, and a filled New thread button sit in the sidebar header, and nothing floats over the list. The sidebar is at least 304dp wide, so the row fits, and it wraps with large text. Phones keep the New thread and Filter FABs.
Surfaces
- Content is flat under the header. The rounded top corners and 4dp gutters are gone.
- On screens wider than a phone (Fold portrait, or typing with the sidebar hidden), the feed, composer, and full-width thread list stop at a 640dp reading width and center.
Threads
- The thread toolbar collapses while you scroll back into history. It returns at the latest message.
- In split view, while the composer has the soft keyboard:
- The sidebar steps aside, and the header drops to one line.
- The composer stays one row and grows with the text (36–160dp). The model picker is in the row, and attachments show above it with their remove buttons.
- The Working timer moves into the composer row.
iOS is unchanged.
| Before | After | |
|---|---|---|
| Split view | ![]() | ![]() |
| Keyboard open, turn running | ![]() | ![]() |
| Phone, scrolled into history | ![]() |
Verification#
Pixel Fold emulator (API 36), dark mode, showcase data, release preview build:
- Split view and portrait (compact): the switch, search, filter menu, settings, and New thread all work. There is no bottom bar, and the surfaces are flat.
- Composer focus hides the sidebar. Back and the sidebar button bring it back. The draft grows with the model and send buttons still in the row. Attachments can be removed.
- Scrolling into history collapses the thread toolbar. Scroll-to-end restores it.
- A running Codex turn shows "Working Ns" in the composer row while focused.
vp test runforlib/layout.test.ts(new sidebar-width case) and the navigation color tests. Mobile typecheck and lint on the changed files are clean.
Notes#
- #18686 also removes the rail, and #18547 keeps content rounded. This PR goes the other way on both.
- With the fold closed while a thread is open, the composer can still overflow on the right. That is the existing bug fixed by #18574.
Reviewed with sol-loop: 5 rounds with GPT-6.1-Sol on high.
Created with Claude Opus 5.5 in Claude Code, running in T3 Code.
🤖 Generated with Claude Code
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
juliusmarminge added labelsmacroscope-review
- apps/mobile/src/features/threads/ThreadComposer.tsx line 951OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -887,4 +948,4 @@887948 />888949 </Animated.View>889950 ) : null}890- {isExpanded && stripAttachments.length > 0 ? (951+ {usesCard && stripAttachments.length > 0 ? (
🟡 Medium
threads/ThreadComposer.tsx:951On Android split view, attached images and videos cannot be removed from the draft before sending, because
usesCardstays false even when the composer is focused, so this condition hides the only media UI wired toonRemoveDraftImage. The inline thumbnails do not expose removal, and media has no inline chips; keep a removal action available in the inline layout.No longer relevant as of 9e5e520f786566b3004a004efc9e21817ad49e9c
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Fixed in 9e5e520f78. The queued-edit attachments and the draft
ComposerAttachmentStripare now oneeditingAttachmentselement. It renders inside the card whenusesCard, and above the row when the one-row composer is focused (isExpanded && !usesCard). The capsule's inline thumbnails now show only when the composer is unfocused.Verified on a Pixel Fold emulator: I attached a photo with the one-row composer focused. The strip showed above the row with its remove button, and tapping it cleared the attachment.
Approvability#
Verdict: Needs Human Approval
Macroscope's review found this PR not approvable — This PR changes the default Android workspace experience across navigation, pane sizing, surfaces, headers, thread history, and composer/keyboard interactions. The breadth of production behavior and removal of existing navigation chrome require human review.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 5.0 KiB 4.9 KiB −23 B (−0.5%) 6.8 KiB ✅ Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB −23 B (−1.9%) 2.0 KiB ✅ Codex Live turn WebSocket decoded 20.9 KiB 20.8 KiB −41 B (−0.2%) 29.3 KiB ✅ Codex Live turn messages 2 1 −1 (−50.0%) 8 ✅ Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅ Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅ Claude Live turn messages 2 2 0 (0.0%) 8 ✅ Baseline:
00cdceb· PR result:75baac4· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Team
- Run ID:
857a0876-df4e-46f1-afc5-346405caff91
📥 Commits
-
Reviewing files that changed from the base of the PR and between 9e5e520f786566b3004a004efc9e21817ad49e9c and 75baac4ff723b5a324d67806b3ad6e1c995501ab.
📒 Files selected for processing: 30
-
apps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.ktapps/mobile/modules/t3-native-controls/android/src/main/res/drawable/t3_chats.xmlapps/mobile/modules/t3-native-controls/android/src/main/res/drawable/t3_pull_requests.xmlapps/mobile/modules/t3-native-controls/expo-module.config.jsonapps/mobile/src/components/AndroidScreenHeader.tsxapps/mobile/src/components/MaterialScreenContent.tsxapps/mobile/src/components/ScreenHeader.android.tsxapps/mobile/src/components/ScreenHeader.types.tsapps/mobile/src/features/files/ThreadFilesRouteScreen.tsxapps/mobile/src/features/files/thread-file-navigator-pane.tsxapps/mobile/src/features/home/HomeScreen.tsxapps/mobile/src/features/home/MaterialThreadListToolbar.tsxapps/mobile/src/features/pull-requests/MaterialPullRequestToolbar.android.tsxapps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsxapps/mobile/src/features/review/ReviewSheet.tsxapps/mobile/src/features/threads/ThreadAgentsSheet.tsxapps/mobile/src/features/threads/ThreadDetailScreen.tsxapps/mobile/src/features/threads/ThreadHeader.tsxapps/mobile/src/features/threads/ThreadNavigationSidebar.tsxapps/mobile/src/features/threads/ThreadQueueControl.tsxapps/mobile/src/features/threads/ThreadRouteScreen.tsxapps/mobile/src/features/threads/git/GitOverviewSheet.tsxapps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsxapps/mobile/src/features/workspace/AndroidWorkspaceNavigation.tsxapps/mobile/src/features/workspace/AndroidWorkspaceSidebar.android.tsxapps/mobile/src/features/workspace/AndroidWorkspaceTabSwitch.tsxapps/mobile/src/features/workspace/WorkspaceRootScreen.android.tsxapps/mobile/src/features/workspace/android-workspace-navigation-colors.test.tsapps/mobile/src/features/workspace/android-workspace-navigation-colors.tsapps/mobile/src/lib/layout.ts
💤 Files with no reviewable changes: 7
-
- apps/mobile/modules/t3-native-controls/android/src/main/res/drawable/t3_chats.xml
- apps/mobile/modules/t3-native-controls/android/src/main/res/drawable/t3_pull_requests.xml
- apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx
- apps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.kt
- apps/mobile/modules/t3-native-controls/expo-module.config.json
- apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.tsx
- apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
📝 Walkthrough
-
Android workspace navigation now uses Chats and Pull requests tabs in list headers. Split-view layout accounts for list width and composer keyboard state. The composer supports a focused inline layout, and Android thread headers and content surfaces have updated layout behavior.
Changes: Android workspace and thread layout
Layer / File(s) Summary Workspace tabs and split-view layout
apps/mobile/src/features/workspace/*,apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx,apps/mobile/src/lib/layout.ts,apps/mobile/src/lib/layout.test.ts,apps/mobile/src/features/home/*,apps/mobile/src/features/pull-requests/MaterialPullRequestToolbar.android.tsx,apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx,apps/mobile/modules/t3-native-controls/...Workspace tabs appear in the Chats and Pull requests headers. Tab selection dismisses the keyboard and resets navigation when the selected tab changes. Split-view sizing supports an Android list-pane minimum width, and sidebar behavior responds to composer editing and soft-keyboard visibility. The former native navigation bar and rail implementation is removed. Focused split-view composer
apps/mobile/src/features/threads/ThreadComposer.tsx,apps/mobile/src/native/T3ComposerEditor*The focused Android split-view composer can remain inline and resize based on measured editor content. It shares attachment and model-picker rendering with the card layout and can display the active-work timer. Thread status and header state
apps/mobile/src/components/AndroidScreenHeader.tsx,apps/mobile/src/components/ScreenHeader*,apps/mobile/src/components/useMaterialToolbarLayout.ts,apps/mobile/src/features/threads/ThreadDetailScreen.tsx,apps/mobile/src/features/threads/ThreadHeader.tsx,apps/mobile/src/features/threads/ThreadRouteScreen.tsxThread detail reports reading-history state and passes the working status start time to the composer under the Android split-layout condition. Android headers support compact and collapsed modes with layout and visibility transitions. Android content sizing and surfaces
apps/mobile/src/components/MaterialScreenContent.tsx,apps/mobile/src/features/home/HomeScreen.tsx,apps/mobile/src/features/files/*,apps/mobile/src/features/pull-requests/PullRequestRouteScreen.tsx,apps/mobile/src/features/review/ReviewSheet.tsx,apps/mobile/src/features/threads/*,apps/mobile/src/features/workspace/AndroidWorkspaceSidebar.android.tsxAndroid home and thread content use configured width constraints. Material content and several route containers no longer apply split-view insets, rounded top corners, or clipping where those styles were removed. Priority: ➖ Normal
Estimated code review effort: 4 (Complex) | ~45 minutes
Change: Feature
Sequence Diagram(s)#
sequenceDiagram participant ThreadComposer participant AdaptiveWorkspaceLayout participant KeyboardState participant ThreadNavigationSidebar ThreadComposer->>AdaptiveWorkspaceLayout: report composer editing state KeyboardState->>AdaptiveWorkspaceLayout: report soft-keyboard visibility AdaptiveWorkspaceLayout->>ThreadNavigationSidebar: suppress sidebar when split-view composer editing and keyboard are activeSuggested reviewers:
juliusmarminge,pixpmusic
Merge Risk: ⚪ Minimal · up to
75baa-
This Android layout refactor shows no concrete merge-blocking risk in the supplied context. Normal manual verification on foldable devices is still advisable.
Pre-merge checks:
3 · 1-
Failed checks: 1 warningCheck name Status Explanation Resolution Description check The description explains the problem, implementation, verification steps, and includes UI evidence. However, it does not provide the required Scope and approval section with a triaged issue or explici… Add a Scope and approval section with the relevant triaged issue or discussion and explicit maintainer approval, or explain why this focused change qualifies for an exemption. Add Problem and Change headings to match the repository template… Passed checks: 3 passed-
Check name Status Explanation Title check The title clearly summarizes the main Android changes: removing the rail, bottom bar, and rounded sheets to create a denser layout. Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request.
Full details: Description check
-
Explanation
The description explains the problem, implementation, verification steps, and includes UI evidence. However, it does not provide the required Scope and approval section with a triaged issue or explicit maintainer approval. The Problem and Change content is also not labeled with the template headings.
Resolution
Add a Scope and approval section with the relevant triaged issue or discussion and explicit maintainer approval, or explain why this focused change qualifies for an exemption. Add Problem and Change headings to match the repository template.
-
- Fix all pre-merge checks with AI
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
-
t3dotgg(GitHub profile, opens in a new tab) changed the title
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
I feel a bit responsible for the current state this is updating, so I feel like I should chime in here:
An 80dp navigation bar or rail held only two tabs (Chats, PRs).
I agree this one was kinda bad, but it was rushed out to replace the buggy replacement that was in the original PR tab merge.
I'm not in love with that cluttered of a header, and one consideration I had when adding the rails was the upcoming Home and Issues features likely being added to the navigation area. I don't really see how either would fit in that header.
New thread and Filter floated over the thread list.
I still think we should keep the standard Android FAB here for Create Thread. Filter, I'm already proposing move up to the header on Android.
Content sat in a rounded, inset sheet under the header.
This was just fun and to fit in more with all the rounded content in MD3.
The thread title stayed on screen while you read history.
Auto-hiding headers is a good idea. I'm all for it.
I'll still open the PR for the rail updates I was planning. Feel free to consider it or close it.
Note
Grok responding on behalf of Julius.
Closing this as superseded. #21071 shipped the rail removal and the 640dp reading width from here, and the rest is being rebuilt in #20812 (one-row composer and split-view keyboard behavior) and #20813 (Android navigation). This branch also conflicts with main now. Feel free to reopen if there's a piece that isn't covered.
juliusmarminge closed this
Sign in to join this conversation.





macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed