The best way to control Claude Code, Codex and more from any computer or phone
feat(web): simplify sidebar drag destination cues (#9750)
Julius Marminge committed
Sep 6, 2026 at 11:10 UTC
9a47c7bd40522977c7df022a5b64759aae7b58e0
2 files changed
+47
-56
apps/web/src/components/Sidebar.tsx
+42
-53
@@ -568,7 +568,6 @@ function SidebarSectionPlaceholder(props: {
568
function SidebarDragBoundary(props: {
569
marker: "pinned-header" | "pinned-divider";
570
label: string;
571
- hint: string | null;
571
visible: boolean;
572
isDropTarget: boolean;
573
}) {
@@ -587,7 +586,6 @@ function SidebarDragBoundary(props: {
586
)}
587
>
588
{props.label}
590
- {props.hint ? <span className="font-normal">{props.hint}</span> : null}
589
</span>
590
<span
591
aria-hidden
@@ -603,7 +601,6 @@ function SidebarDragBoundary(props: {
601
function SidebarSectionHeader(props: {
602
marker: "snoozed-header" | "settled-header";
603
label: string;
606
- hint?: string | null;
604
isDropTarget?: boolean;
605
toggle: { expanded: boolean; onToggle: () => void };
606
}) {
@@ -624,7 +621,6 @@ function SidebarSectionHeader(props: {
621
props.isDropTarget && "bg-primary/30",
622
)}
623
/>
627
- {props.hint ? <span className="truncate text-[11px] font-normal">{props.hint}</span> : null}
624
<ChevronDownIcon
625
aria-hidden
626
className={cn(
@@ -910,7 +906,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
906
// sortable bag applied to the row root so the whole row drags (the
907
// pointer sensor's distance constraint keeps plain clicks working).
908
sortable?: SortableThreadRowBag | undefined;
913
- dropSection: SidebarSection | null;
909
+ dropSection: Exclude<SidebarSection, "snoozed"> | null;
910
// Compact wake countdown ("2h") for rows in the snoozed shelf.
911
snoozeWakeLabelText: string | null;
912
// When a snooze ended (timer or early wake); drives the Woke pill until
@@ -1331,14 +1327,13 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
1327
role="status"
1328
className="pointer-events-none ml-auto inline-flex h-5 shrink-0 items-center gap-1 rounded-sm border border-primary/30 bg-sidebar px-1.5 text-[11px] font-medium text-primary"
1329
>
1330
+ <span className="sr-only">Move to </span>
1331
<span aria-hidden>→</span>
1332
{props.dropSection === "pinned"
1333
? "Pinned"
1334
: props.dropSection === "active"
1335
? "Active"
1339
- : props.dropSection === "settled"
1340
- ? "Settled"
1341
- : "Snoozed"}
1336
+ : "Settled"}
1337
</span>
1338
) : null;
1339
@@ -1442,31 +1437,32 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
1437
<TooltipPopup side="top">Unsent draft</TooltipPopup>
1438
</Tooltip>
1439
) : null;
1445
- const pinIndicator = props.isPinned ? (
1446
- props.pinningSupported ? (
1447
- <Tooltip>
1448
- <TooltipTrigger
1449
- render={
1450
- <button
1451
- type="button"
1452
- aria-label="Unpin thread"
1453
- onClick={handleUnpinClick}
1454
- className="inline-flex cursor-pointer items-center rounded-sm text-muted-foreground/65 outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
1455
- />
1456
- }
1457
- >
1458
- <PinIcon aria-hidden className="size-3 shrink-0" />
1459
- </TooltipTrigger>
1460
- <TooltipPopup>Unpin thread</TooltipPopup>
1461
- </Tooltip>
1462
- ) : (
1463
- <PinIcon
1464
- aria-label="Pinned"
1465
- role="img"
1466
- className="size-3 shrink-0 text-muted-foreground/65"
1467
- />
1468
- )
1469
- ) : null;
1440
+ const pinIndicator =
1441
+ props.isPinned && !sortable?.isDragging ? (
1442
+ props.pinningSupported ? (
1443
+ <Tooltip>
1444
+ <TooltipTrigger
1445
+ render={
1446
+ <button
1447
+ type="button"
1448
+ aria-label="Unpin thread"
1449
+ onClick={handleUnpinClick}
1450
+ className="inline-flex cursor-pointer items-center rounded-sm text-muted-foreground/65 outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
1451
+ />
1452
+ }
1453
+ >
1454
+ <PinIcon aria-hidden className="size-3 shrink-0" />
1455
+ </TooltipTrigger>
1456
+ <TooltipPopup>Unpin thread</TooltipPopup>
1457
+ </Tooltip>
1458
+ ) : (
1459
+ <PinIcon
1460
+ aria-label="Pinned"
1461
+ role="img"
1462
+ className="size-3 shrink-0 text-muted-foreground/65"
1463
+ />
1464
+ )
1465
+ ) : null;
1466
1467
if (variant === "slim") {
1468
return (
@@ -1526,7 +1522,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
1522
remain visible AND clickable while the row is hovered. Only
1523
the time/jump label yields to the settle affordance. */}
1524
{prBadge}
1529
- {dragDestination ?? (
1525
+ {sortable?.isDragging ? (
1526
+ dragDestination
1527
+ ) : (
1528
<span className="relative ml-auto flex h-6 min-w-8 shrink-0 items-center justify-end">
1529
<span
1530
className={cn(
@@ -1679,7 +1677,9 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
1677
actions on hover/keyboard focus or while the popover is open. Keeping
1678
the hidden state out of flow lets the project label reclaim
1679
space without either state overlapping it. */}
1682
- {dragDestination ?? (
1680
+ {sortable?.isDragging ? (
1681
+ dragDestination
1682
+ ) : (
1683
<span className="group/sidebar-status-slot relative ml-auto flex h-5 min-w-8 shrink-0 items-stretch justify-end text-xs">
1684
{/* Read-only status labels yield to the hover actions. Woke is
1685
itself an action, so it stays pointer-enabled and visible
@@ -4534,7 +4534,11 @@ export default function Sidebar() {
4534
isPinned={thread.pinnedAt != null}
4535
sortable={sortable}
4536
dropSection={
4537
- dragState?.activeKey === threadKey ? dragTargetSection : null
4537
+ dragState?.activeKey === threadKey &&
4538
+ dragTargetSection !== dragState.activeSection &&
4539
+ dragTargetSection !== "snoozed"
4540
+ ? dragTargetSection
4541
+ : null
4542
}
4543
snoozeWakeLabelText={
4544
section === "snoozed" && thread.snoozedUntil != null
@@ -4634,14 +4638,6 @@ export default function Sidebar() {
4638
dragTargetSection !== "pinned"
4639
? 1
4640
: 0);
4637
- const activeHint =
4638
- from === "pinned"
4639
- ? "Drop to unpin"
4640
- : from === "settled"
4641
- ? "Drop to un-settle"
4642
- : from === "snoozed"
4643
- ? "Drop to wake"
4644
- : null;
4641
const items: ReactNode[] = [
4642
<SidebarDraftBlock
4643
key="draft-sessions"
@@ -4667,7 +4663,6 @@ export default function Sidebar() {
4663
key="pinned-header"
4664
marker="pinned-header"
4665
label="Pinned"
4670
- hint={from !== null && from !== "pinned" ? "Drop to pin" : null}
4666
isDropTarget={dragTargetSection === "pinned"}
4667
visible={from !== null}
4668
/>,
@@ -4679,7 +4674,6 @@ export default function Sidebar() {
4674
key="pinned-divider"
4675
marker="pinned-divider"
4676
label="Active"
4682
- hint={dragTargetSection === "active" ? activeHint : null}
4677
isDropTarget={dragTargetSection === "active"}
4678
visible={from !== null && previewPinnedCount > 0}
4679
/>,
@@ -4690,7 +4684,7 @@ export default function Sidebar() {
4684
<SidebarSectionPlaceholder
4685
key="active-placeholder"
4686
marker="active-placeholder"
4693
- label={activeHint ?? "Drop here"}
4687
+ label="Active"
4688
showHint={from !== null}
4689
isDropTarget={dragTargetSection === "active"}
4690
/>,
@@ -4723,11 +4717,6 @@ export default function Sidebar() {
4717
? "Settled"
4718
: `Settled (${settledThreads.length})`
4719
}
4726
- hint={
4727
- dragTargetSection === "settled" && from !== "settled"
4728
- ? "Drop to settle"
4729
- : null
4730
- }
4720
isDropTarget={dragTargetSection === "settled"}
4721
toggle={{
4722
expanded: settledShelfExpanded,
@@ -4741,7 +4730,7 @@ export default function Sidebar() {
4730
<SidebarSectionPlaceholder
4731
key="settled-placeholder"
4732
marker="settled-placeholder"
4744
- label="Drop to settle"
4733
+ label="Settled"
4734
showHint={from !== null && from !== "settled"}
4735
isDropTarget={dragTargetSection === "settled"}
4736
/>,
docs/user/thread-sidebar.md
+5
-3
@@ -33,9 +33,11 @@ thread into the active list un-settles it. A snoozed thread can be dragged out o
33
shelf, which wakes it, but threads cannot be dragged into the shelf because snoozing needs a wake
34
time. Dragging a pinned thread out of the pinned section does not ask for unpin confirmation.
35
Pinned and active boundary labels appear only while dragging, without moving the rows. The
36
-destination boundary highlights and the thread shows which section it will land in. When there
37
-are no pins, drag to the top edge to pin a thread. Drop instructions also appear for empty sections
38
-and a collapsed settled shelf.
36
+destination boundary highlights. When you cross into another section, the dragged thread shows
37
+its destination, such as **→ Active**. Its usual pin, status, and hover actions hide during the
38
+drag. Reordering within the same section does not show a destination badge. When there are no
39
+pins, drag to the top edge to pin a thread. Section labels also identify empty sections and a
40
+collapsed settled shelf.
41
42
Drag within the pinned or active section to change its order. Other rows slide aside to show the
43
spot where the thread will land. Drops into either section keep the position you choose. On