дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 18:17:15 +02:00
feat(agents): support drag-and-drop reordering in the Agents list (#6140)
## Summary - Add manual drag-and-drop reordering for tasks within `Pinned`, custom groups, and status groups (`Running`, `Ready to Review`, `Archived`, etc.), with before/after insertion indicators and edge auto-scrolling. - Support dropping tasks onto exact slots across compatible sections (pinning, moving into custom groups, or returning pinned/grouped tasks back to their matching status group), while rejecting incompatible status groups and disabling row reordering while searching. - Support drag-and-drop reordering between custom group headers (`GROUP_DRAG`). - Persist per-section manual order in `localStorage` (`TaskOrganize.order`), keeping manually ordered tasks stable across activity updates while placing newly added tasks at the top of the section. - Open tasks on click release instead of `mousedown` so starting a drag does not open the dragged task's chat history, and allow initiating drag from anywhere on the 24px row. ## Testing - `vitest run src/features/agents/organize.test.ts src/features/agents/AgentsView.test.tsx src/features/agents/unread.test.tsx` (90 passed) - `oxlint` & `oxfmt` clean on all changed files - `tsc --noEmit` passed Made with [Cursor](https://cursor.com)
Цей коміт міститься в:
1 джерело
e909c50fe4
коміт
b79dbae83f
7 files changed
+860
-81
No files matched your search
@@ -49,6 +49,24 @@
|
||||
outline: 1px dashed var(--accent);
|
||||
outline-offset: -1px;
|
||||
}
|
||||
/* Drop insertion indicator on a tree row while dragging to reorder tasks or custom groups. */
|
||||
.dropBefore::before,
|
||||
.dropAfter::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 2px;
|
||||
background: var(--focus-ring);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
.dropBefore::before {
|
||||
top: 0;
|
||||
}
|
||||
.dropAfter::after {
|
||||
bottom: 0;
|
||||
}
|
||||
.title {
|
||||
flex: 0 1 auto;
|
||||
min-width: 0;
|
||||
|
||||
Reference in new issue
Заблокувати користувача