[PR #4125] [MERGED] Polish library actions and advanced settings UI #6243

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4125
Author: @SpicyMarinara
Created: 7/26/2026
Status: ✅ Merged
Merged: 7/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/polish-library-settings-ui


📝 Commits (2)

  • ba5134a Polish library actions and advanced settings UI
  • f955ea6 Polish chat resource actions and roleplay input

📊 Changes

19 files changed (+412 additions, -101 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+233 -2)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+7 -15)
📝 packages/client/src/components/chat/ChatInput.tsx (+9 -9)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+11 -4)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+3 -3)
📝 packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx (+7 -7)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+8 -0)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+56 -7)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+5 -0)
📝 packages/client/src/components/panels/settings/CustomGenerationParametersSettings.tsx (+2 -2)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+4 -9)
📝 packages/client/src/components/ui/AvatarCropWidget.tsx (+3 -3)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+25 -22)
📝 packages/client/src/hooks/use-folder-rename-gesture.ts (+2 -14)
📝 packages/client/src/localization/locales/en.json (+4 -1)
📝 packages/client/src/localization/locales/pl.json (+5 -1)
📝 packages/client/src/styles/globals.css (+11 -0)
📝 scripts/regressions/open-issues.regression.ts (+3 -2)
📝 scripts/regressions/roleplay-streaming.regression.ts (+14 -0)

📄 Description

Linked issue

No linked issue. This is a maintainer-requested UI consistency and usability batch.

Why this change

Several library, chat, and settings controls had regressed from the shared UI system: character actions broke inside folders, folder toggles lagged, editor actions retained legacy styling, Roleplay typing forced layout work on every keystroke, and custom generation settings appeared in confusing positions. Users also lacked guidance for Lorebook batch editing and automatic backup storage.

What changed

  • Add localized Lorebook batch-edit guidance.
  • Keep duplicate, delete, chat, and remove-from-folder actions visible in compact character folder rows.
  • Remove the delayed folder open and close behavior caused by the rename gesture.
  • Correct the Assistant Prefill <thinking> example.
  • Add localized custom Parameters help, enlarge its action icons, and place custom parameters after built-in controls.
  • Move Character and Persona editor actions onto shared themed button and chip primitives.
  • Make connection Discard follow the configured editor accent.
  • Explain the automatic backup location, including Docker and Android notes, in English and Polish.
  • Make Character and Persona removal controls in Chat Settings use the configured accent instead of destructive red.
  • Debounce Roleplay textarea measurement so typing no longer forces a layout read every animation frame.
  • Extend browser and deterministic regression coverage for the affected behavior.

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 verification notes

  • pnpm check
  • pnpm regression:roleplay
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts
  • Focused desktop and mobile Playwright coverage for Chat Settings resource accents, character folder actions, Character and Persona editor actions, connection Discard theming, generation parameter placement and rendered <thinking> placeholder, Lorebook guidance, and automatic backup location
  • Focused Roleplay Playwright coverage for composer quote and caret behavior

Manual verification notes

  • Manual screenshots are not attached. The affected desktop and mobile paths are covered by Playwright assertions.

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] follow-up issue opened
  • Version/release files updated

The existing backup documentation already describes the automatic archive path, so no documentation or release metadata changed.

UI evidence

  • Automated desktop and mobile Playwright coverage is included in the PR.

Summary by CodeRabbit

  • New Features

    • Added contextual help for custom generation parameters and automatic backup locations.
    • Added an informational hint for lorebook batch editing.
    • Improved folder actions, character management, and editor controls with clearer styling and confirmations.
    • Improved folder renaming interactions on touch devices.
  • Bug Fixes

    • Improved chat input resizing after typing pauses.
    • Refined generation parameter placeholders and resource removal controls.
    • Standardized accent, danger, and primary action styling across editors and settings.

🔄 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/4125 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/26/2026 **Status:** ✅ Merged **Merged:** 7/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/polish-library-settings-ui` --- ### 📝 Commits (2) - [`ba5134a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ba5134acd42a1ba59562d3939ea5d7151733dad8) Polish library actions and advanced settings UI - [`f955ea6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f955ea6994e52d2fafb98ed003a13a918b154ce7) Polish chat resource actions and roleplay input ### 📊 Changes **19 files changed** (+412 additions, -101 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+233 -2) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+7 -15) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+9 -9) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+11 -4) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+3 -3) 📝 `packages/client/src/components/lorebooks/LorebookAssignmentSection.tsx` (+7 -7) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+8 -0) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+56 -7) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+5 -0) 📝 `packages/client/src/components/panels/settings/CustomGenerationParametersSettings.tsx` (+2 -2) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+4 -9) 📝 `packages/client/src/components/ui/AvatarCropWidget.tsx` (+3 -3) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+25 -22) 📝 `packages/client/src/hooks/use-folder-rename-gesture.ts` (+2 -14) 📝 `packages/client/src/localization/locales/en.json` (+4 -1) 📝 `packages/client/src/localization/locales/pl.json` (+5 -1) 📝 `packages/client/src/styles/globals.css` (+11 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+3 -2) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+14 -0) </details> ### 📄 Description ## Linked issue No linked issue. This is a maintainer-requested UI consistency and usability batch. ## Why this change Several library, chat, and settings controls had regressed from the shared UI system: character actions broke inside folders, folder toggles lagged, editor actions retained legacy styling, Roleplay typing forced layout work on every keystroke, and custom generation settings appeared in confusing positions. Users also lacked guidance for Lorebook batch editing and automatic backup storage. ## What changed - Add localized Lorebook batch-edit guidance. - Keep duplicate, delete, chat, and remove-from-folder actions visible in compact character folder rows. - Remove the delayed folder open and close behavior caused by the rename gesture. - Correct the Assistant Prefill `<thinking>` example. - Add localized custom Parameters help, enlarge its action icons, and place custom parameters after built-in controls. - Move Character and Persona editor actions onto shared themed button and chip primitives. - Make connection Discard follow the configured editor accent. - Explain the automatic backup location, including Docker and Android notes, in English and Polish. - Make Character and Persona removal controls in Chat Settings use the configured accent instead of destructive red. - Debounce Roleplay textarea measurement so typing no longer forces a layout read every animation frame. - Extend browser and deterministic regression coverage for the affected behavior. ## 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 verification notes - `pnpm check` - `pnpm regression:roleplay` - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` - Focused desktop and mobile Playwright coverage for Chat Settings resource accents, character folder actions, Character and Persona editor actions, connection Discard theming, generation parameter placement and rendered `<thinking>` placeholder, Lorebook guidance, and automatic backup location - Focused Roleplay Playwright coverage for composer quote and caret behavior ### Manual verification notes - Manual screenshots are not attached. The affected desktop and mobile paths are covered by Playwright assertions. ## 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]` follow-up issue opened - [ ] Version/release files updated The existing backup documentation already describes the automatic archive path, so no documentation or release metadata changed. ## UI evidence - Automated desktop and mobile Playwright coverage is included in the PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added contextual help for custom generation parameters and automatic backup locations. * Added an informational hint for lorebook batch editing. * Improved folder actions, character management, and editor controls with clearer styling and confirmations. * Improved folder renaming interactions on touch devices. * **Bug Fixes** * Improved chat input resizing after typing pauses. * Refined generation parameter placeholders and resource removal controls. * Standardized accent, danger, and primary action styling across editors and settings. <!-- 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:08:32 +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#6243
No description provided.