GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(android): foldable sidebar and layout fixes by t3dotgg · Pull Request #21071 · pingdotgg/t3code

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Oct 18, 2026

Copy link
Copy Markdown
Member

The Android foldable fixes were spread over four small PRs. A test build with all four found three more problems:

  • Sidebar taps did nothing after launch. They started to work only after a trip to Settings and back.
  • The Nightly badge sat under the new PR button in the sidebar header.
  • Wide layouts did not have the reading width from feat(mobile): Android drops the rail, bottom bar, and rounded sheets for a denser layout #19424.

This PR combines the four PRs and fixes the three problems.

From the original PRs

  • fix(mobile): Android fold sidebar drops the nav rail and aligns every row #21049: the split-view rail is gone. One header button switches the sidebar between threads and PRs. Rows from read-only or reconnecting environments line up with the others.
  • fix(android): opening a thread on a foldable no longer slides in #21044: in split view, a thread or PR opens with no slide-in, because it replaces the detail pane.
  • fix(android): sidebar threads open while Settings or New task is open #21043: sidebar threads open while Settings or New task is open.
  • fix(mobile): Android environment toggles toggle instead of opening the row #21041: environment switches toggle instead of opening the row.

New in this PR

  • Sidebar taps before the first navigation. The sidebar's useNavigation() returns the navigation container. The container's own getState() stays empty until the first navigation action, because React Navigation does not report the root navigator's first state up to the container. So the reset from fix(android): sidebar threads open while Settings or New task is open #21043 found no state and stopped early. It now reads getRootState(), the same as React Navigation's resetRoot. A new test fails without this change.
  • Badge fit. A 280dp sidebar does not have space for the full brand and three buttons. CompactBrandTitle fit measures the available space and hides the stage badge when the badge does not fit. The badge shows again when there is space. Only the two Android list headers use fit.
  • Reading width. On Android, the thread feed, the composer, and the full-width thread list stop at 640dp and stay centered. This part comes from feat(mobile): Android drops the rail, bottom bar, and rounded sheets for a denser layout #19424 without the other layout changes in that PR.
Before After
Rail before: rail after: no rail, PR toggle in header
Rows before: rows misaligned after: rows aligned

Thread open in split view, before (left) and after (right):

Before and after: opening and switching threads in split view

The images come from the original PRs. The three new fixes do not have screenshots yet. The three problems were found on a device with an earlier build. This build includes the fixes: arm64 release APK (preview variant, OTA updates off).

Checks: mobile typecheck passes. android-workspace-navigation, layout, and android-workspace-navigation-colors tests pass (72). Lint on the changed files has no errors. The arm64 release build succeeds.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@t3dotgg @claude
fix(android): foldable sidebar and layout fixes
77a2e69
Combines #21049, #21044, #21043, and #21041, and adds:
- The sidebar opens threads before the first navigation action.
- The Nightly badge hides when the narrow sidebar header cannot fit it.
- The 640dp Android reading width from #19424.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Oct 18, 2026
@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 18, 2026
@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. labels Oct 18, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — This PR changes the default Android workspace navigation model and native switch interaction, while also altering foldable pane sizing, route animations, and reading widths across multiple production paths. The breadth of these user-visible Android behavior changes warrants human review.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: 81e1bc9f-542e-4d55-b927-5d1f51344586
📥 Commits

Reviewing files that changed from the base of the PR and between 16918b5 and 77a2e69.

