mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1652] [MERGED] [codex] Move persona hooks to catalog personas #5184
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#5184
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/1652
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/persona-ownership-cleanup📝 Commits (2)
e576ceaMove persona hooks to catalog personasc1e526aFix active persona cache invalidation📊 Changes
33 files changed (+407 additions, -271 deletions)
View changed files
📝
docs/developer/architecture.html(+4 -4)📝
docs/developer/modules.html(+3 -3)📝
src/features/catalog/characters/components/CharacterEditor.test.tsx(+13 -3)📝
src/features/catalog/characters/components/CharacterEditor.tsx(+1 -2)📝
src/features/catalog/characters/hooks/use-characters.ts(+1 -203)📝
src/features/catalog/characters/query-keys.ts(+0 -7)📝
src/features/catalog/lorebooks/components/LorebookEditor.tsx(+2 -1)📝
src/features/catalog/lorebooks/components/LorebooksPanel.tsx(+2 -1)📝
src/features/catalog/personas/components/CreatePersonaModal.tsx(+1 -1)📝
src/features/catalog/personas/components/ImportPersonaModal.tsx(+2 -2)📝
src/features/catalog/personas/components/PersonaEditor.tsx(+1 -1)📝
src/features/catalog/personas/components/PersonaMakerModal.tsx(+1 -1)📝
src/features/catalog/personas/components/PersonasPanel.tsx(+1 -1)➕
src/features/catalog/personas/hooks/use-personas.test.tsx(+156 -0)📝
src/features/catalog/personas/hooks/use-personas.ts(+166 -6)➕
src/features/catalog/personas/index.ts(+2 -0)➕
src/features/catalog/personas/query-keys.test.ts(+14 -0)📝
src/features/catalog/personas/query-keys.ts(+5 -0)📝
src/features/modes/conversation/components/ConversationInput.tsx(+5 -4)📝
src/features/modes/game/components/GameSetupWizard.tsx(+1 -1)...and 13 more files
📄 Description
Linked issue
No linked GitHub issue. This follows the architecture ownership remediation work for persona catalog ownership.
Why this change
catalog/charactersand behind the existingcatalog/personasfeature boundary.What changed
src/features/catalog/personas/index.tsas the public persona data entrypoint.catalog/personas.catalog/characters.catalog/personas.Refactor impact
Primary owner:
features/catalog/personasImpact areas reviewed:
features/catalog/personashook/query-key ownership and persona UI componentsfeatures/catalog/characterscharacter hooks, query keys, and import-as-persona workflowBoundary notes:
storageApi,personaApi, andstorageCommandsApiusage remains in the catalog feature layer.Pressure points touched:
personaKeys.list.ModeSurface,GameSurface,src-tauri/src/lib.rs, or command registration changes.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
Automated validation run:
c1e526aaaddressed the active persona cache invalidation review finding for update/delete/avatar upload.pnpm test -- src/features/catalog/personas/query-keys.test.ts src/features/catalog/personas/hooks/use-personas.test.tsx src/features/shell/settings/hooks/tracker-card-color-manager.test.ts src/features/catalog/characters/components/CharacterEditor.test.tsxpassed, 4 files / 8 tests.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm check:docspassed.pnpm buildpassed. Vite emitted the existing large-chunk warning, but the build completed successfully.git diff --check origin/refactor...HEAD -- . ':(exclude)graphify-out/**'passed.No browser or native Tauri manual QA was run; this is an import/cache ownership cleanup with no intended visible UI behavior change.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdDocs note:
docs/developer/architecture.htmlanddocs/developer/modules.htmlwere updated. NoCHANGELOG.mdis present in this checkout, and this change is not release-visible behavior.UI evidence
Not applicable; no visible UI change intended.
Summary by CodeRabbit
Release Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.