[PR #1447] [MERGED] Fix settings tab inactive mount freeze #5092

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1447
Author: @Promansis
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @SpicyMarinara

Base: refactor ← Head: fix/panel-mount-freeze


📝 Commits (2)

  • d7d27f0 shell: unmount inactive right panel views
  • 5b4d08e Merge branch 'refactor' into fix/panel-mount-freeze

📊 Changes

2 files changed (+11 additions, -29 deletions)

View changed files

📝 src/app/shell/RightPanel.tsx (+7 -10)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+4 -19)

📄 Description

Linked issue

Closes #1445

Why this change

  • Settings tabs stayed mounted after becoming inactive, so hidden settings surfaces could keep expensive UI trees, subscriptions, or effects alive and make the right panel feel frozen after tab switching.

What changed

  • Render only the active settings tab instead of keeping a module-level set of visited tabs.
  • Keep the right panel content path active-only with a direct scroll container for the active lazy panel.

Refactor impact

Primary owner:

App shell

Impact areas reviewed:

  • Right panel lazy panel mounting
  • Settings panel tab mounting

Boundary notes:

  • Feature/UI-only change in src/app and src/features/shell; no engine, shared API, Rust, storage, or remote-runtime boundary changes.

Pressure points touched:

  • RightPanel shell composition
  • SettingsPanel tab composition

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

  • Agent ran pnpm typecheck locally after rebasing this branch onto upstream/refactor; checkbox left unchecked per template instruction to keep boxes unchecked until human verification.
  • No browser/Tauri manual verification, screenshots, or recordings were captured.

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

Not captured.

Summary by CodeRabbit

  • Refactor
    • Optimized right panel rendering to conditionally display only the active panel, improving performance and responsiveness.
    • Streamlined settings panel scrolling behavior for a smoother user experience.
    • Improved memory efficiency by reducing the number of mounted panel components at any given time.

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/1447 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/28/2026 **Status:** ✅ Merged **Merged:** 5/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `refactor` ← **Head:** `fix/panel-mount-freeze` --- ### 📝 Commits (2) - [`d7d27f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7d27f06e10051a7f2cfdd977344d4f5d2b5ebe3) shell: unmount inactive right panel views - [`5b4d08e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5b4d08e7ce2dec74dd32886f6bff4bac0c078716) Merge branch 'refactor' into fix/panel-mount-freeze ### 📊 Changes **2 files changed** (+11 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `src/app/shell/RightPanel.tsx` (+7 -10) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+4 -19) </details> ### 📄 Description ## Linked issue <!-- Every user-facing PR should reference a feature request or issue report when practical. --> Closes #1445 ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Settings tabs stayed mounted after becoming inactive, so hidden settings surfaces could keep expensive UI trees, subscriptions, or effects alive and make the right panel feel frozen after tab switching. ## What changed <!-- List the key changes in this PR. --> - Render only the active settings tab instead of keeping a module-level set of visited tabs. - Keep the right panel content path active-only with a direct scroll container for the active lazy panel. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> App shell Impact areas reviewed: - Right panel lazy panel mounting - Settings panel tab mounting Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - Feature/UI-only change in `src/app` and `src/features/shell`; no engine, shared API, Rust, storage, or remote-runtime boundary changes. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if touched. --> - RightPanel shell composition - SettingsPanel tab composition ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [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 - [x] 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 - [x] Remote runtime smoke checked when relevant ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app/runtime, step by step. If an AI agent filled this out, verify it yourself before ticking boxes. --> - Agent ran `pnpm typecheck` locally after rebasing this branch onto `upstream/refactor`; checkbox left unchecked per template instruction to keep boxes unchecked until human verification. - No browser/Tauri manual verification, screenshots, or recordings were captured. ## 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 <!-- Add before/after screenshots or recordings for visible UI changes. --> Not captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Optimized right panel rendering to conditionally display only the active panel, improving performance and responsiveness. * Streamlined settings panel scrolling behavior for a smoother user experience. * Improved memory efficiency by reducing the number of mounted panel components at any given time. <!-- 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/1447?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:10 +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#5092
No description provided.