[PR #1745] [MERGED] Make home idle state static #5256

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/static-home-idle-cpu


📝 Commits (1)

  • 977a60e Make home idle state static

📊 Changes

2 files changed (+8 additions, -48 deletions)

View changed files

📝 src/features/modes/router/components/ModeHomeSurface.tsx (+5 -16)
📝 src/styles/globals.css (+3 -32)

📄 Description

Linked issue

Closes #

Why this change

  • The Tauri/WebView2 pre-release was burning CPU while sitting on the no-chat home shell.
  • Profiling showed the hot owner was WebView GPU/renderer work from always-on home/shell animation, not Rust, Tauri, or backend runtime work.
  • A static home state keeps the app branded while avoiding continuous idle paint work.

What changed

  • Swapped the idle home logo from /logo-splash.gif to static /logo.png.
  • Removed idle use of home pulse/glow/stagger/divider animations from ModeHomeSurface.
  • Removed always-on title heartbeat and Y2K star twinkle animation from global shell decor, keeping static glow/opacity.

Refactor impact

Primary owner:

  • app shell / mode home surface

Impact areas reviewed:

  • no-chat home surface
  • shell ambient decor CSS
  • reduced-motion behavior
  • mode-specific/game/roleplay animation utilities left in place

Boundary notes:

  • React/UI and CSS-only change.
  • No engine, shared API, Rust/Tauri command, storage, schema, dependency, or release/version changes.

Pressure points touched:

  • ModeHomeSurface
  • global shell/home decor CSS

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • 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
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Codex ran pnpm typecheck and pnpm build in a clean worktree.
  • Codex also built the Windows pre-alpha Tauri artifact with pnpm tauri build --ci --no-sign --config src-tauri/tauri.prealpha.conf.json during local verification.
  • Copied-profile CPU harness on the packaged build:
    • idle after load: 0.025% avg total CPU
    • navigation: 0.036% avg total CPU
    • chat workflow: 0.026% avg total CPU
    • open idle 3 minutes: 0.019% avg total CPU
  • Baseline #4.1 open-idle app-tree CPU was about 4.371% total CPU, so this drops idle usage well under the <1% target.
  • Packaged-app smoke screenshot showed the home surface still branded with quick-start cards, FAQ row, and footer links.

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

  • Local screenshot artifact: scratch/cpu-fix-smoke/fixed-tauri-home.png
  • Local CPU finding note: scratch/cpu-compare/fixed-static-home-cpu-finding.md

Summary by CodeRabbit

  • Style
    • Removed animation effects (heartbeat and twinkling) from title icon and star elements.
    • Simplified empty state UI and quick start card styling for a cleaner, static appearance.

🔄 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/1745 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/31/2026 **Status:** ✅ Merged **Merged:** 5/31/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/static-home-idle-cpu` --- ### 📝 Commits (1) - [`977a60e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/977a60e3618d79c6165810d2c2cdd68ee1c2ca86) Make home idle state static ### 📊 Changes **2 files changed** (+8 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/router/components/ModeHomeSurface.tsx` (+5 -16) 📝 `src/styles/globals.css` (+3 -32) </details> ### 📄 Description ## Linked issue Closes # ## Why this change - The Tauri/WebView2 pre-release was burning CPU while sitting on the no-chat home shell. - Profiling showed the hot owner was WebView GPU/renderer work from always-on home/shell animation, not Rust, Tauri, or backend runtime work. - A static home state keeps the app branded while avoiding continuous idle paint work. ## What changed - Swapped the idle home logo from `/logo-splash.gif` to static `/logo.png`. - Removed idle use of home pulse/glow/stagger/divider animations from `ModeHomeSurface`. - Removed always-on title heartbeat and Y2K star twinkle animation from global shell decor, keeping static glow/opacity. ## Refactor impact Primary owner: - app shell / mode home surface Impact areas reviewed: - no-chat home surface - shell ambient decor CSS - reduced-motion behavior - mode-specific/game/roleplay animation utilities left in place Boundary notes: - React/UI and CSS-only change. - No engine, shared API, Rust/Tauri command, storage, schema, dependency, or release/version changes. Pressure points touched: - `ModeHomeSurface` - global shell/home decor CSS ## Validation - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `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 - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Codex ran `pnpm typecheck` and `pnpm build` in a clean worktree. - Codex also built the Windows pre-alpha Tauri artifact with `pnpm tauri build --ci --no-sign --config src-tauri/tauri.prealpha.conf.json` during local verification. - Copied-profile CPU harness on the packaged build: - idle after load: 0.025% avg total CPU - navigation: 0.036% avg total CPU - chat workflow: 0.026% avg total CPU - open idle 3 minutes: 0.019% avg total CPU - Baseline #4.1 open-idle app-tree CPU was about 4.371% total CPU, so this drops idle usage well under the <1% target. - Packaged-app smoke screenshot showed the home surface still branded with quick-start cards, FAQ row, and footer links. ## 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 - Local screenshot artifact: `scratch/cpu-fix-smoke/fixed-tauri-home.png` - Local CPU finding note: `scratch/cpu-compare/fixed-static-home-cpu-finding.md` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Removed animation effects (heartbeat and twinkling) from title icon and star elements. * Simplified empty state UI and quick start card styling for a cleaner, static appearance. <!-- 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:14:39 +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#5256
No description provided.