[PR #8822] [MERGED] Connections quality-of-life: delete, move, bulk select, drag and starred order #8828

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

📋 Pull Request Information

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

Base: staging ← Head: connection-qol


📝 Commits (10+)

  • 684a781 Connections: shared move-target helper, Escape leaves select, name partial bulk failures
  • 7d32180 feat(client): reorder starred models in the quick picker
  • e3614ef fix(connections): delete hidden account rows
  • fb7576c style(client): format switcher body
  • 1bf8169 fix(client): list global Starred tab in star order
  • c53b93e Merge pull request #8809 from Pasta-Devs/qol/bulk-select
  • 026ca7c Merge pull request #8808 from Pasta-Devs/qol/starred-picker
  • 649b566 Merge pull request #8810 from Pasta-Devs/qol/empty-account-delete
  • 2613433 feat(client): drop a Model on another Connection card to move it
  • cf614fd Merge pull request #8811 from Pasta-Devs/qol/drag-into-accounts

📊 Changes

11 files changed (+409 additions, -58 deletions)

View changed files

📝 packages/client/src/components/connections/ConnectionAccountEditor.tsx (+10 -3)
📝 packages/client/src/components/connections/ConnectionGroup.tsx (+147 -13)
📝 packages/client/src/components/connections/ConnectionRow.tsx (+33 -17)
📝 packages/client/src/components/connections/ConnectionSwitcherBody.tsx (+70 -6)
📝 packages/client/src/components/connections/ModelRow.tsx (+1 -0)
📝 packages/client/src/components/connections/MoveConnectionDialog.tsx (+4 -1)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+73 -13)
📝 packages/client/src/hooks/use-model-star.ts (+10 -0)
📝 packages/client/src/localization/locales/en.json (+9 -0)
📝 packages/client/src/styles/globals.css (+4 -1)
📝 scripts/regressions/connection-account-delete-confirm.regression.ts (+48 -4)

📄 Description

Why

A community member (Promansis, Discord) tried the redesigned Connections tab and listed what felt off:

  • Deleting an account that looks empty says "This account still has models, delete them first".
  • Models served through a proxy (LinkAPI) cannot be put into the LinkAPI account, and there is no Move option.
  • They want to drag models into other account folders, bulk select models to move or delete, and filter or reorder starred models in the quick picker.

No issue was opened: this is a planned QoL round. Each item was built on its own sub-branch, reviewed, and merged into connection-qol with a normal merge commit.

