Skip to content

Commit af7de21

Browse files
test(web): import the drop helpers the Working shelf tests use
The merge's Sidebar.logic.test.ts import list took V2's side, which had dropped resolveSidebarDropTarget and planSidebarThreadDrop, while main's Working shelf tests call both. Also formats isSidebarThreadWorking. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 3d45bd9 commit af7de21

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎apps/web/src/components/Sidebar.logic.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
getSidebarThreadIdsToPrewarm,
2121
hasUnseenCompletion,
2222
isContextMenuPointerDown,
23-
isSidebarNestedLinkClick,
2423
isSidebarSubagentThread,
2524
isSidebarThreadWorking,
2625
isTrailingDoubleClick,
@@ -44,6 +43,8 @@ import {
4443
shouldRecedeSidebarThread,
4544
sortLogicalProjectsForSidebar,
4645
sortInboxThreadsByReturn,
46+
resolveSidebarDropTarget,
47+
planSidebarThreadDrop,
4748
sortPinnedThreadsForSidebar,
4849
sortProjectsForSidebar,
4950
sortScopedProjectsForSidebar,

‎apps/web/src/components/Sidebar.logic.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,9 +1010,7 @@ export function shouldShowSidebarV2Duration(status: SidebarThreadStatus): boolea
10101010
the Working shelf: a running run, or one stopped with background tasks
10111011
still open. Approvals, questions, plan prompts, and failures stay in the
10121012
inbox. */
1013-
export function isSidebarThreadWorking(
1014-
thread: ThreadStatusInput,
1015-
): boolean {
1013+
export function isSidebarThreadWorking(thread: ThreadStatusInput): boolean {
10161014
const status = resolveSidebarThreadStatus(thread);
10171015
if (status !== "working" && status !== "waiting") return false;
10181016
// A plan prompt outranks lingering background work: the user has to act on it.

0 commit comments

Comments
 (0)