[PR #1679] [MERGED] fix(noodle): keep editors visible above the landscape keyboard #1673

Closed
opened 2026-10-26 04:02:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1679
Author: @SpicyMarinara
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/noodle-landscape-keyboard


📝 Commits (2)

  • 36e2915 test(noodle): reproduce landscape keyboard editor occlusion
  • 0f5dad9 fix(noodle): keep landscape typing visible above keyboard

📊 Changes

21 files changed (+889 additions, -147 deletions)

View changed files

➕ artifacts/noodle-1.5.10.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+9 -9)
📝 catalog/v3/notes.json (+6 -6)
📝 package.json (+1 -1)
📝 packages/noodle/CHANGELOG.md (+4 -0)
📝 packages/noodle/client.js (+88 -72)
📝 packages/noodle/manifest.json (+6 -6)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx (+4 -1)
📝 packages/noodle/src/engine/packages/client/src/noodle-package-entry.tsx (+13 -2)
📝 scripts/build-feature-packages.mjs (+4 -3)
📝 scripts/vendored-engine-baseline.json (+0 -2)
📝 sources/engine/packages/client/src/components/ui/ExpandedTextarea.tsx (+29 -15)
➕ sources/engine/packages/client/src/hooks/use-keep-focused-field-above-keyboard.ts (+94 -0)
➕ sources/engine/packages/client/src/hooks/use-visual-viewport-chat-bottom.ts (+202 -0)
📝 sources/engine/packages/client/src/lib/chat-floating-ui-events.ts (+89 -0)
➕ sources/engine/packages/client/src/lib/text-selection.ts (+72 -0)

...and 1 more files

📄 Description

Linked issue

Closes #1678.

Why this change

Noodle's mobile header and bottom navigation leave too little room to see posts and replies while typing in landscape. Expanded prompt editors also collapse their editing area between the header and footer, so the user cannot see what they are typing.

What changed

Hide the package's mobile bars while its landscape keyboard is open, follow the host's visual viewport on Android, and reuse the shared focused-field reveal helper across Noodle's package root and portals.

