[PR #4035] [MERGED] feat(ui): improve Chat Settings editing workflows #6212

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

📋 Pull Request Information

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

Base: staging ← Head: agent/4034-chat-settings-editing


📝 Commits (2)

  • b0faa61 feat(ui): improve chat settings editing workflows
  • d96d2dd fix(ui): address chat settings review feedback

📊 Changes

28 files changed (+2975 additions, -640 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+769 -85)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+12 -10)
📝 packages/client/src/components/chat/ChatArea.tsx (+33 -16)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+6 -2)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+16 -5)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+47 -5)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+310 -157)
📝 packages/client/src/components/chat/ChatToolbarControls.tsx (+49 -6)
📝 packages/client/src/components/chat/ConversationView.tsx (+12 -2)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+3 -1)
📝 packages/client/src/components/game/GameSurface.tsx (+19 -6)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+246 -136)
📝 packages/client/src/components/lorebooks/LorebookEntryRow.tsx (+110 -51)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -1)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+17 -11)
📝 packages/client/src/components/presets/PresetEditor.tsx (+239 -29)
📝 packages/client/src/components/ui/ExpandedTextarea.tsx (+2 -0)
➕ packages/client/src/features/chat-settings/inline-editors/InlineChatCardEditor.tsx (+417 -0)
➕ packages/client/src/features/chat-settings/inline-editors/InlineLorebookEntriesEditor.tsx (+205 -0)
📝 packages/client/src/features/chat-settings/sections/LorebooksSection.tsx (+82 -63)

...and 8 more files

📄 Description

Linked issue

Closes #4034

Why this change

Chat Settings and adjacent editor workflows had accumulated several inconsistent interaction models. Floating chat panels could remain offset after a sidebar closed and toolbar triggers reopened an already-visible panel instead of toggling it. Editor headers and the Settings search divider used separate sizing assumptions. Editing active characters, personas, presets, or lorebooks forced users out of the chat. Lorebook multi-entry editing also required a separate batch-settings form even though the intended behavior was direct propagation from the edited selected entry.

The compact preset editor additionally reused desktop badges and control sizing on mobile, allowing marker metadata to crowd the section title and actions outside the row.

What changed

  • Make Gallery, Chat Summary, and Chat Settings true toolbar toggles across chat modes, and keep floating panels synchronized with sidebar/layout changes.
  • Standardize editor header height and align the Settings search divider to the same shared header boundary.
  • Add selected-resource inline editors inside Chat Settings for character/persona card fields, active lorebook entries, and roleplay preset sections/variables.
  • Load only the selected card or lorebook detail on demand; preserve card field order, keep Example Dialogue, and exclude First Message and Alternate Greetings from inline card editing.
  • Add direct edit navigation fallbacks for character, persona, and lorebook resources.
  • Show the active Chat Summary count on the roleplay toolbar action and use the configured accent treatment for summary status text.
  • Replace lorebook batch-setting/apply controls with direct propagation of safe non-text option changes across selected entries; keep names, descriptions, keys, and content unique.
  • Move destination selection into the Move/Copy confirmation flow and expand the validated bulk-update schema/storage mapping for supported entry settings.
  • Adapt the embedded preset editor for Chat Settings and mobile widths with drawer-native surfaces, blue marker-row state, compact metadata controls, overflow-safe collapsed rows, and spaced variable actions.
  • Add focused desktop/mobile Playwright coverage for panel toggles, layout anchoring, inline loading boundaries, header/search alignment, lorebook multi-edit propagation, and compact preset 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 evidence run on commit b0faa61a9ad847b63072bb54eaf9fb2585693f5b:

  • pnpm check
  • pnpm regression:prompt
  • pnpm smoke:ui — 108 passed, 56 intentional viewport skips
  • git diff --check

Manual verification notes

  • Manually verify all three chat toolbar triggers toggle closed in Conversation, Roleplay, and Game.
  • Manually verify sidebar open/close transitions keep Gallery, Chat Summary, and Chat Settings flush with the available chat edge.
  • Manually verify character, persona, lorebook, and roleplay preset inline edits autosave without changing excluded card fields or loading unrelated resources.
  • Manually verify lorebook selected-entry option propagation, Move/Copy destination selection, and text-field exclusions.
  • Manually verify editor-header/search alignment at multiple desktop text scales.
  • Manually verify compact preset sections and variables on a narrow mobile viewport in both light and dark themes.

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)

No install, update, release, or configuration behavior changes are included. No version files were changed.

UI evidence (if applicable)

  • Attach before/after screenshots or a short recording for the desktop drawer alignment and mobile compact preset editor.

Summary by CodeRabbit

  • New Features

    • Added inline editing for chat character cards, personas, prompt presets, and lorebook entries.
    • Added quick preset editing directly within Chat Settings.
    • Added expanded lorebook batch editing, including regex options and moving selected entries.
    • Summary panels now show enabled-item counts.
  • Bug Fixes

    • Improved chat toolbar panel toggling, focus handling, drawer behavior, and responsive positioning.
    • Refined editor layouts across desktop, mobile, and text scaling.
    • Improved lorebook batch-update accuracy and validation.
    • Added accessibility labels for expanded text controls.

