[PR #5498] [MERGED] feat: generate matched full-body sprites individually #6786

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5498
Author: @SpicyMarinara
Created: 8/24/2026
Status: ✅ Merged
Merged: 8/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5497-single-full-body-generation


📝 Commits (3)

  • fc8b422 chore: start #5497 single-image sprite generation
  • c7dd982 fix: generate matched full-body sprites one at a time
  • dda0e9c Merge branch 'staging' into fix/5497-single-full-body-generation

📊 Changes

5 files changed (+107 additions, -25 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+17 -3)
📝 packages/client/src/components/ui/SpriteGenerationModal.tsx (+41 -22)
📝 packages/client/src/localization/locales/en.json (+8 -0)
➕ scripts/regressions/matched-full-body-requests.regression.mjs (+40 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5497

Why this change

  • The server already generated matched full-body expressions one at a time, but the browser grouped up to four sequential provider generations inside one HTTP request. The browser's five-minute timeout therefore covered the entire group instead of one image.
  • Grouped progress also delayed successful-result state until later expressions completed.

What changed

  • Send one matched full-body expression per sequential browser request after neutral approval.
  • Keep the existing approved-neutral and matching-portrait references on every expression.
  • Give each expression its own browser timeout and automatic retry.
  • Preserve completed sprites after every request and keep partial results available after cancellation or a later failure.
  • Update progress, retry, and count copy to describe individual sprites rather than batches.
  • Extend the existing browser regression to prove happy and sad are separate referenced requests.

Validation

  • pnpm check passes locally
  • Container (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.md

Manual verification notes

  • Automated: node scripts/regressions/matched-full-body-requests.regression.mjs
  • Automated: focused Playwright matched full-body flow (desktop Chromium; mobile case intentionally skipped by the existing test)
  • Automated: pnpm localization:check
  • Automated: pnpm --filter @marinara-engine/client lint
  • Automated: pnpm check
  • Manually verify a real image provider produces neutral → multiple matched full-body expressions and that Cancel retains completed sprites.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Existing sprite-generation modal only; no layout redesign.

Summary by CodeRabbit

  • New Features

    • Full-body sprite generation now processes expressions sequentially, with progress updates and automatic retry handling.
    • Completed sprites are preserved if generation is cancelled or interrupted.
    • Users can review available results and manually retry failed generations.
  • Bug Fixes

    • Improved handling of partial generation failures and cancellations.
    • Added support for generating and validating additional expressions, including sad sprites.

🔄 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/5498 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/24/2026 **Status:** ✅ Merged **Merged:** 8/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5497-single-full-body-generation` --- ### 📝 Commits (3) - [`fc8b422`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fc8b422067cccfef49741d985487fcd795c37766) chore: start #5497 single-image sprite generation - [`c7dd982`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c7dd982303f3b24b88560f1e1599da63f464835b) fix: generate matched full-body sprites one at a time - [`dda0e9c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dda0e9c41ebeef1a3bb1e4824983e4e9f9146d7b) Merge branch 'staging' into fix/5497-single-full-body-generation ### 📊 Changes **5 files changed** (+107 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+17 -3) 📝 `packages/client/src/components/ui/SpriteGenerationModal.tsx` (+41 -22) 📝 `packages/client/src/localization/locales/en.json` (+8 -0) ➕ `scripts/regressions/matched-full-body-requests.regression.mjs` (+40 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5497 ## Why this change - The server already generated matched full-body expressions one at a time, but the browser grouped up to four sequential provider generations inside one HTTP request. The browser's five-minute timeout therefore covered the entire group instead of one image. - Grouped progress also delayed successful-result state until later expressions completed. ## What changed - Send one matched full-body expression per sequential browser request after neutral approval. - Keep the existing approved-neutral and matching-portrait references on every expression. - Give each expression its own browser timeout and automatic retry. - Preserve completed sprites after every request and keep partial results available after cancellation or a later failure. - Update progress, retry, and count copy to describe individual sprites rather than batches. - Extend the existing browser regression to prove happy and sad are separate referenced requests. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (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.md` ### Manual verification notes - Automated: `node scripts/regressions/matched-full-body-requests.regression.mjs` - Automated: focused Playwright matched full-body flow (desktop Chromium; mobile case intentionally skipped by the existing test) - Automated: `pnpm localization:check` - Automated: `pnpm --filter @marinara-engine/client lint` - Automated: `pnpm check` - Manually verify a real image provider produces neutral → multiple matched full-body expressions and that Cancel retains completed sprites. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Existing sprite-generation modal only; no layout redesign. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Full-body sprite generation now processes expressions sequentially, with progress updates and automatic retry handling. * Completed sprites are preserved if generation is cancelled or interrupted. * Users can review available results and manually retry failed generations. * **Bug Fixes** * Improved handling of partial generation failures and cancellations. * Added support for generating and validating additional expressions, including sad sprites. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:13:43 +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#6786
No description provided.