[PR #708] [MERGED] Fix custom HUD widget start modal duplication #4738

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/708
Author: @cha1latte
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-696-custom-hud-start


📝 Commits (1)

  • 02f3b65 Fix custom HUD start modal duplication

📊 Changes

3 files changed (+5 additions, -18 deletions)

View changed files

➕ docs/pr-evidence/issue-696/after-single-modal.png (+0 -0)
➕ docs/pr-evidence/issue-696/before-duplicate-modal.png (+0 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+5 -18)

📄 Description

Linked issue

Closes #696

Why this change

  • Starting a ready Game Mode session with Custom HUD Widgets enabled could appear to do nothing because the initial widget review flow rendered two identical modals for the same state.

What changed

  • Kept the ready-screen Start Game widget review modal as the only owner of the initial custom-widget start flow.
  • Scoped the shared widget session prep modal back to next-session starts only, so it no longer duplicates the initial modal.
  • Added before/after UI evidence for the duplicated modal state.

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

Manual verification notes

  • Codex seeded an isolated ready game chat with one generated HUD widget, opened it in the Vite client, and clicked Start Game with Playwright. Before the fix, the click opened two Review Starting Widgets dialogs.
  • After the fix, the same Start Game click opened one Review Starting Widgets dialog, and clicking the modal's Start Game button transitioned the session metadata to gameSessionStatus: "active".
  • pnpm check passed locally: impeccable context check, lint, shared/server/client build.
  • The seeded verification chat intentionally had no API connection configured, so post-start GM narration showed the expected No API connection configured for this chat toast after the start transition. That does not block the core claim.

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)

No docs or release metadata changes are needed for this focused UI bug fix.

UI evidence (if applicable)

Before: duplicated initial widget review modals after clicking Start Game.

Before duplicated widget review modals

After: one initial widget review modal after clicking Start Game.

After single widget review modal


🔄 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/708 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-696-custom-hud-start` --- ### 📝 Commits (1) - [`02f3b65`](https://github.com/Pasta-Devs/Marinara-Engine/commit/02f3b6582ee8485a846e5c9d2a43b9e2b70f9619) Fix custom HUD start modal duplication ### 📊 Changes **3 files changed** (+5 additions, -18 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-696/after-single-modal.png` (+0 -0) ➕ `docs/pr-evidence/issue-696/before-duplicate-modal.png` (+0 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+5 -18) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #696 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Starting a ready Game Mode session with Custom HUD Widgets enabled could appear to do nothing because the initial widget review flow rendered two identical modals for the same state. ## What changed <!-- List the key changes in this PR --> - Kept the ready-screen Start Game widget review modal as the only owner of the initial custom-widget start flow. - Scoped the shared widget session prep modal back to next-session starts only, so it no longer duplicates the initial modal. - Added before/after UI evidence for the duplicated modal state. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex seeded an isolated ready game chat with one generated HUD widget, opened it in the Vite client, and clicked Start Game with Playwright. Before the fix, the click opened two `Review Starting Widgets` dialogs. - After the fix, the same Start Game click opened one `Review Starting Widgets` dialog, and clicking the modal's Start Game button transitioned the session metadata to `gameSessionStatus: "active"`. - `pnpm check` passed locally: impeccable context check, lint, shared/server/client build. - The seeded verification chat intentionally had no API connection configured, so post-start GM narration showed the expected `No API connection configured for this chat` toast after the start transition. That does not block the core claim. ## 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) No docs or release metadata changes are needed for this focused UI bug fix. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Before: duplicated initial widget review modals after clicking Start Game. ![Before duplicated widget review modals](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/02f3b65/docs/pr-evidence/issue-696/before-duplicate-modal.png) After: one initial widget review modal after clicking Start Game. ![After single widget review modal](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/02f3b65/docs/pr-evidence/issue-696/after-single-modal.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:10:14 +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#4738
No description provided.