🔄 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/4035 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/24/2026 **Status:** ✅ Merged **Merged:** 7/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/4034-chat-settings-editing` --- ### 📝 Commits (2) - [`b0faa61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b0faa61a9ad847b63072bb54eaf9fb2585693f5b) feat(ui): improve chat settings editing workflows - [`d96d2dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d96d2dd4c7119d0c71456a5ecd7c8ecbde9a1396) fix(ui): address chat settings review feedback ### 📊 Changes **28 files changed** (+2975 additions, -640 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+769 -85) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+12 -10) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+33 -16) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+6 -2) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+16 -5) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+47 -5) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+310 -157) 📝 `packages/client/src/components/chat/ChatToolbarControls.tsx` (+49 -6) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+12 -2) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+3 -1) 📝 `packages/client/src/components/game/GameSurface.tsx` (+19 -6) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+246 -136) 📝 `packages/client/src/components/lorebooks/LorebookEntryRow.tsx` (+110 -51) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+17 -11) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+239 -29) 📝 `packages/client/src/components/ui/ExpandedTextarea.tsx` (+2 -0) ➕ `packages/client/src/features/chat-settings/inline-editors/InlineChatCardEditor.tsx` (+417 -0) ➕ `packages/client/src/features/chat-settings/inline-editors/InlineLorebookEntriesEditor.tsx` (+205 -0) 📝 `packages/client/src/features/chat-settings/sections/LorebooksSection.tsx` (+82 -63) _...and 8 more files_ </details> ### 📄 Description ## Linked issue Closes #4034 ## Why this change Chat Settings and adjacent editor workflows had accumulated several inconsistent interaction models. Floating chat panels could remain offset after a sidebar closed and toolbar triggers reopened an already-visible panel instead of toggling it. Editor headers and the Settings search divider used separate sizing assumptions. Editing active characters, personas, presets, or lorebooks forced users out of the chat. Lorebook multi-entry editing also required a separate batch-settings form even though the intended behavior was direct propagation from the edited selected entry. The compact preset editor additionally reused desktop badges and control sizing on mobile, allowing marker metadata to crowd the section title and actions outside the row. ## What changed - Make Gallery, Chat Summary, and Chat Settings true toolbar toggles across chat modes, and keep floating panels synchronized with sidebar/layout changes. - Standardize editor header height and align the Settings search divider to the same shared header boundary. - Add selected-resource inline editors inside Chat Settings for character/persona card fields, active lorebook entries, and roleplay preset sections/variables. - Load only the selected card or lorebook detail on demand; preserve card field order, keep Example Dialogue, and exclude First Message and Alternate Greetings from inline card editing. - Add direct edit navigation fallbacks for character, persona, and lorebook resources. - Show the active Chat Summary count on the roleplay toolbar action and use the configured accent treatment for summary status text. - Replace lorebook batch-setting/apply controls with direct propagation of safe non-text option changes across selected entries; keep names, descriptions, keys, and content unique. - Move destination selection into the Move/Copy confirmation flow and expand the validated bulk-update schema/storage mapping for supported entry settings. - Adapt the embedded preset editor for Chat Settings and mobile widths with drawer-native surfaces, blue marker-row state, compact metadata controls, overflow-safe collapsed rows, and spaced variable actions. - Add focused desktop/mobile Playwright coverage for panel toggles, layout anchoring, inline loading boundaries, header/search alignment, lorebook multi-edit propagation, and compact preset behavior. ## Validation <!-- Checkboxes intentionally remain unchecked for human confirmation. --> - [ ] `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 evidence run on commit `b0faa61a9ad847b63072bb54eaf9fb2585693f5b`: - `pnpm check` - `pnpm regression:prompt` - `pnpm smoke:ui` — 108 passed, 56 intentional viewport skips - `git diff --check` ### Manual verification notes - Manually verify all three chat toolbar triggers toggle closed in Conversation, Roleplay, and Game. - Manually verify sidebar open/close transitions keep Gallery, Chat Summary, and Chat Settings flush with the available chat edge. - Manually verify character, persona, lorebook, and roleplay preset inline edits autosave without changing excluded card fields or loading unrelated resources. - Manually verify lorebook selected-entry option propagation, Move/Copy destination selection, and text-field exclusions. - Manually verify editor-header/search alignment at multiple desktop text scales. - Manually verify compact preset sections and variables on a narrow mobile viewport in both light and dark themes. ## 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) No install, update, release, or configuration behavior changes are included. No version files were changed. ## UI evidence (if applicable) - [ ] Attach before/after screenshots or a short recording for the desktop drawer alignment and mobile compact preset editor. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added inline editing for chat character cards, personas, prompt presets, and lorebook entries. - Added quick preset editing directly within Chat Settings. - Added expanded lorebook batch editing, including regex options and moving selected entries. - Summary panels now show enabled-item counts. - **Bug Fixes** - Improved chat toolbar panel toggling, focus handling, drawer behavior, and responsive positioning. - Refined editor layouts across desktop, mobile, and text scaling. - Improved lorebook batch-update accuracy and validation. - Added accessibility labels for expanded text controls. <!-- 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:14 +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#6212
No description provided.