[PR #1387] [MERGED] Fix Chibi Professor Mari setting #5056

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1387
Author: @ghost
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @undefined

Base: refactor ← Head: fix/chibi-professor-mari-toggle


📝 Commits (1)

  • 6e34e61 Fix Chibi Professor Mari setting

📊 Changes

6 files changed (+23 additions, -1 deletions)

View changed files

📝 src/app/App.tsx (+2 -0)
📝 src/features/shell/settings/components/SettingsPanel.tsx (+9 -0)
📝 src/shared/components/ui/ChibiProfessorMariEasterEgg.tsx (+6 -1)
📝 src/shared/stores/ui.store.ts (+2 -0)
📝 src/shared/stores/ui/model.ts (+3 -0)
📝 src/shared/stores/ui/persistence.ts (+1 -0)

📄 Description

Linked issue

Closes #1361

Why this change

  • Restores the v1.6.1-style persistent setting for disabling/enabling rare Chibi Professor Mari visits.
  • Prevents the scroll easter egg from registering when the user has disabled it.

What changed

  • Added persisted chibiProfessorMariEnabled UI state with a default of true.
  • Added a General settings toggle for Chibi Professor Mari visits.
  • Mounted the existing easter-egg component at the app shell level and gated its scroll listener by the persisted setting.

Refactor impact

Primary owner:

  • App shell and shared UI state.

Impact areas reviewed:

  • App startup composition, General settings, UI store model/defaults/persistence, and Chibi Professor Mari toast listener.

Boundary notes:

  • UI-only change. No engine, shared API, Tauri, Rust, or remote-runtime boundary changes.

Pressure points touched:

  • src/app/App.tsx
  • src/features/shell/settings/components/SettingsPanel.tsx
  • src/shared/components/ui/ChibiProfessorMariEasterEgg.tsx
  • src/shared/stores/ui.*

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

  • Not manually verified in the running app. Code proof: when chibiProfessorMariEnabled is false, ChibiProfessorMariEasterEgg returns before registering the document scroll listener; toggling it back to true re-registers through the effect dependency.

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

  • None captured.

🔄 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/1387 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/27/2026 **Status:** ✅ Merged **Merged:** 5/27/2026 **Merged by:** [@undefined](undefined) **Base:** `refactor` ← **Head:** `fix/chibi-professor-mari-toggle` --- ### 📝 Commits (1) - [`6e34e61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e34e61944843259073901e98612fbd456affcb3) Fix Chibi Professor Mari setting ### 📊 Changes **6 files changed** (+23 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/app/App.tsx` (+2 -0) 📝 `src/features/shell/settings/components/SettingsPanel.tsx` (+9 -0) 📝 `src/shared/components/ui/ChibiProfessorMariEasterEgg.tsx` (+6 -1) 📝 `src/shared/stores/ui.store.ts` (+2 -0) 📝 `src/shared/stores/ui/model.ts` (+3 -0) 📝 `src/shared/stores/ui/persistence.ts` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #1361 ## Why this change - Restores the v1.6.1-style persistent setting for disabling/enabling rare Chibi Professor Mari visits. - Prevents the scroll easter egg from registering when the user has disabled it. ## What changed - Added persisted `chibiProfessorMariEnabled` UI state with a default of `true`. - Added a General settings toggle for Chibi Professor Mari visits. - Mounted the existing easter-egg component at the app shell level and gated its scroll listener by the persisted setting. ## Refactor impact Primary owner: - App shell and shared UI state. Impact areas reviewed: - App startup composition, General settings, UI store model/defaults/persistence, and Chibi Professor Mari toast listener. Boundary notes: - UI-only change. No engine, shared API, Tauri, Rust, or remote-runtime boundary changes. Pressure points touched: - `src/app/App.tsx` - `src/features/shell/settings/components/SettingsPanel.tsx` - `src/shared/components/ui/ChibiProfessorMariEasterEgg.tsx` - `src/shared/stores/ui.*` ## Validation - [ ] `pnpm check` passes locally - [x] `pnpm typecheck` passes locally - [x] `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 - Not manually verified in the running app. Code proof: when `chibiProfessorMariEnabled` is false, `ChibiProfessorMariEasterEgg` returns before registering the document scroll listener; toggling it back to true re-registers through the effect dependency. ## 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 - None captured. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:50 +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#5056
No description provided.