mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7852] [MERGED] fix(avatars): arrange, resize and frame avatars from the Chat Settings Agents drawer #7967
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#7967
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/7852
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/avatars-drawer-arrange📝 Commits (1)
9cbb662fix(avatars): arrange, resize and frame avatars from the Chat Settings Agents drawer📊 Changes
19 files changed (+964 additions, -436 deletions)
View changed files
📝
docs/agents/avatars.md(+6 -2)📝
e2e/avatar-placement.e2e.ts(+311 -157)📝
e2e/avatar-setup.e2e.ts(+4 -1)➕
packages/client/src/components/chat/AvatarLayoutSettings.tsx(+122 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+126 -4)📝
packages/client/src/components/chat/ChatCommonOverlays.tsx(+4 -0)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+7 -10)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+42 -0)📝
packages/client/src/components/chat/local-sprite-visual-settings.ts(+17 -0)📝
packages/client/src/components/chat/use-sprite-placement-drag.ts(+1 -2)📝
packages/client/src/components/game/GameSurface.tsx(+8 -83)📝
packages/client/src/features/avatars/contract.ts(+7 -0)📝
packages/client/src/features/avatars/renderers/vrm/vrm-motion.ts(+31 -14)📝
packages/client/src/features/avatars/renderers/vrm/vrm-renderer.ts(+27 -4)📝
packages/client/src/features/avatars/stage/AvatarStage.tsx(+73 -119)📝
packages/client/src/features/avatars/stage/avatar-stage-logic.ts(+18 -0)📝
packages/client/src/localization/locales/en.json(+8 -3)📝
scripts/regressions/avatar-placement.regression.ts(+90 -37)📝
scripts/regressions/avatar-vrm.regression.ts(+62 -0)📄 Description
Linked issue
No issue: this is a maintainer request (@SpicyMarinara, 2026-10-19) following #7843 and #7850. A tracking issue should be opened if one is wanted.
Why this change
What changed
frameCameratakes the framing as a mode and still changes smoothly as the box resizes. The avatar box keeps its size; a taller framing shows more of the model in it.avatarFramings). Nothing inpackages/sharedchanged.avatars.stage.arrange,avatars.stage.done,avatars.stage.finishPlacing. Addedavatars.layout.*(title, description, framing labels, help, empty state). Existing text is reused for Arrange, Done, Reset, Avatar and the size label.docs/agents/avatars.md: the Arrange section now describes the drawer and the framing choice, in plain words.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for the reviewer to confirm, not proof):
pnpm check: exit 0 (one existing lint warning inHomeProfessorMariChat.tsx, not touched here).node ./scripts/run-regressions.mjs --filter avatar: the avatar regressions passed (avatar-2d-importerstimed out once under parallel load, then passed on its own).avatar-placement.regression.tsnow drives ChatArea's shared callbacks and keeps every assertion it had for Game's: batched moves and sizes survive, saves happen outside updaters, stale chats can't save, a new chat reads its own cache, and a full cache keeps edits visible. It adds framing and Reset.avatar-vrm.regression.tsadds the framing math: Portrait is unchanged, Half body reaches the hips, Full body keeps a tall hat and the soles in view, no jumps on resize. It also checks the immediate redraw.desktop-chromiumandmobile-chromium:e2e/avatar-placement.e2e.ts(rewritten to use the drawer, per the maintainer decision),e2e/avatar-setup.e2e.tsande2e/avatar-2d.e2e.ts: 42 passed. The placement spec now checks, in Roleplay and Game, that the stage has no Arrange, Done or size controls. It checks that the drawer's Arrange makes a 2D and a 3D avatar draggable by mouse or touch and by the arrow keys, and that the slider resizes both and the 3D canvas keeps its full pixel ratio. It checks that Full body puts the VRM fixture's head and feet inside the canvas, and that Done gives clicks back to the chat. After a reload, positions, sizes and framing are restored. The old check of the removed on-stage slider's styling is gone with the slider.avatar-setup.e2e.tsnow scopes its Expression Engine Arrange click to that card, because the Avatars card has its own Arrange.Manual verification notes
Please check these by hand. None have been done by a person yet:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/avatars.mdchanged (the Arrange paragraph, the new Framing paragraph, and one sentence in the 3D section). The translation follow-up for this file is already open as #7831; a note about this change was added there.UI evidence (if applicable)
Before (staging, #7843/#7850): an "Arrange avatars" button sits on the chat, at the top left in Roleplay and the top right in Game. Pressing it puts a Done button and one size slider per avatar over the chat, plus a check button above each avatar.
After, from the e2e run (
test-results/avatar-placement.e2e.ts-…/):roleplay-before.png/game-before.png: a 3D (VRM fixture) and a 2D avatar on the chat with no controls on the stage.roleplay-desktop-drawer.png,roleplay-phone-drawer.png,game-desktop-drawer.png,game-phone-drawer.png: the Avatars drawer in Chat Settings → Agents, with Arrange/Reset, the Avatar picker, the size slider and Framing; the VRM is in Full body framing.*-arranging.png: both avatars marked "Drag to move" after being dragged with Arrange on.*-restored.png: after a reload, the same positions, sizes and framing.From the local check with the real Maukie model (
maukie-shots/<layout>-<desktop|phone>/in the session scratchpad):1-portrait.png,3-half-body.pngand3-full-body.pngcompare the three framings in the same box.4-arranged.pngshows the drag with Arrange on, and5-reloaded.pngshows the layout after a reload. These cover Roleplay, Visual Novel and Game, on desktop and phone.Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.