[PR #105] [MERGED] Refactor setting panel UI action buttons and add create modals for personas/connections #4468

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/105
Author: @coxde
Created: 4/19/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @SpicyMarinara

Base: main ← Head: fix/setting-ui


📝 Commits (7)

  • 76b63ad fix(ui): Replace Download icon with Check icon for Select buttons
  • 3a9248b refactor(ui): Unify sidebar panel action button styles
  • 16e0196 refactor(ui): Unify row action button styles in panels
  • 40644cc feat(client): add create modals for persona and connection
  • 3acfe25 fix(ui): Adjust hover styles for panel action buttons
  • b72c8f9 fix(ui): Adjust panel action button spacing and icon sizes
  • 2f8228c Merge branch 'main' into fix/setting-ui

📊 Changes

10 files changed (+293 additions, -108 deletions)

View changed files

📝 CLAUDE.md (+5 -0)
📝 packages/client/.instructions.md (+14 -0)
📝 packages/client/src/components/layout/ModalRenderer.tsx (+12 -0)
➕ packages/client/src/components/modals/CreateConnectionModal.tsx (+95 -0)
➕ packages/client/src/components/modals/CreatePersonaModal.tsx (+94 -0)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+21 -21)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+15 -27)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+15 -24)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+18 -32)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+4 -4)

📄 Description

This pull request introduces two new modals for creating connections and personas, improves the UI for action buttons in the Characters panel, and updates documentation to clarify frontend contribution guidelines. The changes enhance both the developer experience and the usability of the client UI, especially around action button consistency and modal-driven creation flows.

New Features:

  • Added CreateConnectionModal and CreatePersonaModal components, allowing users to create new connections and personas via dedicated modals. These are integrated into the ModalRenderer for global access. [1] [2] [3] [4]

UI/UX Improvements (Characters Panel):

  • Refactored action button containers to use an absolutely positioned, consistently styled pill overlay, improving visibility and interaction on both desktop (hover to reveal) and mobile (always visible). Button icon sizes and feedback interactions are now consistent. [1] [2] [3]
  • Updated action button color schemes: destructive actions (delete) always use the destructive color, while neutral actions use muted foregrounds; all action buttons have active:scale-90 for press feedback.
  • Slightly increased padding and icon sizes for action buttons for better touch and visual clarity. [1] [2]
  • Minor UI tweaks for empty state and group headers for visual consistency. [1] [2]

Documentation and Developer Guidance:

  • Added a "Frontend Changes" section to CLAUDE.md, directing contributors to read packages/client/.instructions.md as the authoritative source for client architecture, patterns, and conventions.
  • Documented the new action button overlay pattern and requirements in .instructions.md for future frontend contributions.

Codebase Cleanup:

  • Removed unused imports (e.g., useCreateConnection, Loader2) from ConnectionsPanel.tsx for clarity and maintainability.

Close #104


🔄 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/105 **Author:** [@coxde](https://github.com/coxde) **Created:** 4/19/2026 **Status:** ✅ Merged **Merged:** 4/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/setting-ui` --- ### 📝 Commits (7) - [`76b63ad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/76b63ad7e6f0b02c6f7d7accf0286bb46a0ab900) fix(ui): Replace Download icon with Check icon for Select buttons - [`3a9248b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3a9248b81054f785280ea1d857024f7b5b827d56) refactor(ui): Unify sidebar panel action button styles - [`16e0196`](https://github.com/Pasta-Devs/Marinara-Engine/commit/16e01962122f24a758e38054d7f9713649bd2c38) refactor(ui): Unify row action button styles in panels - [`40644cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/40644cc48970160dce408a72b763e92a2797eaea) feat(client): add create modals for persona and connection - [`3acfe25`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3acfe25585983b70874fef6edca102df9eb215cd) fix(ui): Adjust hover styles for panel action buttons - [`b72c8f9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b72c8f9eaf40c6d921625ba40df2a1ab7ece9284) fix(ui): Adjust panel action button spacing and icon sizes - [`2f8228c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2f8228c809f54ad84713bf0386224e69d749ec63) Merge branch 'main' into fix/setting-ui ### 📊 Changes **10 files changed** (+293 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `CLAUDE.md` (+5 -0) 📝 `packages/client/.instructions.md` (+14 -0) 📝 `packages/client/src/components/layout/ModalRenderer.tsx` (+12 -0) ➕ `packages/client/src/components/modals/CreateConnectionModal.tsx` (+95 -0) ➕ `packages/client/src/components/modals/CreatePersonaModal.tsx` (+94 -0) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+21 -21) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+15 -27) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+15 -24) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+18 -32) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+4 -4) </details> ### 📄 Description This pull request introduces two new modals for creating connections and personas, improves the UI for action buttons in the Characters panel, and updates documentation to clarify frontend contribution guidelines. The changes enhance both the developer experience and the usability of the client UI, especially around action button consistency and modal-driven creation flows. **New Features:** * Added `CreateConnectionModal` and `CreatePersonaModal` components, allowing users to create new connections and personas via dedicated modals. These are integrated into the `ModalRenderer` for global access. [[1]](diffhunk://#diff-720ce3318b3ee786b7a14098a5529f2e6d0c8c70c959d6b0b26b2ed67cd40304R1-R95) [[2]](diffhunk://#diff-7a892ed6a01af6b3fb1c395a5d06477ad198ff09e9f7524536ddabf487d9c2ffR1-R94) [[3]](diffhunk://#diff-610e7b48469a996081ada7e29e320b124cb4c0ad0f47474110606380c48dfe49R44-R49) [[4]](diffhunk://#diff-610e7b48469a996081ada7e29e320b124cb4c0ad0f47474110606380c48dfe49R93-R98) **UI/UX Improvements (Characters Panel):** * Refactored action button containers to use an absolutely positioned, consistently styled pill overlay, improving visibility and interaction on both desktop (hover to reveal) and mobile (always visible). Button icon sizes and feedback interactions are now consistent. [[1]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L687-R687) [[2]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L715-R715) [[3]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L1024-R1035) * Updated action button color schemes: destructive actions (delete) always use the destructive color, while neutral actions use muted foregrounds; all action buttons have `active:scale-90` for press feedback. * Slightly increased padding and icon sizes for action buttons for better touch and visual clarity. [[1]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L536-R556) [[2]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L568-R575) * Minor UI tweaks for empty state and group headers for visual consistency. [[1]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L872-R872) [[2]](diffhunk://#diff-87b2a342ba8d3140a93bbf2d9b007c097e1c9f17fd4dd6aaadd18994d17e7e84L918-R918) **Documentation and Developer Guidance:** * Added a "Frontend Changes" section to `CLAUDE.md`, directing contributors to read `packages/client/.instructions.md` as the authoritative source for client architecture, patterns, and conventions. * Documented the new action button overlay pattern and requirements in `.instructions.md` for future frontend contributions. **Codebase Cleanup:** * Removed unused imports (e.g., `useCreateConnection`, `Loader2`) from `ConnectionsPanel.tsx` for clarity and maintainability. Close #104 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:52 +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#4468
No description provided.