[PR #7362] [MERGED] soup/ Add handleless library dragging, mobile stacks and clear reorder targets #7700

Closed
opened 2026-10-24 04:06:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7362
Author: @Gunterlie
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @Gunterlie

Base: staging ← Head: soup/drag-deez-nutz


📝 Commits (8)

  • 6563268 Start handleless drag and mobile stack work
  • 6b96e66 Add handleless library dragging, mobile stacks and reorder targets
  • ac564ed Format manual order code and isolate browser proof artifacts
  • c0495ac Verify reload persistence and preserve native scrolling in drag proofs
  • bb9a4fa Merge remote-tracking branch 'origin/staging' into soup/drag-deez-nutz
  • 9854348 Refresh PR synchronization after staging update
  • deadb69 Merge latest staging and consolidate drag changelog entry
  • 3dfc2ee Merge branch 'staging' into soup/drag-deez-nutz

📊 Changes

24 files changed (+1610 additions, -433 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+2 -2)
📝 e2e/drag-list-scroll.e2e.ts (+296 -5)
➕ e2e/handleless-library-drag.e2e.ts (+248 -0)
📝 packages/client/src/components/chat/ChatResourceDropOverlay.tsx (+1 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+73 -56)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+68 -47)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+83 -55)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+71 -54)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+36 -20)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+61 -39)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+55 -30)
📝 packages/client/src/components/panels/settings/BackgroundPicker.tsx (+55 -30)
➖ packages/client/src/components/ui/TouchDragHandle.tsx (+0 -45)
➕ packages/client/src/hooks/use-library-folder-drag.ts (+29 -0)
➕ packages/client/src/hooks/use-library-order.ts (+71 -0)
📝 packages/client/src/hooks/use-touch-folder-drag.ts (+295 -26)
📝 packages/client/src/lib/chat-resource-drop-capabilities.ts (+6 -1)
➕ packages/client/src/lib/library-order.ts (+35 -0)
📝 packages/client/src/localization/locales/en.json (+5 -0)

...and 4 more files

📄 Description

Part of S.O.U.P. 🥣
Simplify · Organize · Unify · Polish

An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.

Linked issue

Closes #7361

Why this change

Dragging tiny handles is awkward on phones, and reordering needs a visible target that remains usable when the pointer or finger lands in the gap.

What changed

  • Drag chats, agents, characters, personas, lorebooks, presets, connections, backgrounds and library folders directly from their rows. Mouse pickup uses a movement threshold; mobile pickup uses a hold while normal swipes scroll.
  • Gather compatible resources into a stack with second-finger taps while holding the first item. Preserve controls and refuse stacks for chat settings that accept only one resource.
  • Show 24px insertion gaps, snap nearby empty space to a row, highlight folder targets, and persist manual resource/folder ordering. Support Alt+Up/Down reordering while preserving editable-field shortcuts.
  • Add focused browser and deterministic regressions, localized labels, and changelog entries.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Manually verify direct row pickup, folder moves, insertion before/after, and reload persistence on desktop and phone. On a physical iPhone, verify hold pickup, native scrolling, second-finger stacking and cancellation in Safari/PWA. Verify folder reordering, filtered/paginated lists, light/dark themes and the alternative theme.

Automated verification and dev deployment results are recorded below; the unchecked boxes remain the human verification checklist.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

After-change proof captured at 390px, 768px and 1440px. Desktop/mobile browser fixtures use temporary resources, not personal dev-server data. Desktop, tablet and mobile screenshot proof (downloadable SVG files containing the original screenshots). Before-change screenshot and physical iPhone proof are not available.

Proof

  • Full pnpm check passed on the updated branch after the clean staging merge (head bb9a4fa32).
  • Library-order, chat-resource-drop and prompt regressions passed. The stable browser rerun passed all 10 selected desktop/mobile cases, followed by all 7 UI smoke cases.
  • Targeted review-fix browser checks passed desktop insertion/reload persistence, desktop/mobile connection-folder server ordering, and desktop/mobile Background All-view membership preservation. The mobile insertion/reload test also passed after correcting its panel-open fixture.
  • Local CodeRabbit and independent adversarial review completed. Valid ordering/folder findings were repaired. The single-item guard suggestion was rejected because a requested stack must not silently become a single-item assignment; a deterministic regression covers partially unavailable stacks. A subsequent artifact-path suggestion was fixed.

The branch has been refreshed from staging and marked ready so GitHub CodeRabbit can run. GitHub CI and CodeRabbit completed successfully on the earlier head, with no actionable GitHub review comments. The PR now reflects the staging merge plus an empty synchronization commit (98543486a); CI and CodeRabbit are running on that current head. Draft-skipped review statuses do not count as completed reviews.

Dev Mari was rebuilt and restarted with this branch's expanded insertion gaps. Localhost, direct LAN and public health checks passed. Later review repairs have not yet been redeployed. Physical iPhone Safari/PWA interaction still requires manual verification.

Summary by CodeRabbit

  • New Features
    • Reorder chats, library items, and folders with drag and drop, and keep custom ordering across sessions.
    • Drag items directly from their rows on desktop and mobile. On phones, hold to start dragging while swiping continues to scroll; use a second finger to add items to a stack for folder moves.
    • Drop items into visible insertion gaps or onto folders, and use keyboard shortcuts to reorder eligible items.
  • Bug Fixes
    • Prevent multiple items from being dropped into chat settings that support only one item.

