[PR #1413] [CLOSED] Restore UI parity controls #5076

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1413
Author: @TheLonelyDevil9
Created: 5/27/2026
Status: ❌ Closed

Base: refactor ← Head: fix/ui-parity-small-1337-1334-1324


📝 Commits (1)

  • 489b8cc Restore UI parity controls

📊 Changes

8 files changed (+92 additions, -33 deletions)

View changed files

📝 src/features/modes/game/components/DirectionEngine.tsx (+25 -6)
📝 src/features/modes/game/components/GameSurface.tsx (+2 -0)
📝 src/features/modes/roleplay/components/ChatRoleplaySurface.tsx (+23 -11)
📝 src/features/modes/shared/chat-ui/components/ChatMessage.tsx (+3 -1)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+17 -11)
📝 src/shared/stores/ui.store.ts (+6 -3)
📝 src/shared/stores/ui/model.ts (+11 -0)
📝 src/shared/stores/ui/persistence.ts (+5 -1)

📄 Description

Linked issue

Fixes #1337
Fixes #1334
Fixes #1324

Why this change

  • Restores small UI parity controls that existed or were requested before the refactor: chat background blur, copying stored guidance back into /guided, and hiding Roleplay message avatars entirely.

What changed

  • Applies the persisted chat background blur setting to Roleplay and Game background layers.
  • Keeps the Appearance panel background blur slider wired to the shared UI store with normalized persisted values.
  • Adds a None Roleplay avatar style that hides compact avatars and the grouped-message gutter.
  • Keeps stored generation guidance copyable as a ready-to-paste /guided ... command.

Refactor impact

Primary owner:

  • Roleplay mode, Game mode, shared mode UI, app shell settings, UI store persistence.

Impact areas reviewed:

  • Roleplay background rendering, Game DirectionEngine background rendering, Roleplay message avatar layout, generation replay details modal, Appearance settings, UI store migration/partialization.

Boundary notes:

  • UI behavior stays in src/features; persisted settings stay in src/shared/stores; no engine, Tauri, or raw runtime API boundaries were changed.

Pressure points touched:

  • GameSurface, DirectionEngine, ChatRoleplaySurface, shared ChatMessage, GenerationReplayDetailsModal, SettingsPanel, UI store model/persistence.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Local automated checks run: pnpm typecheck, pnpm check:architecture, pnpm check:docs, pnpm build, pnpm lint, pnpm check, pnpm test.
  • pnpm test passed with existing act(...) warnings in use-streaming-tts.test.tsx.
  • pnpm build passed with existing Vite dynamic-import/chunk-size warnings.
  • pnpm perf:size was attempted twice but could not complete locally because headless Chrome/Node failed with Windows paging-file and out-of-memory errors before producing size results.

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

  • No screenshot or recording added; this is a narrow parity restoration and was covered with local build/type/architecture/test checks.

What?

This PR restores the missing background blur, /guided copy, and no-avatar UI affordances on the refactor branch.

Why?

These controls are small user-facing parity gaps and should remain available after the refactor without changing engine or runtime boundaries.

How?

The change reuses the shared UI store for persisted settings, keeps UI rendering in feature components, normalizes persisted values during UI state migration, and avoids adding new backend or engine dependencies.

Testing?

See the Validation section above.

Screenshots (optional)

Not added.

Anything Else?

pnpm perf:size appears locally environment-blocked by Chrome/paging-file exhaustion, not by this diff.

