[PR #8313] [MERGED] fix(mobile): keep Save stable and editors within the viewport #8273

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

📋 Pull Request Information

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

Base: staging ← Head: fix/mobile-connection-save-duplicate


📝 Commits (5)

  • 9751fab test(mobile): reproduce connection Save status layout shift
  • 1cccf4b fix(connections): keep mobile Save stable during status feedback
  • 00911f8 fix(mari): fill the available mobile touch viewport
  • 42d6436 fix(ui): keep expanded editors usable above mobile keyboards
  • 0a38705 test(ui): settle orientation before emulating the keyboard

📊 Changes

6 files changed (+503 additions, -4 deletions)

View changed files

➕ e2e/connection-save-mobile.e2e.ts (+100 -0)
➕ e2e/expanded-textarea-keyboard.e2e.ts (+127 -0)
➕ e2e/mari-mobile-fullscreen.e2e.ts (+227 -0)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+1 -1)
📝 packages/client/src/components/ui/ExpandedTextarea.tsx (+14 -3)
📝 packages/client/src/styles/omnibar.css (+34 -0)

📄 Description

Linked issues

Refs #8311
Closes #8312
Refs Pasta-Devs/Marinara-Agents#1678

Owner: @SpicyMarinara / Codex.

Why this change

On phones, changing the connection-save status moves the Save control, Professor Mari keeps desktop size limits in landscape, and the shared expanded text editor can hide its text and footer when the software keyboard leaves very little height.

The original report of an extra painted Save icon on a physical phone was not reproduced. This PR fixes the measured Save-position jump; #8311 remains open for device confirmation.

What changed

  • Keep the mobile connection Save action in the same position while unsaved/success feedback appears and disappears. The save handler and request sequence are unchanged.
  • Let Professor Mari fill the available touch viewport, including landscape, safe-area insets and the keyboard viewport. Keep desktop size controls and limits unchanged.
  • Fit the shared fullscreen text editor to the available visual viewport and reuse the focused-field keyboard helper. Preserve a readable editing area and make its header/footer reachable by scrolling when landscape keyboard space is short.

Noodle's package-owned navigation/focus changes and its bundled copy of the shared editor are delivered separately in Pasta-Devs/Marinara-Agents#1679.

Validation

Tested source: 0a38705c50e0d96bfd51686f2a8ddb38ac0f3543.

  • PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false pnpm check passed, including localization, formatting, lint/type checks and both production builds. The installed dependency/lockfile guard passed before and after; the environment flag only disables pnpm's automatic dependency reinstallation. One existing hook-dependency warning in HomeProfessorMariChat.tsx:380 remains outside this diff.
  • Final e2e typecheck and focused spec/CSS Prettier checks passed after the fixture-only orientation-settling amendment.
  • Connection Save: 6/6 desktop Chromium/mobile Chromium/mobile WebKit cases in dark/light, with portrait and landscape on both mobile engines. Every save has one Save button/icon, one defaults PUT and one connection PATCH. The old WebKit layout moves from x=73.4375 to 39.3125 to 12.75; the fixed control stays at x=12.75 through all three states.
  • Professor Mari: 6/6 desktop/mobile Chromium/mobile WebKit dark/light cases, covering full viewport, safe-area/keyboard geometry, quick options, portrait return and desktop controls. The unchanged mobile layout failed the same bounds assertion before the patch.
  • Expanded editor: 6/6 desktop/mobile Chromium/mobile WebKit dark/light cases. The unchanged host failed first-line visibility; the patch permits reading, typing and committing through its footer in a panned 140px visual viewport. The synthetic viewport starts after the host's existing orientation-settling timers; geometry assertions are unchanged.
  • Required desktop Chromium UI smoke: 7/7 passed with one worker. The first reused dev-server run passed 4/7; direct store-injection cases failed because its graph still imported timestamped store modules after the shared build, and one retained trace also reports ENOSPC. Restarting only Vite aligned the module URLs; replaying the same complete suite passed without code, assertion, backend or cache changes. Both runs are retained.
  • Fresh local CodeRabbit committed review completed on the exact head with 0 findings; its completion event explicitly covers all six changed files.

The keyboard cases simulate visual-viewport events in browsers. They do not establish physical-device keyboard or original Safari paint behavior, and no real model provider is called.

  • Manually verify Save on the original physical mobile device, including the reported extra painted icon.
  • Manually verify Professor Mari fills landscape on a phone and desktop sizing still works.
  • Manually verify expanded editing with a real phone keyboard, including footer access and committing text.

UI evidence

Before/after screenshots and scoped browser proof.

Docs and release impact

No release metadata, UI copy or localization keys change. The existing Professor Mari guide already documents full-screen windows on phones; this restores that behavior.