🔄 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/7362 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `soup/drag-deez-nutz` --- ### 📝 Commits (8) - [`6563268`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6563268c40f6bad11976910c9af515a7693fe19c) Start handleless drag and mobile stack work - [`6b96e66`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b96e66d67192442a4bfe68c6170cfa29ffea026) Add handleless library dragging, mobile stacks and reorder targets - [`ac564ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ac564ed6ef739be2114be7eba64d0ff9a9a32c23) Format manual order code and isolate browser proof artifacts - [`c0495ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c0495ac38bddc84cea1e9fed3ca5c3450070f8a2) Verify reload persistence and preserve native scrolling in drag proofs - [`bb9a4fa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bb9a4fa327b3be390980c4a4367d5f6f17a00e14) Merge remote-tracking branch 'origin/staging' into soup/drag-deez-nutz - [`9854348`](https://github.com/Pasta-Devs/Marinara-Engine/commit/98543486a643c9839e8ea2789033127dbc4a0931) Refresh PR synchronization after staging update - [`deadb69`](https://github.com/Pasta-Devs/Marinara-Engine/commit/deadb693107db302a20ebaa804df06aa7d65f548) Merge latest staging and consolidate drag changelog entry - [`3dfc2ee`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3dfc2ee68744bfc0e4bac1dd8d8fa439e5168fc3) Merge branch 'staging' into soup/drag-deez-nutz ### 📊 Changes **24 files changed** (+1610 additions, -433 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+2 -2) 📝 `e2e/drag-list-scroll.e2e.ts` (+296 -5) ➕ `e2e/handleless-library-drag.e2e.ts` (+248 -0) 📝 `packages/client/src/components/chat/ChatResourceDropOverlay.tsx` (+1 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+73 -56) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+68 -47) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+83 -55) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+71 -54) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+36 -20) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+61 -39) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+55 -30) 📝 `packages/client/src/components/panels/settings/BackgroundPicker.tsx` (+55 -30) ➖ `packages/client/src/components/ui/TouchDragHandle.tsx` (+0 -45) ➕ `packages/client/src/hooks/use-library-folder-drag.ts` (+29 -0) ➕ `packages/client/src/hooks/use-library-order.ts` (+71 -0) 📝 `packages/client/src/hooks/use-touch-folder-drag.ts` (+295 -26) 📝 `packages/client/src/lib/chat-resource-drop-capabilities.ts` (+6 -1) ➕ `packages/client/src/lib/library-order.ts` (+35 -0) 📝 `packages/client/src/localization/locales/en.json` (+5 -0) _...and 4 more files_ </details> ### 📄 Description > **Part of S.O.U.P. 🥣** > **S**implify · **O**rganize · **U**nify · **P**olish > > *An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.* ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #7361 ## Why this change Dragging tiny handles is awkward on phones, and reordering needs a visible target that remains usable when the pointer or finger lands in the gap. ## What changed - Drag chats, agents, characters, personas, lorebooks, presets, connections, backgrounds and library folders directly from their rows. Mouse pickup uses a movement threshold; mobile pickup uses a hold while normal swipes scroll. - Gather compatible resources into a stack with second-finger taps while holding the first item. Preserve controls and refuse stacks for chat settings that accept only one resource. - Show 24px insertion gaps, snap nearby empty space to a row, highlight folder targets, and persist manual resource/folder ordering. Support Alt+Up/Down reordering while preserving editable-field shortcuts. - Add focused browser and deterministic regressions, localized labels, and changelog entries. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Manually verify direct row pickup, folder moves, insertion before/after, and reload persistence on desktop and phone. On a physical iPhone, verify hold pickup, native scrolling, second-finger stacking and cancellation in Safari/PWA. Verify folder reordering, filtered/paginated lists, light/dark themes and the alternative theme. Automated verification and dev deployment results are recorded below; the unchecked boxes remain the human verification checklist. <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) After-change proof captured at 390px, 768px and 1440px. Desktop/mobile browser fixtures use temporary resources, not personal dev-server data. [Desktop, tablet and mobile screenshot proof](https://gist.github.com/Gunterlie/a2766f76dd0d378f5e47d018e6a2de15) (downloadable SVG files containing the original screenshots). Before-change screenshot and physical iPhone proof are not available. ## Proof - Full `pnpm check` passed on the updated branch after the clean staging merge (head `bb9a4fa32`). - Library-order, chat-resource-drop and prompt regressions passed. The stable browser rerun passed all 10 selected desktop/mobile cases, followed by all 7 UI smoke cases. - Targeted review-fix browser checks passed desktop insertion/reload persistence, desktop/mobile connection-folder server ordering, and desktop/mobile Background All-view membership preservation. The mobile insertion/reload test also passed after correcting its panel-open fixture. - Local CodeRabbit and independent adversarial review completed. Valid ordering/folder findings were repaired. The single-item guard suggestion was rejected because a requested stack must not silently become a single-item assignment; a deterministic regression covers partially unavailable stacks. A subsequent artifact-path suggestion was fixed. The branch has been refreshed from staging and marked ready so GitHub CodeRabbit can run. GitHub CI and CodeRabbit completed successfully on the earlier head, with no actionable GitHub review comments. The PR now reflects the staging merge plus an empty synchronization commit (`98543486a`); CI and CodeRabbit are running on that current head. Draft-skipped review statuses do not count as completed reviews. Dev Mari was rebuilt and restarted with this branch's expanded insertion gaps. Localhost, direct LAN and public health checks passed. Later review repairs have not yet been redeployed. Physical iPhone Safari/PWA interaction still requires manual verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Reorder chats, library items, and folders with drag and drop, and keep custom ordering across sessions. * Drag items directly from their rows on desktop and mobile. On phones, hold to start dragging while swiping continues to scroll; use a second finger to add items to a stack for folder moves. * Drop items into visible insertion gaps or onto folders, and use keyboard shortcuts to reorder eligible items. * **Bug Fixes** * Prevent multiple items from being dropped into chat settings that support only one item. <!-- 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-24 04:06:39 +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#7700
No description provided.