Summary by CodeRabbit

  • New Features

    • Added configurable background blur effect for game scenes with adjustable range
    • Enhanced Settings panel with new Chat Background Blur control (displays "Off" when disabled)
  • Improvements

    • Refined roleplay message numbering display logic
    • Updated roleplay avatar style "none" preview with descriptive label
    • Improved help text and validation for blur-related settings

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/1413 **Author:** [@TheLonelyDevil9](https://github.com/TheLonelyDevil9) **Created:** 5/27/2026 **Status:** ❌ Closed **Base:** `refactor` ← **Head:** `fix/ui-parity-small-1337-1334-1324` --- ### 📝 Commits (1) - [`489b8cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/489b8cc1546750d61064a4fe07ec0973ec425e90) Restore UI parity controls ### 📊 Changes **8 files changed** (+92 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/game/components/DirectionEngine.tsx` (+25 -6) 📝 `src/features/modes/game/components/GameSurface.tsx` (+2 -0) 📝 `src/features/modes/roleplay/components/ChatRoleplaySurface.tsx` (+23 -11) 📝 `src/features/modes/shared/chat-ui/components/ChatMessage.tsx` (+3 -1) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+17 -11) 📝 `src/shared/stores/ui.store.ts` (+6 -3) 📝 `src/shared/stores/ui/model.ts` (+11 -0) 📝 `src/shared/stores/ui/persistence.ts` (+5 -1) </details> ### 📄 Description ## Linked issue Fixes #1337 Fixes #1334 Fixes #1324 ## Why this change - Restores small UI parity controls that existed or were requested before the refactor: chat background blur, copying stored guidance back into `/guided`, and hiding Roleplay message avatars entirely. ## What changed - Applies the persisted chat background blur setting to Roleplay and Game background layers. - Keeps the Appearance panel background blur slider wired to the shared UI store with normalized persisted values. - Adds a `None` Roleplay avatar style that hides compact avatars and the grouped-message gutter. - Keeps stored generation guidance copyable as a ready-to-paste `/guided ...` command. ## Refactor impact Primary owner: - Roleplay mode, Game mode, shared mode UI, app shell settings, UI store persistence. Impact areas reviewed: - Roleplay background rendering, Game `DirectionEngine` background rendering, Roleplay message avatar layout, generation replay details modal, Appearance settings, UI store migration/partialization. Boundary notes: - UI behavior stays in `src/features`; persisted settings stay in `src/shared/stores`; no engine, Tauri, or raw runtime API boundaries were changed. Pressure points touched: - `GameSurface`, `DirectionEngine`, `ChatRoleplaySurface`, shared `ChatMessage`, `GenerationReplayDetailsModal`, `SettingsPanel`, UI store model/persistence. ## Validation - [x] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `pnpm build` passes locally - [x] `pnpm check:architecture` passes locally - [x] `pnpm check:docs` passes locally - [x] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Local automated checks run: `pnpm typecheck`, `pnpm check:architecture`, `pnpm check:docs`, `pnpm build`, `pnpm lint`, `pnpm check`, `pnpm test`. - `pnpm test` passed with existing `act(...)` warnings in `use-streaming-tts.test.tsx`. - `pnpm build` passed with existing Vite dynamic-import/chunk-size warnings. - `pnpm perf:size` was attempted twice but could not complete locally because headless Chrome/Node failed with Windows paging-file and out-of-memory errors before producing size results. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence - No screenshot or recording added; this is a narrow parity restoration and was covered with local build/type/architecture/test checks. ## What? This PR restores the missing background blur, `/guided` copy, and no-avatar UI affordances on the refactor branch. ## Why? These controls are small user-facing parity gaps and should remain available after the refactor without changing engine or runtime boundaries. ## How? The change reuses the shared UI store for persisted settings, keeps UI rendering in feature components, normalizes persisted values during UI state migration, and avoids adding new backend or engine dependencies. ## Testing? See the Validation section above. ## Screenshots (optional) Not added. ## Anything Else? `pnpm perf:size` appears locally environment-blocked by Chrome/paging-file exhaustion, not by this diff. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added configurable background blur effect for game scenes with adjustable range * Enhanced Settings panel with new Chat Background Blur control (displays "Off" when disabled) * **Improvements** * Refined roleplay message numbering display logic * Updated roleplay avatar style "none" preview with descriptive label * Improved help text and validation for blur-related settings <!-- review_stack_entry_start --> [![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/1413?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:13:01 +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#5076
No description provided.