[PR #4625] [MERGED] Fix Add character action sizing in Character folders #6446

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-character-folder-add-action


📝 Commits (1)

  • a8ff723 Fix character folder add action sizing

📊 Changes

4 files changed (+50 additions, -5 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 e2e/core-flows.e2e.ts (+36 -3)
📝 packages/client/src/components/chat/ChatResourceActionButton.tsx (+7 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+3 -1)

📄 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

Follow-up to #4611

Why this change

  • The earlier sizing fix forced the Add character action to a 20px square with important utilities, while neighboring duplicate and delete controls still inherited the Character row's taller minimum height and corner radius.
  • This made Add visibly shorter and differently shaped in expanded Character folders on desktop and mobile.

What changed

  • Added an explicit row-sizing mode to the shared chat resource action button so Character rows own its dimensions.
  • Applied the same row sizing contract in expanded folders and standalone Character rows.
  • Extended the rendered-browser regression to compare Add, duplicate, and delete width, height, and corner radius in a Character folder.
  • Added an Unreleased changelog entry.

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

Automated checks run by Codex:

  • pnpm check
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts -g "Character row actions can add a resource" (desktop and mobile, 2 passed)

Manual verification notes

  • Manually verify the expanded-folder toolbar in light and dark themes.
  • Manually confirm Add, duplicate, and delete remain identical in shape at desktop and mobile widths.

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
  • Version/release files updated (only if this PR includes a version bump)

No user-facing documentation change is needed. CHANGELOG.md is updated under [Unreleased].

UI evidence

  • Rendered geometry is covered in the desktop and mobile Playwright regression.
  • Before/after screenshots still need to be attached before marking this PR ready for review.

Summary by CodeRabbit

  • Bug Fixes
    • Standardized the size, placement, and styling of the “Add character to active chat” button across standalone and folder character rows on desktop and mobile.
    • Ensured character action buttons have consistent dimensions and rounded corners.
    • Improved mobile character-folder interactions and cleanup in end-to-end flows.

🔄 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/4625 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/5/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-character-folder-add-action` --- ### 📝 Commits (1) - [`a8ff723`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a8ff72348a98370e8b8d76bf3f5c6c6502558746) Fix character folder add action sizing ### 📊 Changes **4 files changed** (+50 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `e2e/core-flows.e2e.ts` (+36 -3) 📝 `packages/client/src/components/chat/ChatResourceActionButton.tsx` (+7 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+3 -1) </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 Follow-up to #4611 ## Why this change - The earlier sizing fix forced the Add character action to a 20px square with important utilities, while neighboring duplicate and delete controls still inherited the Character row's taller minimum height and corner radius. - This made Add visibly shorter and differently shaped in expanded Character folders on desktop and mobile. ## What changed - Added an explicit row-sizing mode to the shared chat resource action button so Character rows own its dimensions. - Applied the same row sizing contract in expanded folders and standalone Character rows. - Extended the rendered-browser regression to compare Add, duplicate, and delete width, height, and corner radius in a Character folder. - Added an Unreleased changelog entry. ## 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` Automated checks run by Codex: - `pnpm check` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts -g "Character row actions can add a resource"` (desktop and mobile, 2 passed) ### Manual verification notes - Manually verify the expanded-folder toolbar in light and dark themes. - Manually confirm Add, duplicate, and delete remain identical in shape at desktop and mobile widths. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) No user-facing documentation change is needed. `CHANGELOG.md` is updated under `[Unreleased]`. ## UI evidence - Rendered geometry is covered in the desktop and mobile Playwright regression. - Before/after screenshots still need to be attached before marking this PR ready for review. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Standardized the size, placement, and styling of the “Add character to active chat” button across standalone and folder character rows on desktop and mobile. * Ensured character action buttons have consistent dimensions and rounded corners. * Improved mobile character-folder interactions and cleanup in end-to-end flows. <!-- 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:10:31 +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#6446
No description provided.