[PR #6783] [MERGED] feat(characters): use neutral sprite as sheet reference #7330

Closed
opened 2026-10-23 04:18:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6783
Author: @SpicyMarinara
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/neutral-sprite-sheet-reference


📝 Commits (1)

  • 8008232 feat(characters): use neutral sprite as sheet reference

📊 Changes

5 files changed (+176 additions, -6 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+131 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+2 -0)
📝 packages/client/src/components/ui/AvatarGenerationModal.tsx (+39 -6)
📝 packages/client/src/localization/locales/en.json (+2 -0)

📄 Description

Linked issue

Closes #6782

Why this change

Character-sheet generation could reference the avatar but offered no way to reuse the character's saved neutral full-body design. This adds an explicit choice to preserve that design when creating the sheet.

What changed

  • Show an unchecked neutral full-body reference option and uncropped thumbnail when full_neutral is saved.
  • Send the selected sprite first, with the avatar as an independent optional second reference, through the existing preview and generation API.
  • Localize the control and image-read error, update the changelog, and cover selection, prompt review, reopening, missing files, and deletion in a browser regression.

Validation

Product code is commit 80082321a84d78f8402259f9337ccbbead8f8b6a.

  • pnpm check passed, including localization, formatting, lint/type checks, and production build. Final test-only fixes were rechecked with pnpm check:e2e-types.
  • pnpm smoke:ui: 7 passed.
  • Focused Character-sheet generation offers regression: passed on desktop Chromium, mobile Chromium, and mobile WebKit.
  • Existing Character and persona sheets persist regression: passed on all three browser projects.
  • Local CodeRabbit review completed with two minor test findings: added an explicit source-URL assertion and independent best-effort cleanup. The injected failure route is removed before deletion; the generation stub belongs to Playwright's isolated page context and is removed at fixture teardown, so no extra global cleanup is needed.
  • Initial test runs exposed a wrong prompt-review button selector and a test API deletion that bypassed client-cache invalidation. The final test uses the real Delete Sprite UI and passes.

GitHub CodeRabbit completed with no actionable comments. Its separate architecture note proposed pinning selection to a sprite revision. This remains a current-sprite option: the displayed thumbnail follows the current URL, inclusion requires clicking Generate, every modal opening clears the option, and the modal prevents editing the card underneath it. The request captures the chosen URLs before awaiting conversion and reuses the resulting bytes through prompt review. No unintended transfer path was established; broader stale-result handling is pre-existing and outside this focused change. The inconclusive docstring-coverage suggestion is not a repository merge gate and does not justify boilerplate on the existing small image-conversion helper.

Human verification checklist:

  • Manually verify the neutral sprite option with a real saved character sprite and image provider.
  • Manually verify sprite-only and combined avatar/sprite generation output.
  • Manually verify the control in dark/light themes and on a phone.
  • Build and run the container locally.

Manual verification notes

Inspected browser screenshots in desktop dark mode, mobile Chromium light mode, and mobile WebKit dark mode. Provider generation is mocked in the browser regression; no paid provider call or visual fidelity evaluation was performed. Container validation is left to the required GitHub check.

Docs and release impact

Added an Unreleased changelog entry. No version or user-facing documentation changes.

UI evidence

Downloadable browser proof with embedded desktop and mobile screenshots. Download the HTML and open it to view the captures; images are synthetic test fixtures.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6783 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/neutral-sprite-sheet-reference` --- ### 📝 Commits (1) - [`8008232`](https://github.com/Pasta-Devs/Marinara-Engine/commit/80082321a84d78f8402259f9337ccbbead8f8b6a) feat(characters): use neutral sprite as sheet reference ### 📊 Changes **5 files changed** (+176 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+131 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+2 -0) 📝 `packages/client/src/components/ui/AvatarGenerationModal.tsx` (+39 -6) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) </details> ### 📄 Description ## Linked issue Closes #6782 ## Why this change Character-sheet generation could reference the avatar but offered no way to reuse the character's saved neutral full-body design. This adds an explicit choice to preserve that design when creating the sheet. ## What changed - Show an unchecked neutral full-body reference option and uncropped thumbnail when `full_neutral` is saved. - Send the selected sprite first, with the avatar as an independent optional second reference, through the existing preview and generation API. - Localize the control and image-read error, update the changelog, and cover selection, prompt review, reopening, missing files, and deletion in a browser regression. ## Validation Product code is commit `80082321a84d78f8402259f9337ccbbead8f8b6a`. - `pnpm check` passed, including localization, formatting, lint/type checks, and production build. Final test-only fixes were rechecked with `pnpm check:e2e-types`. - `pnpm smoke:ui`: 7 passed. - Focused `Character-sheet generation offers` regression: passed on desktop Chromium, mobile Chromium, and mobile WebKit. - Existing `Character and persona sheets persist` regression: passed on all three browser projects. - Local CodeRabbit review completed with two minor test findings: added an explicit source-URL assertion and independent best-effort cleanup. The injected failure route is removed before deletion; the generation stub belongs to Playwright's isolated page context and is removed at fixture teardown, so no extra global cleanup is needed. - Initial test runs exposed a wrong prompt-review button selector and a test API deletion that bypassed client-cache invalidation. The final test uses the real Delete Sprite UI and passes. GitHub CodeRabbit completed with no actionable comments. Its separate architecture note proposed pinning selection to a sprite revision. This remains a current-sprite option: the displayed thumbnail follows the current URL, inclusion requires clicking Generate, every modal opening clears the option, and the modal prevents editing the card underneath it. The request captures the chosen URLs before awaiting conversion and reuses the resulting bytes through prompt review. No unintended transfer path was established; broader stale-result handling is pre-existing and outside this focused change. The inconclusive docstring-coverage suggestion is not a repository merge gate and does not justify boilerplate on the existing small image-conversion helper. Human verification checklist: - [ ] Manually verify the neutral sprite option with a real saved character sprite and image provider. - [ ] Manually verify sprite-only and combined avatar/sprite generation output. - [ ] Manually verify the control in dark/light themes and on a phone. - [ ] Build and run the container locally. ### Manual verification notes Inspected browser screenshots in desktop dark mode, mobile Chromium light mode, and mobile WebKit dark mode. Provider generation is mocked in the browser regression; no paid provider call or visual fidelity evaluation was performed. Container validation is left to the required GitHub check. ## Docs and release impact Added an Unreleased changelog entry. No version or user-facing documentation changes. ## UI evidence [Downloadable browser proof with embedded desktop and mobile screenshots](https://gist.github.com/SpicyMarinara/474cf30874bf6715b6802b985c702e4b). Download the HTML and open it to view the captures; images are synthetic test fixtures. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:42 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7330
No description provided.