[PR #4091] [MERGED] Fix chat settings and chroma UI consistency #6229

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

📋 Pull Request Information

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

Base: staging ← Head: agent/chat-settings-and-chroma-ui-fixes


📝 Commits (2)

  • 3cff0ed fix chat settings and chroma UI consistency
  • fde64db address CodeRabbit review

📊 Changes

18 files changed (+763 additions, -79 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+559 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+3 -4)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+8 -2)
📝 packages/client/src/components/chat/ChatMessage.tsx (+51 -2)
📝 packages/client/src/components/chat/ChatRoleplayPanels.tsx (+9 -41)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+56 -18)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+1 -1)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+2 -1)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+4 -2)
📝 packages/client/src/components/ui/AppDialogRenderer.tsx (+4 -4)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+3 -0)
📝 packages/client/src/components/ui/SelectionActionBar.tsx (+6 -1)
📝 packages/client/src/stores/dialog.store.ts (+1 -1)
📝 packages/client/src/styles/globals.css (+5 -0)
📝 packages/server/src/routes/generate.routes.ts (+12 -1)
📝 packages/server/src/routes/generate/dry-run-route.ts (+32 -1)
📝 packages/server/src/services/prompt/assembler.ts (+6 -0)

📄 Description

Why

Several related chat and library paths bypassed Marinara Engine's shared chroma, dialog, and macro-editor contracts. That left greetings visually inconsistent and non-functional, destructive actions using hard-coded red, character favorites using hard-coded yellow, Author's Notes without the shared editing affordances, and raw connection failures using hard-coded pink.

This is a follow-up to #4072 and the July 25 issue sweep in #4077. It completes the maintainer-requested UI consistency and regression work without reopening the already-resolved issue.

What changed

  • Make greeting selection add the chosen first message to an existing Roleplay chat and render greeting previews with the character narration/dialogue colors.
  • Remove the greeting chooser icon and replace hard-coded pink/error text with chroma-aware styling.
  • Move Author's Notes expansion and macro guidance into the textarea control, and pass the complete chat/preset macro context through live generation and dry-run prompt assembly.
  • Apply the shared accent button treatment to destructive confirmation actions, including bulk chat deletion.
  • Apply the configured accent color to character favorites instead of hard-coded yellow.
  • Add focused browser regressions for greetings, Author's Notes, connection errors, favorites, and destructive actions.

Impact and root cause

The affected views had accumulated one-off colors and action implementations instead of using the shared UI primitives. Greeting selection also updated character membership without committing the selected greeting message. The patch routes those behaviors through the established chroma, dialog, roleplay-message, and macro utilities.

Validation

  • pnpm check
  • Focused Playwright regressions in e2e/core-flows.e2e.ts
  • git diff --check

pnpm check passes with the existing NoodleHome.tsx exhaustive-deps warning and no errors.

Manual verification

  • Manually verify adding a character with alternate greetings to a wizard-skipped Roleplay chat.
  • Manually verify Author's Notes expansion, macro guidance, and live/dry-run macro expansion.
  • Manually verify delete confirmations and bulk chat deletion under a custom accent color.
  • Manually verify character favorite stars and raw connection errors under a custom accent color.

Summary by CodeRabbit

  • New Features

    • Added greeting previews with character-specific dialogue styling and a more robust first-message confirmation flow.
    • Introduced accent tone support for dialogs and delete actions, plus accessible labeling for macro text areas.
    • Enhanced prompt generation to include author notes and assembled macro variables/agent data.
  • Style

    • Updated favorites, dialog actions, bulk-delete tone, and connection error styling to consistently use configured accent/chroma.
  • Bug Fixes

    • Prevented author-notes dismissal during macro modal interactions; improved greeting confirmation guarding and macro styling sanitization.
  • Tests

    • Added desktop-only e2e coverage for greeting selection, accent/chroma consistency, confirmations, favorites, and error notifications.

🔄 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/4091 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/25/2026 **Status:** ✅ Merged **Merged:** 7/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/chat-settings-and-chroma-ui-fixes` --- ### 📝 Commits (2) - [`3cff0ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3cff0eddf358c223744dd721898428e3d35850df) fix chat settings and chroma UI consistency - [`fde64db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fde64db328f256471181768eef684a2ac0a13a4f) address CodeRabbit review ### 📊 Changes **18 files changed** (+763 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+559 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+3 -4) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+8 -2) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+51 -2) 📝 `packages/client/src/components/chat/ChatRoleplayPanels.tsx` (+9 -41) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+56 -18) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+1 -1) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+2 -1) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+4 -2) 📝 `packages/client/src/components/ui/AppDialogRenderer.tsx` (+4 -4) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+3 -0) 📝 `packages/client/src/components/ui/SelectionActionBar.tsx` (+6 -1) 📝 `packages/client/src/stores/dialog.store.ts` (+1 -1) 📝 `packages/client/src/styles/globals.css` (+5 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+12 -1) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+32 -1) 📝 `packages/server/src/services/prompt/assembler.ts` (+6 -0) </details> ### 📄 Description ## Why Several related chat and library paths bypassed Marinara Engine's shared chroma, dialog, and macro-editor contracts. That left greetings visually inconsistent and non-functional, destructive actions using hard-coded red, character favorites using hard-coded yellow, Author's Notes without the shared editing affordances, and raw connection failures using hard-coded pink. This is a follow-up to #4072 and the July 25 issue sweep in #4077. It completes the maintainer-requested UI consistency and regression work without reopening the already-resolved issue. ## What changed - Make greeting selection add the chosen first message to an existing Roleplay chat and render greeting previews with the character narration/dialogue colors. - Remove the greeting chooser icon and replace hard-coded pink/error text with chroma-aware styling. - Move Author's Notes expansion and macro guidance into the textarea control, and pass the complete chat/preset macro context through live generation and dry-run prompt assembly. - Apply the shared accent button treatment to destructive confirmation actions, including bulk chat deletion. - Apply the configured accent color to character favorites instead of hard-coded yellow. - Add focused browser regressions for greetings, Author's Notes, connection errors, favorites, and destructive actions. ## Impact and root cause The affected views had accumulated one-off colors and action implementations instead of using the shared UI primitives. Greeting selection also updated character membership without committing the selected greeting message. The patch routes those behaviors through the established chroma, dialog, roleplay-message, and macro utilities. ## Validation - `pnpm check` - Focused Playwright regressions in `e2e/core-flows.e2e.ts` - `git diff --check` `pnpm check` passes with the existing `NoodleHome.tsx` exhaustive-deps warning and no errors. ## Manual verification - [ ] Manually verify adding a character with alternate greetings to a wizard-skipped Roleplay chat. - [ ] Manually verify Author's Notes expansion, macro guidance, and live/dry-run macro expansion. - [ ] Manually verify delete confirmations and bulk chat deletion under a custom accent color. - [ ] Manually verify character favorite stars and raw connection errors under a custom accent color. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added greeting previews with character-specific dialogue styling and a more robust first-message confirmation flow. * Introduced accent tone support for dialogs and delete actions, plus accessible labeling for macro text areas. * Enhanced prompt generation to include author notes and assembled macro variables/agent data. * **Style** * Updated favorites, dialog actions, bulk-delete tone, and connection error styling to consistently use configured accent/chroma. * **Bug Fixes** * Prevented author-notes dismissal during macro modal interactions; improved greeting confirmation guarding and macro styling sanitization. * **Tests** * Added desktop-only e2e coverage for greeting selection, accent/chroma consistency, confirmations, favorites, and error notifications. <!-- 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:23 +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#6229
No description provided.