[PR #314] [MERGED] fix(noodle): honour the bottom safe area only on WebKit (1.0.7) #906

Closed
opened 2026-10-20 17:32:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/314
Author: @Gunterlie
Created: 8/12/2026
Status: ✅ Merged
Merged: 8/12/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/noodle-android-safe-area


📝 Commits (1)

  • 6391b13 fix(noodle): honour the bottom safe area only on WebKit (1.0.7)

📊 Changes

8 files changed (+96 additions, -52 deletions)

View changed files

➕ artifacts/noodle-1.0.7.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 catalog/v2/catalog.json (+7 -7)
📝 catalog/v3/catalog.json (+7 -7)
📝 packages/noodle/client.js (+24 -24)
📝 packages/noodle/manifest.json (+3 -3)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx (+47 -3)
📝 scripts/build-feature-packages.mjs (+1 -1)

📄 Description

Linked issue

Closes #313

Why this change

  • Android testers see an empty strip below Noodle's mobile bottom navigation bar. The Engine viewport meta sets viewport-fit=cover, so env(safe-area-inset-bottom) also reports the Android system navigation bar (about 48px with the 3-button bar).
  • Gecko on Android keeps the layout viewport above that bar, so the inset Noodle reserved has nothing to clear and paints as dead space.
  • WebKit really does extend the viewport under the iOS home indicator, and AppShell spaces only the top safe area (h-[env(safe-area-inset-top)]), so nothing else reserves the bottom inset for the Noodle panel. Removing the inset outright would hide the nav under the home indicator on iOS, so the shell gates it by engine instead.

What changed

  • packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx: new BOTTOM_SAFE_INSET constant, env(safe-area-inset-bottom) when CSS.supports("-webkit-touch-callout", "none") and 0px otherwise. The mobile <nav>, the <main> scroll reserve, and the mobile drawer read that constant instead of using env() unconditionally.
  • Same file: useWideShell() keeps the <main> reserve off the >=1024px layout, where the bottom nav is hidden. Both simplifications carry ponytail: comments (the WebKit check is a sniff; the media query stands in for the @container breakpoint).
  • scripts/build-feature-packages.mjs: Noodle version 1.0.6 → 1.0.7.
  • Rebuilt outputs: packages/noodle/manifest.json, packages/noodle/client.js, catalog/catalog.json, catalog/v2/catalog.json, catalog/v3/catalog.json, artifacts/noodle-1.0.7.zip.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none, engine.min stays 2.4.2 and the lane routing is unchanged (v2=32, v3=32)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: standard package update, Engine restart on install as usual; no storage or uninstall change

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Ran node scripts/build-feature-packages.mjs noodle, then node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, and git diff --check. All passed.
  • Confirmed the rebuilt packages/noodle/client.js keeps exactly one env(safe-area-inset-bottom) use, and that it comes from the shared Engine Modal fullscreen sheet, which is flush with the viewport and correct.
  • Not verified on hardware: no Android or iOS device is available here, so the WebKit-only reading of env(safe-area-inset-bottom) is a diagnosis from the report plus the viewport meta, not a measurement. Still to check on devices: Android Firefox (the reported device) and Android Chrome show no strip below the nav and the last timeline post scrolls clear of the bar; iOS Safari keeps the nav clear of the home indicator; desktop >=1024px is unchanged with the bottom nav hidden and no reserved gap.

Documentation impact

  • No documentation changes needed

UI evidence (if applicable)

No device screenshots available. The reporter's Android screenshot is attached to #313.

Follow-up

The Engine's own packages/client/src/components/noodle/NoodleShell.tsx snapshot carries the same unconditional insets and needs the same change in the Engine repo, so a build without the package installed behaves the same.

Summary by CodeRabbit

  • Bug Fixes

    • Improved mobile navigation and content layout around device safe areas, including notches and home indicators.
    • Prevented unnecessary mobile bottom spacing in wider desktop layouts.
  • Improvements

    • Updated the Noodle package to version 1.0.7.
    • Refreshed package artifacts and catalog metadata for the latest release.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/314 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/12/2026 **Status:** ✅ Merged **Merged:** 8/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/noodle-android-safe-area` --- ### 📝 Commits (1) - [`6391b13`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6391b13199bcbbadf54f4182dd021eaef536c712) fix(noodle): honour the bottom safe area only on WebKit (1.0.7) ### 📊 Changes **8 files changed** (+96 additions, -52 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.0.7.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `catalog/v2/catalog.json` (+7 -7) 📝 `catalog/v3/catalog.json` (+7 -7) 📝 `packages/noodle/client.js` (+24 -24) 📝 `packages/noodle/manifest.json` (+3 -3) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx` (+47 -3) 📝 `scripts/build-feature-packages.mjs` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #313 ## Why this change - Android testers see an empty strip below Noodle's mobile bottom navigation bar. The Engine viewport meta sets `viewport-fit=cover`, so `env(safe-area-inset-bottom)` also reports the Android system navigation bar (about 48px with the 3-button bar). - Gecko on Android keeps the layout viewport above that bar, so the inset Noodle reserved has nothing to clear and paints as dead space. - WebKit really does extend the viewport under the iOS home indicator, and `AppShell` spaces only the top safe area (`h-[env(safe-area-inset-top)]`), so nothing else reserves the bottom inset for the Noodle panel. Removing the inset outright would hide the nav under the home indicator on iOS, so the shell gates it by engine instead. ## What changed - `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx`: new `BOTTOM_SAFE_INSET` constant, `env(safe-area-inset-bottom)` when `CSS.supports("-webkit-touch-callout", "none")` and `0px` otherwise. The mobile `<nav>`, the `<main>` scroll reserve, and the mobile drawer read that constant instead of using `env()` unconditionally. - Same file: `useWideShell()` keeps the `<main>` reserve off the >=1024px layout, where the bottom nav is hidden. Both simplifications carry `ponytail:` comments (the WebKit check is a sniff; the media query stands in for the `@container` breakpoint). - `scripts/build-feature-packages.mjs`: Noodle version 1.0.6 → 1.0.7. - Rebuilt outputs: `packages/noodle/manifest.json`, `packages/noodle/client.js`, `catalog/catalog.json`, `catalog/v2/catalog.json`, `catalog/v3/catalog.json`, `artifacts/noodle-1.0.7.zip`. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none, `engine.min` stays 2.4.2 and the lane routing is unchanged (v2=32, v3=32) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: standard package update, Engine restart on install as usual; no storage or uninstall change ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Ran `node scripts/build-feature-packages.mjs noodle`, then `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, and `git diff --check`. All passed. - Confirmed the rebuilt `packages/noodle/client.js` keeps exactly one `env(safe-area-inset-bottom)` use, and that it comes from the shared Engine `Modal` fullscreen sheet, which is flush with the viewport and correct. - Not verified on hardware: no Android or iOS device is available here, so the WebKit-only reading of `env(safe-area-inset-bottom)` is a diagnosis from the report plus the viewport meta, not a measurement. Still to check on devices: Android Firefox (the reported device) and Android Chrome show no strip below the nav and the last timeline post scrolls clear of the bar; iOS Safari keeps the nav clear of the home indicator; desktop >=1024px is unchanged with the bottom nav hidden and no reserved gap. ## Documentation impact - [x] No documentation changes needed ## UI evidence (if applicable) No device screenshots available. The reporter's Android screenshot is attached to #313. ## Follow-up The Engine's own `packages/client/src/components/noodle/NoodleShell.tsx` snapshot carries the same unconditional insets and needs the same change in the Engine repo, so a build without the package installed behaves the same. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved mobile navigation and content layout around device safe areas, including notches and home indicators. * Prevented unnecessary mobile bottom spacing in wider desktop layouts. * **Improvements** * Updated the Noodle package to version 1.0.7. * Refreshed package artifacts and catalog metadata for the latest release. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:32:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#906
No description provided.