mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4403] [MERGED] feat: polish chat resource drop targets and offer greeting/lorebook options on character drop #6363
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6363
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4403
Author: @Gunterlie
Created: 8/1/2026
Status: ✅ Merged
Merged: 8/1/2026
Merged by: @SpicyMarinara
Base:
staging← Head:drag-me-baby-one-more-time📝 Commits (10+)
2f88753feat: drag resources into active chats7574747feat: support chat resource replacements95044c7feat: drag backgrounds into active chats3b6d980feat: add active chat resource actions0916236fix: route chat resource assignment through existing setup flows46bd96ffeat: explain blocked chat resource dropsc66c7b1feat: offer greeting and lorebook options after character drop782983fEnhance chat resource drop overlay with accent colors and hints0c3eb18Validate agent mode support in chat resource drops6bc7a03Merge remote-tracking branch 'origin/staging' into drag-me-baby-one-more-time📊 Changes
28 files changed (+2474 additions, -87 deletions)
View changed files
➕
docs/development/chat-resource-drag-drop-plan.md(+475 -0)📝
e2e/core-flows.e2e.ts(+157 -0)📝
package.json(+2 -1)📝
packages/client/src/components/chat/ChatArea.tsx(+6 -0)➕
packages/client/src/components/chat/ChatCharacterDropOptions.tsx(+222 -0)📝
packages/client/src/components/chat/ChatInput.tsx(+4 -0)➕
packages/client/src/components/chat/ChatResourceActionButton.tsx(+36 -0)➕
packages/client/src/components/chat/ChatResourceDropOverlay.tsx(+668 -0)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+1 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+67 -41)📝
packages/client/src/components/chat/ConversationInput.tsx(+4 -0)📝
packages/client/src/components/chat/ConversationView.tsx(+5 -1)📝
packages/client/src/components/game/GameInput.tsx(+1 -0)📝
packages/client/src/components/game/GameSurface.tsx(+5 -1)📝
packages/client/src/components/panels/AgentsPanel.tsx(+57 -7)📝
packages/client/src/components/panels/CharactersPanel.tsx(+41 -7)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+25 -3)📝
packages/client/src/components/panels/LorebooksPanel.tsx(+20 -3)📝
packages/client/src/components/panels/PersonasPanel.tsx(+45 -16)📝
packages/client/src/components/panels/PresetsPanel.tsx(+17 -3)...and 8 more files
📄 Description
Linked issue
Closes #4405
Why this change
What changed
ChatResourceDropOverlay.tsx,globals.css): larger zone and card, 4px dotted border, soft radial tint and inner glow, gradient icon tile. The previous animated dashed border ("marching lines") is gone; only a short fade/scale-in remains, and it is disabled underprefers-reduced-motion..mari-panel-gradient--*tokens, so a dragged lorebook reads amber, a persona emerald, a preset purple, a connection sky, an agent violet, a character pink/rose. Added a--backgroundsvariant (indigo) since backgrounds had no panel entry. Blocked drops override to the destructive colour.Records.ChatCharacterDropOptions.tsx): after a single character is dropped, a modal offers to post their first message (with the greeting picker, remaining greetings stored as silent swipes) and lists the character's linked lorebooks — unchecking one writes it to the chat'sexcludedLorebookIdsmetadata, which the server already honours. Skipped in conversation mode for the greeting half, self-closes when the character has neither greetings nor lorebooks, and is dismissed if the add is undone.packages/client/src/lib/character-greetings.tsand covered byscripts/regressions/chat-resource-drop.regression.ts(wired intoregression:issues).origin/staging.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm check,pnpm version:check,pnpm regression:chat-resource-drop, and the focused Playwright drag/drop lane pass on the final v2.4.0 branch.pnpm smoke:uicompleted 173 tests; its only two failures are the same pre-existing character-card width assertion reproduced on the untouched PR head. The manual browser checks below remain unchecked for human verification.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No
docs/files changed, so nodocs-i18nmirroring is required. New user-facing strings were added topackages/client/src/localization/locales/en.jsononly; other locales fall back to English until translated.UI evidence (if applicable)
Screenshots of the new drop overlay (per-type colours) and the character options modal still need to be attached by a human reviewer/author.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.