mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1657] [MERGED] Fix persona avatar path normalization #5188
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#5188
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/1657
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/avatar-path-panel-crash📝 Commits (2)
2034f8dFix persona avatar path normalizationf5a2b55Address persona cache invalidation review📊 Changes
4 files changed (+254 additions, -30 deletions)
View changed files
📝
src/features/catalog/personas/hooks/use-personas.test.tsx(+194 -8)📝
src/features/catalog/personas/hooks/use-personas.ts(+47 -22)📝
src/features/catalog/personas/index.ts(+1 -0)➕
src/features/catalog/personas/lib/persona-avatar-url.ts(+12 -0)📄 Description
Summary
avatarFilePath/avatarFilename) when constructing UI-safe avatar URLs.Root Cause
Panels consuming persona records could receive raw
avatarPathpayloads even when the row also had managed avatar file fields. That left some UI paths rendering the heavy or unsafe avatar payload directly instead of the managed file URL, which could crash panels usingavatarPath.Validation
pnpm test -- src/features/catalog/personas/hooks/use-personas.test.tsx src/shared/api/local-file-api.test.tspnpm typecheckpnpm check:architecturepnpm buildNotes
CHANGELOG.mdfile.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.