From 485e9948b1d6d40df44a781c5133f6698b1f872b Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 8 Feb 2026 23:34:06 +0000
Subject: feat: Add drag-and-drop support for bookmarks to lists (#2469)

* feat: add drag and drop bookmark cards into sidebar lists

Co-authored-by: Claude <noreply@anthropic.com>
---
 apps/web/components/dashboard/UploadDropzone.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'apps/web/components/dashboard/UploadDropzone.tsx')

diff --git a/apps/web/components/dashboard/UploadDropzone.tsx b/apps/web/components/dashboard/UploadDropzone.tsx
index d3945cc3..c76da523 100644
--- a/apps/web/components/dashboard/UploadDropzone.tsx
+++ b/apps/web/components/dashboard/UploadDropzone.tsx
@@ -2,6 +2,7 @@
 
 import React, { useCallback, useState } from "react";
 import { toast } from "@/components/ui/sonner";
+import { BOOKMARK_DRAG_MIME } from "@/lib/bookmark-drag";
 import useUpload from "@/lib/hooks/upload-file";
 import { cn } from "@/lib/utils";
 import { TRPCClientError } from "@trpc/client";
@@ -136,7 +137,12 @@ export default function UploadDropzone({
     <DropZone
       noClick
       onDrop={onDrop}
-      onDragEnter={() => setDragging(true)}
+      onDragEnter={(e) => {
+        // Don't show overlay for internal bookmark card drags
+        if (!e.dataTransfer.types.includes(BOOKMARK_DRAG_MIME)) {
+          setDragging(true);
+        }
+      }}
       onDragLeave={() => setDragging(false)}
     >
       {({ getRootProps, getInputProps }) => (
-- 
cgit v1.2.3-70-g09d2

