mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7850] [MERGED] fix(avatars): preserve repeated keyboard placement #7965
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#7965
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/7850
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/avatar-keyboard-placement📝 Commits (1)
3efd0cffix(avatars): preserve repeated keyboard placement📊 Changes
3 files changed (+32 additions, -6 deletions)
View changed files
📝
e2e/avatar-placement.e2e.ts(+10 -1)📝
packages/client/src/components/chat/use-sprite-placement-drag.ts(+18 -3)📝
packages/client/src/features/avatars/stage/AvatarStage.tsx(+4 -2)📄 Description
Linked issue
Closes #7849.
Why this change
Holding an arrow key while arranging an avatar can lose movement. In a mounted Roleplay chat, 20 native right-arrow keydowns moved the avatar only 13 percentage points; selecting Done then retained that incorrect position. This follows the outside-diff finding in the avatar review.
What changed
Validation
Draft head:
3efd0cf3bc4323e242ebbce62ef593bdd263e3f5, based on staging9ab7f0052e48af000c844c8b63ba8ef6d708f160. Validation on this staging base is being rerun before readiness.Prior-base evidence on
a49944e0and its working fix:The exact final browser case failed against unchanged production code: expected x48.125, received x41.125 after 20 native right-arrow keydowns and Done. Three earlier bounded repeats also lost moves.
The corrected case passed all six Roleplay/Game cases across desktop Chromium, phone Chromium and phone WebKit.
node scripts/run-regressions.mjs --filter avatar-placement: 1/1 passed.pnpm check: passed, including localization, formatting, lint, types and production builds.pnpm smoke:ui: 7/7 passed.All three patch files are byte-identical after cherry-picking onto the current staging base. Current-head checks, container proof and substantive local/hosted review remain pending.
pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Manually hold arrow keys while arranging an uploaded avatar, select Done immediately, and reload to check the saved position. Check external position changes and pointer dragging as well. The automated browser proof uses native Playwright keyboard input in a mounted app with a fixture VRM; it does not verify physical devices or native shells. Chromium phone dragging uses CDP touch input; WebKit retains the documented synthetic held-touch fallback.
Docs and release impact
The existing avatar guide already describes arrow-key movement and Done. This repair restores that documented behavior and changes no UI copy, dependencies or storage format.
UI evidence
The controls retain their appearance from the published fixture screenshots. The new regression checks the exact position after native repeated key input and after reload; no character asset or paid provider call is involved.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.