[PR #666] [MERGED] revert: roll back PR #661 (avatar-crop full-image) pending chat-side propagation #4719

Closed
opened 2026-10-22 04:10:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/666
Author: @Romuromylus
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/11/2026
Merged by: @Romuromylus

Base: main ← Head: revert/avatar-crop-full-image


📝 Commits (1)

  • 03470a5 Revert "Merge pull request #661 from Romuromylus/feat/avatar-crop-full-image"

📊 Changes

15 files changed (+159 additions, -744 deletions)

View changed files

📝 CHANGELOG.md (+0 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+129 -19)
📝 packages/client/src/components/game/GameNarration.tsx (+4 -4)
📝 packages/client/src/components/game/GameSurface.tsx (+2 -2)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+13 -79)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+5 -100)
➖ packages/client/src/components/ui/AvatarCropWidget.tsx (+0 -424)
📝 packages/client/src/hooks/use-characters.ts (+0 -2)
📝 packages/client/src/lib/utils.ts (+6 -66)
📝 packages/server/src/db/migrate.ts (+0 -6)
📝 packages/server/src/db/schema/characters.ts (+0 -2)
📝 packages/server/src/routes/characters.routes.ts (+0 -1)
📝 packages/server/src/services/import/marinara.importer.ts (+0 -8)
📝 packages/server/src/services/storage/characters.storage.ts (+0 -5)
📝 packages/shared/src/types/persona.ts (+0 -25)

📄 Description

Linked issue

Closes #665

Why this change

PR #661 shipped the new full-image avatar cropper and persona crop UI, but explicitly deferred the chat-side propagation ("Out of scope" in the PR body). With the PR merged, four chat surfaces render broken avatars when a saved new-format crop is present:

  • RP scene character header bleeds with pixel artifacts.
  • Conversation-mode bubbles show only a vertical sliver of the persona avatar.
  • Conversation-mode bubbles render the character avatar as a giant horizontal banner spanning the chat area.
  • QuickPersonaSwitcher strip clips the persona avatar to a partial slice.

Reverting on main while a proper follow-up PR brings #661 back with the chat-side propagation included (widened CharacterMap.avatarCrop type, userPersonaInfo.avatarCrop plumbing, ~14 getAvatarCropStyle call-site container fixes).

What changed

  • git revert -m 1 be4f0d922fa8135d0f21b3b35fb51585b9bd14b0 — exact reversal of the PR #661 merge commit. 15 files, mirror of the original PR's file set.

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

  • This is a literal git revert -m 1 of a merge commit that already passed CI; the codebase returns to a known-passing state (f6a767b baseline).
  • Manually verify upstream main builds and runs after the revert.
  • Manually verify avatar editor / persona editor UI returns to the pre-#661 shape (slider + drag preview, no per-persona crop UI).
  • Manually verify user data already saved in the new personas.avatar_crop column is preserved on disk — the column stays via SQLite's lack of DROP COLUMN in the reverted migration; the server simply stops reading/writing it. Re-introduction PR will pick this data back up.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Reverts the editor UI to its pre-#661 shape. No before/after needed — the PR being reverted has the "after" screenshots; the "before" is upstream main at f6a767b.

Summary by CodeRabbit

  • New Features

    • Background agent can now generate and reuse missing scene backgrounds via optional image generation.
  • Bug Fixes

    • Character avatar crop editor redesigned with inline drag-to-reposition, zoom slider, and reset controls.
  • Refactor

    • Simplified character avatar crop data model; removed avatar crop functionality from persona editing.

Review Change Stack


🔄 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/666 **Author:** [@Romuromylus](https://github.com/Romuromylus) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/11/2026 **Merged by:** [@Romuromylus](https://github.com/Romuromylus) **Base:** `main` ← **Head:** `revert/avatar-crop-full-image` --- ### 📝 Commits (1) - [`03470a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03470a521f434565fa32490318daa75a4828635e) Revert "Merge pull request #661 from Romuromylus/feat/avatar-crop-full-image" ### 📊 Changes **15 files changed** (+159 additions, -744 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+0 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+129 -19) 📝 `packages/client/src/components/game/GameNarration.tsx` (+4 -4) 📝 `packages/client/src/components/game/GameSurface.tsx` (+2 -2) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+13 -79) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+5 -100) ➖ `packages/client/src/components/ui/AvatarCropWidget.tsx` (+0 -424) 📝 `packages/client/src/hooks/use-characters.ts` (+0 -2) 📝 `packages/client/src/lib/utils.ts` (+6 -66) 📝 `packages/server/src/db/migrate.ts` (+0 -6) 📝 `packages/server/src/db/schema/characters.ts` (+0 -2) 📝 `packages/server/src/routes/characters.routes.ts` (+0 -1) 📝 `packages/server/src/services/import/marinara.importer.ts` (+0 -8) 📝 `packages/server/src/services/storage/characters.storage.ts` (+0 -5) 📝 `packages/shared/src/types/persona.ts` (+0 -25) </details> ### 📄 Description ## Linked issue Closes #665 ## Why this change PR #661 shipped the new full-image avatar cropper and persona crop UI, but explicitly deferred the chat-side propagation ("Out of scope" in the PR body). With the PR merged, four chat surfaces render broken avatars when a saved new-format crop is present: - RP scene character header bleeds with pixel artifacts. - Conversation-mode bubbles show only a vertical sliver of the persona avatar. - Conversation-mode bubbles render the character avatar as a giant horizontal banner spanning the chat area. - QuickPersonaSwitcher strip clips the persona avatar to a partial slice. Reverting on main while a proper follow-up PR brings #661 back with the chat-side propagation included (widened `CharacterMap.avatarCrop` type, `userPersonaInfo.avatarCrop` plumbing, ~14 `getAvatarCropStyle` call-site container fixes). ## What changed - `git revert -m 1 be4f0d922fa8135d0f21b3b35fb51585b9bd14b0` — exact reversal of the PR #661 merge commit. 15 files, mirror of the original PR's file set. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - This is a literal `git revert -m 1` of a merge commit that already passed CI; the codebase returns to a known-passing state (`f6a767b` baseline). - Manually verify upstream main builds and runs after the revert. - Manually verify avatar editor / persona editor UI returns to the pre-#661 shape (slider + drag preview, no per-persona crop UI). - Manually verify user data already saved in the new `personas.avatar_crop` column is preserved on disk — the column stays via SQLite's lack of `DROP COLUMN` in the reverted migration; the server simply stops reading/writing it. Re-introduction PR will pick this data back up. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Reverts the editor UI to its pre-#661 shape. No before/after needed — the PR being reverted has the "after" screenshots; the "before" is upstream main at `f6a767b`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Background agent can now generate and reuse missing scene backgrounds via optional image generation. * **Bug Fixes** * Character avatar crop editor redesigned with inline drag-to-reposition, zoom slider, and reset controls. * **Refactor** * Simplified character avatar crop data model; removed avatar crop functionality from persona editing. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/666) <!-- 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-22 04:10:05 +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#4719
No description provided.