[PR #917] [MERGED] Fix dice roll dismissal on next dialogue #4836

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

📋 Pull Request Information

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

Base: staging ← Head: fix/dice-roll-auto-dismiss


📝 Commits (1)

  • 6d448ff Fix dice roll dismissal on next dialogue

📊 Changes

3 files changed (+1 additions, -0 deletions)

View changed files

➕ docs/pr-evidence/dice-roll-auto-dismiss/after-next.png (+0 -0)
➕ docs/pr-evidence/dice-roll-auto-dismiss/before-next.png (+0 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+1 -0)

📄 Description

Linked issue

No linked issue yet; this came from a direct bug report and an issue should be opened before submission if the team wants one.

Why this change

  • Dice roll results in Game Mode stayed on screen after the player advanced to the next dialogue segment, leaving an old roll visible until it was manually dismissed or timed out.

What changed

  • Clears the active dice roll result when Game Mode narration enters a new segment.
  • Adds before/after UI evidence for the verified dice-roll transition.

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 ran a Playwright fixture in a local Game Mode chat: inject a dice result, verify the dice card is visible on the current dialogue, press Next, and verify the dice card is gone after the next dialogue segment appears.
  • Codex also verified the existing 5-second dice auto-dismiss still clears the dice card.
  • pnpm check passed locally.
  • Bunny review passed for the current diff.
  • No manual verification blocker remains for 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)

UI evidence (if applicable)

Before advancing to the next dialogue, the dice roll is visible:

Before next dialogue

After advancing to the next dialogue, the dice roll is dismissed:

After next dialogue


🔄 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/917 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/16/2026 **Status:** ✅ Merged **Merged:** 5/16/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/dice-roll-auto-dismiss` --- ### 📝 Commits (1) - [`6d448ff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6d448ff7a963d1725ba08cc8d4b38c574c5cb85b) Fix dice roll dismissal on next dialogue ### 📊 Changes **3 files changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/dice-roll-auto-dismiss/after-next.png` (+0 -0) ➕ `docs/pr-evidence/dice-roll-auto-dismiss/before-next.png` (+0 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+1 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## 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 --> No linked issue yet; this came from a direct bug report and an issue should be opened before submission if the team wants one. ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Dice roll results in Game Mode stayed on screen after the player advanced to the next dialogue segment, leaving an old roll visible until it was manually dismissed or timed out. ## What changed <!-- List the key changes in this PR --> - Clears the active dice roll result when Game Mode narration enters a new segment. - Adds before/after UI evidence for the verified dice-roll transition. ## 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 ran a Playwright fixture in a local Game Mode chat: inject a dice result, verify the dice card is visible on the current dialogue, press Next, and verify the dice card is gone after the next dialogue segment appears. - Codex also verified the existing 5-second dice auto-dismiss still clears the dice card. - `pnpm check` passed locally. - Bunny review passed for the current diff. - No manual verification blocker remains for the core claim. ## 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) <!-- Add before/after screenshots or recordings for UI changes --> Before advancing to the next dialogue, the dice roll is visible: ![Before next dialogue](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/6d448ff7a963d1725ba08cc8d4b38c574c5cb85b/docs/pr-evidence/dice-roll-auto-dismiss/before-next.png) After advancing to the next dialogue, the dice roll is dismissed: ![After next dialogue](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/6d448ff7a963d1725ba08cc8d4b38c574c5cb85b/docs/pr-evidence/dice-roll-auto-dismiss/after-next.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:11:04 +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#4836
No description provided.