mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8707] [MERGED] fix(characters): match sheet previews and saving to avatar media #8756
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#8756
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/8707
Author: @DSBwizzard
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/character-sheet-preview📝 Commits (10+)
5a4d668fix(characters): open applied character sheets in full image view7e81dcbfix(characters): restore sheet focus after pointer dismissalc3887edfix(characters): reuse the avatar full image overlay for sheetscf30ef1fix(characters): persist sheet selections like avatar uploads61c5f32test(characters): select sheet model in the current picker6af3317fix(characters): scope sheet-save guards to their own mutationb4a4641style(characters): simplify character sheet labels660bc89test(characters): retain generated sheet cancellation coverageb29081ctest(characters): reset likeness after reopening the sheet generatore3fc381Merge branch 'staging' into codex/character-sheet-preview📊 Changes
7 files changed (+391 additions, -58 deletions)
View changed files
📝
e2e/avatar-preview.e2e.ts(+194 -0)📝
e2e/core-flows.e2e.ts(+59 -4)📝
e2e/sprite-library.e2e.ts(+1 -1)📝
packages/client/src/components/characters/CharacterEditor.tsx(+90 -35)📝
packages/client/src/components/ui/AvatarCropWidget.tsx(+43 -15)📝
packages/client/src/localization/locales/en.json(+3 -2)📝
scripts/regressions/onboarding-s1.regression.ts(+1 -1)📄 Description
Linked issue
Closes #8706
Why this change
An applied character sheet should open like the avatar's Full button. Sheet media changes also should persist like avatar and sprite uploads: uploading a sheet and refreshing should not require a separate card Save or trigger a leave-page warning.
What changed
Open applied character sheets from the compact thumbnail and expanded image in the avatar's existing borderless Full presentation. Share the viewer with avatars, including focus restoration, Escape, close/backdrop dismissal and hardware back support.
Persist uploaded/generated sheet selections, replacements, the reference toggle and removal immediately using existing sparse character updates. Keep unrelated text edits unsaved and protected; failed sheet writes retain the previous selection. Removal clears the selection and reference flag while retaining the gallery image.
Use the requested labels Remove character sheet and Use character sheet from #8706 in the existing English localization keys; the shared keys also update the persona sheet labels.
Add viewer-parity and refresh/error/draft-preservation browser coverage. Preserve generated-sheet cancellation coverage alongside immediate saving. Update affected reference and sprite tests, including the generated-sheet test's current model picker.
Keep the onboarding Save-guard regression independent of Prettier line wrapping; the assertion still requires
!dirty || unreadableOnboarding.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run validation evidence is listed below.
pnpm checkpassed onb4a464121841, including localization, formatting, workspace lint, type checks and production builds. Existing unrelated lint warnings remain.b4a464121841was built and run in an isolated Docker preview. Compiled desktop and mobile checks exercised sheet upload, refresh without a browser warning, both requested labels and the borderless viewer. Only disposable QA characters were removed.pnpm smoke:ui --timeout=120000passed all seven desktop Chromium smoke cases onb4a464121841.pnpm regression:uipassed all 18 selected cases onb4a464121841across desktop Chromium, mobile Chromium and mobile WebKit (--workers=1 --timeout=120000). Coverage includes refresh without a warning, sparse sheet writes, unrelated unsaved text, rejected writes, Full-view parity, generated sheets, character/persona reference persistence, in-flight card saving and sprite management.pnpm check:e2e-typespassed; the generated-sheet Save/Cancel case then passed again in all three browsers on final headb29081c34. Product source is unchanged from the fully checked and container-testedb4a464121841.upstream/staging(onb4a464121841and660bc8999). Five items were evaluated across the two runs; dispositions are below. The final one-line follow-up only restores the test's sprite-only setup after reopening the generator.CI follow-up (2026-11-03)
The maintainer-updated head
e3fc381capassed 549/550 files in Node shard 3.onboarding-s1.regression.tsfailed because its source assertion required the Save-disabled condition on one line, while Prettier had wrapped the longer condition after=. Commitf395d7cb9makes only that assertion whitespace-tolerant. The exact regression failed before the fix and passed afterward. A negative control confirmed the assertion still rejects removal of the unreadable-onboarding guard; single-line and wrapped forms both pass. Prettier andgit diff --checkpassed. Application code is unchanged by this follow-up; the parent head'spnpm-validate, container and platform checks passed. The CI rerun passed all three Node shards andcomplete-node-regressions; shard 3 passed 550/550 files. All technical checks onf395d7cb9are green, includingpnpm-validate, container/platform builds, CodeQL and Dottore (Viable, With Notes; no actionable defects). The only remaining failed status is the required outside-contributor owner approval.Local review disposition
Prepared by @DSBwizzard. @SpicyMarinara: this account cannot self-assign upstream issues or PRs.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No installation, update, release, schema or API contract changes; no documentation or release-file changes are needed for this UI correction. New and changed UI copy uses canonical English semantic keys.
UI evidence (if applicable)
Approved desktop and mobile screenshots are attached in the issue's UI evidence comment. They show disposable QA characters with Engine's built-in Mari artwork after upload and refresh, in the shared avatar Full viewer.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.