[PR #5483] [MERGED] fix(ui): show avatar crop above replace-avatar actions #6781

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

📋 Pull Request Information

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

Base: staging ← Head: avatar-down-under


📝 Commits (3)

  • 05827d8 fix(ui): show avatar crop above replace-avatar actions
  • 24fc64c Merge remote-tracking branch 'origin/staging' into avatar-down-under
  • d2e4172 Merge branch 'staging' into avatar-down-under

📊 Changes

2 files changed (+56 additions, -54 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+25 -24)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+31 -30)

📄 Description

Closes #5482

Why

In the Character and Persona editors, the Avatar Crop widget rendered below the Replace Avatar (Upload/Generate) actions. That put the crop UI — the actual control for how the current avatar is framed — under the buttons for replacing it entirely, which reads backwards to a user who just wants to adjust the crop of an existing avatar.

What changed

Reordered both editors so Avatar Crop renders first, Replace Avatar actions underneath:

  • packages/client/src/components/characters/CharacterEditor.tsx
  • packages/client/src/components/personas/PersonaEditor.tsx

Pure reorder, no logic changes.

Test plan

  • Character editor, Metadata tab: with an avatar set, confirm crop widget appears above Upload/Generate.
  • Persona editor, Metadata tab: same check.
  • Confirm crop drag-to-pan / corner-resize still works.
  • Confirm Upload, Generate, and Remove avatar actions still work after reorder.

pnpm check passes.

Summary by CodeRabbit

  • UI Improvements
    • Reorganized avatar controls in character and persona editors for a clearer, more cohesive layout.
    • Grouped avatar cropping and replacement actions together.
    • Positioned persona avatar controls below the Persona ID section.
    • Preserved existing cropping behavior and mutation-related control states.

🔄 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/5483 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/24/2026 **Status:** ✅ Merged **Merged:** 8/24/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `avatar-down-under` --- ### 📝 Commits (3) - [`05827d8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/05827d81dae016f279cba365d816de3f39d329c8) fix(ui): show avatar crop above replace-avatar actions - [`24fc64c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/24fc64c637e2f43b8f5cfefdb5a12e305b699905) Merge remote-tracking branch 'origin/staging' into avatar-down-under - [`d2e4172`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d2e4172f6ba499cdb985fa0ad907315494cccfaa) Merge branch 'staging' into avatar-down-under ### 📊 Changes **2 files changed** (+56 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+25 -24) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+31 -30) </details> ### 📄 Description Closes #5482 ## Why In the Character and Persona editors, the Avatar Crop widget rendered *below* the Replace Avatar (Upload/Generate) actions. That put the crop UI — the actual control for how the current avatar is framed — under the buttons for replacing it entirely, which reads backwards to a user who just wants to adjust the crop of an existing avatar. ## What changed Reordered both editors so Avatar Crop renders first, Replace Avatar actions underneath: - `packages/client/src/components/characters/CharacterEditor.tsx` - `packages/client/src/components/personas/PersonaEditor.tsx` Pure reorder, no logic changes. ## Test plan - [ ] Character editor, Metadata tab: with an avatar set, confirm crop widget appears above Upload/Generate. - [ ] Persona editor, Metadata tab: same check. - [ ] Confirm crop drag-to-pan / corner-resize still works. - [ ] Confirm Upload, Generate, and Remove avatar actions still work after reorder. `pnpm check` passes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **UI Improvements** * Reorganized avatar controls in character and persona editors for a clearer, more cohesive layout. * Grouped avatar cropping and replacement actions together. * Positioned persona avatar controls below the Persona ID section. * Preserved existing cropping behavior and mutation-related control states. <!-- 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:40 +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#6781
No description provided.