[PR #341] [CLOSED] feat(chat): clickable character status with group chat support #4567

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/341
Author: @Gunterlie
Created: 5/1/2026
Status: ❌ Closed

Base: main ← Head: feat/clickable-character-status


📝 Commits (1)

  • a4788bf feat(chat): clickable character status with group chat support

📊 Changes

7 files changed (+281 additions, -47 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+1 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+4 -1)
📝 packages/client/src/components/chat/ConversationView.tsx (+188 -32)
📝 packages/client/src/components/chat/chat-area.types.ts (+1 -0)
📝 packages/server/src/routes/conversation.routes.ts (+67 -3)
📝 packages/server/src/routes/generate.routes.ts (+16 -9)
📝 packages/server/src/services/conversation/autonomous.service.ts (+4 -2)

📄 Description

What & Why

Characters in conversation mode have a schedule-based availability system (online / away / busy / offline), but there was no way to manually override a character's status from the chat view itself — you had to dig through settings. This PR surfaces that control directly in the chat header and extends it to group chats.

Changes

Single-character chats

  • Clicking the character name/activity label opens a compact popover
  • Popover lets you set status (Online / Away / Busy / Offline) and a custom activity label (e.g. "In a meeting", "Sleeping")
  • Unblocking an offline character (setting them back to online) immediately triggers a response if one was pending
  • "Edit schedule" link inside the popover jumps straight to the schedule section in settings

Group chats

  • Each stacked avatar in the header is now individually clickable
  • Clicking an avatar opens the same status/activity popover for that specific character
  • Only one popover can be open at a time; clicking outside closes it

Polish

  • Popover buttons use lucide-react icons (Save, X, CalendarClock, Loader2) consistent with the rest of the UI
  • All colors use CSS custom properties (--foreground, --card, --border, --primary, etc.) so the popover respects user themes
  • No backend changes needed — the existing /conversation/status-override and schedule endpoints already support per-character operations for both chat types

Test Plan

  • Manually verify: open a single-character chat, click the character name, change status and activity, save — confirm dot color and activity label update immediately
  • Manually verify: set a character offline, then set them back to online — confirm a response is triggered
  • Manually verify: open a group chat, click each avatar individually — confirm the correct character's popover opens for each
  • Manually verify: click outside an open popover — confirm it closes without saving
  • Manually verify: press Enter in the activity field to save, press Escape to cancel
  • Manually verify: "Edit schedule" link opens settings and scrolls to the schedule section
  • Manually verify: switch UI theme — confirm popover colors follow the theme

Note: No linked issue exists yet — one should be opened before merging. See CONTRIBUTING.md § Before You Open a Pull Request.

Summary by CodeRabbit

  • New Features
    • Character status and activity can now be edited directly from conversation headers via an interactive popover interface. Changes persist and influence character behavior within conversations.

🔄 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/341 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 5/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/clickable-character-status` --- ### 📝 Commits (1) - [`a4788bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a4788bf506287e889b88deb2fa50765948690180) feat(chat): clickable character status with group chat support ### 📊 Changes **7 files changed** (+281 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+1 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+4 -1) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+188 -32) 📝 `packages/client/src/components/chat/chat-area.types.ts` (+1 -0) 📝 `packages/server/src/routes/conversation.routes.ts` (+67 -3) 📝 `packages/server/src/routes/generate.routes.ts` (+16 -9) 📝 `packages/server/src/services/conversation/autonomous.service.ts` (+4 -2) </details> ### 📄 Description ## What & Why Characters in conversation mode have a schedule-based availability system (online / away / busy / offline), but there was no way to manually override a character's status from the chat view itself — you had to dig through settings. This PR surfaces that control directly in the chat header and extends it to group chats. ## Changes **Single-character chats** - Clicking the character name/activity label opens a compact popover - Popover lets you set status (Online / Away / Busy / Offline) and a custom activity label (e.g. "In a meeting", "Sleeping") - Unblocking an offline character (setting them back to online) immediately triggers a response if one was pending - "Edit schedule" link inside the popover jumps straight to the schedule section in settings **Group chats** - Each stacked avatar in the header is now individually clickable - Clicking an avatar opens the same status/activity popover for that specific character - Only one popover can be open at a time; clicking outside closes it **Polish** - Popover buttons use `lucide-react` icons (`Save`, `X`, `CalendarClock`, `Loader2`) consistent with the rest of the UI - All colors use CSS custom properties (`--foreground`, `--card`, `--border`, `--primary`, etc.) so the popover respects user themes - No backend changes needed — the existing `/conversation/status-override` and schedule endpoints already support per-character operations for both chat types ## Test Plan - [ ] Manually verify: open a single-character chat, click the character name, change status and activity, save — confirm dot color and activity label update immediately - [ ] Manually verify: set a character offline, then set them back to online — confirm a response is triggered - [ ] Manually verify: open a group chat, click each avatar individually — confirm the correct character's popover opens for each - [ ] Manually verify: click outside an open popover — confirm it closes without saving - [ ] Manually verify: press Enter in the activity field to save, press Escape to cancel - [ ] Manually verify: "Edit schedule" link opens settings and scrolls to the schedule section - [ ] Manually verify: switch UI theme — confirm popover colors follow the theme > **Note:** No linked issue exists yet — one should be opened before merging. See `CONTRIBUTING.md § Before You Open a Pull Request`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Character status and activity can now be edited directly from conversation headers via an interactive popover interface. Changes persist and influence character behavior within conversations. <!-- 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-22 04:08:48 +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#4567
No description provided.