mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1656] [MERGED] [codex] Refactor personas catalog ownership #5190
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5190
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1656
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/personas-audit📝 Commits (6)
3291d17Refactor personas catalog ownershipaafa7feFix persona sprite ownership review findings880d770Document shared catalog sprite ownership2556009Fix personas review findingsa2b88c0Clear stale persona sprite selections17b022eFix refactor replay import📊 Changes
53 files changed (+4372 additions, -2596 deletions)
View changed files
📝
AGENTS.md(+1 -0)📝
CONTRIBUTING.md(+1 -1)📝
docs/developer/architecture.html(+14 -4)📝
docs/developer/modules.html(+12 -2)📝
skills/marinara-architecture-guard/references/repo-layout.md(+1 -0)📝
src-tauri/src/commands/storage/commands/media.rs(+16 -7)📝
src-tauri/src/commands/storage/sprites.rs(+341 -38)📝
src-tauri/src/http_dispatch.rs(+10 -1)📝
src/features/catalog/characters/components/CharacterEditor.test.tsx(+16 -5)📝
src/features/catalog/characters/components/CharacterEditor.tsx(+46 -14)📝
src/features/catalog/characters/hooks/use-characters.ts(+3 -121)📝
src/features/catalog/characters/query-keys.ts(+0 -5)➕
src/features/catalog/personas/components/PersonaColorsTab.tsx(+158 -0)➕
src/features/catalog/personas/components/PersonaDescriptionTab.tsx(+271 -0)📝
src/features/catalog/personas/components/PersonaEditor.tsx(+9 -1643)➕
src/features/catalog/personas/components/PersonaEditorSectionHeader.tsx(+8 -0)➕
src/features/catalog/personas/components/PersonaGroupsSection.tsx(+282 -0)➕
src/features/catalog/personas/components/PersonaListItem.tsx(+165 -0)➕
src/features/catalog/personas/components/PersonaSpriteDeleteDialog.tsx(+82 -0)➕
src/features/catalog/personas/components/PersonaSpriteEditors.tsx(+51 -0)...and 33 more files
📄 Description
Linked issue
No linked issue.
Why this change
Prepare Personas for follow-up refactor work by making the feature boundaries explicit: Personas owns persona data/editing, shared sprite behavior lives in
features/catalog/sprites, and tracker card UI/color behavior lives infeatures/runtime/tracker.What changed
src/features/catalog/personas.src/features/catalog/sprites.features/catalog/spritesownership.Refactor impact
Primary owner:
Catalog Personas, Catalog Sprites, Runtime Tracker, Shared API, and Rust sprite storage.
Impact areas reviewed:
remote-runtime.tsandhttp_dispatch.rs.Boundary notes:
catalog/spritesis a catalog-level shared owner for sprite hooks/query keys; catalog code still does not import runtime/modes/shell.image-generation-api.tsremains the focused shared API wrapper for sprite commands and now passesownerTypefor character/persona storage.sprites.rsimplementation.Pressure points touched:
GameSurface.tsxandChatSettingsDrawer.tsxonly at sprite query call sites.src-tauri/src/lib.rscommand registration was not changed in this branch.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Agent-run validation, with template checkboxes intentionally left unchecked for human verification:
pnpm vitest run src/features/catalog/sprites/hooks/use-sprites.test.tsx src/features/catalog/personas/lib/personas-panel-model.test.ts src/features/runtime/tracker/lib/tracker-card-color-manager.test.tspassed: 3 files, 17 tests.cargo test --manifest-path src-tauri/Cargo.toml sprite_upload_tests -- --nocapturepassed: 5 tests.pnpm typecheckpassed.cargo check --manifest-path src-tauri/Cargo.tomlpassed.pnpm check:architecturepassed.pnpm check:docspassed after the docs sync.pnpm buildpassed.rustfmt --edition 2021 --checkpassed on touched Rust files.pnpm tauri dev --no-watch --config scratch\tauri-qa.config.json: WebView loaded and the native QA window was found.pnpm checkwas not claimed;pnpm check:line-endingscurrently fails on pre-existing repo-wide CRLF drift unrelated to this branch.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdDocs updated:
AGENTS.mdCONTRIBUTING.mddocs/developer/architecture.htmldocs/developer/modules.htmlskills/marinara-architecture-guard/references/repo-layout.mdNo changelog or release note was added because this is an internal refactor/storage safety fix on the refactor branch, not a user-facing release entry.
UI evidence
No screenshot/recording added. This is primarily a modular ownership and storage-boundary refactor; the native launch smoke only verified current-head app startup.
Summary by CodeRabbit
Release Notes
New Features
Refactor
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.