[PR #2005] [MERGED] Fix character panel first-open load #5385

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2005
Author: @Promansis
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-1999-character-panel-load


📝 Commits (2)

  • 8160a2a Fix character panel first-open load
  • 23b9dd3 Fix character panel scoped search fields

📊 Changes

9 files changed (+296 additions, -37 deletions)

View changed files

📝 src-tauri/crates/storage/src/lib.rs (+127 -24)
📝 src-tauri/src/commands/storage/shared.rs (+86 -3)
📝 src/app/shell/RightPanel.tsx (+1 -1)
📝 src/features/catalog/characters/components/CharacterListRow.tsx (+6 -6)
📝 src/features/catalog/characters/components/CharactersPanel.tsx (+5 -2)
📝 src/features/catalog/characters/hooks/use-characters.ts (+62 -0)
📝 src/features/catalog/characters/lib/character-query-cache.ts (+6 -1)
➕ src/features/catalog/characters/panel.ts (+1 -0)
📝 src/features/catalog/characters/query-keys.ts (+2 -0)

📄 Description

Linked issue

Closes #1999

Why this change

  • Opening the Characters right side panel was still paying first-open cost for the broad characters shell and prompt-heavy summary fields that compact rows do not need.

What changed

  • Split the right-side Characters panel onto a narrow panel entrypoint.
  • Added a panel-specific character summary query that requests only compact row, group, filter, favorite, tag, avatar, and metadata fields.
  • Removed compact-row token estimate work so row rendering no longer needs prompt/book-heavy character data.
  • Added dotted nested storage projection support so compact summaries can request focused data.extensions fields without returning prompt-heavy extension siblings.

Refactor impact

Primary owner:

catalog characters panel, app shell lazy loading, Rust storage projection

Impact areas reviewed:

  • Characters right panel lazy import path.
  • Character summary query keys and cache invalidation.
  • Compact row rendering, tag/favorite/avatar metadata, group assignment rows, chat assignment rows.
  • Storage list/get projection and command-layer final projection.

Boundary notes:

  • React UI changes stay in src/features/catalog/characters and src/app/shell.
  • Storage projection changes stay in Rust storage/command owners.
  • No engine imports, raw Tauri calls, remote-runtime routing, or mode ownership changes added.

Pressure points touched:

  • Right panel lazy import.
  • Character compact list rows.
  • Rust storage projection helpers.

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

  • pnpm typecheck
  • pnpm build
  • cargo check --manifest-path src-tauri/Cargo.toml
  • cargo test --manifest-path src-tauri/crates/storage/Cargo.toml dotted_nested -- --nocapture
  • cargo test --manifest-path src-tauri/Cargo.toml project_list_rows_applies_dotted_field_selections_to_nested_data -- --nocapture
  • git diff --check
  • No browser timing capture was taken; validation is code-path, projection, type, build, and Rust command/storage proof.

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:

  • Existing Characters panel behavior is narrowed for first-open performance; no new user-discoverable feature or workflow is added.

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 screenshots attached; visible UI behavior should remain the same aside from omitting compact-row token estimates.

🔄 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/2005 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-1999-character-panel-load` --- ### 📝 Commits (2) - [`8160a2a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8160a2ac917461ac7d21a9e4947ca0c3992b058e) Fix character panel first-open load - [`23b9dd3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/23b9dd37eed64fe301a203f68d5228c9f72ccbcf) Fix character panel scoped search fields ### 📊 Changes **9 files changed** (+296 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/crates/storage/src/lib.rs` (+127 -24) 📝 `src-tauri/src/commands/storage/shared.rs` (+86 -3) 📝 `src/app/shell/RightPanel.tsx` (+1 -1) 📝 `src/features/catalog/characters/components/CharacterListRow.tsx` (+6 -6) 📝 `src/features/catalog/characters/components/CharactersPanel.tsx` (+5 -2) 📝 `src/features/catalog/characters/hooks/use-characters.ts` (+62 -0) 📝 `src/features/catalog/characters/lib/character-query-cache.ts` (+6 -1) ➕ `src/features/catalog/characters/panel.ts` (+1 -0) 📝 `src/features/catalog/characters/query-keys.ts` (+2 -0) </details> ### 📄 Description ## Linked issue Closes #1999 ## Why this change - Opening the Characters right side panel was still paying first-open cost for the broad characters shell and prompt-heavy summary fields that compact rows do not need. ## What changed - Split the right-side Characters panel onto a narrow panel entrypoint. - Added a panel-specific character summary query that requests only compact row, group, filter, favorite, tag, avatar, and metadata fields. - Removed compact-row token estimate work so row rendering no longer needs prompt/book-heavy character data. - Added dotted nested storage projection support so compact summaries can request focused `data.extensions` fields without returning prompt-heavy extension siblings. ## Refactor impact Primary owner: catalog characters panel, app shell lazy loading, Rust storage projection Impact areas reviewed: - Characters right panel lazy import path. - Character summary query keys and cache invalidation. - Compact row rendering, tag/favorite/avatar metadata, group assignment rows, chat assignment rows. - Storage list/get projection and command-layer final projection. Boundary notes: - React UI changes stay in `src/features/catalog/characters` and `src/app/shell`. - Storage projection changes stay in Rust storage/command owners. - No engine imports, raw Tauri calls, remote-runtime routing, or mode ownership changes added. Pressure points touched: - Right panel lazy import. - Character compact list rows. - Rust storage projection helpers. ## Validation - [x] 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 - `pnpm typecheck` - `pnpm build` - `cargo check --manifest-path src-tauri/Cargo.toml` - `cargo test --manifest-path src-tauri/crates/storage/Cargo.toml dotted_nested -- --nocapture` - `cargo test --manifest-path src-tauri/Cargo.toml project_list_rows_applies_dotted_field_selections_to_nested_data -- --nocapture` - `git diff --check` - No browser timing capture was taken; validation is code-path, projection, type, build, and Rust command/storage proof. ## 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. - [x] 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: - Existing Characters panel behavior is narrowed for first-open performance; no new user-discoverable feature or workflow is added. ## 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 screenshots attached; visible UI behavior should remain the same aside from omitting compact-row token estimates. --- <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:49 +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#5385
No description provided.