mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#316
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?
Originally created by @Romuromylus on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/669
What problem does this solve?
PR #661 shipped the new full-image avatar cropper and persona crop UI but explicitly deferred propagation through chat-side render sites. With #661 live, four chat surfaces rendered broken avatars on any saved new-format crop, so PR #666 reverted it. The full-image cropper is now back on the shelf until the deferred scope lands.
The problem: the avatar cropper UX upgrade (#658 → #661) is fully designed and reviewed, but can't ship in its current shape because chat-side
getAvatarCropStyleconsumers —ChatMessage,ConversationMessage,QuickPersonaSwitcher, the chat header avatars, the game-mode party widgets, and ~17 other render sites — were never wired up. Re-applying #661 without that wiring would just bring back the four regressions documented in #665.Proposed solution
Re-apply PR #661 in a single follow-up PR that also lands the deferred chat-side propagation. Two-commit shape so the reviewer can see the delta clearly:
git revert -m 1 <PR #666 merge>. Brings back PR #661 exactly as it was reviewed and merged, no changes.feat(avatar-crop): propagate new-format crop through chat surfaces. The new work, structured as:CharacterMap.avatarCropand addPersonaInfo.avatarCropinchat-area.types.ts; threadavatarCropfrom the persona row throughChatArea.tsx'suserPersonaInfo; snapshot it on user messages (client + server + shared types) so re-edits don't restyle past messages; resolve a persona crop style inChatMessage/ConversationMessageuser bubbles; apply the crop inQuickPersonaSwitcher+QuickSwitcherMobile. MoveparsePersonaAvatarCropfromPersonasPanelintolib/utils.ts(renameparseAvatarCropJson) and introduce anAvatarCropValuealias so 17 narrow inline types across client files can carry the new shape too.<img style={getAvatarCropStyle(...)}>forposition: relative(needed because the new-format crop renders the img withposition: absolute). Addsrelativeto 22 surfaces spanning chat, settings, sidebar, and game-mode widgets.No data migration; legacy crops keep rendering via the legacy transform path.
Alternatives considered
position: relativeon parents (e.g. fixed-aspect wrappers, or a<picture>element with a background-image crop). Heavier change with worse compatibility against the existing wide variety of avatar surfaces. The relative-parent sweep is mechanical and one-shot.Additional context
The follow-up PR will be opened with this issue linked. Pre-merge, the work has been validated end-to-end on a fork deployment with all four #665 surfaces verified clean.
Template check