[PR #7881] [MERGED] fix(release): resolve remaining staging browser matrix failures #7980

Closed
opened 2026-10-24 04:09:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/release-staging-browser-matrix-20261020


📝 Commits (2)

  • 83562b7 fix(release): resolve staging browser matrix failures
  • d0334dd test(e2e): wait for the Save file toast to detach before editing

📊 Changes

14 files changed (+164 additions, -19 deletions)

View changed files

📝 e2e/avatar-voice-sync.e2e.ts (+8 -2)
📝 e2e/core-flows.e2e.ts (+3 -1)
📝 e2e/game-inventory-bags.e2e.ts (+3 -0)
📝 e2e/game-tile-packs.e2e.ts (+4 -4)
📝 e2e/game-world-files.e2e.ts (+12 -1)
📝 e2e/handleless-library-drag.e2e.ts (+11 -0)
📝 e2e/mobile-echo-window.e2e.ts (+1 -1)
📝 e2e/phone-toast-headers.e2e.ts (+40 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -0)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+2 -2)
📝 packages/client/src/components/game/GameInventory.tsx (+4 -1)
📝 packages/client/src/hooks/use-touch-folder-drag.ts (+1 -0)
📝 packages/client/src/lib/phone-toast-top.ts (+16 -5)
📝 scripts/regressions/phone-toast-top.regression.ts (+58 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7877

Why this change

The first full staging browser run after #7876, run 39427647333, passed 37 of 48 shards at d89fe7932. Eleven shards reported 23 failed test occurrences; 12 came from WebKit receiving Chromium-only launch flags. This follow-up fixes the reproduced application defects and updates fixtures whose assumptions no longer matched intentional behavior. The full staging browser matrix is not yet green.

What changed

  • Escape during a background drag cancels the drag while keeping Background Library open and its selection unchanged. The regression waits through the modal transition and verifies that a second Escape still closes the library.
  • Phone toasts clear Inventory Close, including when selecting an item grows the centered panel and moves its header. Observe the custom header and its panel, handle relevant panel mutations before paint, and retain filtering for unrelated streaming content. Cover arrival, persistent-toast hit testing, panel growth, cleanup, and an actual Close click.
  • Fit the Home What's New actions at narrow widths and give Professor Mari's text column enough room at large UI font sizes. Preserve the existing colors, fonts, artwork, and layout design.
  • Restore the Character name field's accessible name with its existing localization key.
  • Keep avatar autoplay launch flags Chromium-only. Reuse the iPhone Save file export helper introduced for #7115, retaining tile-pack filename, JSON, persistence, and removal assertions.
  • Target the quick picker's unique menu marker; wait for Save file toast focus restoration to finish, then verify world-seed focus and readback before checking reseed warnings; wait for Echo's complete debounced saved layout before reloading. Bag-tab automation leaves the toast hover area and waits for normal dismissal; persistent-toast header protection is tested separately.
  • Give the Tracker case's five complete reload/paint paths a 120-second total budget. Commit 711c461e09 expanded it from two paths to five without updating that budget; the failed 60-second run reached its final visibility assertion with 112 ms remaining. Every per-assertion 10-second limit and all five paths remain.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Recorded local evidence, kept separate because the focused batches overlap:

  • Drag and tile-pack Playwright suites: 21/21 passed across desktop Chromium, phone Chromium, and phone WebKit, one worker. Log: /tmp/marinara-matrix-drag-export-after.log.

  • Home, Tracker, Echo, Character of the Day, and quick-picker focused batch: 19 passed, 6 project-defined skips. That intermediate batch also exposed two Inventory-growth failures; those were corrected and rerun in the final suite below. Log: /tmp/marinara-matrix-ui-focused.log.

  • Final phone-header and inventory-bag suites: 16 passed, 8 project-defined skips, zero failures, across all three projects. Log: /tmp/marinara-matrix-phone-bags-final.log.

  • node scripts/run-regressions.mjs --filter phone-toast-top.regression.ts: 1/1 passed, including custom-panel descendant mutations, unrelated-content filtering, and observer cleanup. Removing the relevant-mutation fix makes the regression fail. Logs: /tmp/marinara-inventory-panel-mutation-node-{negative,positive}.log.

  • Negative browser controls reproduce Escape closing the library and a settled toast blocking Inventory Close during panel growth. Linux WebKit with DejaVu reproduces the old Home geometry: release notes 30.78 px outside its card, and Mari's eyebrow/action 5.75 px outside their column. The final eight dark/light geometry samples pass; unchanged Home assertions also pass, with their defined hover skip. Evidence: /tmp/marinara-matrix-drag-negative.log, /tmp/marinara-inventory-growth-negative.log, /tmp/marinara-home-linux-probe/.

  • World-file import/reseed/export case: 6/6 passed, two repetitions in each of the three projects. The negative event trace proves the exiting Save file toast restored focus to the wizard during the input click; waiting for the removed toast to leave the DOM fixes that fixture race without changing input data or weakening any warning/export assertion. Log: /tmp/marinara-matrix-world-file-settled.log. After CodeRabbit identified the remaining active-toast race, the locator now waits for the Save file toast itself (including hidden nodes) to detach. The same six cases passed again, with formatting and E2E types passing; log /tmp/marinara-matrix-cr-world.log.

  • Final pnpm check: passed, exit 0, including localization, format, lint/type checks, and production builds. One existing HomeProfessorMariChat hook warning remains; no errors. Log: /tmp/marinara-matrix-final-check-after-world.log (full check repeated after the final world-file synchronization).

  • pnpm smoke:ui: 7/7 passed, one desktop Chromium worker. Log: /tmp/marinara-matrix-smoke.log.

  • Container built and ran locally on Linux arm64 with disposable tmpfs data; health and compiled SPA HTTP200. Log: /tmp/marinara-matrix-container-build.log.

The 946/946 full Node pass belongs to baseline staging d89fe7932, not this follow-up branch. No physical-phone validation is claimed here. Hosted checks and review remain merge gates. Redispatch the full 48-shard staging matrix after merge at the new exact staging SHA; these focused results do not replace it.

Manual verification notes

  1. Manually open Settings → Appearance → Backgrounds → Browse library. Drag a thumbnail, press Escape, and verify the library stays open without changing selection. Press Escape again and verify it closes.
  2. Manually open Game Inventory on a phone-sized screen while a toast is visible. Select an item so its action panel grows, then verify Close remains reachable and works. Check the bag tabs after the toast dismisses normally.
  3. Manually check What's New at 320 px and Professor Mari with a large UI font, in light and dark themes. Verify the actions remain usable and existing palettes and artwork are preserved.
  4. Manually open Character of the Day's editor, use the quick picker, change a world seed, restore an unpinned Echo window after reload, and export a tile pack through iPhone Save file.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Docs for translation: none. No docs, release metadata, palette redesign, capability-package, or protected host files changed.

UI evidence (if applicable)

Local before/after PNGs and geometry are in /tmp/marinara-home-linux-probe/. Inventory failure traces are in /tmp/marinara-inventory-growth-negative-results/; final phone/header and bag artifacts are in /tmp/marinara-matrix-phone-bags-final-results/. These are local evidence paths, not published attachments.

Public Home fit proof: download home-fit.html and open it for embedded dark/light captures. Before/after geometry JSON covers all eight samples.


🔄 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/7881 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/release-staging-browser-matrix-20261020` --- ### 📝 Commits (2) - [`83562b7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/83562b7238fa9252fc853d4d8f55d9d0dbc685ec) fix(release): resolve staging browser matrix failures - [`d0334dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d0334dd68a6818fdd267abafd45c12c2869655b7) test(e2e): wait for the Save file toast to detach before editing ### 📊 Changes **14 files changed** (+164 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `e2e/avatar-voice-sync.e2e.ts` (+8 -2) 📝 `e2e/core-flows.e2e.ts` (+3 -1) 📝 `e2e/game-inventory-bags.e2e.ts` (+3 -0) 📝 `e2e/game-tile-packs.e2e.ts` (+4 -4) 📝 `e2e/game-world-files.e2e.ts` (+12 -1) 📝 `e2e/handleless-library-drag.e2e.ts` (+11 -0) 📝 `e2e/mobile-echo-window.e2e.ts` (+1 -1) 📝 `e2e/phone-toast-headers.e2e.ts` (+40 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -0) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+2 -2) 📝 `packages/client/src/components/game/GameInventory.tsx` (+4 -1) 📝 `packages/client/src/hooks/use-touch-folder-drag.ts` (+1 -0) 📝 `packages/client/src/lib/phone-toast-top.ts` (+16 -5) 📝 `scripts/regressions/phone-toast-top.regression.ts` (+58 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #7877 ## Why this change The first full staging browser run after #7876, [run 39427647333](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39427647333), passed 37 of 48 shards at `d89fe7932`. Eleven shards reported 23 failed test occurrences; 12 came from WebKit receiving Chromium-only launch flags. This follow-up fixes the reproduced application defects and updates fixtures whose assumptions no longer matched intentional behavior. The full staging browser matrix is not yet green. ## What changed - Escape during a background drag cancels the drag while keeping Background Library open and its selection unchanged. The regression waits through the modal transition and verifies that a second Escape still closes the library. - Phone toasts clear Inventory Close, including when selecting an item grows the centered panel and moves its header. Observe the custom header and its panel, handle relevant panel mutations before paint, and retain filtering for unrelated streaming content. Cover arrival, persistent-toast hit testing, panel growth, cleanup, and an actual Close click. - Fit the Home What's New actions at narrow widths and give Professor Mari's text column enough room at large UI font sizes. Preserve the existing colors, fonts, artwork, and layout design. - Restore the Character name field's accessible name with its existing localization key. - Keep avatar autoplay launch flags Chromium-only. Reuse the iPhone Save file export helper introduced for #7115, retaining tile-pack filename, JSON, persistence, and removal assertions. - Target the quick picker's unique menu marker; wait for Save file toast focus restoration to finish, then verify world-seed focus and readback before checking reseed warnings; wait for Echo's complete debounced saved layout before reloading. Bag-tab automation leaves the toast hover area and waits for normal dismissal; persistent-toast header protection is tested separately. - Give the Tracker case's five complete reload/paint paths a 120-second total budget. Commit `711c461e09` expanded it from two paths to five without updating that budget; the failed 60-second run reached its final visibility assertion with 112 ms remaining. Every per-assertion 10-second limit and all five paths remain. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Recorded local evidence, kept separate because the focused batches overlap: - Drag and tile-pack Playwright suites: **21/21 passed** across desktop Chromium, phone Chromium, and phone WebKit, one worker. Log: `/tmp/marinara-matrix-drag-export-after.log`. - Home, Tracker, Echo, Character of the Day, and quick-picker focused batch: **19 passed, 6 project-defined skips**. That intermediate batch also exposed two Inventory-growth failures; those were corrected and rerun in the final suite below. Log: `/tmp/marinara-matrix-ui-focused.log`. - Final phone-header and inventory-bag suites: **16 passed, 8 project-defined skips**, zero failures, across all three projects. Log: `/tmp/marinara-matrix-phone-bags-final.log`. - `node scripts/run-regressions.mjs --filter phone-toast-top.regression.ts`: **1/1 passed**, including custom-panel descendant mutations, unrelated-content filtering, and observer cleanup. Removing the relevant-mutation fix makes the regression fail. Logs: `/tmp/marinara-inventory-panel-mutation-node-{negative,positive}.log`. - Negative browser controls reproduce Escape closing the library and a settled toast blocking Inventory Close during panel growth. Linux WebKit with DejaVu reproduces the old Home geometry: release notes 30.78 px outside its card, and Mari's eyebrow/action 5.75 px outside their column. The final eight dark/light geometry samples pass; unchanged Home assertions also pass, with their defined hover skip. Evidence: `/tmp/marinara-matrix-drag-negative.log`, `/tmp/marinara-inventory-growth-negative.log`, `/tmp/marinara-home-linux-probe/`. - World-file import/reseed/export case: **6/6 passed**, two repetitions in each of the three projects. The negative event trace proves the exiting Save file toast restored focus to the wizard during the input click; waiting for the removed toast to leave the DOM fixes that fixture race without changing input data or weakening any warning/export assertion. Log: `/tmp/marinara-matrix-world-file-settled.log`. After CodeRabbit identified the remaining active-toast race, the locator now waits for the Save file toast itself (including hidden nodes) to detach. The same six cases passed again, with formatting and E2E types passing; log `/tmp/marinara-matrix-cr-world.log`. - Final `pnpm check`: **passed, exit 0**, including localization, format, lint/type checks, and production builds. One existing `HomeProfessorMariChat` hook warning remains; no errors. Log: `/tmp/marinara-matrix-final-check-after-world.log` (full check repeated after the final world-file synchronization). - `pnpm smoke:ui`: **7/7 passed**, one desktop Chromium worker. Log: `/tmp/marinara-matrix-smoke.log`. - Container built and ran locally on Linux arm64 with disposable tmpfs data; health and compiled SPA HTTP200. Log: `/tmp/marinara-matrix-container-build.log`. The **946/946 full Node pass belongs to baseline staging `d89fe7932`**, not this follow-up branch. No physical-phone validation is claimed here. Hosted checks and review remain merge gates. Redispatch the full 48-shard staging matrix after merge at the new exact staging SHA; these focused results do not replace it. ### Manual verification notes 1. Manually open Settings → Appearance → Backgrounds → Browse library. Drag a thumbnail, press Escape, and verify the library stays open without changing selection. Press Escape again and verify it closes. 2. Manually open Game Inventory on a phone-sized screen while a toast is visible. Select an item so its action panel grows, then verify Close remains reachable and works. Check the bag tabs after the toast dismisses normally. 3. Manually check What's New at 320 px and Professor Mari with a large UI font, in light and dark themes. Verify the actions remain usable and existing palettes and artwork are preserved. 4. Manually open Character of the Day's editor, use the quick picker, change a world seed, restore an unpinned Echo window after reload, and export a tile pack through iPhone Save file. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Docs for translation: none. No docs, release metadata, palette redesign, capability-package, or protected host files changed. ## UI evidence (if applicable) Local before/after PNGs and geometry are in `/tmp/marinara-home-linux-probe/`. Inventory failure traces are in `/tmp/marinara-inventory-growth-negative-results/`; final phone/header and bag artifacts are in `/tmp/marinara-matrix-phone-bags-final-results/`. These are local evidence paths, not published attachments. [Public Home fit proof](https://gist.github.com/SpicyMarinara/f5223392f903b78231870d44d40fb5e6): download `home-fit.html` and open it for embedded dark/light captures. Before/after geometry JSON covers all eight samples. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:22 +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#7980
No description provided.