feat(mobile): enable landscape rotation with safe-area-aware layouts - #6025
Open
iscekic wants to merge 1 commit into
Open
feat(mobile): enable landscape rotation with safe-area-aware layouts#6025iscekic wants to merge 1 commit into
iscekic wants to merge 1 commit into
Conversation
iscekic
marked this pull request as draft
September 9, 2026 19:30
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Previous Review Summaries (2 snapshots, latest commit 8efa8a9)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8efa8a9)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (41 files)
Fix these issues in Kilo Cloud Previous review (commit e823b34)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (41 files)
Reviewed by grok-4.6 · Input: 62.1K · Output: 14K · Cached: 431.4K Review guidance: REVIEW.md from base branch |
iscekic
added a commit
that referenced
this pull request
Sep 9, 2026
iscekic
force-pushed
the
kwf/enable-landscape-mode-in-the-93e3
branch
from
September 9, 2026 22:02
2c59243 to
8efa8a9
Compare
iscekic
marked this pull request as ready for review
September 9, 2026 22:14
iscekic
marked this pull request as draft
September 9, 2026 22:40
Contributor
Author
|
bot: Accepted. Pushed 8eb1e80 (kwf What changed:
|
iscekic
force-pushed
the
kwf/enable-landscape-mode-in-the-93e3
branch
from
September 9, 2026 23:42
8eb1e80 to
060dcce
Compare
iscekic
marked this pull request as ready for review
September 9, 2026 23:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changelog for users
Changelog for maintainers
pr-diff-file-list-header.tsxandpr-diff-file-list-loading.tsx: each applies left/right safe-area insets only when nonzero. The header wraps the row in an inner View so the insets add to thepx-4gutter; background and hairline stay full-width on the outer container. The skeleton matches the loaded FlashList's content-container side padding; its height-feeding bottom padding is unchanged. Zero insets collapse both styles, so portrait geometry is unchanged.orientation: 'default'withios.requireFullScreen: true(full-screen rotation yes, iPad multitasking no);scripts/assert-expo-config.mjsnow asserts orientation, requireFullScreen, and the new rotation plugin.plugins/withAndroidRotationSurfacepins AppTheme'sandroid:windowBackgroundto the app tokens (#FBFAF5 light, #0E0E10 dark via values-night) so the Android surface-resize gap renders app colors.app-root-providers.tsx, the root Slot wrapper,AppContentReveal) gainedbg-backgroundto cover relayout frames.px-4/px-6) survive; they are spread only when nonzero, keeping portrait pixel-identical.prDiffListBottomPaddinggained a pureprDiffListContentPaddinghelper; the measured floating-bar height and list bottom clearance are unchanged because the insets are horizontal-only.getTabBarHorizontalInsetinsrc/lib/tab-bar-layout.ts,usePrDiffListContentPadding, the shared wrapper treatment inscreen-header.tsx,sheet-header.tsx, andimage-viewer-modal.tsx, plus the repair filespr-diff-file-list-header.tsxandpr-diff-file-list-loading.tsx.supportedOrientations={['portrait','landscape']}(React Native otherwise locks full-screen iPhone modals to portrait and clipped the photo), and FlashList content-container styles now depend on insets (session-message-list.tsxkeeps the module-level style reference in portrait to preserve list behavior).E2E proof
[e1] Signed-out landscape (empty-state surface) — Android emulator-5556: login rotated portrait→landscape→portrait (e1.mp4 6.4s; e1-landscape.png; e1-portrait-return.png). Email, Continue, and Sign in with Google stay visible and tappable in landscape; portrait return matches the pre-rotation form. UX-PREEXISTING: [pre-existing] landscape login — More sign-in options sits on the home-indicator edge until scrolled (e1-landscape.png vs e1-landscape-scrolled.png).
e1.mp4.trim.mp4
[e1] Agents list landscape rotation (android) — Android emulator-5554: Agents empty state rotated portrait→landscape→portrait (e1.mp4; e1-agents-landscape.png; e1-agents-portrait-return.png). Landscape keeps Nothing running right now, New session, and the tab icons with a left inset (Home tab x=128 vs x=0 in portrait); portrait return matches the portrait baseline. This capture replaces the earlier sessions-list rotation follow-up that was not proved live. Tooling gap: record.sh stop is not listed in e2e-index.
e1.mp4.trim.mp4
[e2] New session draft and model sheet in landscape — Android: the unsent draft landscape-draft-e2 survived landscape and portrait return; the return's Go back bounds [0,149][101,250] match pre-rotation and the landscape composer header sits inset (Go back x=128) (e2-composer-landscape.png). The model picker baseline was captured in portrait (e2-sheet-portrait.png); landscape keeps Select model, Done, Search models, and rows reachable (e2-sheet-landscape.png); Done closed the sheet (e2-sheet-closed-landscape.png). This run re-proves the earlier form-sheet pass, adds the landscape composer header inset, and evidences the earlier not-proved-live chat-draft and modal-sheet rotation follow-ups.
e2.mp4.trim.mp4
[e2] PR review in landscape — Android emulator-5554 with github-stub Mixed discussion fixture: Overview/Files/Discussion tabs and file navigator (src/alpha.ts, src/beta.ts) visible in landscape (e2-files-loaded.png); reply composer input stays visible in landscape (e2-reply-keyboard.png); portrait return restores tabs and Reply (e2-return-portrait.png, e2-trimmed.mp4). Superseded: this pre-repair capture no longer proves Files-header clearance; the [e3] capture below replaces that claim.
e2-trimmed.mp4.trim.mp4
[e3] PR review Files header landscape (android) — Android emulator-5554 with github-stub Mixed fixture kilo-stub/discussion-mixed#1: the landscape Files tab shows the patched header (Files · 0 of 2 viewed) and Open file navigator at x=165 alongside src/alpha.ts and src/beta.ts (e3-files.xml; e3-files.png); portrait return shows the navigator at x=37 (e3-files-portrait.xml). Inbox is also usable in landscape (e3-inbox-landscape.png). Limitation: the loading skeleton was not held live — Overview→Files served a cached list and e2e-index has no GitHub file-list latency hook.
Owner request
E2E proof — log excerpts
/home/igor_kilocode_ai/.local/share/kwf/sections/kwf-fix-review-0147/e2e-mobile-app/e2-composer-landscape.xml/home/igor_kilocode_ai/.local/share/kwf/sections/kwf-fix-review-0147/e2e-mobile-app/e2-portrait-return.xml/home/igor_kilocode_ai/.local/share/kwf/sections/kwf-fix-review-0147/e2e-mobile-app/e3-files.xml/home/igor_kilocode_ai/.local/share/kwf/sections/kwf-fix-review-0147/e2e-mobile-app/e3-files-portrait.xml