🔄 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-Engine/pull/8313 **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/mobile-connection-save-duplicate` --- ### 📝 Commits (5) - [`9751fab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9751fabf593c27020e58fc65382993dd9f6d8500) test(mobile): reproduce connection Save status layout shift - [`1cccf4b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1cccf4ba9bce4abb008ceaffcbf307fe98a8012d) fix(connections): keep mobile Save stable during status feedback - [`00911f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/00911f8a0c7e8f45b4180b17eaebb9684b68cb82) fix(mari): fill the available mobile touch viewport - [`42d6436`](https://github.com/Pasta-Devs/Marinara-Engine/commit/42d64368e82340a46e35c0f4489d9f41024d6032) fix(ui): keep expanded editors usable above mobile keyboards - [`0a38705`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0a38705c50e0d96bfd51686f2a8ddb38ac0f3543) test(ui): settle orientation before emulating the keyboard ### 📊 Changes **6 files changed** (+503 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `e2e/connection-save-mobile.e2e.ts` (+100 -0) ➕ `e2e/expanded-textarea-keyboard.e2e.ts` (+127 -0) ➕ `e2e/mari-mobile-fullscreen.e2e.ts` (+227 -0) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+1 -1) 📝 `packages/client/src/components/ui/ExpandedTextarea.tsx` (+14 -3) 📝 `packages/client/src/styles/omnibar.css` (+34 -0) </details> ### 📄 Description ## Linked issues Refs #8311 Closes #8312 Refs Pasta-Devs/Marinara-Agents#1678 Owner: @SpicyMarinara / Codex. ## Why this change On phones, changing the connection-save status moves the Save control, Professor Mari keeps desktop size limits in landscape, and the shared expanded text editor can hide its text and footer when the software keyboard leaves very little height. The original report of an extra painted Save icon on a physical phone was not reproduced. This PR fixes the measured Save-position jump; #8311 remains open for device confirmation. ## What changed - Keep the mobile connection Save action in the same position while unsaved/success feedback appears and disappears. The save handler and request sequence are unchanged. - Let Professor Mari fill the available touch viewport, including landscape, safe-area insets and the keyboard viewport. Keep desktop size controls and limits unchanged. - Fit the shared fullscreen text editor to the available visual viewport and reuse the focused-field keyboard helper. Preserve a readable editing area and make its header/footer reachable by scrolling when landscape keyboard space is short. Noodle's package-owned navigation/focus changes and its bundled copy of the shared editor are delivered separately in Pasta-Devs/Marinara-Agents#1679. ## Validation Tested source: `0a38705c50e0d96bfd51686f2a8ddb38ac0f3543`. - `PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false pnpm check` passed, including localization, formatting, lint/type checks and both production builds. The installed dependency/lockfile guard passed before and after; the environment flag only disables pnpm's automatic dependency reinstallation. One existing hook-dependency warning in `HomeProfessorMariChat.tsx:380` remains outside this diff. - Final e2e typecheck and focused spec/CSS Prettier checks passed after the fixture-only orientation-settling amendment. - Connection Save: 6/6 desktop Chromium/mobile Chromium/mobile WebKit cases in dark/light, with portrait and landscape on both mobile engines. Every save has one Save button/icon, one defaults PUT and one connection PATCH. The old WebKit layout moves from x=73.4375 to 39.3125 to 12.75; the fixed control stays at x=12.75 through all three states. - Professor Mari: 6/6 desktop/mobile Chromium/mobile WebKit dark/light cases, covering full viewport, safe-area/keyboard geometry, quick options, portrait return and desktop controls. The unchanged mobile layout failed the same bounds assertion before the patch. - Expanded editor: 6/6 desktop/mobile Chromium/mobile WebKit dark/light cases. The unchanged host failed first-line visibility; the patch permits reading, typing and committing through its footer in a panned 140px visual viewport. The synthetic viewport starts after the host's existing orientation-settling timers; geometry assertions are unchanged. - Required desktop Chromium UI smoke: 7/7 passed with one worker. The first reused dev-server run passed 4/7; direct store-injection cases failed because its graph still imported timestamped store modules after the shared build, and one retained trace also reports ENOSPC. Restarting only Vite aligned the module URLs; replaying the same complete suite passed without code, assertion, backend or cache changes. Both runs are retained. - Fresh local CodeRabbit committed review completed on the exact head with 0 findings; its completion event explicitly covers all six changed files. The keyboard cases simulate visual-viewport events in browsers. They do not establish physical-device keyboard or original Safari paint behavior, and no real model provider is called. - [ ] Manually verify Save on the original physical mobile device, including the reported extra painted icon. - [ ] Manually verify Professor Mari fills landscape on a phone and desktop sizing still works. - [ ] Manually verify expanded editing with a real phone keyboard, including footer access and committing text. ## UI evidence [Before/after screenshots and scoped browser proof](https://github.com/Pasta-Devs/Marinara-Engine/pull/8313#issuecomment-6398094480). ## Docs and release impact No release metadata, UI copy or localization keys change. The existing Professor Mari guide already documents full-screen windows on phones; this restores that behavior. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 04:04:17 +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-Engine#8273
No description provided.