Publish Noodle 1.5.10 with the shared expanded editor from Engine commit 42d64368e82340a46e35c0f4489d9f41024d6032 (Pasta-Devs/Marinara-Engine#8313), regenerated package/catalog/artifact metadata, and matching release notes. The five captured host files are byte-identical to that checkout; refreshing the expanded editor also brings its existing sidebar palette and browser-extension Escape guard. The CSS-only build skips copying Engine public assets into its temporary output.

Package and security impact

  • Affected package IDs: noodle.
  • Engine compatibility impact: requires Engine 2.5.1 or newer, below 4.0.0. Engine #8313 has landed in staging; the published host matches all five captured source files.
  • New or changed permissions/entrypoints: none; no new host runtime API.
  • Restart, storage, update, or uninstall impact: retains the existing package restart behavior and storage layout. The downloaded package and catalog hashes are regenerated by the official builder.

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

Inspected Noodle before/after captures and shared Engine editor captures document the synthetic visual-viewport proof. Engine #8313 has landed in staging; the published host matches all five captured source files.

  • Original Noodle 1.5.9 fails actual focused first-line visibility in posts, comments, and expanded prompts under a synthetic 140px panned visual viewport. The repaired package passes 18/18 cases: desktop Chromium, mobile Chromium, and mobile WebKit, each in dark/light themes, with keyboard-close and portrait navigation controls.
  • A 20-line prompt with the caret at the end keeps the entire 85px editing box inside the 140px visible viewport, scrolls natively to the last row, and accepts the appended text.
  • npm run check passed (0 errors; preexisting warnings), focused Noodle package type checks passed, and catalog lanes, package locales, catalog integrity, release-note regression, and git diff --check passed.
  • A clean second build produced identical client, server, manifest, ZIP, catalog, and notes bytes. ZIP SHA-256: 639671101b28fcf8cfc4de6d94937547cdf70da237d44a6ff1e0828674a75fa6.
  • Local CodeRabbit review of the complete committed diff finished with 0 findings across all 20 text files; the ZIP was excluded as binary.
  • The artifact was installed through the official integrity-checking fixture into disposable Engine data and activated after restart. Download Agents UI uninstall returned HTTP 200 and requested restart; after restarting, Noodle was absent from health metadata and /api/noodle returned 404. Reinstalling the validated artifact and restarting with an unavailable catalog (catalog.invalid) still activated Noodle 1.5.10, served its feed with HTTP 200, and rendered its timeline in a fresh browser context while catalog retrieval returned HTTP 500.
  • Physical-device keyboard behavior and provider generation have not been exercised. Published Download Agents install/update remains a post-publication check.

The supplementary hosted Noodle browser workflow is blocked by inherited vendored-Engine drift. The controlled comparison against the frozen combined Engine candidate reports 151 failures in original Agents staging and 149 after this change (none introduced; two refreshed snapshot entries resolved). Against the subsequently merged Engine b62d89fe9071c644fd6133fdf067ac5ff3981f46, all five captured files remain byte-identical, while the full snapshot gate reports 150 failures: concurrent Engine #8310 also changed the unrelated packages/server/src/services/game/segment-edits.ts host fingerprint. The validator and unrelated snapshots have not been weakened or refreshed. The staging ruleset does not require this workflow; its strict validator and snapshots remain unchanged outside the five required captures. The direct focused package browser suite above ran independently and passed.

Documentation impact

The package release notes describe the keyboard repair; no Engine user-guide changes are needed.

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Inspected Noodle before/after captures and shared Engine editor captures document the synthetic visual-viewport proof.

  • Manually verify typing and scrolling long posts, comments, and prompts with a real mobile landscape keyboard.
  • Manually verify the published package's install/update and restart path through Download Agents after publication.

🔄 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/1679 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/noodle-landscape-keyboard` --- ### 📝 Commits (2) - [`36e2915`](https://github.com/Pasta-Devs/Marinara-Agents/commit/36e2915ef7ea5aa77d240af54c31489ebbc7efa5) test(noodle): reproduce landscape keyboard editor occlusion - [`0f5dad9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0f5dad9da09ff764cb3ae47cdd4d6cb725e27699) fix(noodle): keep landscape typing visible above keyboard ### 📊 Changes **21 files changed** (+889 additions, -147 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.5.10.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `package.json` (+1 -1) 📝 `packages/noodle/CHANGELOG.md` (+4 -0) 📝 `packages/noodle/client.js` (+88 -72) 📝 `packages/noodle/manifest.json` (+6 -6) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx` (+4 -1) 📝 `packages/noodle/src/engine/packages/client/src/noodle-package-entry.tsx` (+13 -2) 📝 `scripts/build-feature-packages.mjs` (+4 -3) 📝 `scripts/vendored-engine-baseline.json` (+0 -2) 📝 `sources/engine/packages/client/src/components/ui/ExpandedTextarea.tsx` (+29 -15) ➕ `sources/engine/packages/client/src/hooks/use-keep-focused-field-above-keyboard.ts` (+94 -0) ➕ `sources/engine/packages/client/src/hooks/use-visual-viewport-chat-bottom.ts` (+202 -0) 📝 `sources/engine/packages/client/src/lib/chat-floating-ui-events.ts` (+89 -0) ➕ `sources/engine/packages/client/src/lib/text-selection.ts` (+72 -0) _...and 1 more files_ </details> ### 📄 Description ## Linked issue Closes #1678. ## Why this change Noodle's mobile header and bottom navigation leave too little room to see posts and replies while typing in landscape. Expanded prompt editors also collapse their editing area between the header and footer, so the user cannot see what they are typing. ## What changed Hide the package's mobile bars while its landscape keyboard is open, follow the host's visual viewport on Android, and reuse the shared focused-field reveal helper across Noodle's package root and portals. Publish Noodle 1.5.10 with the shared expanded editor from Engine commit `42d64368e82340a46e35c0f4489d9f41024d6032` (Pasta-Devs/Marinara-Engine#8313), regenerated package/catalog/artifact metadata, and matching release notes. The five captured host files are byte-identical to that checkout; refreshing the expanded editor also brings its existing sidebar palette and browser-extension Escape guard. The CSS-only build skips copying Engine public assets into its temporary output. ## Package and security impact - Affected package IDs: `noodle`. - Engine compatibility impact: requires Engine 2.5.1 or newer, below 4.0.0. Engine #8313 has landed in staging; the published host matches all five captured source files. - New or changed permissions/entrypoints: none; no new host runtime API. - Restart, storage, update, or uninstall impact: retains the existing package restart behavior and storage layout. The downloaded package and catalog hashes are regenerated by the official builder. ## 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 [Inspected Noodle before/after captures](https://github.com/Pasta-Devs/Marinara-Agents/pull/1679#issuecomment-6398343448) and [shared Engine editor captures](https://github.com/Pasta-Devs/Marinara-Engine/pull/8313#issuecomment-6398343143) document the synthetic visual-viewport proof. Engine #8313 has landed in staging; the published host matches all five captured source files. - Original Noodle 1.5.9 fails actual focused first-line visibility in posts, comments, and expanded prompts under a synthetic 140px panned visual viewport. The repaired package passes 18/18 cases: desktop Chromium, mobile Chromium, and mobile WebKit, each in dark/light themes, with keyboard-close and portrait navigation controls. - A 20-line prompt with the caret at the end keeps the entire 85px editing box inside the 140px visible viewport, scrolls natively to the last row, and accepts the appended text. - `npm run check` passed (0 errors; preexisting warnings), focused Noodle package type checks passed, and catalog lanes, package locales, catalog integrity, release-note regression, and `git diff --check` passed. - A clean second build produced identical client, server, manifest, ZIP, catalog, and notes bytes. ZIP SHA-256: `639671101b28fcf8cfc4de6d94937547cdf70da237d44a6ff1e0828674a75fa6`. - Local CodeRabbit review of the complete committed diff finished with 0 findings across all 20 text files; the ZIP was excluded as binary. - The artifact was installed through the official integrity-checking fixture into disposable Engine data and activated after restart. Download Agents UI uninstall returned HTTP 200 and requested restart; after restarting, Noodle was absent from health metadata and `/api/noodle` returned 404. Reinstalling the validated artifact and restarting with an unavailable catalog (`catalog.invalid`) still activated Noodle 1.5.10, served its feed with HTTP 200, and rendered its timeline in a fresh browser context while catalog retrieval returned HTTP 500. - Physical-device keyboard behavior and provider generation have not been exercised. Published Download Agents install/update remains a post-publication check. The supplementary hosted Noodle browser workflow is blocked by inherited vendored-Engine drift. The controlled comparison against the frozen combined Engine candidate reports 151 failures in original Agents staging and 149 after this change (none introduced; two refreshed snapshot entries resolved). Against the subsequently merged Engine `b62d89fe9071c644fd6133fdf067ac5ff3981f46`, all five captured files remain byte-identical, while the full snapshot gate reports 150 failures: concurrent Engine #8310 also changed the unrelated `packages/server/src/services/game/segment-edits.ts` host fingerprint. The validator and unrelated snapshots have not been weakened or refreshed. The staging ruleset does not require this workflow; its strict validator and snapshots remain unchanged outside the five required captures. The direct focused package browser suite above ran independently and passed. ## Documentation impact The package release notes describe the keyboard repair; no Engine user-guide changes are needed. - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) [Inspected Noodle before/after captures](https://github.com/Pasta-Devs/Marinara-Agents/pull/1679#issuecomment-6398343448) and [shared Engine editor captures](https://github.com/Pasta-Devs/Marinara-Engine/pull/8313#issuecomment-6398343143) document the synthetic visual-viewport proof. - [ ] Manually verify typing and scrolling long posts, comments, and prompts with a real mobile landscape keyboard. - [ ] Manually verify the published package's install/update and restart path through Download Agents after publication. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1673
No description provided.