[PR #3711] [CLOSED] fix: fit mobile CYOA between HUD widget rails #6065

Closed
opened 2026-10-23 04:06:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3711
Author: @thetopham
Created: 7/16/2026
Status: ❌ Closed

Base: staging ← Head: agent/3691-mobile-game-cyoa


📝 Commits (3)

  • 1b27be3 fix mobile game CYOA layout
  • 0377e5d refine mobile CYOA widget layout
  • f1c77ee Merge branch 'staging' into agent/3691-mobile-game-cyoa

📊 Changes

4 files changed (+249 additions, -12 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+186 -0)
📝 packages/client/src/components/game/GameChoiceCards.tsx (+4 -1)
📝 packages/client/src/components/game/GameNarration.tsx (+1 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+58 -11)

📄 Description

Linked issue

Part of #3691

Why this change

  • On mobile, CYOA and the left/right HUD widget rails were rendered as consecutive vertical regions. The choice card therefore ignored the horizontal space already reserved between the widget columns and consumed scarce vertical viewport space instead.
  • The resulting stack could crowd the narration and composer even though the center of the widget band was unused.

What changed

  • Place active mobile CYOA choices in the center gap between the existing left and right widget columns.
  • Preserve the original widget rail, narration, composer, map, character, and Game-toolbar behavior.
  • Keep the choice list independently scrollable when labels exceed the available center panel height.
  • Add a focused 390x700 mobile regression that verifies the CYOA is between both widget rails, narration remains below it, the composer remains fully inside the viewport, and the final choice is reachable.

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

Automated evidence collected while preparing this draft:

  • pnpm check
  • pnpm exec playwright test -c playwright.config.ts --project=mobile-chromium --grep "mobile Game keeps CYOA"
  • Production client build, live service restart, /api/health, and exact entry/GameSurface bundle responses

Manual verification notes

  • The reporter reviewed the branch build on a real mobile browser and confirmed the centered CYOA layout is usable.
  • The reporter confirmed the existing character/minimap controls should remain unchanged rather than expanding this patch into a broader mobile-toolbar redesign.
  • Manually verify light and dark themes before marking this draft ready.
  • Manually verify expanding each HUD widget does not obscure choice selection before marking this draft ready.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

No media committed. The reporter reviewed the deployed branch on a real mobile browser; the focused regression records the responsive geometry and scrolling contract.

Summary by CodeRabbit

  • Bug Fixes

    • Improved mobile game layouts when multiple HUD widgets and choice cards are displayed.
    • Prevented HUD widgets from overlapping interactive choices in compact mode.
    • Added side rails around choice cards to improve spacing and visibility on mobile.
    • Verified that narration, choices, and the composer remain usable across supported mobile screen sizes.
  • Tests

    • Added end-to-end coverage for mobile choice-based game flows with four HUD widgets.

🔄 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/3711 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/16/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `agent/3691-mobile-game-cyoa` --- ### 📝 Commits (3) - [`1b27be3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b27be379bdd47c128ddb26a52be9f302cbc7bf0) fix mobile game CYOA layout - [`0377e5d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0377e5d4d6e9de3f66d9f306aadc7dfb91fa0c7e) refine mobile CYOA widget layout - [`f1c77ee`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f1c77ee275277596c08bfc0d06bc8a2c36ee4dd0) Merge branch 'staging' into agent/3691-mobile-game-cyoa ### 📊 Changes **4 files changed** (+249 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+186 -0) 📝 `packages/client/src/components/game/GameChoiceCards.tsx` (+4 -1) 📝 `packages/client/src/components/game/GameNarration.tsx` (+1 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+58 -11) </details> ### 📄 Description ## Linked issue Part of #3691 ## Why this change - On mobile, CYOA and the left/right HUD widget rails were rendered as consecutive vertical regions. The choice card therefore ignored the horizontal space already reserved between the widget columns and consumed scarce vertical viewport space instead. - The resulting stack could crowd the narration and composer even though the center of the widget band was unused. ## What changed - Place active mobile CYOA choices in the center gap between the existing left and right widget columns. - Preserve the original widget rail, narration, composer, map, character, and Game-toolbar behavior. - Keep the choice list independently scrollable when labels exceed the available center panel height. - Add a focused 390x700 mobile regression that verifies the CYOA is between both widget rails, narration remains below it, the composer remains fully inside the viewport, and the final choice is reachable. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] 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` Automated evidence collected while preparing this draft: - `pnpm check` - `pnpm exec playwright test -c playwright.config.ts --project=mobile-chromium --grep "mobile Game keeps CYOA"` - Production client build, live service restart, `/api/health`, and exact entry/GameSurface bundle responses ### Manual verification notes - The reporter reviewed the branch build on a real mobile browser and confirmed the centered CYOA layout is usable. - The reporter confirmed the existing character/minimap controls should remain unchanged rather than expanding this patch into a broader mobile-toolbar redesign. - Manually verify light and dark themes before marking this draft ready. - Manually verify expanding each HUD widget does not obscure choice selection before marking this draft ready. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No media committed. The reporter reviewed the deployed branch on a real mobile browser; the focused regression records the responsive geometry and scrolling contract. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved mobile game layouts when multiple HUD widgets and choice cards are displayed. * Prevented HUD widgets from overlapping interactive choices in compact mode. * Added side rails around choice cards to improve spacing and visibility on mobile. * Verified that narration, choices, and the composer remain usable across supported mobile screen sizes. * **Tests** * Added end-to-end coverage for mobile choice-based game flows with four HUD widgets. <!-- 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-23 04:06:45 +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#6065
No description provided.