[PR #4134] [MERGED] Polish Chat Settings profiles and deletion UX #6245

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

📋 Pull Request Information

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

Base: staging ← Head: agent/persistent-preset-named-delete


📝 Commits (3)

  • d971d0f Polish Chat Settings profiles and deletion UX
  • ea48843 Address CodeRabbit profile review
  • dd2a521 Harden settings profile activation races

📊 Changes

34 files changed (+701 additions, -332 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/chats/chat-settings.md (+14 -14)
📝 docs/chats/group-chats.md (+2 -2)
📝 docs/chats/managing-chats.md (+1 -1)
➕ docs/chats/settings-profiles.md (+82 -0)
📝 docs/development/frontend.md (+2 -2)
➖ docs/prompts/chat-settings-presets.md (+0 -86)
📝 docs/prompts/presets.md (+1 -1)
📝 e2e/core-flows.e2e.ts (+198 -2)
📝 packages/client/src/components/agents/AgentEditor.tsx (+3 -1)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+3 -1)
📝 packages/client/src/components/agents/ToolEditor.tsx (+3 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+15 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+37 -34)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+12 -11)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+4 -2)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+16 -5)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+4 -2)
📝 packages/client/src/components/lorebooks/LorebookEntryRow.tsx (+4 -2)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+3 -1)

...and 14 more files

📄 Description

Linked issue

No linked issue. This is a maintainer-requested UI/UX follow-up to #4125.

Why this change

Several related usability details remained inconsistent after the preceding UI polish work. Foldered character actions lost controls and folder toggles lagged; older editor buttons and destructive accents did not follow the current theme; Roleplay input resizing introduced typing latency; Chat Settings lacked persistent prompt-preset editing and named deletion confirmations; and reusable Chat Settings configurations shared the word "preset" with prompt presets.

This follow-up makes those paths responsive, consistently themed, easier to understand, and clearer to review. It also reserves Preset for prompt presets and renames reusable Chat Settings configurations to Profiles.

What changed

  • Add localized Lorebook batch-edit guidance and automatic-backup location help.
  • Keep compact character folder rows fully actionable, including duplicate, delete, chat, and remove-from-folder controls, and remove folder open/close lag.
  • Correct the Assistant Prefill <thinking> example.
  • Explain custom Advanced Parameters, enlarge edit/delete icons, and place added parameters after built-in controls.
  • Bring Character, Persona, Lorebook, Agent, Tool, Regex, Preset, and Connection editor actions onto the current themed controls.
  • Use the configured accent for Chat Settings character/persona removal controls and the connection Discard action.
  • Reduce Roleplay-only composer input latency.
  • Make the inline prompt-preset editor a persistent Edit preset disclosure.
  • Include item names in destructive confirmation dialogs.
  • Rename reusable Chat Settings configurations to Profiles / Custom settings profile in Chat Settings, Roleplay setup, localization, import/export, and documentation.
  • Export new files as .marinara-settings-profile.json while preserving import compatibility with legacy marinara_chat_preset files.
  • Add desktop/mobile regression coverage for the affected Chat Settings, deletion, and transfer paths.

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 localization:check
  • pnpm regression:docs
  • Focused desktop and mobile Playwright regressions for the Roleplay setup Profile path, Chat Settings Profile controls, persistent prompt-preset disclosure, compact mobile editor, named deletion, and current/legacy profile transfer
  • node scripts/docs-i18n/build-manifest.mjs <es-pack>
  • node scripts/docs-i18n/validate-pack.mjs <es-pack>
  • git diff --check on both Engine and docs-i18n worktrees

pnpm check retains the pre-existing NoodleHome.tsx exhaustive-deps warning and reports no errors.

Manual verification notes

  • Manual screenshots are not attached. The affected desktop and mobile browser paths are covered by focused 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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

The English Settings Profiles guide and related references are updated in this PR. A validated Spanish mirror is prepared on the companion agent/settings-profiles-docs-i18n branch for docs-i18n.

UI evidence

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

Summary by CodeRabbit

  • New Features
    • Chat Settings Presets have been renamed to Settings Profiles, with updated management, default selection, and apply flows.
    • Settings Profile exports now use .marinara-settings-profile.json; older exports still import successfully.
    • Prompt Preset quick editing is now collapsible, and its open/closed state is remembered.
    • Delete confirmations now name the item being removed.
  • Bug Fixes
    • Improved profile activation/default behavior to avoid conflicts when multiple profiles are active.
  • Documentation
    • Added and updated Settings Profiles documentation across chat guides; removed the old Presets documentation page.