📒 Files selected for processing: 22
  • apps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.kt
  • apps/mobile/src/Stack.tsx
  • apps/mobile/src/components/CompactBrandTitle.tsx
  • apps/mobile/src/components/ui/NativeSwitch.android.tsx
  • apps/mobile/src/features/home/HomeScreen.tsx
  • apps/mobile/src/features/home/ThreadListToolbar.tsx
  • apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx
  • apps/mobile/src/features/pull-requests/PullRequestToolbar.android.tsx
  • apps/mobile/src/features/threads/ThreadDetailScreen.tsx
  • apps/mobile/src/features/threads/thread-list-v2-items.tsx
  • apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx
  • apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.tsx
  • apps/mobile/src/features/workspace/AndroidWorkspaceSidebar.android.tsx
  • apps/mobile/src/features/workspace/android-workspace-navigation-colors.test.ts
  • apps/mobile/src/features/workspace/android-workspace-navigation-colors.ts
  • apps/mobile/src/features/workspace/useAndroidWorkspaceNavigation.ts
  • apps/mobile/src/features/workspace/useAndroidWorkspaceSelection.ts
  • apps/mobile/src/lib/android-workspace-navigation.test.ts
  • apps/mobile/src/lib/android-workspace-navigation.ts
  • apps/mobile/src/lib/layout.test.ts
  • apps/mobile/src/lib/layout.ts
  • apps/mobile/src/native/useOpenPullRequest.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

This change removes Android workspace navigation-rail rendering and keeps bottom navigation. It updates workspace resets, split-view animation, hinge sizing, and reading widths. It also changes Android toolbar navigation and title fitting, switch touch handling, and non-operable thread-row rendering.

Changes: Workspace navigation and layout

Layer / File(s) Summary
Bottom navigation replaces the rail
apps/mobile/modules/t3-native-controls/android/src/main/java/expo/modules/t3nativecontrols/T3WorkspaceNavigationModule.kt, apps/mobile/src/features/workspace/AndroidWorkspaceNavigation*, apps/mobile/src/features/workspace/android-workspace-navigation-colors*
The native view and Android workspace navigation no longer support a rail. They render bottom navigation, and navigation colors and tests use the bottom-navigation configuration.
Workspace resets and route animation
apps/mobile/src/lib/android-workspace-navigation*, apps/mobile/src/features/workspace/useAndroidWorkspaceNavigation.ts, apps/mobile/src/features/workspace/useAndroidWorkspaceSelection.ts, apps/mobile/src/native/useOpenPullRequest.ts, apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx, apps/mobile/src/Stack.tsx
Android reset callers use resetAndroidWorkspace, which targets the root navigation state when available. In split view, Thread and PullRequest routes use "none" for animation.
Hinge alignment and viewport sizing
apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx, apps/mobile/src/lib/layout*
Pane and inspector sizing no longer subtracts rail width. Hinge alignment uses the hinge position directly, and layout tests use the revised pane dimensions.
Reading widths and workspace toolbars
apps/mobile/src/lib/layout.ts, apps/mobile/src/features/home/HomeScreen.tsx, apps/mobile/src/features/threads/ThreadDetailScreen.tsx, apps/mobile/src/components/CompactBrandTitle.tsx, apps/mobile/src/features/home/ThreadListToolbar.tsx, apps/mobile/src/features/pull-requests/PullRequestToolbar.android.tsx, apps/mobile/src/features/workspace/AndroidWorkspaceSidebar.android.tsx
Home and thread content use the Android reading-width limit. Workspace toolbars add conditional navigation actions, and compact brand titles can hide the stage badge when the title does not fit.

Android switch touch handling

Layer / File(s) Summary
Pressable switch control
apps/mobile/src/components/ui/NativeSwitch.android.tsx
A React Native Pressable handles switch touch input and disabled state. The nested Compose view does not handle pointer events or accessibility descendants.

Non-operable thread row rendering

Layer / File(s) Summary
Apply swipe-container style
apps/mobile/src/features/threads/thread-list-v2-items.tsx
The non-operable thread row is wrapped in a View that applies rowAppearance.swipeContainerStyle.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Possibly related PRs

  • pingdotgg/t3code#19424: Both PRs change Android foldable workspace layout, rail sizing, and the 640dp reading width; this PR retains bottom navigation.
  • pingdotgg/t3code#18372: This PR revises Android workspace navigation and reset behavior introduced by that PR.
  • pingdotgg/t3code#19987: Both PRs change Android workspace navigation, rail sizing, and adaptive layout behavior.

