[PR #618] [MERGED] Notify when game scene prep completes #4700

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

📋 Pull Request Information

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

Base: main ← Head: feat/issue-472-scene-ready-notification


📝 Commits (2)

  • 4b31aec Notify when game scene prep completes
  • 7fa9bc1 Address scene notification review feedback

📊 Changes

1 file changed (+79 additions, -20 deletions)

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+79 -20)

📄 Description

Linked issue

Closes #472

Why this change

  • Game Mode users can wait several minutes for scene preparation after the GM finishes narrating. This adds a clear ready signal so users do not have to keep checking the tab manually.

What changed

  • Added a scene-ready notification path when async Game Mode scene preparation completes successfully.
  • Reused the existing RP notification sound setting for the completion ping.
  • Added an in-app toast, browser notification when permission is already granted, and a temporary hidden-tab title signal.
  • Kept the notification tied to the actual narration ungate point so generated scene assets can finish before users are pinged.

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 pnpm check successfully in a clean worktree.
  • Manual browser verification still needed: grant browser notifications, run a Game Mode turn with async scene preparation, switch away from the tab, and confirm the toast/sound/title/browser notification behavior when preparation finishes.

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)

N/A. This is a notification/lifecycle behavior change; no static UI layout changed.

Summary by CodeRabbit

  • Improvements
    • Enhanced scene readiness notifications with toast alerts, optional sound effects, and document title updates when scene preparation completes.
    • Improved notification logic to prevent duplicate alerts across different scene analysis phases and asset generation flows.

Review Change Stack


🔄 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/618 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `feat/issue-472-scene-ready-notification` --- ### 📝 Commits (2) - [`4b31aec`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4b31aec67f6afa3217afc90d59a60bf853f54e1f) Notify when game scene prep completes - [`7fa9bc1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7fa9bc1872136eafede645f77aba3fbf12ca92b5) Address scene notification review feedback ### 📊 Changes **1 file changed** (+79 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+79 -20) </details> ### 📄 Description ## Linked issue Closes #472 ## Why this change - Game Mode users can wait several minutes for scene preparation after the GM finishes narrating. This adds a clear ready signal so users do not have to keep checking the tab manually. ## What changed - Added a scene-ready notification path when async Game Mode scene preparation completes successfully. - Reused the existing RP notification sound setting for the completion ping. - Added an in-app toast, browser notification when permission is already granted, and a temporary hidden-tab title signal. - Kept the notification tied to the actual narration ungate point so generated scene assets can finish before users are pinged. ## 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 `pnpm check` successfully in a clean worktree. - Manual browser verification still needed: grant browser notifications, run a Game Mode turn with async scene preparation, switch away from the tab, and confirm the toast/sound/title/browser notification behavior when preparation finishes. ## 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) N/A. This is a notification/lifecycle behavior change; no static UI layout changed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Enhanced scene readiness notifications with toast alerts, optional sound effects, and document title updates when scene preparation completes. * Improved notification logic to prevent duplicate alerts across different scene analysis phases and asset generation flows. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/618) <!-- 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-22 04:09:55 +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#4700
No description provided.