[PR #8811] [MERGED] feat(client): drag a Model onto another Account card to move it #8822

Closed
opened 2026-11-07 17:39:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8811
Author: @Gunterlie
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @Gunterlie

Base: connection-qol ← Head: qol/drag-into-accounts


📝 Commits (1)

  • 2613433 feat(client): drop a Model on another Connection card to move it

📊 Changes

3 files changed (+90 additions, -3 deletions)

View changed files

📝 packages/client/src/components/connections/ConnectionGroup.tsx (+81 -2)
📝 packages/client/src/components/connections/MoveConnectionDialog.tsx (+4 -1)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+5 -0)

📄 Description

Why

Moving a Model to another Account folder in the Connections side panel took the ⋯ menu and a dialog. Users asked to drag and drop it instead (Discord feedback).

What changed

  • Connection cards accept a dragged Model row (the existing desktop drag that also drops on a chat). Targets come only from moveTargetsFor.
  • A same-service card moves the Model at once. Another service opens the Move dialog on step 2 with that card chosen (initialTarget).
  • While dragging, valid cards get a faint ring; the card under the pointer firms up. Other cards stay as they are. Chat drops are untouched: card handlers only call preventDefault on valid targets and never stop propagation.
  • No new dependency (no dnd-kit: it would fight the row's native drag to chats).

Not included

  • Touch and bulk drag in select mode: the row drag is desktop-only today. Phone, keyboard and screen-reader users keep row ⋯ → "Move to connection…", which is the accessible equivalent.

Manual verification needed

  • Manually verify dragging a Model onto a same-service card moves it
  • Manually verify dragging onto another service opens the dialog on step 2
  • Manually verify dragging a Model onto a chat still assigns it
  • Manually verify invalid cards show no highlight and refuse the drop
    No linked issue yet; one should be opened.

🔄 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/8811 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/4/2026 **Status:** ✅ Merged **Merged:** 11/4/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `connection-qol` ← **Head:** `qol/drag-into-accounts` --- ### 📝 Commits (1) - [`2613433`](https://github.com/Pasta-Devs/Marinara-Engine/commit/26134339c9034e01516573b71c10a7b87e46be7e) feat(client): drop a Model on another Connection card to move it ### 📊 Changes **3 files changed** (+90 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/ConnectionGroup.tsx` (+81 -2) 📝 `packages/client/src/components/connections/MoveConnectionDialog.tsx` (+4 -1) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+5 -0) </details> ### 📄 Description ## Why Moving a Model to another Account folder in the Connections side panel took the ⋯ menu and a dialog. Users asked to drag and drop it instead (Discord feedback). ## What changed - Connection cards accept a dragged Model row (the existing desktop drag that also drops on a chat). Targets come only from `moveTargetsFor`. - A same-service card moves the Model at once. Another service opens the Move dialog on step 2 with that card chosen (`initialTarget`). - While dragging, valid cards get a faint ring; the card under the pointer firms up. Other cards stay as they are. Chat drops are untouched: card handlers only call `preventDefault` on valid targets and never stop propagation. - No new dependency (no dnd-kit: it would fight the row's native drag to chats). ## Not included - Touch and bulk drag in select mode: the row drag is desktop-only today. Phone, keyboard and screen-reader users keep row ⋯ → "Move to connection…", which is the accessible equivalent. ## Manual verification needed - [ ] Manually verify dragging a Model onto a same-service card moves it - [ ] Manually verify dragging onto another service opens the dialog on step 2 - [ ] Manually verify dragging a Model onto a chat still assigns it - [ ] Manually verify invalid cards show no highlight and refuse the drop No linked issue yet; one should be opened. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:58 +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#8822
No description provided.