Keep every pane inside the Android safe area
The stage detail pane covered the status bar. Introduce one shared paneSafeArea() (WindowInsets.safeDrawing: status bar, display cutout, navigation bar, gesture area and IME) and apply it from the live window insets across the pane stack: - SlidingPaneStack uses it (unioned with systemGestures) for the covered peeks' strip geometry. - Each pane's Scaffold reserves it once via contentWindowInsets, and its TopAppBar reserves the top/horizontal part, so no pane sits under the status bar, a cutout, the navigation bar or the IME. Applied to the five stacked panes and SettingsScreen. - The connection banner owns the top inset and the NavHost consumes it (paneSafeArea().only(Top), was statusBars) so the inset is never doubled. - The floating destinations pill clears the same safe area, so the keyboard no longer hides it. Scrollable content stays inside the remaining space rather than clipping. android/README.md records the design and emulator-5554 verification.
This commit is contained in:
@@ -1615,3 +1615,61 @@ Verified on `emulator-5554` only (2076x2152 / 390dpi fold layout, live server),
|
||||
`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`,
|
||||
`Content-Length: 18012767`; a streamed `GET | shasum -a 256` returned the same
|
||||
`b3b7d948…`.
|
||||
|
||||
## Pane safe area (16 Oct 2026)
|
||||
|
||||
The pane stack now guarantees every pane clears the system UI from the live
|
||||
window insets instead of relying on each screen's implicit Material defaults.
|
||||
One shared `paneSafeArea()` (`WindowInsets.safeDrawing`: status bar, any display
|
||||
cutout, navigation bar and IME) is the single source of that geometry — never a
|
||||
fixed padding:
|
||||
|
||||
- `SlidingPaneStack` reads it (unioned with `systemGestures`) for the covered
|
||||
peeks' strip geometry, so a peek also clears a cutout and the keyboard.
|
||||
- Each pane's `Scaffold(contentWindowInsets = paneSafeArea())` reserves it once
|
||||
for the content, and its `TopAppBar(windowInsets = paneSafeArea().only(Top +
|
||||
Horizontal))` reserves the top/horizontal part, so a pane can never sit under
|
||||
the status bar, a cutout, the navigation bar or the IME. Applied to the five
|
||||
stacked panes (`PipelineListScreen`, `PipelineDetailScreen`, `RunHistoryScreen`,
|
||||
`RunDetailScreen`, `StageDetailPane`) and to `SettingsScreen`.
|
||||
- No inset is applied twice: while the connection banner is shown it owns the top
|
||||
inset and the `NavHost` consumes `paneSafeArea().only(Top)` (was `statusBars`),
|
||||
so the pane's app bar directly below the banner is not padded a second time.
|
||||
- The search field lives inside the pane's `Scaffold` content, so it is already
|
||||
inside the safe area; a future floating overlay must read the same
|
||||
`paneSafeArea()`.
|
||||
- The floating destinations pill clears the same safe area
|
||||
(`windowInsetsPadding(paneSafeArea())`), so the keyboard no longer hides it.
|
||||
|
||||
Evidence on `emulator-5554` only (fold AVD; narrow `wm size 1080x2340` @ 390dpi ≈
|
||||
443dp, wide `wm size reset` = 2076x2152 / 390dpi ≈ 852dp; **never** the attached
|
||||
Pixel), against the live server, driven with `adb shell input` / `uiautomator
|
||||
dump` and captured with `android/scripts/capture_png.sh -s emulator-5554` (every
|
||||
image validated):
|
||||
|
||||
- `gradle :app:assembleDebug --console=plain` → `BUILD SUCCESSFUL` (Gradle
|
||||
8.11.1, JDK 17); `app/build/outputs/apk/debug/app-debug.apk` is 18,029,402
|
||||
bytes, sha256 `45c1bd09b9622dfe023ff62129a80c44b060bf7c15963757e3f1a5dfa5f851fb`.
|
||||
- `gradle :app:testDebugUnitTest --rerun-tasks --console=plain` →
|
||||
`BUILD SUCCESSFUL`; the 18 result XMLs aggregate to **140 tests, 0 failures, 0
|
||||
errors, 0 skipped**.
|
||||
- `safe-area-narrow-stage-pane.png` / `safe-area-wide-stage-pane.png`: the run 84
|
||||
`implementer` stage pane on the narrow and wide windows — the status bar and its
|
||||
icons are visible, and the pane's app bar and scrolling body sit fully below
|
||||
them, not clipped or covered.
|
||||
- `safe-area-wide-ime-open.png` / `safe-area-wide-ime-scrolled.png`: the pipeline
|
||||
search field focused (IME shown); the list scrolls inside the remaining space so
|
||||
the last pipeline row is fully visible above the keyboard, and the destination
|
||||
pill sits above the IME.
|
||||
- `safe-area-wide-banner-owns-top.png`: with the connection banner shown it owns
|
||||
the top inset and the pane's app bar follows directly below it — the inset is
|
||||
reserved once, never twice.
|
||||
- `adb -s emulator-5554 logcat -d` held 0 `FATAL EXCEPTION` / `E AndroidRuntime`
|
||||
lines; `wm size` was reset afterwards.
|
||||
- **APK publish.** Copied to
|
||||
`~/.local/share/pipelines/data/artifacts/86/1/pipelines-debug-wip-5ad4b58.apk`
|
||||
(`5ad4b58` = `git rev-parse --short HEAD`; the working tree is uncommitted WIP on
|
||||
top of it). `curl -I
|
||||
http://10.0.0.249:8080/artifacts/86/1/pipelines-debug-wip-5ad4b58.apk` returned
|
||||
`HTTP/1.1 200 OK`, `Content-Type: application/vnd.android.package-archive`,
|
||||
`Content-Length: 18029402`.
|
||||
|
||||
Reference in New Issue
Block a user