Suggested reviewers: pixpmusic, juliusmarminge

Merge Risk: ⚪ Minimal · up to 77a2e

The Android foldable sidebar and layout changes show no remaining concrete merge-blocking risk. The reported concern about padding hiding sidebar thread rows does not apply to the code.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly identifies the Android foldable sidebar and layout fixes, which are the main changes in the pull request.
Description check Passed The description explains the problems, changes, scope, verification results, and visual evidence. It also identifies the related earlier pull requests and states the remaining screenshot limitation fo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problems, changes, scope, verification results, and visual evidence. It also identifies the related earlier pull requests and states the remaining screenshot limitation for the three new fixes.

✨ 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

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg
t3dotgg merged commit 6a6ebb2 into main Oct 18, 2026
33 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg
t3dotgg deleted the fix/android-foldable-bundle branch October 18, 2026 03:52
This was referenced Oct 18, 2026
fix(mobile): Android fold sidebar drops the nav rail and aligns every row #21049
Closed
fix(android): opening a thread on a foldable no longer slides in #21044
Closed
fix(android): sidebar threads open while Settings or New task is open #21043
Closed
fix(mobile): Android environment toggles toggle instead of opening the row #21041
Closed
fix(android): the sidebar opens threads while New thread is open #21004
Closed
fix(mobile): thread rows without swipe actions line up with the rest #19076
Closed
fix(mobile): read-only thread rows keep their side inset #19944
Closed
This was referenced Oct 18, 2026
[Bug]: Android connection switch taps expand the row instead of enabling the environment #14958
Closed
fix(mobile): tapping an Android switch no longer presses its row #15121
Closed
juliusmarminge added a commit that referenced this pull request Oct 18, 2026
@juliusmarminge @claude
Merge origin/main into t3code/android-nav-chrome
7fb5481
#21071 removed the split-view rail and added threads/PRs toggle buttons to
the sidebar headers. This branch keeps the wide rail, so the merge keeps
the rail in the layout, native module, colors, and hinge alignment, and
drops the sidebar header toggles the rail replaces. Everything else from
#21071 is kept: the root-state reset, the fitted brand title, the reading
width, and the split-view destination animation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge juliusmarminge mentioned this pull request Oct 18, 2026
fix(android): navigation chrome takes less of the screen #20813
Merged
14 of 15 tasks
@ipanasenko ipanasenko mentioned this pull request Oct 18, 2026
fix(mobile): Android switches inside tappable rows respond to taps #19933
Closed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Oct 18, 2026
@github-actions
nightly: 0.1.1-nightly.20261018.3302
04e70d9
## What's Changed
* perf(mobile): Metro runs the React Compiler, with a coverage ratchet by @juliusmarminge in pingdotgg/t3code#20967
* perf(mobile): usage screens compile with the React Compiler by @juliusmarminge in pingdotgg/t3code#20969
* perf(mobile): Connect onboarding compiles with the React Compiler by @juliusmarminge in pingdotgg/t3code#20970
* perf(mobile): device preview compiles with the React Compiler by @juliusmarminge in pingdotgg/t3code#20971
* fix(android): foldable sidebar and layout fixes by @t3dotgg in pingdotgg/t3code#21071
* test(mobile): measure renders on a device by @juliusmarminge in pingdotgg/t3code#21001
* fix(web): Working threads can be dragged into chat as references again by @t3dotgg in pingdotgg/t3code#19697
* refactor(web): the command palette caches its derived lookups without "use memo" by @juliusmarminge in pingdotgg/t3code#21116
* feat(mobile): link, unlink and watch a thread's pull requests from its sheet by @flamboh in pingdotgg/t3code#20394
* test(web): the right panel Escape test advances fake frames until focus returns by @juliusmarminge in pingdotgg/t3code#21118
* test(web): ChatMarkdown thread find waits for highlights to settle by @juliusmarminge in pingdotgg/t3code#21121


