mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1383] [MERGED] Fix legacy persona avatar crop parsing #5052
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#5052
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/1383
Author: @cha1latte
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1364-persona-avatar-crop📝 Commits (2)
fc3fb5eFix legacy persona avatar crop parsingc3d22aaAddress legacy crop review feedback📊 Changes
9 files changed (+147 additions, -72 deletions)
View changed files
📝
src/engine/contracts/types/persona.ts(+11 -1)📝
src/features/catalog/characters/components/CharacterAvatarImage.tsx(+8 -20)📝
src/features/catalog/personas/components/PersonaEditor.tsx(+18 -27)📝
src/features/modes/game/components/GameNarration.tsx(+3 -3)📝
src/features/modes/game/components/GameSurface.tsx(+2 -2)📝
src/features/runtime/visuals/types.ts(+3 -3)📝
src/shared/components/ui/AvatarCropWidget.tsx(+15 -13)➕
src/shared/lib/avatar-crop.test.ts(+41 -0)📝
src/shared/lib/utils.ts(+46 -3)📄 Description
Linked issue
Closes #1364
Why this change
zoom/offsetX/offsetY/fullImage, so imported legacy personas could lose their saved avatar framing.What changed
Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
Pressure points touched:
AvatarCropWidget.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
node scratch\issue-1364-avatar-crop-proof.mjsbefore the fix.node scratch\issue-1364-avatar-crop-proof.mjs.pnpm exec vitest run src\shared\lib\avatar-crop.test.ts; 1 test file / 4 tests passed.pnpm check; architecture, TypeScript, Rustcargo check, and docs checks passed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json; proof gate passed.zoom/offset crop data to visually confirm framing in the app before ticking manual UI boxes.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Summary by CodeRabbit
New Features
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.