🔄 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/4134 **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/persistent-preset-named-delete` --- ### 📝 Commits (3) - [`d971d0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d971d0f75c133cb6cc2315956fc17045e9c042c9) Polish Chat Settings profiles and deletion UX - [`ea48843`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ea48843904608e48bcab2aedf45eb2cd4ff24563) Address CodeRabbit profile review - [`dd2a521`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dd2a521b7a2b2e8708df5a0b2edfbf78fe696fb6) Harden settings profile activation races ### 📊 Changes **34 files changed** (+701 additions, -332 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/chats/chat-settings.md` (+14 -14) 📝 `docs/chats/group-chats.md` (+2 -2) 📝 `docs/chats/managing-chats.md` (+1 -1) ➕ `docs/chats/settings-profiles.md` (+82 -0) 📝 `docs/development/frontend.md` (+2 -2) ➖ `docs/prompts/chat-settings-presets.md` (+0 -86) 📝 `docs/prompts/presets.md` (+1 -1) 📝 `e2e/core-flows.e2e.ts` (+198 -2) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+3 -1) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+3 -1) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+3 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+15 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+37 -34) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+12 -11) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+4 -2) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+16 -5) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+4 -2) 📝 `packages/client/src/components/lorebooks/LorebookEntryRow.tsx` (+4 -2) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+3 -1) _...and 14 more files_ </details> ### 📄 Description ## Linked issue No linked issue. This is a maintainer-requested UI/UX follow-up to #4125. ## Why this change Several related usability details remained inconsistent after the preceding UI polish work. Foldered character actions lost controls and folder toggles lagged; older editor buttons and destructive accents did not follow the current theme; Roleplay input resizing introduced typing latency; Chat Settings lacked persistent prompt-preset editing and named deletion confirmations; and reusable Chat Settings configurations shared the word "preset" with prompt presets. This follow-up makes those paths responsive, consistently themed, easier to understand, and clearer to review. It also reserves **Preset** for prompt presets and renames reusable Chat Settings configurations to **Profiles**. ## What changed - Add localized Lorebook batch-edit guidance and automatic-backup location help. - Keep compact character folder rows fully actionable, including duplicate, delete, chat, and remove-from-folder controls, and remove folder open/close lag. - Correct the Assistant Prefill `<thinking>` example. - Explain custom Advanced Parameters, enlarge edit/delete icons, and place added parameters after built-in controls. - Bring Character, Persona, Lorebook, Agent, Tool, Regex, Preset, and Connection editor actions onto the current themed controls. - Use the configured accent for Chat Settings character/persona removal controls and the connection Discard action. - Reduce Roleplay-only composer input latency. - Make the inline prompt-preset editor a persistent **Edit preset** disclosure. - Include item names in destructive confirmation dialogs. - Rename reusable Chat Settings configurations to **Profiles** / **Custom settings profile** in Chat Settings, Roleplay setup, localization, import/export, and documentation. - Export new files as `.marinara-settings-profile.json` while preserving import compatibility with legacy `marinara_chat_preset` files. - Add desktop/mobile regression coverage for the affected Chat Settings, deletion, and transfer paths. ## 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 localization:check` - `pnpm regression:docs` - Focused desktop and mobile Playwright regressions for the Roleplay setup Profile path, Chat Settings Profile controls, persistent prompt-preset disclosure, compact mobile editor, named deletion, and current/legacy profile transfer - `node scripts/docs-i18n/build-manifest.mjs <es-pack>` - `node scripts/docs-i18n/validate-pack.mjs <es-pack>` - `git diff --check` on both Engine and `docs-i18n` worktrees `pnpm check` retains the pre-existing `NoodleHome.tsx` exhaustive-deps warning and reports no errors. ### Manual verification notes - Manual screenshots are not attached. The affected desktop and mobile browser paths are covered by focused 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) The English Settings Profiles guide and related references are updated in this PR. A validated Spanish mirror is prepared on the companion `agent/settings-profiles-docs-i18n` branch for `docs-i18n`. ## 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** * Chat Settings Presets have been renamed to **Settings Profiles**, with updated management, default selection, and apply flows. * Settings Profile exports now use **.marinara-settings-profile.json**; older exports still import successfully. * Prompt Preset quick editing is now **collapsible**, and its open/closed state is remembered. * Delete confirmations now **name** the item being removed. * **Bug Fixes** * Improved profile activation/default behavior to avoid conflicts when multiple profiles are active. * **Documentation** * Added and updated Settings Profiles documentation across chat guides; removed the old Presets documentation page. <!-- 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:33 +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#6245
No description provided.