[PR #1878] [MERGED] Add text blip sound setting #5333

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1878
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte

Base: refactor ← Head: feat/issue-1870-text-blip


📝 Commits (5)

  • 91f82c1 Add text blip sound setting
  • 230e050 Update discovery for text blips
  • 507d8ab Trigger PR discovery gate
  • d516d86 Address Bunny review cleanup for text blips
  • b76e828 Normalize custom sound setters

📊 Changes

10 files changed (+531 additions, -6 deletions)

View changed files

📝 src/features/modes/game/components/GameNarration.tsx (+30 -0)
📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+19 -0)
📝 src/features/shell/discovery/discovery-entries.json (+2 -2)
📝 src/features/shell/settings/components/settings/SettingControls.tsx (+144 -1)
➕ src/shared/lib/text-blip-sound.test.ts (+109 -0)
➕ src/shared/lib/text-blip-sound.ts (+137 -0)
➕ src/shared/stores/ui.store.test.ts (+63 -0)
📝 src/shared/stores/ui.store.ts (+9 -2)
📝 src/shared/stores/ui/model.ts (+12 -1)
📝 src/shared/stores/ui/persistence.ts (+6 -0)

📄 Description

Linked issue

Closes #1870

Why this change

  • Generated text can now feel livelier in Conversation, Roleplay, and Game mode with an optional text blip sound while text appears.

What changed

  • Added a global Text blips setting with Off, Default, and Custom modes.
  • Added custom audio upload, preview, validation, and local persistence for small audio files.
  • Plays throttled text blips while generated Conversation/Roleplay messages stream and while Game narration typewrites.
  • Updated feature discovery metadata for the new sound preference.
  • Added focused regression coverage for text blip validation, disabled mode, throttling, and custom playback.

Refactor impact

Primary owner:

  • shared UI settings and mode UI

Impact areas reviewed:

  • Settings sound controls
  • Conversation/Roleplay chat message streaming
  • Game narration typewriter
  • UI store persistence
  • Discovery metadata

Boundary notes:

  • No engine, shared API, Rust command, storage schema, remote-runtime, dependency, or package metadata changes.
  • The audio helper stays in src/shared/lib; feature UI consumes it through existing React surfaces.

Pressure points touched:

  • Shared mode UI: ChatMessage
  • Game mode UI: GameNarration
  • Settings controls
  • Discovery registry metadata

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex ran pnpm exec vitest run src/shared/lib/text-blip-sound.test.ts.
  • Codex ran pnpm typecheck.
  • Codex ran pnpm check:discovery.
  • Codex ran full pnpm check.
  • Bunny review passed on the current pushed head.
  • Interactive browser/audio-permission verification was not completed; this draft should stay draft until a human confirms the setting UI and audible playback behavior.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Updated the Settings discovery entry to mention sound preferences and text blips.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence (if applicable)

  • Not captured. The PR adds visible settings controls; manual UI/audio verification is still needed.

🔄 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/1878 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `feat/issue-1870-text-blip` --- ### 📝 Commits (5) - [`91f82c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/91f82c10bc80e87acca54ea3181cc00da3832e87) Add text blip sound setting - [`230e050`](https://github.com/Pasta-Devs/Marinara-Engine/commit/230e0504e7fb2af86a0348f726dac672a5e993cd) Update discovery for text blips - [`507d8ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/507d8ab40f2ea3e5d85fb10f4dfb46ce93bdf06e) Trigger PR discovery gate - [`d516d86`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d516d864abdd968125e51beacb22bc7748fa4acf) Address Bunny review cleanup for text blips - [`b76e828`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b76e828c1b1d621360ffb6813d1e63a0bc9a2254) Normalize custom sound setters ### 📊 Changes **10 files changed** (+531 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/GameNarration.tsx` (+30 -0) 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+19 -0) 📝 `src/features/shell/discovery/discovery-entries.json` (+2 -2) 📝 `src/features/shell/settings/components/settings/SettingControls.tsx` (+144 -1) ➕ `src/shared/lib/text-blip-sound.test.ts` (+109 -0) ➕ `src/shared/lib/text-blip-sound.ts` (+137 -0) ➕ `src/shared/stores/ui.store.test.ts` (+63 -0) 📝 `src/shared/stores/ui.store.ts` (+9 -2) 📝 `src/shared/stores/ui/model.ts` (+12 -1) 📝 `src/shared/stores/ui/persistence.ts` (+6 -0) </details> ### 📄 Description ## Linked issue Closes #1870 ## Why this change - Generated text can now feel livelier in Conversation, Roleplay, and Game mode with an optional text blip sound while text appears. ## What changed - Added a global Text blips setting with Off, Default, and Custom modes. - Added custom audio upload, preview, validation, and local persistence for small audio files. - Plays throttled text blips while generated Conversation/Roleplay messages stream and while Game narration typewrites. - Updated feature discovery metadata for the new sound preference. - Added focused regression coverage for text blip validation, disabled mode, throttling, and custom playback. ## Refactor impact Primary owner: - shared UI settings and mode UI Impact areas reviewed: - Settings sound controls - Conversation/Roleplay chat message streaming - Game narration typewriter - UI store persistence - Discovery metadata Boundary notes: - No engine, shared API, Rust command, storage schema, remote-runtime, dependency, or package metadata changes. - The audio helper stays in `src/shared/lib`; feature UI consumes it through existing React surfaces. Pressure points touched: - Shared mode UI: `ChatMessage` - Game mode UI: `GameNarration` - Settings controls - Discovery registry metadata ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex ran `pnpm exec vitest run src/shared/lib/text-blip-sound.test.ts`. - Codex ran `pnpm typecheck`. - Codex ran `pnpm check:discovery`. - Codex ran full `pnpm check`. - Bunny review passed on the current pushed head. - Interactive browser/audio-permission verification was not completed; this draft should stay draft until a human confirms the setting UI and audible playback behavior. ## Feature Discoverability Check exactly one: - [x] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Updated the Settings discovery entry to mention sound preferences and text blips. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence (if applicable) - Not captured. The PR adds visible settings controls; manual UI/audio verification is still needed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:20 +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#5333
No description provided.