**Full Changelog**: pingdotgg/t3code@v0.1.1-nightly.20261018.3285...v0.1.1-nightly.20261018.3302

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.1-nightly.20261018.3302
github-actions Bot added a commit to davidvanderklay/t3code-flake that referenced this pull request Oct 18, 2026
@github-actions
nightly: 0.1.1-nightly.20261018.3302
7ad6588
## What's Changed
* perf(mobile): Metro runs the React Compiler, with a coverage ratchet by @juliusmarminge in pingdotgg/t3code#20967
* perf(mobile): usage screens compile with the React Compiler by @juliusmarminge in pingdotgg/t3code#20969
* perf(mobile): Connect onboarding compiles with the React Compiler by @juliusmarminge in pingdotgg/t3code#20970
* perf(mobile): device preview compiles with the React Compiler by @juliusmarminge in pingdotgg/t3code#20971
* fix(android): foldable sidebar and layout fixes by @t3dotgg in pingdotgg/t3code#21071
* test(mobile): measure renders on a device by @juliusmarminge in pingdotgg/t3code#21001
* fix(web): Working threads can be dragged into chat as references again by @t3dotgg in pingdotgg/t3code#19697
* refactor(web): the command palette caches its derived lookups without "use memo" by @juliusmarminge in pingdotgg/t3code#21116
* feat(mobile): link, unlink and watch a thread's pull requests from its sheet by @flamboh in pingdotgg/t3code#20394
* test(web): the right panel Escape test advances fake frames until focus returns by @juliusmarminge in pingdotgg/t3code#21118
* test(web): ChatMarkdown thread find waits for highlights to settle by @juliusmarminge in pingdotgg/t3code#21121


**Full Changelog**: pingdotgg/t3code@v0.1.1-nightly.20261018.3285...v0.1.1-nightly.20261018.3302

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.1-nightly.20261018.3302
@chamaquita-d3 chamaquita-d3 Bot mentioned this pull request Oct 18, 2026
chore: 🔀 merge upstream nightly v0.1.1-nightly.20261018.3302 d3labs-dev/t3code#112
Merged
@juliusmarminge juliusmarminge mentioned this pull request Oct 18, 2026
feat(mobile): Android drops the rail, bottom bar, and rounded sheets for a denser layout #19424
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Oct 19, 2026
fix(android): preserve chat back stack in the PR viewer #18839
Closed
@shivamhwp shivamhwp mentioned this pull request Oct 19, 2026
fix(mobile): Android split view opens a thread tapped while Settings is open #19743
Closed
@t3dotgg t3dotgg mentioned this pull request Oct 21, 2026
[Bug]: Android split view ignores a Home thread tap while Settings is open #19729
Closed
2 tasks done
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Oct 25, 2026
@t3dotgg @incognitojam
fix(android): foldable sidebar and layout fixes (pingdotgg#21071)
481317c
Co-authored-by: Claude Opus 5.5 <[email protected]>

Fork adaptation: Upstream's new text in `apps/mobile/src/features/pull-requests/PullRequestToolbar.android.tsx` takes the fork's naming (`T3 Code` to `styal`), as the fork's existing text there does. The compact brand title keeps the styal wordmark in place of the T3 wordmark and Code label, and shows the stage badge only when the fork resolves a stage label, combined with upstream's check that the badge fits.

(cherry picked from commit 6a6ebb2)
Upstream-PR: 21071
Fork-Feature: fork-distribution-identity
@Nurozen Nurozen mentioned this pull request Oct 28, 2026
Upstream checkpoint cd8c2c593275 (452 commits, #20967..) + main 12c3dc37 Nurozen/lecturn#161
Merged
yvesoddly added a commit to issuelt/t3code that referenced this pull request Nov 3, 2026
@yvesoddly @claude
chore(fork): track the updated carried PRs and drop superseded pingdo…
e8db066
…tgg#19424

pingdotgg#19424's code already matches upstream's pingdotgg#21071, pingdotgg#20812 and pingdotgg#20813, so the fork carries nothing from it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 30d0138540 hal-c2/hal-c2#1125
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@t3dotgg @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.