What changed

  • Delete an empty-looking account (#8810): the panel hid the account's empty setup row and showed rows that borrow another account's key under the lender, while the server counts every row with that accountId. Delete now reads server ownership first and names every row in the confirm.
  • Move explains itself (#8812): for image/video/other non-chat models, subscription models and borrowed-key models, "Move to connection…" now shows greyed out with the reason, instead of being missing. No move rule changed.
  • Bulk select gaps (#8809): select mode already existed (card ⋮ → "Select models"). Bulk Move and Delete now continue past failures and name the failed models, Escape leaves select mode, and single and bulk Move share one rule (moveTargetsFor).
  • Drag models onto account cards (#8811, #8816): model rows drag through the same useTouchFolderDrag hook as the character sidebar (mouse and touch long-press, floating preview, all picked rows in select mode). Same-service drops move at once; another service opens the Move dialog with that account chosen. Dropping a model onto a chat keeps working.
  • Quiet buttons stay quiet in gradient accent mode (#8821): the gradient chrome rule was more specific than mari-chrome-control--quiet, so row and card ⋯ / chevron buttons showed a filled box at rest. It now skips quiet buttons; hover is unchanged.
  • Reorder starred models (#8808): the quick picker's Starred tab has "Edit order" with Move up / Move down. Order is stored in the existing pinnedModels list, so no server or data change. The picker search already filtered the Starred tab.

Validation

  • Each sub-PR passed full GitHub CI (13 checks) before it was merged into connection-qol.
  • Client tsc, eslint on touched files and pnpm localization:check ran locally per sub-PR. #8810 also ran pnpm check, its regression script, the connection-cleanup e2e and the UI smoke suite.
  • Local CodeRabbit could not authenticate on devbox; each sub-PR got a lead code review instead.
  • The maintainer tested the combined build on dev-marinara (phone); no automated screenshots were taken.

Manual verification

  • Manually verify deleting an account that shows no models works, and the confirm lists its hidden rows.
  • Manually verify an image model's ⋯ menu shows "Move to connection…" greyed out with the reason.
  • Manually verify bulk Delete/Move with one failing model: the toast names it and it stays checked.
  • Manually verify dragging a model onto another account card with a mouse (same service: moves; other service: Move dialog opens on step 2).
  • Manually verify touch long-press drag on a 390 px phone, and that scroll, tap, ⋯ and checkboxes still work.
  • Manually verify dragging a model onto a chat still works.
  • Manually verify Connections ⋯ / chevron buttons show no box at rest with the gradient accent.
  • Manually verify Starred tab "Edit order" reorders and the order survives a reload.

🔄 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/8822 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/4/2026 **Status:** ✅ Merged **Merged:** 11/4/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `connection-qol` --- ### 📝 Commits (10+) - [`684a781`](https://github.com/Pasta-Devs/Marinara-Engine/commit/684a78160628a81fecaebd9522449e89dbf04834) Connections: shared move-target helper, Escape leaves select, name partial bulk failures - [`7d32180`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7d32180d39d6767a3d48ddf7984218f667deacc6) feat(client): reorder starred models in the quick picker - [`e3614ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3614ef0465e4357b7004361493491c5f15c5175) fix(connections): delete hidden account rows - [`fb7576c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fb7576cbf4b86141b856c907b4cef2b8d1ee55f3) style(client): format switcher body - [`1bf8169`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1bf816981a9b2bff0f8fadcc85be470a3376d616) fix(client): list global Starred tab in star order - [`c53b93e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c53b93e00d47c6351fb003a3be1b8967f4d7a1b2) Merge pull request #8809 from Pasta-Devs/qol/bulk-select - [`026ca7c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/026ca7cbc878a53810aba1d0b26a994c38bd8679) Merge pull request #8808 from Pasta-Devs/qol/starred-picker - [`649b566`](https://github.com/Pasta-Devs/Marinara-Engine/commit/649b5666f736de6a230a9b0ef02aea2a9ccd4d6a) Merge pull request #8810 from Pasta-Devs/qol/empty-account-delete - [`2613433`](https://github.com/Pasta-Devs/Marinara-Engine/commit/26134339c9034e01516573b71c10a7b87e46be7e) feat(client): drop a Model on another Connection card to move it - [`cf614fd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cf614fd87310c3d901e75423c0d218f31a08955d) Merge pull request #8811 from Pasta-Devs/qol/drag-into-accounts ### 📊 Changes **11 files changed** (+409 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/ConnectionAccountEditor.tsx` (+10 -3) 📝 `packages/client/src/components/connections/ConnectionGroup.tsx` (+147 -13) 📝 `packages/client/src/components/connections/ConnectionRow.tsx` (+33 -17) 📝 `packages/client/src/components/connections/ConnectionSwitcherBody.tsx` (+70 -6) 📝 `packages/client/src/components/connections/ModelRow.tsx` (+1 -0) 📝 `packages/client/src/components/connections/MoveConnectionDialog.tsx` (+4 -1) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+73 -13) 📝 `packages/client/src/hooks/use-model-star.ts` (+10 -0) 📝 `packages/client/src/localization/locales/en.json` (+9 -0) 📝 `packages/client/src/styles/globals.css` (+4 -1) 📝 `scripts/regressions/connection-account-delete-confirm.regression.ts` (+48 -4) </details> ### 📄 Description ## Why A community member (Promansis, Discord) tried the redesigned Connections tab and listed what felt off: - Deleting an account that looks empty says "This account still has models, delete them first". - Models served through a proxy (LinkAPI) cannot be put into the LinkAPI account, and there is no Move option. - They want to drag models into other account folders, bulk select models to move or delete, and filter or reorder starred models in the quick picker. No issue was opened: this is a planned QoL round. Each item was built on its own sub-branch, reviewed, and merged into `connection-qol` with a normal merge commit. ## What changed - **Delete an empty-looking account** (#8810): the panel hid the account's empty setup row and showed rows that borrow another account's key under the lender, while the server counts every row with that `accountId`. Delete now reads server ownership first and names every row in the confirm. - **Move explains itself** (#8812): for image/video/other non-chat models, subscription models and borrowed-key models, "Move to connection…" now shows greyed out with the reason, instead of being missing. No move rule changed. - **Bulk select gaps** (#8809): select mode already existed (card ⋮ → "Select models"). Bulk Move and Delete now continue past failures and name the failed models, Escape leaves select mode, and single and bulk Move share one rule (`moveTargetsFor`). - **Drag models onto account cards** (#8811, #8816): model rows drag through the same `useTouchFolderDrag` hook as the character sidebar (mouse and touch long-press, floating preview, all picked rows in select mode). Same-service drops move at once; another service opens the Move dialog with that account chosen. Dropping a model onto a chat keeps working. - **Quiet buttons stay quiet in gradient accent mode** (#8821): the gradient chrome rule was more specific than `mari-chrome-control--quiet`, so row and card ⋯ / chevron buttons showed a filled box at rest. It now skips quiet buttons; hover is unchanged. - **Reorder starred models** (#8808): the quick picker's Starred tab has "Edit order" with Move up / Move down. Order is stored in the existing `pinnedModels` list, so no server or data change. The picker search already filtered the Starred tab. ## Validation - Each sub-PR passed full GitHub CI (13 checks) before it was merged into `connection-qol`. - Client `tsc`, eslint on touched files and `pnpm localization:check` ran locally per sub-PR. #8810 also ran `pnpm check`, its regression script, the connection-cleanup e2e and the UI smoke suite. - Local CodeRabbit could not authenticate on devbox; each sub-PR got a lead code review instead. - The maintainer tested the combined build on dev-marinara (phone); no automated screenshots were taken. ## Manual verification - [ ] Manually verify deleting an account that shows no models works, and the confirm lists its hidden rows. - [ ] Manually verify an image model's ⋯ menu shows "Move to connection…" greyed out with the reason. - [ ] Manually verify bulk Delete/Move with one failing model: the toast names it and it stays checked. - [ ] Manually verify dragging a model onto another account card with a mouse (same service: moves; other service: Move dialog opens on step 2). - [ ] Manually verify touch long-press drag on a 390 px phone, and that scroll, tap, ⋯ and checkboxes still work. - [ ] Manually verify dragging a model onto a chat still works. - [ ] Manually verify Connections ⋯ / chevron buttons show no box at rest with the gradient accent. - [ ] Manually verify Starred tab "Edit order" reorders and the order survives a reload. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:40:00 +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#8828
No description provided.