t3code icon indicating copy to clipboard operation
t3code copied to clipboard

fix(mobile): restore Android tablet thread controls, clean up header

Open PixPMusic opened this issue 3 months ago • 2 comments

What Changed

  • restore the compact T3 Code brand lockup in the Android split-view thread sidebar
  • align the lockup with the primary thread-title column
  • use the shared settings control instead of the divergent Android-native gear glyph
  • expose the existing Android new-task FAB inside the persistent sidebar and keep list rows clear of it
  • remove the empty Android detail pane's blank native-header wash
  • keep the focused new-thread composer and toolbar attached to the Android keyboard, matching existing threads

Why

Android tablets and unfolded foldables use a separate split-view sidebar once the window reaches 720dp × 600dp. That sidebar had drifted from the phone surface: it showed a hardcoded “Threads” title, a different settings icon, and no persistent way to start a task.

The new-thread screen also used padding-based keyboard avoidance while existing threads used a frame-synced sticky composer. On a foldable, the IME could cover the new-thread toolbar even though the existing-thread toolbar remained visible.

The empty split-view detail route still mounted a blank Android native header, leaving a lighter strip and divider above the otherwise uniform detail background.

This addresses the header, settings, and new-task portions of #5338. Sidebar collapse is intentionally outside this focused PR.

UI Changes

Before After
Android unfolded Fold sidebar before, showing the Threads title, sun-like settings icon, and no compose control Android unfolded Fold sidebar after, showing the T3 Code Alpha lockup, shared settings gear, and compose FAB

Both captures use the same deterministic dark-mode Threads fixture on an unfolded Pixel 9 Pro Fold AVD at its native 2076×2152 display size. Every “After” capture below was regenerated from the exact PR head (1a9de543f) using the production/Alpha variant in one emulator session.

Final baseline and empty-detail proof

Android unfolded Fold final layout, with the T3 Code lockup aligned to thread titles and a uniform empty-detail background

New thread with keyboard open

Android unfolded Fold new-thread composer after the fix, with its editor and controls visible above the open keyboard

Verification

  • pnpm --filter @t3tools/mobile typecheck
  • targeted formatting and lint for the changed mobile files
  • git diff --check
  • matched before/after pass on the real pixel_9_pro_fold Android hardware profile
  • focused new-thread pass with the IME open; editor and toolbar accessibility bounds remain above the keyboard
  • one fresh Codex review and one Claude Opus counter-review; the actionable animation and large-font clipping findings were addressed

Checklist

  • [x] This PR is small and focused
  • [x] I explained what changed and why
  • [x] I included before/after screenshots for the UI changes
  • [x] No new animation behavior was introduced

Model: GPT-5.6 Sol | Harness: Codex in T3 Code


[!NOTE] Low Risk UI and navigation chrome only on Android mobile; no auth, data, or backend changes.

Overview Android split-view gets thread-list parity with phone: the persistent sidebar shows the T3 Code lockup instead of “Threads”, drops the scroll-linked gradient wash for a solid header, and uses the shared settings control after removing the Android-only header actions module.

The new-task FAB is wired through AndroidHomeFabLayout on the adaptive sidebar (not only the home route), with extra list bottom padding so rows clear the FAB. Split-view home hides the empty detail pane’s native stack header on Android; leaving split view explicitly turns the compact brand header back on.

New thread on Android moves the composer from padding-based KeyboardAvoidingView to KeyboardStickyView so the toolbar stays above the IME like existing threads. CompactBrandTitle gains optional allowFontScaling (on for iOS nav titles, off in the sidebar lockup).

Reviewed by Cursor Bugbot for commit 9a05d3a04121d84e6458ff1d110f17603a69015b. Bugbot is set up for automated code reviews on this repo. Configure here.

[!NOTE]

Restore Android tablet thread controls and clean up sidebar header

  • Restores the Android FAB overlay on the thread navigation sidebar pane in split view, wiring it to navigate to NewTaskSheet via AndroidHomeFabLayout in AdaptiveWorkspaceLayout.tsx.
  • Replaces the scroll-driven gradient wash header in ThreadNavigationSidebar.tsx with a solid-background CompactBrandTitle header; removes the deleted Android-specific SidebarHeaderActions file.
  • Hides the native stack header on Android in split view and explicitly restores it when leaving split view in HomeRouteScreen.tsx.
  • Switches the new task composer on Android from KeyboardAvoidingView to KeyboardStickyView so controls stay anchored to the keyboard.
  • Adds allowFontScaling prop to CompactBrandTitle, disabled on Android and enabled on iOS.

Macroscope summarized 9a05d3a.

PixPMusic avatar Aug 05 '26 04:08 PixPMusic

[!IMPORTANT]

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 05a0935f-8aa0-4579-9f9f-c57877b2037a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • [ ] 🔍 Trigger review

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.

coderabbitai[bot] avatar Aug 05 '26 04:08 coderabbitai[bot]

Approvability

Verdict: Approved at b040b6b

Macroscope's review found this PR approvable — This PR restores Android tablet thread controls (FAB button) and simplifies header styling by removing scroll-based gradient effects. Changes are entirely UI/layout focused with no security, schema, or significant runtime behavior impact.

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

macroscopeapp[bot] avatar Aug 05 '26 04:08 macroscopeapp[bot]

I had this same thing happen.

MONKE2525E avatar Aug 09 '26 10:08 MONKE2525E

Confirming this also affects the Redmi Pad 2 (Android tablet, 2560x1600, server t3 v0.0.33): in landscape split view there's no New Thread button and no sidebar toggle in the thread header; portrait works fine. This PR would fix the New Thread part for me. Repro + screenshot in #5338 (https://github.com/pingdotgg/t3code/issues/5338#issuecomment-5322652697). Note the branch is currently showing as conflicting with main.

onurbamaro avatar Aug 18 '26 02:08 onurbamaro