Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

changes: tutorial

Deepender2575902f3aa1e1
diff --git a/drag_debug.txt b/drag_debug.txt
index 31130d5..4dc9276 100644
--- a/drag_debug.txt
+++ b/drag_debug.txt
@@ -1409,3 +1409,496 @@
[2026-07-07T19:46:06.414Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
[2026-07-07T19:46:06.415Z] createFileStackDragIcon calling Resvg for count=1
[2026-07-07T19:46:06.574Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T19:57:47.623Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T19:57:47.959Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T19:57:47.960Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T19:57:48.106Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T19:57:48.106Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T19:57:48.255Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:22:08.917Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:22:09.370Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:22:09.372Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:22:09.535Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:22:09.536Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:22:09.688Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:32:47.685Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:32:47.914Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:32:47.915Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:32:48.059Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:32:48.059Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:32:48.222Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:36:39.956Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:36:40.247Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:36:40.247Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:36:40.431Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:36:40.432Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:36:40.622Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:41:55.665Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:41:56.140Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:41:56.141Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:41:56.375Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:41:56.376Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:41:56.678Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:48:29.518Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:48:29.871Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:48:29.872Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:48:30.016Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:48:30.017Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:48:30.158Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:48:42.042Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:48:42.195Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:48:42.196Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:48:42.336Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:48:42.337Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T20:48:42.476Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:52:20.383Z] startDragOut called for kind=image
+[2026-07-07T20:52:20.386Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrb4k4hd-qmne1g5e.jpg, files=undefined
+[2026-07-07T20:52:20.387Z] dragIcon called for kind=image
+[2026-07-07T20:52:20.388Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-07T20:52:20.389Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-07T20:52:20.389Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:52:20.389Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrb4k4hd-qmne1g5e.jpg, item.files=undefined
+[2026-07-07T20:54:36.533Z] startDragOut called for kind=image
+[2026-07-07T20:54:36.534Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrb4k4ho-rwabczvf.jpg, files=undefined
+[2026-07-07T20:54:36.536Z] dragIcon called for kind=image
+[2026-07-07T20:54:36.536Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-07T20:54:36.537Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-07T20:54:36.537Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T20:54:36.538Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrb4k4ho-rwabczvf.jpg, item.files=undefined
+[2026-07-07T21:09:59.248Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T21:09:59.642Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T21:09:59.643Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T21:09:59.801Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T21:09:59.801Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T21:09:59.942Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T21:12:19.441Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T21:12:19.837Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T21:12:19.838Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T21:12:19.998Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-07T21:12:19.998Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-07T21:12:20.162Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T05:47:22.382Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T05:47:23.995Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T05:47:23.996Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T05:47:24.232Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T05:47:24.233Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T05:47:24.473Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:27:00.126Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:27:00.513Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:27:00.514Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:27:00.653Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:27:00.653Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:27:00.787Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:28:51.269Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:28:51.450Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:28:51.450Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:28:51.599Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:28:51.600Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:28:51.739Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:34:35.812Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:34:35.977Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:34:35.977Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:34:36.116Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:34:36.117Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:34:36.269Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:45:29.200Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:45:29.541Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:45:29.541Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:45:29.685Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T13:45:29.686Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T13:45:29.823Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:05:45.729Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:05:46.084Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:05:46.084Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:05:46.231Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:05:46.232Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:05:46.378Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:06:24.515Z] startDragOut called for kind=image
+[2026-07-08T14:06:24.518Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\onboarding-img1.png, files=undefined
+[2026-07-08T14:06:24.520Z] dragIcon called for kind=image
+[2026-07-08T14:06:24.520Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T14:06:24.521Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T14:06:24.521Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:06:24.522Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\onboarding-img1.png, item.files=undefined
+[2026-07-08T14:07:18.200Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:07:18.365Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:07:18.366Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:07:18.538Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:07:18.539Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:07:18.674Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:16:01.340Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:16:01.502Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:16:01.503Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:16:01.656Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:16:01.657Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:16:01.802Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:31:34.026Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:31:35.323Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:31:35.324Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:31:35.475Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:31:35.476Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:31:35.610Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:37:24.715Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:37:25.084Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:37:25.085Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:37:25.324Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:37:25.325Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:37:25.520Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:48:12.172Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:48:12.510Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:48:12.511Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:48:12.658Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:48:12.658Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:48:12.800Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:52:34.976Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:52:35.144Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:52:35.144Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:52:35.285Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:52:35.286Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:52:35.433Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:55:58.971Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:55:59.366Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:55:59.367Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:55:59.516Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T14:55:59.517Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T14:55:59.672Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:04:36.076Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:04:36.481Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:04:36.482Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:04:36.651Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:04:36.652Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:04:36.823Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:07:15.196Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:07:15.353Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:07:15.354Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:07:15.485Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:07:15.485Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:07:15.631Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:09:53.366Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:09:53.527Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:09:53.528Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:09:53.660Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:09:53.661Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:09:53.801Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:11:12.424Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:11:12.578Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:11:12.579Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:11:12.713Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:11:12.714Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:11:12.853Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:12:31.897Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:12:32.047Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:12:32.047Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:12:32.190Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:12:32.191Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:12:32.335Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:17:40.103Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:17:40.470Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:17:40.471Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:17:40.674Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:17:40.675Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:17:40.813Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:37:36.389Z] startDragOut called for kind=files
+[2026-07-08T15:37:36.391Z] staged: file=C:\Users\yadav\Downloads\vector-art-colorful-8140x8140-12144.jpg, files=["C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:37:36.391Z] dragIcon called for kind=files
+[2026-07-08T15:37:36.392Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:37:36.392Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:37:36.393Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:37:36.394Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\vector-art-colorful-8140x8140-12144.jpg, item.files=["C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:37:38.543Z] startDragOut called for kind=files
+[2026-07-08T15:37:38.544Z] staged: file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:37:38.544Z] dragIcon called for kind=files
+[2026-07-08T15:37:38.545Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:37:38.545Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:37:38.546Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:37:38.546Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, item.files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:39:43.858Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:39:44.217Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:39:44.218Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:39:44.374Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:39:44.375Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:39:44.529Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:42:00.840Z] startDragOut called for kind=files
+[2026-07-08T15:42:00.841Z] staged: file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:42:00.842Z] dragIcon called for kind=files
+[2026-07-08T15:42:00.843Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:42:00.844Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:42:00.844Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:42:00.846Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, item.files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:42:02.777Z] startDragOut called for kind=files
+[2026-07-08T15:42:02.778Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:42:02.778Z] dragIcon called for kind=files
+[2026-07-08T15:42:02.779Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:42:02.782Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:42:02.782Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:42:02.782Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:42:06.512Z] startDragOut called for kind=files
+[2026-07-08T15:42:06.513Z] staged: file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:42:06.513Z] dragIcon called for kind=files
+[2026-07-08T15:42:06.514Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:42:06.514Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:42:06.515Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:42:06.515Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, item.files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png"]
+[2026-07-08T15:42:09.730Z] startDragOut called for kind=files
+[2026-07-08T15:42:09.731Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:42:09.732Z] dragIcon called for kind=files
+[2026-07-08T15:42:09.732Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:42:09.733Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:42:09.733Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:42:09.734Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:37.796Z] startDragOut called for kind=files
+[2026-07-08T15:51:37.797Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:37.797Z] dragIcon called for kind=files
+[2026-07-08T15:51:37.797Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:37.800Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:51:37.801Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:51:37.801Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:40.158Z] startDragOut called for kind=files
+[2026-07-08T15:51:40.159Z] staged: file=C:\Users\yadav\Downloads\vector-art-colorful-8140x8140-12144.jpg, files=["C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:51:40.159Z] dragIcon called for kind=files
+[2026-07-08T15:51:40.159Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:51:40.161Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:51:40.161Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:51:40.161Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\vector-art-colorful-8140x8140-12144.jpg, item.files=["C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:51:44.054Z] startDragOut called for kind=files
+[2026-07-08T15:51:44.055Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:44.056Z] dragIcon called for kind=files
+[2026-07-08T15:51:44.056Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:44.057Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:51:44.058Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:51:44.058Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:56.537Z] startDragOut called for kind=files
+[2026-07-08T15:51:56.538Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:56.538Z] dragIcon called for kind=files
+[2026-07-08T15:51:56.539Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:51:56.539Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:51:56.540Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:51:56.540Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:01.454Z] startDragOut called for kind=files
+[2026-07-08T15:52:01.454Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:01.455Z] dragIcon called for kind=files
+[2026-07-08T15:52:01.455Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:01.456Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:52:01.456Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:52:01.456Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:03.602Z] startDragOut called for kind=files
+[2026-07-08T15:52:03.603Z] staged: file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:03.604Z] dragIcon called for kind=files
+[2026-07-08T15:52:03.604Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:03.604Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T15:52:03.605Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:52:03.605Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-sequoia-forest-3840x2160-24082.jpg, item.files=["C:\\Users\\yadav\\Downloads\\macos-sequoia-forest-3840x2160-24082.jpg"]
+[2026-07-08T15:52:07.621Z] startDragOut called for kind=files
+[2026-07-08T15:52:07.622Z] staged: file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png","C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:52:07.623Z] dragIcon called for kind=files
+[2026-07-08T15:52:07.623Z] files check: count=2, paths=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png","C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:52:07.624Z] createFileStackDragIcon calling Resvg for count=2
+[2026-07-08T15:52:08.109Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:52:08.110Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:52:08.110Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\macos-27-golden-4480x3088-26625.png, item.files=["C:\\Users\\yadav\\Downloads\\macos-27-golden-4480x3088-26625.png","C:\\Users\\yadav\\Downloads\\vector-art-colorful-8140x8140-12144.jpg"]
+[2026-07-08T15:54:08.284Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:54:08.473Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:54:08.474Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:54:08.629Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:54:08.630Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:54:08.772Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:58:51.276Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:58:51.649Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:58:51.650Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:58:51.869Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T15:58:51.870Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T15:58:52.102Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:16:14.808Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:16:15.146Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:16:15.146Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:16:15.289Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:16:15.290Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:16:15.424Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:20:02.603Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:20:02.768Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:20:02.769Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:20:02.925Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:20:02.926Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:20:03.063Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:22:17.778Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:22:17.945Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:22:17.946Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:22:18.105Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:22:18.105Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:22:18.256Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:37:22.090Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:37:22.502Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:37:22.503Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:37:22.672Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:37:22.673Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:37:22.861Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:48:35.709Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:48:36.144Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:48:36.145Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:48:36.454Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T16:48:36.455Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T16:48:36.702Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:17:19.289Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:17:19.812Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:17:19.814Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:17:19.993Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:17:19.994Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:17:20.154Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:20:04.313Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:20:04.724Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:20:04.725Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:20:04.905Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:20:04.906Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:20:05.072Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:25:23.604Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:25:23.985Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:25:23.986Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:25:24.149Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:25:24.150Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T17:25:24.305Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:26:01.342Z] startDragOut called for kind=image
+[2026-07-08T17:26:01.345Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrccn3k6-wxfpf8a1.png, files=undefined
+[2026-07-08T17:26:01.346Z] dragIcon called for kind=image
+[2026-07-08T17:26:01.348Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T17:26:01.350Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T17:26:01.351Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:26:01.351Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrccn3k6-wxfpf8a1.png, item.files=undefined
+[2026-07-08T17:27:25.633Z] startDragOut called for kind=image
+[2026-07-08T17:27:25.637Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrccopof-hhech1kt.png, files=undefined
+[2026-07-08T17:27:25.637Z] dragIcon called for kind=image
+[2026-07-08T17:27:25.639Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T17:27:25.639Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T17:27:25.640Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T17:27:25.640Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrccopof-hhech1kt.png, item.files=undefined
+[2026-07-08T18:03:09.956Z] startDragOut called for kind=image
+[2026-07-08T18:03:09.958Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T18:03:09.959Z] dragIcon called for kind=image
+[2026-07-08T18:03:09.960Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:03:09.960Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:03:09.961Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:03:09.962Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T18:03:17.443Z] startDragOut called for kind=image
+[2026-07-08T18:03:17.445Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T18:03:17.446Z] dragIcon called for kind=image
+[2026-07-08T18:03:17.446Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:03:17.448Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:03:17.448Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:03:17.449Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T18:06:57.936Z] startDragOut called for kind=image
+[2026-07-08T18:06:57.937Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T18:06:57.937Z] dragIcon called for kind=image
+[2026-07-08T18:06:57.937Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:06:57.938Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:06:57.938Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:06:57.939Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T18:07:06.932Z] startDragOut called for kind=image
+[2026-07-08T18:07:06.933Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T18:07:06.933Z] dragIcon called for kind=image
+[2026-07-08T18:07:06.934Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:07:06.934Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:07:06.934Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:07:06.935Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T18:07:47.096Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T18:07:47.495Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:07:47.496Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T18:07:47.634Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:07:47.635Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T18:07:47.766Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:07:47.772Z] startDragOut called for kind=image
+[2026-07-08T18:07:47.776Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T18:07:47.777Z] dragIcon called for kind=image
+[2026-07-08T18:07:47.778Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:07:47.779Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:07:47.780Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:07:47.780Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T18:08:32.721Z] startDragOut called for kind=image
+[2026-07-08T18:08:32.723Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrce5s81-ltwzx9yv.png, files=undefined
+[2026-07-08T18:08:32.724Z] dragIcon called for kind=image
+[2026-07-08T18:08:32.725Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:08:32.726Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:08:32.727Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:08:32.728Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrce5s81-ltwzx9yv.png, item.files=undefined
+[2026-07-08T18:15:39.275Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T18:15:39.449Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:15:39.450Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T18:15:39.614Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:15:39.615Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T18:15:39.780Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:15:40.773Z] startDragOut called for kind=image
+[2026-07-08T18:15:40.775Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrce5s81-ltwzx9yv.png, files=undefined
+[2026-07-08T18:15:40.776Z] dragIcon called for kind=image
+[2026-07-08T18:15:40.778Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:15:40.779Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:15:40.779Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:15:40.779Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrce5s81-ltwzx9yv.png, item.files=undefined
+[2026-07-08T18:15:48.841Z] startDragOut called for kind=image
+[2026-07-08T18:15:48.843Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcef4sc-szlfocgg.png, files=undefined
+[2026-07-08T18:15:48.844Z] dragIcon called for kind=image
+[2026-07-08T18:15:48.844Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:15:48.844Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:15:48.845Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:15:48.845Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcef4sc-szlfocgg.png, item.files=undefined
+[2026-07-08T18:18:29.837Z] startDragOut called for kind=image
+[2026-07-08T18:18:29.839Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T18:18:29.840Z] dragIcon called for kind=image
+[2026-07-08T18:18:29.842Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T18:18:29.842Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T18:18:29.843Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T18:18:29.843Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T19:08:41.286Z] startDragOut called for kind=image
+[2026-07-08T19:08:41.291Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, files=undefined
+[2026-07-08T19:08:41.292Z] dragIcon called for kind=image
+[2026-07-08T19:08:41.292Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-08T19:08:41.293Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T19:08:41.293Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:08:41.294Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcdw7vn-2yrfsmmq.png, item.files=undefined
+[2026-07-08T19:08:46.312Z] startDragOut called for kind=image-collection
+[2026-07-08T19:08:46.317Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcef4sc-szlfocgg.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcef4sc-szlfocgg.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcdw7vn-2yrfsmmq.png"]
+[2026-07-08T19:08:46.318Z] dragIcon called for kind=image-collection
+[2026-07-08T19:08:46.319Z] image drag requested: count=2. Returning custom image card stack icon!
+[2026-07-08T19:08:46.320Z] createFileStackDragIcon calling Resvg for count=2
+[2026-07-08T19:08:46.984Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:08:46.985Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:08:46.985Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcef4sc-szlfocgg.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcef4sc-szlfocgg.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcdw7vn-2yrfsmmq.png"]
+[2026-07-08T19:14:17.266Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T19:14:17.426Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:14:17.426Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T19:14:17.554Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:14:17.554Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T19:14:17.691Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:14:20.721Z] startDragOut called for kind=image-collection
+[2026-07-08T19:14:20.727Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcef4sc-szlfocgg.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcef4sc-szlfocgg.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcdw7vn-2yrfsmmq.png"]
+[2026-07-08T19:14:20.729Z] dragIcon called for kind=image-collection
+[2026-07-08T19:14:20.730Z] image drag requested: count=2. Returning custom image card stack icon!
+[2026-07-08T19:14:20.732Z] createFileStackDragIcon calling Resvg for count=2
+[2026-07-08T19:14:21.013Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:14:21.014Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:14:21.016Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrcef4sc-szlfocgg.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcef4sc-szlfocgg.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrcdw7vn-2yrfsmmq.png"]
+[2026-07-08T19:28:52.804Z] startDragOut called for kind=files
+[2026-07-08T19:28:52.806Z] staged: file=C:\Users\yadav\Downloads\agentScreenshot.png, files=["C:\\Users\\yadav\\Downloads\\agentScreenshot.png"]
+[2026-07-08T19:28:52.806Z] dragIcon called for kind=files
+[2026-07-08T19:28:52.807Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\agentScreenshot.png"]
+[2026-07-08T19:28:52.808Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T19:28:52.808Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T19:28:52.808Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\agentScreenshot.png, item.files=["C:\\Users\\yadav\\Downloads\\agentScreenshot.png"]
+[2026-07-08T20:24:10.435Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T20:24:10.901Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T20:24:10.902Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T20:24:11.052Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T20:24:11.053Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T20:24:11.214Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T20:28:29.464Z] startDragOut called for kind=files
+[2026-07-08T20:28:29.466Z] staged: file=C:\Users\yadav\Downloads\placeholder_copy.mp4, files=["C:\\Users\\yadav\\Downloads\\placeholder_copy.mp4"]
+[2026-07-08T20:28:29.466Z] dragIcon called for kind=files
+[2026-07-08T20:28:29.467Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\placeholder_copy.mp4"]
+[2026-07-08T20:28:29.468Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-08T20:28:29.887Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T20:28:29.887Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T20:28:29.888Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\placeholder_copy.mp4, item.files=["C:\\Users\\yadav\\Downloads\\placeholder_copy.mp4"]
+[2026-07-08T20:28:41.855Z] startDragOut called for kind=files
+[2026-07-08T20:28:41.856Z] staged: file=C:\Users\yadav\Downloads\agentScreenshot.png, files=["C:\\Users\\yadav\\Downloads\\agentScreenshot.png"]
+[2026-07-08T20:28:41.856Z] dragIcon called for kind=files
+[2026-07-08T20:28:41.857Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\agentScreenshot.png"]
+[2026-07-08T20:28:41.858Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-08T20:28:41.859Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-08T20:28:41.859Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\agentScreenshot.png, item.files=["C:\\Users\\yadav\\Downloads\\agentScreenshot.png"]
diff --git a/electron/clipboard/ClipboardWatcher.ts b/electron/clipboard/ClipboardWatcher.ts
index 9ded3b7..c338b2d 100644
--- a/electron/clipboard/ClipboardWatcher.ts
+++ b/electron/clipboard/ClipboardWatcher.ts
@@ -62,9 +62,11 @@ export class ClipboardWatcher {
// Images need their bytes persisted + an id assigned before publishing.
if (data.kind === 'image') {
const img = clipboard.readImage()
+ const png = img.toPNG() // encode once — reuse for both bytes count and file write
data.imageId = createId()
- data.bytes = img.toPNG().length
- onNew(data, img.toPNG())
+ data.bytes = png.length
+ data.ext = 'png' // always set so cache key is 'id.png', never 'id.undefined'
+ onNew(data, png)
} else {
onNew(data)
}
@@ -82,6 +84,32 @@ export class ClipboardWatcher {
}
}
+ /**
+ * Resync the watcher's last-seen signature to the current clipboard state.
+ *
+ * Call this after deleting or clearing items. The goal is dual:
+ *
+ * 1. Prevent "zombie" re-appearances: if the deleted content is still on the
+ * system clipboard, the watcher must NOT re-add it on the next poll. By
+ * re-seeding lastSig from the live clipboard, the next tick sees no change
+ * and stays quiet.
+ *
+ * 2. Allow re-capture after genuine re-copy: when the user later copies
+ * something different and then copies the original content again, the
+ * clipboard WILL change (different → original), so the watcher will detect
+ * the change and re-capture it correctly.
+ *
+ * NOTE: The one edge case this does NOT solve is: user copies X, deletes X
+ * from Edge-Drop, then immediately copies X again WITHOUT copying anything
+ * else in between (system clipboard never changed). In that narrow case we
+ * cannot detect the re-copy because the OS clipboard didn't change. This is
+ * an acceptable limitation — the common-case fix (zombie prevention) is far
+ * more important.
+ */
+ resyncSignature(): void {
+ this.lastSig = clipboardSignature()
+ }
+
stop(): void {
if (this.timer) {
clearInterval(this.timer)
diff --git a/electron/clipboard/formats.ts b/electron/clipboard/formats.ts
index 40ea041..161b799 100644
--- a/electron/clipboard/formats.ts
+++ b/electron/clipboard/formats.ts
@@ -228,7 +228,7 @@ export function readClipboard(): ItemData | null {
imageId: '',
width: size.width,
height: size.height,
- bytes: img.toPNG().length
+ bytes: 0 // placeholder — ClipboardWatcher overwrites this with the actual PNG buffer length
}
}
@@ -249,23 +249,30 @@ export function readClipboard(): ItemData | null {
/**
* A cheap signature string used to detect that the clipboard *changed* without
- * having to construct a full ItemData or encode images to base64.
+ * having to construct a full ItemData or encode images.
*
- * Strategy: combine the list of available format names with quick fingerprints
- * for each content type. For images this uses the byte *length* of the PNG
- * buffer rather than encoding the whole image to a data URL (which was the
- * previous approach and was very expensive on a 600ms poll).
+ * Strategy:
+ * - Files → the list of paths (totally stable, always unique per copy)
+ * - Text → the text content itself
+ * - Images → dimensions + a sampled FNV-1a hash of raw pixel bytes
+ *
+ * For images we use `nativeImage.toBitmap()` (raw BGRA, no codec) and walk
+ * ~400 evenly-spaced bytes through it. This is:
+ * - Fast: no PNG encoding, O(400) byte reads regardless of image size
+ * - Stable: same clipboard content → same pixels → same hash on every poll
+ * - Unique: different images with the same resolution produce different pixel
+ * values in practice, so collisions are astronomically unlikely
+ *
+ * The old approach used toPNG().length which was (a) expensive — re-encodes the
+ * whole image on every poll tick — and (b) non-unique: two different 1920×1080
+ * screenshots of similar complexity can produce the same byte count, causing the
+ * second to be silently ignored as "no change".
*/
export function clipboardSignature(): string {
if (isClipboardExcluded()) {
return 'excluded'
}
- const formats = clipboard.availableFormats()
- // A cheap fingerprint of *what* is on the clipboard.
- // Sorting makes the format-key stable regardless of OS ordering.
- const fmtKey = formats.slice().sort().join('\x1f')
-
// If files are on the clipboard, their paths are the most stable fingerprint.
// Use fast, non-blocking read to avoid spawning a child process during polling.
const files = readFileListFast()
@@ -273,17 +280,28 @@ export function clipboardSignature(): string {
return `files:${files.join('\n')}`
}
- // Text — hash the content itself.
+ // Text — the content itself is the fingerprint.
const text = clipboard.readText().trim()
if (text) {
return `text:${text}`
}
- // If there's an image, use available formats + byte length (no data URL).
+ // Images: sample raw pixel bytes through FNV-1a for a fast, stable fingerprint.
const img = clipboard.readImage()
if (!img.isEmpty()) {
- const pngLen = img.toPNG().length
- return `image:${fmtKey}:${pngLen}`
+ const size = img.getSize()
+ const bitmap = img.toBitmap() // raw BGRA — no encoding, just a memory copy
+
+ // FNV-1a over ~400 evenly-spaced bytes.
+ // Step ensures we sample the full image regardless of resolution.
+ const step = Math.max(1, Math.floor(bitmap.length / 400))
+ let hash = 0x811c9dc5 // FNV offset basis
+ for (let i = 0; i < bitmap.length; i += step) {
+ hash ^= bitmap[i]
+ hash = Math.imul(hash, 0x01000193) >>> 0 // FNV prime, keep as uint32
+ }
+
+ return `image:${size.width}x${size.height}:${hash.toString(36)}`
}
return 'empty'
diff --git a/electron/main/index.ts b/electron/main/index.ts
index 1f170b5..e103cfb 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -16,6 +16,7 @@ import { createTray, registerIncognitoApplier } from './tray'
import { registerIpc, registerSendListeners } from './ipc'
import { prewarmDragIcons } from './drag'
import { initState, getWatcher, loadSettings, pushState, stopStateTimers } from './state'
+import { createOnboardingWindow } from './onboardingWindow'
import { join } from 'node:path'
import { existsSync, createReadStream } from 'node:fs'
import { createHash } from 'node:crypto'
@@ -52,9 +53,16 @@ app.on('before-quit', () => {
stopHeartbeat()
stopStateTimers()
getWatcher().stop()
+ try {
+ const { globalShortcut } = require('electron')
+ globalShortcut.unregisterAll()
+ } catch { /* ignore */ }
})
app.whenReady().then(() => {
+ // Set App User Model ID so native notifications are branded as "Edge-Drop" on Windows
+ app.setAppUserModelId('com.edgedrop.app')
+
ensureDirs()
cleanTemp()
@@ -68,6 +76,21 @@ app.whenReady().then(() => {
createWindow()
startCursorPoll()
createTray()
+
+ // Register Alt+C global shortcut to toggle panel
+ try {
+ const { globalShortcut } = require('electron')
+ let lastToggleTime = 0
+ globalShortcut.register('Alt+C', () => {
+ if (runtime.quitting) return
+ const now = Date.now()
+ if (now - lastToggleTime < 500) return // Throttle to once per 500ms
+ lastToggleTime = now
+ pushState.togglePanel()
+ })
+ } catch (err) {
+ console.error('[Main] Failed to register global shortcut Alt+C:', err)
+ }
registerIpc()
registerSendListeners()
initState()
@@ -75,6 +98,10 @@ app.whenReady().then(() => {
// Reflect incognito setting into the watcher immediately.
const settings = loadSettings()
+ if (!settings.tutorialCompleted) {
+ createOnboardingWindow()
+ }
+
if (app.isPackaged) {
try {
app.setLoginItemSettings({
diff --git a/electron/main/ipc.ts b/electron/main/ipc.ts
index 94a7dc9..80a2b36 100644
--- a/electron/main/ipc.ts
+++ b/electron/main/ipc.ts
@@ -6,16 +6,39 @@
* is a compile-time error rather than a runtime one.
*/
import { app, ipcMain, clipboard, nativeImage } from 'electron'
-import { execFile } from 'node:child_process'
+import { execFile, execSync } from 'node:child_process'
import { existsSync } from 'node:fs'
import { type InvokeMap, type InvokeChannel, type SendMap, type SendChannel } from '../../shared/ipc'
import { getStore, loadSettings, saveSettings, pushState, addFiles, getWatcher } from './state'
import { getMainWindow } from './window'
-import { setInteractive } from './window'
+import { setInteractive, setHeartbeatPaused } from './window'
import { startDragOut, resolveDragData } from './drag'
-import { buildFileListBuffer, CF_FILE_LIST } from '../clipboard/formats'
+import { clipboardSignature } from '../clipboard/formats'
import type { ItemData, MergeResult } from '../../shared/types'
+/**
+ * Returns true if the current system clipboard content matches the given item data.
+ *
+ * Used before delete to decide whether to clear the system clipboard. Clearing
+ * is only done when the deleted item IS the thing currently on the clipboard;
+ * deleting an old history entry that the user has since replaced must never
+ * wipe their current clipboard contents.
+ */
+function clipboardMatchesItem(data: ItemData): boolean {
+ const sig = clipboardSignature()
+ if (data.kind === 'text') return sig === `text:${data.text}`
+ if (data.kind === 'files') return sig === `files:${data.paths.join('\n')}`
+ if (data.kind === 'image') {
+ // sig format: "image:<W>x<H>:<hash>" — check the dimension prefix to avoid a full pixel read.
+ // If another image with the same dimensions is on the clipboard, we over-clear, which is
+ // acceptable (user loses clipboard content they were about to paste from a deleted item anyway).
+ return sig.startsWith(`image:${data.width}x${data.height}:`)
+ }
+ // image-collection: clear if any image is on the clipboard (conservative but safe)
+ if (data.kind === 'image-collection') return sig.startsWith('image:')
+ return false
+}
+
/** Fire a transient toast to the renderer (best-effort; renderer may be closed). */
function toast(message: string, tone: 'info' | 'error' = 'info'): void {
const win = getMainWindow()
@@ -37,23 +60,90 @@ function simulatePaste(): void {
}
/**
- * Write file *references* onto the Windows clipboard (not path strings).
+ * Write file *references* onto the system clipboard so that paste in Explorer,
+ * Word, Slack, and every other shell-aware app copies the actual files.
*
- * `FileNameW` is the format Explorer/Word/every Windows app reads for a
- * "copy these files" gesture — without it, paste produces literal path text.
- * We also write plain text as a fallback so pure-text targets still get something.
+ * WHY POWERSHELL: Electron's clipboard API calls EmptyClipboard() on every
+ * write. Sequential calls (writeBuffer then writeText) leave only the LAST
+ * format — which was always the plain path string, making every paste land as
+ * text. PowerShell's Clipboard.SetFileDropList writes CF_HDROP + FileNameW +
+ * Shell IDList Array + all other shell formats in a single atomic transaction.
+ * Paths are base64-encoded so any character (spaces, quotes, Unicode) is safe.
*/
function writeFileListToClipboard(paths: string[]): void {
- clipboard.clear()
- try {
- clipboard.writeBuffer(CF_FILE_LIST, buildFileListBuffer(paths))
- } catch {
- /* writeBuffer can throw for unregistered formats on some platforms; the
- text fallback below still lets text-only targets work. */
+ if (process.platform === 'win32' && paths.length > 0) {
+ try {
+ const addLines = paths
+ .map(p => `$c.Add([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${Buffer.from(p, 'utf8').toString('base64')}')))|Out-Null`)
+ .join(';')
+ const script = [
+ 'Add-Type -AssemblyName System.Windows.Forms',
+ '$c=New-Object System.Collections.Specialized.StringCollection',
+ addLines,
+ '[Windows.Forms.Clipboard]::SetFileDropList($c)'
+ ].join(';')
+ const encoded = Buffer.from(script, 'utf16le').toString('base64')
+ execSync(`powershell.exe -NoProfile -NonInteractive -EncodedCommand ${encoded}`, {
+ stdio: ['ignore', 'pipe', 'ignore'],
+ timeout: 3000
+ })
+ return
+ } catch (err) {
+ console.error('[ipc] writeFileListToClipboard PowerShell failed, using text fallback:', err)
+ }
}
+ // Non-Windows fallback: plain text paths (best-effort)
+ clipboard.clear()
clipboard.writeText(paths.join('\r\n'))
}
+/**
+ * Write an image onto the clipboard with BOTH bitmap data (for paste into
+ * Slack, Word, image editors, etc.) AND a file drop reference (for paste into
+ * Explorer). Uses PowerShell's DataObject to set both formats atomically —
+ * Electron's API can't do this because each write empties the clipboard first.
+ *
+ * Falls back to bitmap-only via Electron if PowerShell fails.
+ */
+function writeImageToClipboard(imagePath: string | null, previewDataUrl: string): void {
+ if (process.platform === 'win32' && imagePath && existsSync(imagePath)) {
+ try {
+ // Build a script that sets both Bitmap and FileDrop on a single DataObject.
+ // The image is loaded from disk (not from data URL) so it is full-resolution.
+ const b64Path = Buffer.from(imagePath, 'utf8').toString('base64')
+ const script = [
+ 'Add-Type -AssemblyName System.Windows.Forms',
+ 'Add-Type -AssemblyName System.Drawing',
+ `$p=[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${b64Path}'))`,
+ '$bmp=[Drawing.Image]::FromFile($p)',
+ '$d=New-Object Windows.Forms.DataObject',
+ '$d.SetImage($bmp)',
+ '$c=New-Object System.Collections.Specialized.StringCollection',
+ '$c.Add($p)|Out-Null',
+ '$d.SetFileDropList($c)',
+ '[Windows.Forms.Clipboard]::SetDataObject($d,$true)',
+ '$bmp.Dispose()'
+ ].join(';')
+ const encoded = Buffer.from(script, 'utf16le').toString('base64')
+ execSync(`powershell.exe -NoProfile -NonInteractive -EncodedCommand ${encoded}`, {
+ stdio: ['ignore', 'pipe', 'ignore'],
+ timeout: 4000
+ })
+ return
+ } catch (err) {
+ console.error('[ipc] writeImageToClipboard PowerShell failed, using bitmap fallback:', err)
+ }
+ }
+ // Fallback: write bitmap only via Electron (no file reference)
+ try {
+ const img = nativeImage.createFromDataURL(previewDataUrl)
+ if (!img.isEmpty()) {
+ clipboard.clear()
+ clipboard.writeImage(img)
+ }
+ } catch { /* ignore */ }
+}
+
/**
* Type-checked registration helper: guarantees the handler's return matches the
* contract declared in InvokeMap.
@@ -80,13 +170,30 @@ export function registerIpc(): void {
})
handle('item:delete', (id) => {
+ const item = getStore().get(id)
getStore().delete(id)
+ // If the deleted item is still on the system clipboard, clear the clipboard.
+ // This is the fix for the copy→delete→copy cycle bug:
+ // Without this, resyncSignature() would lock lastSig to the current
+ // clipboard state. When the user immediately re-copies the same image the
+ // clipboard never changes, so the watcher never fires and the item stays
+ // invisible. Clearing makes the clipboard transition to 'empty', so the
+ // next re-copy IS a detectable change.
+ if (item && clipboardMatchesItem(item.data)) {
+ clipboard.clear()
+ }
+ getWatcher().resyncSignature()
pushState.items()
return getStore().toDto()
})
handle('item:clear', () => {
getStore().clearUnpinned()
+ // Clear the system clipboard unconditionally: the user wiped their history,
+ // so whatever is on the clipboard should not zombie-reappear, and clearing
+ // ensures any subsequent re-copy of the same content is detectable.
+ clipboard.clear()
+ getWatcher().resyncSignature()
pushState.items()
return getStore().toDto()
})
@@ -129,18 +236,11 @@ export function registerIpc(): void {
} else if (dto.data.kind === 'image-collection' && req.imageId) {
const img = dto.data.images.find((i) => i.imageId === req.imageId)
if (img) {
+ // Single image from a collection: write full bitmap + file reference atomically.
const src = getStore().getImagePath(img.imageId, img.ext)
- if (src && existsSync(src)) {
- writeFileListToClipboard([src])
- wrote = true
- }
- if (img.preview) {
- const native = nativeImage.createFromDataURL(img.preview)
- if (!native.isEmpty()) {
- if (!wrote) clipboard.clear()
- try { clipboard.writeImage(native); wrote = true } catch {}
- }
- }
+ const preview = img.preview ?? ''
+ writeImageToClipboard(src && existsSync(src) ? src : null, preview)
+ wrote = true
}
}
@@ -209,18 +309,11 @@ export function registerIpc(): void {
} else if (dto.data.kind === 'image-collection' && req.imageId) {
const img = dto.data.images.find((i) => i.imageId === req.imageId)
if (img) {
+ // Single image from a collection: write full bitmap + file reference atomically.
const src = getStore().getImagePath(img.imageId, img.ext)
- if (src && existsSync(src)) {
- writeFileListToClipboard([src])
- wrote = true
- }
- if (img.preview) {
- const native = nativeImage.createFromDataURL(img.preview)
- if (!native.isEmpty()) {
- if (!wrote) clipboard.clear()
- try { clipboard.writeImage(native); wrote = true } catch {}
- }
- }
+ const preview = img.preview ?? ''
+ writeImageToClipboard(src && existsSync(src) ? src : null, preview)
+ wrote = true
}
}
@@ -327,10 +420,20 @@ export function registerSendListeners(): void {
return
}
console.log('[IPC] start-drag: kind=', data.kind)
+
+ // Pause the always-on-top heartbeat for the duration of the drag.
+ // The heartbeat fires SetWindowPos(HWND_TOPMOST) every 500 ms, which
+ // pushes our window in front of the DWM drag-ghost image — making the
+ // dragged item appear to vanish ~0.5 s into any drag gesture.
+ setHeartbeatPaused(true)
+
startDragOut(sender, data)
console.log('[IPC] start-drag returned, sending drag-end')
sender.send('item:drag-end')
+ // Re-enable the heartbeat now that the drag is over.
+ setHeartbeatPaused(false)
+
// Workaround for Electron/Windows not firing drop events on the source window:
// Check if the user dropped the item back onto our window!
const { screen, BrowserWindow } = require('electron')
@@ -355,30 +458,26 @@ export function writeItemToClipboard(data: ItemData): void {
clipboard.clear()
clipboard.write({ text: data.text, html: data.html })
break
+
case 'image': {
const dto = getStore().toDto().find(
(d) => d.data.kind === 'image' && d.data.imageId === data.imageId
)
if (dto && dto.data.kind === 'image') {
+ // Write bitmap AND file reference atomically via PowerShell DataObject.
+ // This lets the user paste into Slack/Word (reads bitmap) AND into
+ // Explorer (reads CF_HDROP file reference) from the same clipboard write.
const src = getStore().getImagePath(dto.data.imageId, dto.data.ext)
- let wrote = false
- if (src && existsSync(src)) {
- writeFileListToClipboard([src])
- wrote = true
- }
- const img = nativeImage.createFromDataURL(dto.data.preview)
- if (!img.isEmpty()) {
- if (!wrote) clipboard.clear()
- try { clipboard.writeImage(img) } catch {}
- }
+ writeImageToClipboard(src && existsSync(src) ? src : null, dto.data.preview)
}
break
}
+
case 'image-collection': {
- // Copy all image file references of the collection onto the clipboard
- // so pasting into Explorer / Word / Slack copies all images in the group.
+ // Write all image file references so pasting into Explorer copies all files.
+ // Also write the first image as bitmap so single-image paste targets work.
const dto = getStore().toDto().find(
- (d) => d.data.kind === 'image-collection' && d.data.images[0]
+ (d) => d.data.kind === 'image-collection'
)
if (dto && dto.data.kind === 'image-collection') {
const paths: string[] = []
@@ -387,24 +486,55 @@ export function writeItemToClipboard(data: ItemData): void {
if (existsSync(src)) paths.push(src)
}
if (paths.length > 0) {
- writeFileListToClipboard(paths)
- }
- // Also attempt to write the primary image bitmap if possible for image-only paste targets
- const first = dto.data.images[0]
- const img = nativeImage.createFromDataURL(first.preview)
- if (!img.isEmpty()) {
- try {
- clipboard.writeImage(img)
- } catch {
- /* ignore if format conflicts with file list on some systems */
+ // For multi-image collections, write all file refs atomically.
+ // Also include the first image as bitmap using DataObject.
+ const firstImg = dto.data.images[0]
+ const firstPreview = firstImg?.preview ?? ''
+ if (paths.length === 1) {
+ // Single resolved path: use full atomic image+file write
+ writeImageToClipboard(paths[0], firstPreview)
+ } else {
+ // Multiple files: write CF_HDROP for all + bitmap for first
+ try {
+ const addLines = paths
+ .map(p => `$c.Add([Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${Buffer.from(p, 'utf8').toString('base64')}')))|Out-Null`)
+ .join(';')
+ const b64First = Buffer.from(paths[0], 'utf8').toString('base64')
+ const script = [
+ 'Add-Type -AssemblyName System.Windows.Forms',
+ 'Add-Type -AssemblyName System.Drawing',
+ `$fp=[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String('${b64First}'))`,
+ '$bmp=[Drawing.Image]::FromFile($fp)',
+ '$d=New-Object Windows.Forms.DataObject',
+ '$d.SetImage($bmp)',
+ '$c=New-Object System.Collections.Specialized.StringCollection',
+ addLines,
+ '$d.SetFileDropList($c)',
+ '[Windows.Forms.Clipboard]::SetDataObject($d,$true)',
+ '$bmp.Dispose()'
+ ].join(';')
+ const encoded = Buffer.from(script, 'utf16le').toString('base64')
+ execSync(`powershell.exe -NoProfile -NonInteractive -EncodedCommand ${encoded}`, {
+ stdio: ['ignore', 'pipe', 'ignore'],
+ timeout: 4000
+ })
+ } catch (err) {
+ console.error('[ipc] image-collection clipboard write failed:', err)
+ // Fallback: write first image bitmap only
+ try {
+ const img = nativeImage.createFromDataURL(firstPreview)
+ if (!img.isEmpty()) { clipboard.clear(); clipboard.writeImage(img) }
+ } catch { /* ignore */ }
+ }
}
}
}
break
}
+
case 'files':
- // Write real file references so pasting into Explorer copies the file,
- // not a path string.
+ // Write real file references so pasting into Explorer copies the files,
+ // not path strings.
writeFileListToClipboard(data.paths)
break
}
diff --git a/electron/main/onboardingWindow.ts b/electron/main/onboardingWindow.ts
new file mode 100644
index 0000000..6eee506
--- /dev/null
+++ b/electron/main/onboardingWindow.ts
@@ -0,0 +1,60 @@
+import { BrowserWindow } from 'electron'
+import { join } from 'node:path'
+import { saveSettings, loadSettings, pushState } from './state'
+
+let onboardingWindow: BrowserWindow | null = null
+
+export function getOnboardingWindow(): BrowserWindow | null {
+ return onboardingWindow
+}
+
+export function createOnboardingWindow(): void {
+ if (onboardingWindow) {
+ onboardingWindow.focus()
+ return
+ }
+
+ onboardingWindow = new BrowserWindow({
+ width: 800,
+ height: 640,
+ center: true,
+ show: false,
+ frame: false,
+ resizable: false,
+ alwaysOnTop: true,
+ webPreferences: {
+ preload: join(__dirname, '../preload/index.cjs'),
+ nodeIntegration: false,
+ contextIsolation: true
+ }
+ })
+
+ // Set floating always on top to ensure it covers even other always-on-top windows
+ onboardingWindow.setAlwaysOnTop(true, 'normal')
+
+ if (process.env.VITE_DEV_SERVER_URL) {
+ onboardingWindow.loadURL(process.env.VITE_DEV_SERVER_URL + '#/onboarding')
+ } else {
+ onboardingWindow.loadFile(join(__dirname, '../renderer/index.html'), { hash: 'onboarding' })
+ }
+
+ onboardingWindow.once('ready-to-show', () => {
+ onboardingWindow?.show()
+ })
+
+ onboardingWindow.on('closed', () => {
+ onboardingWindow = null
+ // If closed, consider tutorial completed
+ const settings = loadSettings()
+ if (!settings.tutorialCompleted) {
+ const next = saveSettings({ tutorialCompleted: true })
+ pushState.settings(next)
+ }
+ })
+}
+
+export function closeOnboardingWindow(): void {
+ if (onboardingWindow && !onboardingWindow.isDestroyed()) {
+ onboardingWindow.close()
+ }
+}
diff --git a/electron/main/state.ts b/electron/main/state.ts
index a53827b..4cf50f8 100644
--- a/electron/main/state.ts
+++ b/electron/main/state.ts
@@ -49,10 +49,18 @@ export function initState(): void {
})
watcher.setPaused(loadSettings().incognito)
+ // After a restart-clear, the watcher.start() seeds lastSig from the live
+ // clipboard (correct). But if clearUnpinnedOnRestart removed items that are
+ // still on the clipboard, the user can re-copy them immediately — this works
+ // because start() always re-seeds lastSig fresh from the current clipboard.
+ // No extra invalidate() is needed here.
+
if (pruneTimer !== null) clearInterval(pruneTimer)
pruneTimer = setInterval(() => {
if (runtime.quitting) return
if (store.pruneExpired(loadSettings().autoDeleteHours)) {
+ // Pruned items should be re-capturable if still on the clipboard.
+ watcher.resyncSignature()
pushState.items()
}
}, 60_000)
diff --git a/electron/main/tray.ts b/electron/main/tray.ts
index 1ec1849..4f9f5b6 100644
--- a/electron/main/tray.ts
+++ b/electron/main/tray.ts
@@ -6,7 +6,7 @@
* state (checkmarks) is rebuilt every time the menu opens so it always reflects
* current settings.
*/
-import { Menu, Tray, app, nativeImage } from 'electron'
+import { Menu, Tray, app, nativeImage, Notification } from 'electron'
import { existsSync } from 'node:fs'
import { PATHS } from '../store/paths'
import { loadSettings, saveSettings } from '../store/settings'
@@ -28,21 +28,34 @@ function fallbackIcon(): Electron.NativeImage {
}
export function createTray(): Tray {
- const iconPath = PATHS.icon()
- let image = existsSync(iconPath) ? nativeImage.createFromPath(iconPath) : fallbackIcon()
- if (!image.isEmpty() && existsSync(iconPath)) {
- const multiImage = nativeImage.createEmpty()
- for (const size of [16, 20, 24, 32, 48, 64]) {
- multiImage.addRepresentation({
- scaleFactor: size / 16,
- buffer: image.resize({ width: size, height: size, quality: 'best' }).toPNG()
- })
- }
- image = multiImage
+ const iconPath = PATHS.trayIcon()
+ let image: Electron.NativeImage
+
+ if (existsSync(iconPath)) {
+ // Load and resize to exactly 32x32. Windows system tray renders icons at 16x16
+ // logical pixels but uses 32x32 physical pixels on 2x DPI displays.
+ // Using a single 32x32 image with no scaleFactor trickery is the most reliable
+ // approach — the OS scales it automatically.
+ image = nativeImage.createFromPath(iconPath).resize({ width: 32, height: 32, quality: 'best' })
+ } else {
+ image = fallbackIcon()
}
tray = new Tray(image)
tray.setToolTip('Edge-Drop')
+ // Show welcome notification on first run
+ if (!existsSync(PATHS.indexFile())) {
+ try {
+ if (Notification.isSupported()) {
+ new Notification({
+ title: 'Edge-Drop Clipboard Shelf',
+ body: 'Hover against the middle-left screen edge, or press Alt+C to slide open your shelf.',
+ icon: PATHS.icon()
+ }).show()
+ }
+ } catch { /* ignore */ }
+ }
+
const rebuild = () => {
const settings = loadSettings()
const menu = Menu.buildFromTemplate([
diff --git a/electron/main/window.ts b/electron/main/window.ts
index d2af024..1fd6a49 100644
--- a/electron/main/window.ts
+++ b/electron/main/window.ts
@@ -61,14 +61,13 @@ export function setInteractive(value: boolean): void {
if (value) {
// Panel is open: disable click-through so user can interact.
mainWindow.setIgnoreMouseEvents(false)
- mainWindow.setAlwaysOnTop(true, 'floating')
+ // Use 'screen-saver' level to stay above fullscreen apps (YouTube fullscreen, games, etc.)
+ // 'floating' (HWND_TOPMOST) can be pushed behind by fullscreen D3D/browser windows.
+ mainWindow.setAlwaysOnTop(true, 'screen-saver')
} else {
// Panel is closed: full click-through, no forwarding needed.
- // Cursor edge detection is done by the main-process poll (startCursorPoll)
- // via screen.getCursorScreenPoint() + IPC, so forward:true is not required
- // and omitting it ensures Windows passes ALL mouse clicks to apps beneath.
mainWindow.setIgnoreMouseEvents(true, { forward: false })
- mainWindow.setAlwaysOnTop(true, 'floating')
+ mainWindow.setAlwaysOnTop(true, 'screen-saver')
}
}
@@ -81,6 +80,35 @@ export function setInteractive(value: boolean): void {
let cursorPollTimer: ReturnType<typeof setInterval> | null = null
let heartbeatTimer: ReturnType<typeof setInterval> | null = null
let lastEdgeState = false
+let heartbeatPaused = false
+
+/**
+ * Temporarily suspend the always-on-top heartbeat.
+ *
+ * The heartbeat calls setAlwaysOnTop() every 500 ms, which reasserts z-order
+ * via SetWindowPos(HWND_TOPMOST) on Windows. During a native drag the OS
+ * renders the drag-ghost image using the DWM compositor at a layer that sits
+ * BELOW HWND_TOPMOST windows. Every heartbeat tick therefore pushes our
+ * window in front of the ghost, making it disappear ~0.5 s into any drag.
+ *
+ * Pausing the heartbeat for the duration of the drag keeps the window at its
+ * current z-position and lets the DWM ghost stay visible for the full drag.
+ * The heartbeat is re-enabled (and immediately re-asserts always-on-top) when
+ * the drag ends.
+ */
+export function setHeartbeatPaused(paused: boolean): void {
+ heartbeatPaused = paused
+ if (!paused) {
+ // Re-assert z-order immediately when drag ends so the window snaps back
+ // to the correct level without waiting up to 500 ms for the next tick.
+ if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isVisible()) {
+ mainWindow.setAlwaysOnTop(true, 'screen-saver')
+ }
+ if (detectorWindow && !detectorWindow.isDestroyed() && detectorWindow.isVisible()) {
+ detectorWindow.setAlwaysOnTop(true, 'screen-saver')
+ }
+ }
+}
export function startCursorPoll(): void {
if (cursorPollTimer !== null) return
@@ -191,7 +219,7 @@ export function createWindow(): BrowserWindow {
// Respect OS-level always-on-top reordering.
mainWindow.on('focus', () => {
- mainWindow?.setAlwaysOnTop(true, 'floating')
+ mainWindow?.setAlwaysOnTop(true, 'screen-saver')
})
// Open external links in the default browser.
@@ -209,8 +237,9 @@ export function createWindow(): BrowserWindow {
mainWindow.once('ready-to-show', () => {
if (!mainWindow) return
- mainWindow.show()
- mainWindow.setAlwaysOnTop(true, 'floating')
+ mainWindow.showInactive()
+ // 'screen-saver' level stays above fullscreen browser windows and games.
+ mainWindow.setAlwaysOnTop(true, 'screen-saver')
})
mainWindow.webContents.on('console-message', (_event, _level, message, line, sourceId) => {
@@ -226,19 +255,19 @@ export function createWindow(): BrowserWindow {
// Create the detector window for OS drag-in awareness.
createDetectorWindow(x, y, width, height)
- // Periodic heartbeat: Windows window managers and fullscreen apps often re-order
- // transparent floating windows behind other applications when inactive.
- // Re-asserting always-on-top at 'screen-saver' level every 3s prevents losing edge hover.
+ // Periodic heartbeat: Windows fullscreen apps (Chrome YouTube, games) push
+ // floating windows behind them. Re-asserting 'screen-saver' level every 500ms
+ // ensures the panel instantly re-appears when the user exits fullscreen.
if (heartbeatTimer !== null) clearInterval(heartbeatTimer)
heartbeatTimer = setInterval(() => {
- if (runtime.quitting) return
+ if (runtime.quitting || heartbeatPaused) return
if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isVisible()) {
- mainWindow.setAlwaysOnTop(true, 'floating')
+ mainWindow.setAlwaysOnTop(true, 'screen-saver')
}
if (detectorWindow && !detectorWindow.isDestroyed() && detectorWindow.isVisible()) {
- detectorWindow.setAlwaysOnTop(true, 'normal')
+ detectorWindow.setAlwaysOnTop(true, 'screen-saver')
}
- }, 3000)
+ }, 500)
return mainWindow
}
@@ -255,7 +284,7 @@ export function setVisible(visible: boolean): void {
if (!mainWindow) return
if (visible) {
mainWindow.showInactive()
- mainWindow.setAlwaysOnTop(true, 'floating')
+ mainWindow.setAlwaysOnTop(true, 'screen-saver')
} else {
mainWindow.hide()
}
diff --git a/electron/preload/index.ts b/electron/preload/index.ts
index 29b7d05..bdf00bc 100644
--- a/electron/preload/index.ts
+++ b/electron/preload/index.ts
@@ -108,6 +108,7 @@ const api = {
invoke('settings:update', patch),
setInteractive: (value: boolean) => invoke('window:set-interactive', value),
setInternalDrag: (active: boolean) => { internalDrag = active },
+ broadcastTutorialStep: (step: number) => send('tutorial:set-step', step),
/* Main -> Renderer */
onItems: (cb: (items: EventArgs<'state:items'>[0]) => void) => on('state:items', cb),
@@ -118,6 +119,7 @@ const api = {
onInternalDrop: (cb: (pos: { x: number; y: number }) => void) => on('item:internal-drop', cb),
onCursorEdge: (cb: (data: { x: number; y: number; inEdge: boolean; inZone: boolean }) => void) => on('window:cursor-edge', cb),
onToast: (cb: (toast: { id: string; message: string; tone: 'info' | 'error' }) => void) => on('ui:toast', cb),
+ onTutorialStep: (cb: (step: number) => void) => on('tutorial:step', cb),
/* Drag helpers */
// (Handled natively by capturing drop event above)
diff --git a/electron/store/ItemStore.ts b/electron/store/ItemStore.ts
index f5ad234..854968c 100644
--- a/electron/store/ItemStore.ts
+++ b/electron/store/ItemStore.ts
@@ -9,8 +9,9 @@
* - Persist the index to JSON and image bytes to per-item PNG files.
* - Convert internal items to the serializable DTO form for the renderer.
*/
-import { existsSync, readFileSync, writeFileSync, rmSync, statSync, readdirSync } from 'node:fs'
+import { existsSync, readFileSync, writeFileSync, rmSync, statSync, readdirSync, mkdirSync } from 'node:fs'
import { join, extname, basename as pathBasename } from 'node:path'
+import { nativeImage } from 'electron'
import {
type ClipboardItem,
type ClipboardItemDto,
@@ -56,6 +57,9 @@ export class ItemStore {
this.items = raw.items.filter((it) => it && it.data && typeof it.id === 'string')
this.rebuildIndex()
}
+ } else {
+ this.items = []
+ this.rebuildIndex()
}
} catch {
this.items = []
@@ -452,16 +456,23 @@ export class ItemStore {
}
}
if (it.data.kind === 'files') {
- // Generate inline previews for image files (first 4 only to cap size).
- const previews = it.data.paths
- .filter((p) => isImageExt(p))
- .slice(0, 4)
- .map((p) => fileToDataUrl(p))
- // Per-file display metadata (name / ext / size / isImage) for rich rendering.
- const entries = it.data.paths.map(buildFileEntry)
+ // Build per-file metadata entries. If a file is an image, we generate and attach
+ // its preview data URL inline (capped to first 4 images to prevent bloat).
+ let imagePreviewCount = 0
+ const entries = it.data.paths.map((p) => {
+ const entry = buildFileEntry(p)
+ if (entry.isImage && imagePreviewCount < 4) {
+ imagePreviewCount++
+ return {
+ ...entry,
+ preview: fileToDataUrl(p)
+ }
+ }
+ return entry
+ })
return {
...it,
- data: { ...it.data, previews: previews.some(Boolean) ? previews : undefined, entries }
+ data: { ...it.data, entries }
}
}
return { ...it, data: it.data }
@@ -510,10 +521,35 @@ function buildFileEntry(p: string): FileEntry {
return entry
}
-/** Read a file from disk as a data URL (used for image-file previews). */
+/**
+ * Read an image file from disk and return a small thumbnail as a JPEG data URL.
+ * We use Electron's nativeImage.createFromPath().resize() to generate a small
+ * thumbnail on-the-fly without loading the full image bytes into memory.
+ * This keeps the IPC payload tiny (thumbnail vs 8-9MB original) and prevents
+ * the main thread from blocking when the user copies large images.
+ */
+const THUMB_SIZE = 240 // px — enough for the card UI, tiny IPC payload
+const THUMB_QUALITY = 80 // JPEG quality
+
function fileToDataUrl(p: string): string {
if (fileDataUrlCache.has(p)) return fileDataUrlCache.get(p)!
try {
+ // Use Electron nativeImage to create a thumbnail without loading the full file.
+ const img = nativeImage.createFromPath(p)
+ if (!img.isEmpty()) {
+ const size = img.getSize()
+ // Only resize if the image is larger than our thumbnail size.
+ const needsResize = size.width > THUMB_SIZE || size.height > THUMB_SIZE
+ const thumb = needsResize
+ ? img.resize({ width: THUMB_SIZE, quality: 'good' })
+ : img
+ const url = thumb.toDataURL({ scaleFactor: 1.0 })
+ .replace('image/png', 'image/jpeg') // hint the renderer it's small
+ if (fileDataUrlCache.size > 200) fileDataUrlCache.clear()
+ fileDataUrlCache.set(p, url)
+ return url
+ }
+ // Fallback for SVG and other formats nativeImage can't decode — read raw.
const buf = readFileSync(p)
const mime = detectImageMime(buf)
const url = `data:${mime};base64,${buf.toString('base64')}`
diff --git a/electron/store/paths.ts b/electron/store/paths.ts
index 66c50c6..e2c4ff3 100644
--- a/electron/store/paths.ts
+++ b/electron/store/paths.ts
@@ -22,8 +22,10 @@ export const PATHS = {
settingsFile: () => join(root(), 'settings.json'),
/** Scratch dir for temp files handed to native drag-out. */
tempDir: () => join(root(), 'temp'),
- /** App icon (used by tray + native drag image). */
- icon: () => join(app.getAppPath(), 'resources', 'icon.png')
+ /** App icon (used by window + native drag image). */
+ icon: () => join(app.getAppPath(), 'resources', 'icon.png'),
+ /** Tray icon (pure white logo without background). */
+ trayIcon: () => join(app.getAppPath(), 'resources', 'tray.png')
} as const
/** Idempotently create every directory the app needs. Safe to call repeatedly. */
diff --git a/public/Logo (4).png b/public/Logo (4).png
new file mode 100644
index 0000000..c2409b5
Binary files /dev/null and b/public/Logo (4).png differ
diff --git a/public/placeholder_copy.mp4 b/public/placeholder_copy.mp4
new file mode 100644
index 0000000..52f69ba
Binary files /dev/null and b/public/placeholder_copy.mp4 differ
diff --git a/public/placeholder_welcome.mp4 b/public/placeholder_welcome.mp4
new file mode 100644
index 0000000..f39fa5b
Binary files /dev/null and b/public/placeholder_welcome.mp4 differ
diff --git a/resources/icon.ico b/resources/icon.ico
index 9791ee6..2485869 100644
Binary files a/resources/icon.ico and b/resources/icon.ico differ
diff --git a/resources/icon.png b/resources/icon.png
index e6bd3c6..c5ea2bf 100644
Binary files a/resources/icon.png and b/resources/icon.png differ
diff --git a/resources/tray.png b/resources/tray.png
new file mode 100644
index 0000000..c2409b5
Binary files /dev/null and b/resources/tray.png differ
diff --git a/scratch/generate_new_icons.js b/scratch/generate_new_icons.js
new file mode 100644
index 0000000..9b99f3c
--- /dev/null
+++ b/scratch/generate_new_icons.js
@@ -0,0 +1,71 @@
+import { writeFileSync, readFileSync } from 'node:fs';
+import { Resvg } from '@resvg/resvg-js';
+
+// Load the original logo SVG (which already has correct internal transform + viewBox)
+const rawLogo = readFileSync('src/assets/logo.svg', 'utf8');
+
+// --- Strategy ---
+// The SVG has a viewBox of "0 0 1800 1800" (in pt units from potrace).
+// We embed the FULL original SVG as a nested <image> or via <svg> element.
+// This is the simplest and most correct approach — no manual transform math needed.
+
+// For the app icon: wrap it in a 256x256 canvas with a dark rounded background,
+// sized and padded so the logo fills about 55% of the canvas.
+const appIconSvg = `<svg width="256" height="256" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <linearGradient id="bg-grad" x1="0" y1="0" x2="256" y2="256" gradientUnits="userSpaceOnUse">
+ <stop offset="0%" stop-color="#2a2a2e"/>
+ <stop offset="100%" stop-color="#0f0f11"/>
+ </linearGradient>
+ <linearGradient id="border-grad" x1="0" y1="0" x2="0" y2="256" gradientUnits="userSpaceOnUse">
+ <stop offset="0%" stop-color="#ffffff" stop-opacity="0.15"/>
+ <stop offset="100%" stop-color="#ffffff" stop-opacity="0.02"/>
+ </linearGradient>
+ <clipPath id="round-clip">
+ <rect x="16" y="16" width="224" height="224" rx="48"/>
+ </clipPath>
+ </defs>
+ <!-- Rounded dark background card -->
+ <rect x="16" y="16" width="224" height="224" rx="48" fill="url(#bg-grad)"/>
+ <rect x="18" y="18" width="220" height="220" rx="46" fill="none" stroke="url(#border-grad)" stroke-width="1.5"/>
+
+ <!-- Embed the full original SVG, scaled to fill the padded area (56px padding each side) -->
+ <!-- The nested SVG inherits all internal transforms and draws perfectly -->
+ <svg x="56" y="56" width="144" height="144" viewBox="0 0 1800 1800" preserveAspectRatio="xMidYMid meet">
+ ${rawLogo.replace(/<svg[^>]*>/, '').replace('</svg>', '')}
+ </svg>
+</svg>`;
+
+console.log('Rendering App Icon (with background)...');
+const appResvg = new Resvg(appIconSvg, { fitTo: { mode: 'width', value: 256 } });
+const appPngBuffer = appResvg.render().asPng();
+writeFileSync('resources/icon.png', appPngBuffer);
+
+console.log('Generating resources/icon.ico...');
+const header = Buffer.from([ 0x00, 0x00, 0x01, 0x00, 0x01, 0x00 ]);
+const dirEntry = Buffer.alloc(16);
+dirEntry.writeUInt8(0, 0);
+dirEntry.writeUInt8(0, 1);
+dirEntry.writeUInt8(0, 2);
+dirEntry.writeUInt8(0, 3);
+dirEntry.writeUInt16LE(1, 4);
+dirEntry.writeUInt16LE(32, 6);
+dirEntry.writeUInt32LE(appPngBuffer.length, 8);
+dirEntry.writeUInt32LE(22, 12);
+const icoBuffer = Buffer.concat([header, dirEntry, appPngBuffer]);
+writeFileSync('resources/icon.ico', icoBuffer);
+
+// 2. Tray Icon — pure white logo, no background, fills the 256x256 canvas
+// Use 8px padding on each side so it has breathing room in the taskbar
+const trayIconSvg = `<svg width="256" height="256" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
+ <svg x="8" y="8" width="240" height="240" viewBox="0 0 1800 1800" preserveAspectRatio="xMidYMid meet">
+ ${rawLogo.replace(/<svg[^>]*>/, '').replace('</svg>', '')}
+ </svg>
+</svg>`;
+
+console.log('Rendering Tray Icon (pure white, large)...');
+const trayResvg = new Resvg(trayIconSvg, { fitTo: { mode: 'width', value: 256 } });
+const trayPngBuffer = trayResvg.render().asPng();
+writeFileSync('resources/tray.png', trayPngBuffer);
+
+console.log('Icons successfully generated!');
diff --git a/shared/types.ts b/shared/types.ts
index 2562c00..d3596a3 100644
--- a/shared/types.ts
+++ b/shared/types.ts
@@ -46,6 +46,7 @@ export interface FileEntry {
ext: string
size: number
isImage: boolean
+ preview?: string
}
/** Payload sent over IPC: same as ClipboardItem but with inline image previews. */
@@ -103,18 +104,21 @@ export interface Settings {
autoDeleteHours: number
/** UI visual style density ('modern' | 'compact'). */
uiStyle: 'modern' | 'compact'
+ /** Flag to track if the onboarding tutorial is completed. */
+ tutorialCompleted: boolean
}
export const DEFAULT_SETTINGS: Settings = {
- hotZoneHeight: 0.25,
+ hotZoneHeight: 0.60,
historyLimit: 500,
panelHeight: 0.5,
incognito: false,
launchAtLogin: true,
reduceMotion: false,
- clearUnpinnedOnRestart: true,
+ clearUnpinnedOnRestart: false,
autoDeleteHours: 0,
- uiStyle: 'modern'
+ uiStyle: 'modern',
+ tutorialCompleted: false
}
diff --git a/src/Onboarding.tsx b/src/Onboarding.tsx
new file mode 100644
index 0000000..aa3ced0
--- /dev/null
+++ b/src/Onboarding.tsx
@@ -0,0 +1,286 @@
+import { useState } from 'react'
+import { motion, AnimatePresence } from 'framer-motion'
+import logoUrl from './assets/logo.svg'
+
+const slides = [
+ {
+ id: 'slide-1',
+ title: 'Welcome to Edge-Drop',
+ description: 'Edge-Drop lives hidden on the left edge of your screen. Simply move your mouse to the left edge to open the panel, and move away to hide it.',
+ videoSrc: 'placeholder_welcome.mp4',
+ placeholderColor: 'linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%)'
+ },
+ {
+ id: 'slide-2',
+ title: 'Collect Anything',
+ description: 'Whenever you press Ctrl+C to copy text, images, or files, Edge-Drop automatically catches and saves them in the background.',
+ videoSrc: 'placeholder_copy.mp4',
+ placeholderColor: 'linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%)'
+ },
+ {
+ id: 'slide-3',
+ title: 'Drag & Drop Anywhere',
+ description: 'Need to use an item? Just open the panel and drag the card directly into any application, folder, or document.',
+ videoSrc: 'placeholder_drag.mp4',
+ placeholderColor: 'linear-gradient(135deg, #43E97B 0%, #38F9D7 100%)'
+ },
+ {
+ id: 'slide-4',
+ title: 'Explore File Stacks',
+ description: 'Copying multiple files groups them into a stack. You can drag the entire stack, or click it to view and extract individual files.',
+ videoSrc: 'placeholder_stacks.mp4',
+ placeholderColor: 'linear-gradient(135deg, #FA709A 0%, #FEE140 100%)'
+ },
+ {
+ id: 'slide-5',
+ title: 'Keep it Clean',
+ description: 'Click the Settings gear to configure the app, and click the Clear button at the bottom to wipe unpinned items when you are done.',
+ videoSrc: 'placeholder_clean.mp4',
+ placeholderColor: 'linear-gradient(135deg, #667EEA 0%, #764BA2 100%)'
+ }
+]
+
+export function Onboarding() {
+ const [currentIndex, setCurrentIndex] = useState(0)
+
+ const handleNext = () => {
+ if (currentIndex < slides.length - 1) {
+ setCurrentIndex(currentIndex + 1)
+ } else {
+ finish()
+ }
+ }
+
+ const handlePrev = () => {
+ if (currentIndex > 0) {
+ setCurrentIndex(currentIndex - 1)
+ }
+ }
+
+ const finish = async () => {
+ await window.edge.updateSettings({ tutorialCompleted: true })
+ window.close()
+ }
+
+ const currentSlide = slides[currentIndex]
+
+ return (
+ <div style={{
+ width: '100vw',
+ height: '100vh',
+ display: 'flex',
+ flexDirection: 'column',
+ background: '#121212',
+ color: '#fff',
+ overflow: 'hidden',
+ fontFamily: 'system-ui, -apple-system, sans-serif'
+ }}>
+ {/* Titlebar & Header */}
+ <div style={{
+ height: '60px',
+ WebkitAppRegion: 'drag' as any,
+ display: 'flex',
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ padding: '16px 24px',
+ boxSizing: 'border-box'
+ }}>
+ {/* Logo Area */}
+ <div style={{ display: 'flex', alignItems: 'center', gap: '0px' }}>
+ <img src={logoUrl} alt="Edge-Drop Logo" style={{ width: '42px', height: '42px' }} />
+ </div>
+
+ {/* Skip & Close Button */}
+ <div style={{ display: 'flex', alignItems: 'center', gap: '16px', WebkitAppRegion: 'no-drag' as any }}>
+ <button
+ onClick={finish}
+ style={{
+ background: 'transparent',
+ border: 'none',
+ color: '#888',
+ fontSize: '14px',
+ fontWeight: 500,
+ cursor: 'pointer',
+ padding: '6px 12px',
+ borderRadius: '6px',
+ transition: 'color 0.2s, background 0.2s'
+ }}
+ onMouseOver={(e) => { e.currentTarget.style.color = '#fff'; e.currentTarget.style.background = 'rgba(255, 255, 255, 0.08)' }}
+ onMouseOut={(e) => { e.currentTarget.style.color = '#888'; e.currentTarget.style.background = 'transparent' }}
+ >
+ Skip
+ </button>
+
+ <button
+ onClick={finish}
+ style={{
+ background: 'transparent',
+ border: 'none',
+ color: '#666',
+ width: '32px',
+ height: '32px',
+ borderRadius: '6px',
+ cursor: 'pointer',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ transition: 'background 0.2s, color 0.2s'
+ }}
+ onMouseOver={(e) => { e.currentTarget.style.background = 'rgba(255, 255, 255, 0.08)'; e.currentTarget.style.color = '#fff' }}
+ onMouseOut={(e) => { e.currentTarget.style.background = 'transparent'; e.currentTarget.style.color = '#666' }}
+ title="Close Onboarding"
+ >
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <path d="M13 1L1 13M1 1L13 13" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" />
+ </svg>
+ </button>
+ </div>
+ </div>
+
+ {/* Main Content Area */}
+ <div style={{ flex: 1, display: 'flex', flexDirection: 'column', alignItems: 'center', padding: '16px 48px' }}>
+
+ {/* Video / Placeholder Area */}
+ <div style={{
+ width: '100%',
+ maxWidth: '560px',
+ height: '315px', // 16:9 aspect ratio
+ background: '#1a1a1c',
+ borderRadius: '16px',
+ overflow: 'hidden',
+ position: 'relative',
+ boxShadow: '0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05)',
+ marginBottom: '36px',
+ border: '1px solid rgba(255, 255, 255, 0.05)'
+ }}>
+ <AnimatePresence mode="wait">
+ <motion.div
+ key={currentSlide.id}
+ initial={{ opacity: 0, x: 20 }}
+ animate={{ opacity: 1, x: 0 }}
+ exit={{ opacity: 0, x: -20 }}
+ transition={{ duration: 0.3 }}
+ style={{
+ width: '100%',
+ height: '100%',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ background: currentSlide.placeholderColor
+ }}
+ >
+ <video
+ src={currentSlide.videoSrc}
+ autoPlay
+ loop
+ muted
+ style={{
+ width: '100%',
+ height: '100%',
+ objectFit: 'cover'
+ }}
+ />
+ </motion.div>
+ </AnimatePresence>
+ </div>
+
+ {/* Text Area */}
+ <div style={{ textAlign: 'center', height: '100px', maxWidth: '480px' }}>
+ <AnimatePresence mode="wait">
+ <motion.div
+ key={currentSlide.id}
+ initial={{ opacity: 0, y: 15 }}
+ animate={{ opacity: 1, y: 0 }}
+ exit={{ opacity: 0, y: -15 }}
+ transition={{ duration: 0.25, ease: 'easeOut' }}
+ >
+ <h1 style={{ fontSize: '24px', margin: '0 0 12px 0', fontWeight: 700, letterSpacing: '-0.01em' }}>
+ {currentSlide.title}
+ </h1>
+ <p style={{ fontSize: '15px', lineHeight: 1.6, color: 'rgba(255,255,255,0.6)', margin: 0 }}>
+ {currentSlide.description}
+ </p>
+ </motion.div>
+ </AnimatePresence>
+ </div>
+
+ </div>
+
+ {/* Footer Navigation */}
+ <div style={{
+ height: '80px',
+ padding: '0 40px',
+ display: 'grid',
+ gridTemplateColumns: '1fr auto 1fr',
+ alignItems: 'center',
+ borderTop: '1px solid #333'
+ }}>
+ {/* Left Area (Previous) */}
+ <div style={{ display: 'flex', justifyContent: 'flex-start' }}>
+ <button
+ onClick={handlePrev}
+ disabled={currentIndex === 0}
+ style={{
+ background: '#2a2a2a',
+ border: '1px solid #444',
+ color: currentIndex === 0 ? '#555' : '#fff',
+ fontSize: '15px',
+ fontWeight: 500,
+ cursor: currentIndex === 0 ? 'default' : 'pointer',
+ padding: '8px 20px',
+ borderRadius: '6px',
+ transition: 'background 0.2s',
+ opacity: currentIndex === 0 ? 0 : 1, // Hide when disabled for perfect symmetry
+ pointerEvents: currentIndex === 0 ? 'none' : 'auto'
+ }}
+ onMouseOver={(e) => { if (currentIndex !== 0) e.currentTarget.style.background = '#333' }}
+ onMouseOut={(e) => { if (currentIndex !== 0) e.currentTarget.style.background = '#2a2a2a' }}
+ >
+ Previous
+ </button>
+ </div>
+
+ {/* Center Area (Dots) */}
+ <div style={{ display: 'flex', gap: '8px' }}>
+ {slides.map((_, i) => (
+ <div
+ key={i}
+ style={{
+ width: '8px',
+ height: '8px',
+ borderRadius: '50%',
+ background: i === currentIndex ? '#fff' : '#444',
+ transition: 'background 0.3s'
+ }}
+ />
+ ))}
+ </div>
+
+ {/* Right Area (Next) */}
+ <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
+ <button
+ onClick={handleNext}
+ style={{
+ background: '#fff',
+ border: 'none',
+ color: '#000',
+ fontSize: '15px',
+ fontWeight: 600,
+ cursor: 'pointer',
+ padding: '8px 24px',
+ borderRadius: '6px',
+ transition: 'transform 0.1s, opacity 0.2s'
+ }}
+ onMouseDown={(e) => e.currentTarget.style.transform = 'scale(0.96)'}
+ onMouseUp={(e) => e.currentTarget.style.transform = 'scale(1)'}
+ onMouseLeave={(e) => e.currentTarget.style.transform = 'scale(1)'}
+ onMouseOver={(e) => e.currentTarget.style.opacity = '0.9'}
+ onMouseOut={(e) => e.currentTarget.style.opacity = '1'}
+ >
+ {currentIndex === slides.length - 1 ? 'Get Started' : 'Next'}
+ </button>
+ </div>
+ </div>
+ </div>
+ )
+}
diff --git a/src/assets/logo.svg b/src/assets/logo.svg
new file mode 100644
index 0000000..0453fdc
--- /dev/null
+++ b/src/assets/logo.svg
@@ -0,0 +1 @@
+<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="1800.000000pt" height="1800.000000pt" viewBox="0 0 1800.000000 1800.000000" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0.000000,1800.000000) scale(0.100000,-0.100000)" fill="#FFFFFF" stroke="none"> <path d="M9005 14013 c-152 -19 -325 -52 -470 -89 -110 -29 -335 -99 -390 -123 -11 -5 -45 -19 -75 -31 -50 -20 -323 -153 -377 -184 -226 -128 -511 -348 -684 -527 -132 -136 -278 -319 -345 -432 -16 -27 -37 -61 -46 -75 -127 -202 -234 -494 -282 -768 -18 -104 -21 -364 -5 -434 6 -25 14 -65 19 -90 9 -50 36 -125 70 -193 45 -89 133 -164 229 -193 84 -25 233 -13 326 26 53 23 169 80 197 98 23 14 166 103 233 145 11 6 38 23 60 37 22 14 47 29 55 33 8 4 38 21 65 38 28 16 64 37 80 45 17 8 59 31 95 50 143 79 335 170 410 194 14 5 50 18 80 30 65 24 153 54 230 76 30 9 75 22 100 30 25 8 55 14 68 14 12 0 48 6 80 14 159 40 448 57 617 36 308 -38 435 -74 650 -181 193 -96 350 -224 464 -378 62 -84 151 -254 151 -289 0 -11 8 -37 17 -58 13 -31 17 -73 17 -204 1 -168 -6 -216 -51 -335 -150 -398 -550 -689 -1053 -765 -36 -5 -94 -14 -130 -20 -231 -35 -748 10 -1092 96 -153 38 -186 46 -228 60 -25 8 -53 14 -62 14 -10 0 -32 6 -50 14 -18 8 -80 29 -138 47 -143 44 -205 64 -270 89 -30 12 -68 26 -85 31 -16 5 -39 13 -50 18 -11 5 -42 16 -70 26 -27 9 -84 30 -125 47 -41 16 -92 36 -112 44 -21 8 -57 21 -80 30 -24 9 -59 22 -78 29 -19 7 -69 26 -110 43 -153 61 -356 135 -415 152 -28 8 -53 16 -135 45 -32 12 -83 27 -200 61 -66 19 -155 41 -235 58 -38 8 -102 22 -141 31 -40 8 -86 15 -103 15 -16 0 -76 7 -133 16 -80 13 -145 15 -307 11 -113 -3 -228 -10 -256 -16 -27 -6 -84 -18 -125 -27 -41 -9 -86 -21 -100 -26 -14 -6 -38 -14 -55 -19 -83 -22 -220 -88 -321 -155 -174 -115 -342 -310 -423 -489 -12 -27 -26 -58 -31 -67 -31 -57 -76 -233 -89 -344 -18 -154 -9 -299 30 -454 84 -341 313 -611 614 -723 120 -45 168 -52 335 -52 169 0 176 1 350 53 30 9 64 22 75 29 11 7 25 13 33 13 7 0 91 38 185 84 299 145 399 189 537 231 30 10 73 24 95 31 23 8 49 14 59 14 11 0 42 6 70 14 107 31 343 69 536 87 213 21 685 23 965 5 138 -9 338 -22 445 -28 449 -29 930 -7 1163 53 22 6 62 15 90 20 29 5 75 15 102 23 28 8 75 21 105 30 45 12 171 56 265 91 66 25 333 155 380 185 17 11 39 24 50 30 62 31 258 165 330 225 159 132 221 188 313 283 161 166 316 361 417 523 149 241 264 468 340 669 9 25 23 60 31 78 8 18 14 39 14 47 0 8 6 29 14 47 20 50 64 208 89 328 46 214 51 270 51 525 0 213 -4 268 -22 370 -32 172 -70 323 -91 364 -6 11 -11 27 -11 36 0 13 -45 118 -70 165 -5 8 -27 51 -50 95 -140 274 -377 541 -648 730 -136 95 -361 216 -502 270 -25 9 -60 23 -78 31 -18 8 -39 14 -47 14 -8 0 -29 6 -47 14 -90 38 -340 93 -548 121 -149 19 -596 19 -755 -2z"/> <path d="M13015 11574 c-38 -14 -82 -29 -96 -33 -37 -12 -65 -29 -149 -93 -140 -104 -232 -231 -334 -462 -14 -32 -26 -65 -26 -72 0 -7 -6 -28 -14 -46 -38 -88 -83 -311 -120 -598 -8 -63 -22 -164 -31 -225 -8 -60 -15 -123 -15 -140 0 -58 -74 -434 -110 -560 -41 -140 -109 -337 -121 -349 -5 -6 -9 -18 -9 -27 0 -10 -6 -30 -14 -46 -7 -15 -36 -73 -62 -128 -94 -192 -192 -343 -316 -485 -291 -335 -615 -526 -1058 -624 -238 -52 -703 -39 -1030 29 -36 7 -103 21 -150 30 -47 9 -114 24 -150 32 -36 8 -94 21 -130 30 -36 8 -90 20 -120 28 -30 7 -91 21 -135 30 -44 9 -105 23 -135 30 -30 7 -91 21 -135 30 -601 126 -716 140 -1195 140 -386 0 -486 -8 -667 -50 -34 -8 -71 -15 -84 -15 -21 0 -42 -5 -189 -47 -104 -30 -360 -125 -385 -143 -5 -5 -44 -25 -85 -47 -41 -21 -95 -51 -120 -67 -71 -45 -195 -129 -200 -136 -3 -3 -32 -27 -65 -52 -94 -72 -253 -234 -337 -345 -43 -56 -78 -104 -78 -106 0 -3 -16 -29 -35 -59 -38 -56 -175 -329 -175 -347 0 -6 -6 -25 -14 -43 -33 -78 -70 -222 -92 -358 -13 -77 -17 -163 -17 -325 1 -272 17 -386 93 -650 25 -88 69 -199 133 -335 43 -92 235 -395 266 -420 3 -3 33 -36 65 -75 98 -115 271 -279 396 -375 65 -49 122 -90 125 -90 4 0 24 -13 45 -30 21 -16 40 -30 43 -30 3 0 38 -19 79 -43 74 -43 98 -55 243 -123 85 -40 218 -90 273 -104 19 -5 46 -13 60 -18 106 -39 342 -86 587 -117 340 -43 944 2 1234 91 25 8 53 14 62 14 10 0 33 6 51 14 18 7 58 21 88 30 54 17 82 27 170 62 154 60 411 188 517 257 24 15 45 27 47 27 3 0 53 33 113 72 59 40 116 77 125 83 9 5 50 33 90 61 198 138 305 210 438 296 418 271 740 388 1064 388 186 0 413 -50 676 -150 30 -12 73 -28 95 -36 22 -9 54 -19 70 -23 17 -5 41 -13 55 -19 40 -16 216 -64 300 -82 30 -6 131 -18 224 -26 146 -12 191 -12 320 0 83 8 174 20 201 26 153 36 175 43 285 85 103 39 130 52 225 108 206 121 414 319 517 493 18 31 42 70 52 88 29 48 110 234 128 296 39 133 48 172 63 285 19 150 19 237 0 373 -28 194 -53 286 -117 432 -121 274 -324 495 -570 620 -162 82 -287 110 -485 110 -172 0 -323 -26 -453 -78 -14 -5 -45 -18 -70 -27 -207 -81 -450 -238 -666 -430 -6 -5 -46 -41 -90 -80 -89 -78 -322 -310 -434 -431 -41 -44 -98 -105 -126 -135 -27 -30 -76 -83 -109 -119 -57 -64 -221 -239 -400 -430 -171 -182 -443 -446 -550 -535 -27 -22 -65 -54 -84 -71 -62 -53 -192 -149 -307 -225 -144 -96 -146 -98 -164 -106 -8 -4 -33 -18 -55 -32 -50 -31 -271 -141 -305 -152 -14 -4 -50 -17 -80 -29 -30 -12 -68 -26 -85 -30 -16 -5 -61 -18 -100 -30 -232 -68 -529 -86 -730 -43 -75 15 -204 61 -270 95 -44 23 -165 111 -205 149 -91 88 -156 189 -201 319 -33 92 -34 286 -2 377 53 149 164 293 313 408 32 25 61 45 64 45 3 0 22 12 43 26 102 69 308 150 503 197 139 33 484 77 605 77 123 0 511 46 645 76 106 25 183 45 215 55 17 6 44 14 60 19 116 32 360 139 475 209 19 11 42 24 50 28 23 11 201 133 236 162 124 105 252 218 289 256 50 52 199 211 280 300 102 113 328 341 401 406 90 80 205 168 314 240 109 72 369 209 434 228 17 5 56 19 86 31 64 25 137 47 198 60 23 5 51 14 61 20 11 5 30 10 42 10 12 0 45 6 73 14 28 8 87 22 131 31 436 94 699 247 911 530 155 206 235 393 290 675 13 69 15 128 11 310 -4 240 -15 314 -72 515 -58 202 -145 395 -243 544 -23 34 -42 65 -42 68 0 15 -256 313 -269 313 -3 0 -19 13 -36 28 -96 89 -257 189 -365 226 -114 38 -160 46 -277 45 -98 0 -130 -5 -188 -25z"/> </g> </svg>
diff --git a/src/assets/wordmark.svg b/src/assets/wordmark.svg
new file mode 100644
index 0000000..9708b52
--- /dev/null
+++ b/src/assets/wordmark.svg
@@ -0,0 +1 @@
+<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="1800.000000pt" height="1014.000000pt" viewBox="0 0 1800.000000 1014.000000" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0.000000,1014.000000) scale(0.100000,-0.100000)" fill="#FFFFFF" stroke="none"> <path d="M11247 7250 c-58 -51 -59 -65 -54 -652 l6 -528 -22 -15 c-18 -12 -70 -15 -312 -15 -298 0 -382 -8 -493 -45 -29 -10 -55 -21 -58 -26 -3 -5 -11 -9 -19 -9 -21 0 -126 -65 -183 -114 -58 -50 -150 -151 -163 -181 -5 -11 -18 -33 -29 -50 -35 -54 -78 -159 -91 -225 -30 -154 -33 -213 -14 -315 17 -95 45 -197 65 -233 5 -9 11 -24 15 -32 18 -46 101 -163 148 -211 201 -203 469 -289 745 -239 180 33 375 149 479 286 20 27 40 51 43 54 12 10 75 125 88 161 6 19 21 69 32 110 19 71 20 111 20 1147 0 976 -1 1076 -16 1102 -40 66 -130 81 -187 30z m-67 -1480 c12 -7 15 -50 15 -257 1 -136 -2 -306 -7 -376 -7 -113 -12 -135 -40 -195 -101 -214 -282 -332 -513 -332 -115 0 -183 19 -308 86 -42 23 -138 125 -175 187 -63 105 -82 176 -82 308 0 119 3 135 48 244 43 103 156 223 258 274 127 63 166 69 494 70 167 0 301 -3 310 -9z"/> <path d="M5081 7256 c-18 -6 -44 -24 -57 -40 l-24 -27 0 -553 c0 -426 -3 -556 -12 -569 -12 -15 -50 -17 -353 -20 -343 -3 -367 -6 -470 -45 -144 -54 -289 -158 -376 -269 -51 -65 -121 -194 -149 -273 -19 -55 -39 -198 -40 -285 -2 -213 -38 -315 -149 -426 -71 -70 -103 -90 -195 -120 -53 -17 -91 -19 -420 -19 -319 0 -370 2 -437 19 -187 46 -317 152 -397 324 -57 120 -126 107 597 107 595 0 631 1 671 19 65 29 80 60 80 166 0 57 -7 115 -19 160 -24 87 -50 157 -62 170 -5 5 -9 14 -9 21 0 20 -68 116 -128 179 -96 101 -201 174 -322 222 -129 51 -342 70 -446 38 -27 -8 -57 -15 -66 -15 -25 0 -174 -72 -233 -112 -101 -69 -218 -196 -260 -283 -11 -22 -24 -46 -30 -54 -28 -40 -71 -203 -78 -301 -6 -83 5 -231 24 -300 11 -43 22 -72 57 -150 53 -117 178 -257 299 -336 45 -30 88 -54 95 -54 8 0 18 -4 24 -10 16 -16 102 -40 194 -55 120 -20 764 -20 870 -1 186 34 320 120 454 289 l39 49 73 -80 c80 -87 173 -161 234 -188 164 -70 254 -88 405 -81 147 8 209 22 325 76 54 25 153 94 209 145 44 41 141 171 165 221 10 22 22 48 28 58 5 10 19 49 31 85 l22 67 0 1096 c0 1083 0 1097 -20 1119 -35 39 -95 54 -144 36z m-107 -1476 l26 -10 0 -327 c0 -360 -6 -404 -67 -530 -36 -74 -158 -199 -233 -237 -105 -53 -157 -66 -265 -66 -111 0 -158 11 -265 63 -68 34 -194 148 -223 202 -66 126 -87 200 -87 316 0 260 152 471 410 570 25 10 122 15 350 19 173 3 318 7 322 8 4 1 18 -2 32 -8z m-2297 -15 c19 -8 41 -15 49 -15 16 0 127 -65 162 -94 75 -63 133 -142 172 -233 41 -96 91 -88 -538 -91 l-552 -2 0 22 c0 13 7 36 15 52 8 15 15 32 15 36 0 21 77 135 119 176 74 74 131 107 271 157 36 13 251 7 287 -8z"/> <path d="M6140 6029 c-143 -40 -202 -69 -314 -153 -213 -161 -336 -408 -336 -676 0 -244 100 -467 285 -638 64 -58 174 -132 199 -132 6 0 16 -4 21 -9 13 -11 100 -41 155 -53 25 -5 146 -13 270 -17 207 -6 229 -9 269 -30 67 -35 108 -78 141 -148 57 -120 32 -253 -65 -348 -88 -87 -76 -85 -645 -85 -465 0 -497 -1 -523 -19 -89 -58 -85 -176 8 -228 40 -23 41 -23 500 -23 507 1 580 7 695 64 115 56 234 184 275 296 9 25 23 83 31 130 13 75 13 96 0 170 -26 152 -71 238 -175 331 -69 63 -136 102 -226 130 -51 16 -92 19 -265 19 -236 0 -277 9 -425 87 -36 20 -157 140 -176 176 -74 139 -89 194 -89 328 0 108 4 127 48 234 45 109 151 226 253 278 108 56 155 68 279 68 139 -1 173 -11 305 -90 42 -25 127 -132 148 -189 116 -303 319 -441 647 -442 93 0 120 -4 142 -18 34 -22 68 -65 68 -86 0 -20 53 -133 98 -208 71 -120 226 -250 372 -312 148 -63 167 -66 603 -66 389 0 400 1 425 21 64 50 79 115 41 176 -38 61 -36 61 -474 66 -427 5 -412 3 -530 57 -55 26 -144 100 -188 158 -48 63 -111 188 -102 203 4 5 249 9 628 9 l623 0 44 23 c82 42 98 121 61 302 -19 94 -24 107 -74 215 -75 159 -226 303 -410 388 -37 18 -75 32 -85 32 -9 0 -35 7 -57 15 -59 21 -301 20 -369 -1 -272 -88 -440 -222 -547 -435 -17 -35 -41 -82 -52 -104 -30 -61 -75 -103 -144 -135 -53 -25 -75 -30 -141 -30 -49 0 -87 6 -106 15 -15 8 -33 15 -38 15 -14 0 -88 57 -116 89 -25 28 -62 102 -62 123 0 22 -92 173 -130 215 -40 43 -130 119 -175 149 -158 102 -421 143 -595 93z m2483 -269 c72 -25 87 -34 159 -88 52 -38 122 -119 156 -180 24 -44 54 -133 48 -148 -5 -12 -80 -14 -553 -12 l-548 3 1 25 c5 71 77 197 162 278 64 62 202 133 277 144 87 12 235 1 298 -22z"/> <path d="M12275 6025 c-69 -15 -106 -29 -190 -70 -87 -43 -219 -179 -267 -276 -78 -156 -72 -109 -76 -664 -2 -275 -1 -519 3 -543 5 -35 14 -48 47 -72 49 -35 88 -38 134 -9 67 41 64 16 64 529 0 489 3 531 47 620 57 116 144 187 272 224 84 24 178 17 266 -21 52 -22 112 -71 152 -125 69 -95 83 -160 75 -354 -5 -138 7 -223 48 -339 81 -227 276 -420 510 -504 70 -25 242 -52 290 -46 163 24 240 43 320 80 168 78 325 235 397 395 11 25 27 62 36 83 9 21 17 48 17 60 0 12 7 44 15 71 20 64 20 228 0 292 -8 27 -15 59 -15 70 0 12 -14 55 -32 95 -158 366 -523 570 -903 505 -174 -30 -327 -113 -451 -243 -50 -52 -84 -68 -84 -38 0 26 -151 170 -215 206 -146 82 -304 107 -460 74z m1481 -264 c65 -18 88 -27 134 -53 8 -4 22 -11 30 -15 32 -14 123 -98 158 -147 38 -51 55 -83 88 -165 27 -64 26 -274 -1 -351 -21 -61 -87 -168 -131 -215 -40 -42 -140 -115 -158 -115 -8 0 -17 -4 -20 -9 -3 -5 -37 -18 -75 -30 -162 -49 -341 -18 -481 83 -103 75 -168 161 -214 281 -27 72 -29 280 -3 350 76 207 211 333 412 385 91 24 173 24 261 1z"/> <path d="M15330 6024 c-88 -17 -143 -36 -218 -76 -35 -18 -75 -39 -90 -47 -37 -20 -171 -156 -210 -213 -60 -88 -99 -178 -124 -288 -7 -28 -13 -336 -17 -800 -6 -698 -8 -759 -25 -805 -20 -54 -43 -110 -57 -137 -39 -77 -91 -173 -98 -182 -4 -6 -23 -47 -41 -91 -32 -75 -34 -87 -33 -195 0 -110 2 -118 33 -175 76 -142 187 -207 348 -207 101 0 151 16 229 74 118 87 180 233 154 370 -14 76 -70 213 -121 298 -9 14 -53 110 -85 185 -35 82 -45 171 -45 404 0 209 2 231 18 240 9 5 168 11 352 14 335 5 335 5 405 32 39 15 80 29 92 32 12 3 28 11 34 19 6 8 16 14 21 14 16 0 114 69 168 117 115 103 192 233 244 414 24 82 22 292 -3 391 -107 418 -524 693 -931 612z m260 -263 c161 -41 259 -111 353 -253 20 -31 37 -61 37 -66 0 -5 6 -22 14 -38 26 -55 40 -194 27 -270 -12 -65 -32 -130 -52 -164 -5 -8 -16 -31 -26 -50 -31 -64 -151 -174 -228 -210 -130 -61 -190 -70 -477 -70 -143 0 -268 4 -282 10 l-26 10 0 329 c0 275 3 337 16 382 63 206 196 334 404 390 85 23 148 23 240 0z m-747 -2343 c91 -188 100 -223 73 -276 -64 -124 -246 -86 -246 52 0 46 13 84 56 171 51 102 64 125 73 125 5 0 25 -33 44 -72z"/> </g> </svg>
diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsx
index 4e81d51..782042b 100644
--- a/src/components/ClipboardItem.tsx
+++ b/src/components/ClipboardItem.tsx
@@ -126,8 +126,13 @@ function ClipboardItemBase({ item }: Props) {
const onExpand = useCallback((e?: React.MouseEvent) => {
e?.stopPropagation()
- if (isBundle) setExpanded(true)
- }, [isBundle])
+ if (isBundle) {
+ setExpanded(true)
+ if (useStore.getState().tutorialStep === 4 && item.id === 'onboarding-files') {
+ useStore.getState().setTutorialStep(5)
+ }
+ }
+ }, [isBundle, item.id])
const onCollapse = useCallback((e?: React.MouseEvent) => {
e?.stopPropagation()
@@ -436,9 +441,20 @@ function BundleFluidPreview({
animate={{ opacity: 1, x: 0, y: 0, rotate: 0, scale: 1, zIndex: 1 }}
exit={{ opacity: 0 }}
>
- <div className="fluid-list-icon" style={{ color: getFileKind(filePath).color }}>
- <FileKindIcon path={filePath} width={16} height={16} />
- </div>
+ {entry?.isImage && entry.preview ? (
+ <div className="fluid-list-icon" style={{ overflow: 'hidden', padding: 0 }}>
+ <img
+ src={entry.preview}
+ alt=""
+ draggable={false}
+ style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 6 }}
+ />
+ </div>
+ ) : (
+ <div className="fluid-list-icon" style={{ color: getFileKind(filePath).color }}>
+ <FileKindIcon path={filePath} width={16} height={16} />
+ </div>
+ )}
<div className="fluid-list-text-wrap">
<div className="fluid-list-text">{name}</div>
{size > 0 && <div className="fluid-list-sub">{formatBytes(size)}</div>}
@@ -466,12 +482,13 @@ function BundleFluidPreview({
) : (
<motion.div key="collapsed" layout style={{ width: '100%' }} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>
<div className="bundle-stack-large">
- {paths.slice(0, 4).reverse().map((filePath, idx, arr) => {
+ {paths.slice(0, 4).map((filePath, i) => ({ filePath, pathIndex: i })).reverse().map(({ filePath, pathIndex }, idx, arr) => {
const realIndex = arr.length - 1 - idx
+ const entry = entries?.[pathIndex]
return (
<motion.div
- layoutId={`file-${item.id}-${idx}`}
- key={`${item.id}-${idx}`}
+ layoutId={`file-${item.id}-${pathIndex}`}
+ key={`${item.id}-${pathIndex}`}
className="bundle-stack-card bundle-file-stack-card"
animate={{
x: realIndex * 20 - 20,
@@ -482,9 +499,18 @@ function BundleFluidPreview({
style={{ zIndex: 10 - realIndex }}
initial={{ borderRadius: 8 }}
>
- <div style={{ color: getFileKind(filePath).color, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
- <FileKindIcon path={filePath} width={40} height={40} />
- </div>
+ {entry?.isImage && entry.preview ? (
+ <img
+ src={entry.preview}
+ alt=""
+ draggable={false}
+ style={{ width: '100%', height: '100%', objectFit: 'cover', borderRadius: 8 }}
+ />
+ ) : (
+ <div style={{ color: getFileKind(filePath).color, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
+ <FileKindIcon path={filePath} width={40} height={40} />
+ </div>
+ )}
</motion.div>
)
})}
@@ -540,12 +566,12 @@ function Preview({ item }: { item: ClipboardItemDto }) {
const entry = item.data.entries?.[0]
const name = entry?.name ?? basename(first)
// Single image file — show its thumbnail.
- if (item.data.previews && item.data.previews[0]) {
+ if (entry?.isImage && entry.preview) {
return (
<div className="thumb-wrap">
<img
className="thumb"
- src={item.data.previews[0]}
+ src={entry.preview}
alt=""
draggable={false}
/>
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index d40c1f4..333161f 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -10,19 +10,27 @@ export function Header() {
return (
<div className="header" style={{ display: 'flex', justifyContent: 'space-between', width: '100%', alignItems: 'center', height: 40, padding: '0 14px 0 6px' }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8, paddingLeft: 6 }}>
- <img
- src="./logo-white.png"
- alt="Edge-Drop"
+ <svg
+ version="1.0"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 1800 1800"
+ preserveAspectRatio="xMidYMid meet"
+ width="26"
+ height="26"
+ shapeRendering="geometricPrecision"
style={{
- height: 20,
- width: 'auto',
- objectFit: 'contain',
- userSelect: 'none',
- pointerEvents: 'none',
display: 'block',
- imageRendering: 'auto'
+ width: 26,
+ height: 26,
+ userSelect: 'none',
+ pointerEvents: 'none'
}}
- />
+ >
+ <g transform="translate(0.000000,1800.000000) scale(0.100000,-0.100000)" fill="#FFFFFF" stroke="none">
+ <path d="M9005 14013 c-152 -19 -325 -52 -470 -89 -110 -29 -335 -99 -390 -123 -11 -5 -45 -19 -75 -31 -50 -20 -323 -153 -377 -184 -226 -128 -511 -348 -684 -527 -132 -136 -278 -319 -345 -432 -16 -27 -37 -61 -46 -75 -127 -202 -234 -494 -282 -768 -18 -104 -21 -364 -5 -434 6 -25 14 -65 19 -90 9 -50 36 -125 70 -193 45 -89 133 -164 229 -193 84 -25 233 -13 326 26 53 23 169 80 197 98 23 14 166 103 233 145 11 6 38 23 60 37 22 14 47 29 55 33 8 4 38 21 65 38 28 16 64 37 80 45 17 8 59 31 95 50 143 79 335 170 410 194 14 5 50 18 80 30 65 24 153 54 230 76 30 9 75 22 100 30 25 8 55 14 68 14 12 0 48 6 80 14 159 40 448 57 617 36 308 -38 435 -74 650 -181 193 -96 350 -224 464 -378 62 -84 151 -254 151 -289 0 -11 8 -37 17 -58 13 -31 17 -73 17 -204 1 -168 -6 -216 -51 -335 -150 -398 -550 -689 -1053 -765 -36 -5 -94 -14 -130 -20 -231 -35 -748 10 -1092 96 -153 38 -186 46 -228 60 -25 8 -53 14 -62 14 -10 0 -32 6 -50 14 -18 8 -80 29 -138 47 -143 44 -205 64 -270 89 -30 12 -68 26 -85 31 -16 5 -39 13 -50 18 -11 5 -42 16 -70 26 -27 9 -84 30 -125 47 -41 16 -92 36 -112 44 -21 8 -57 21 -80 30 -24 9 -59 22 -78 29 -19 7 -69 26 -110 43 -153 61 -356 135 -415 152 -28 8 -53 16 -135 45 -32 12 -83 27 -200 61 -66 19 -155 41 -235 58 -38 8 -102 22 -141 31 -40 8 -86 15 -103 15 -16 0 -76 7 -133 16 -80 13 -145 15 -307 11 -113 -3 -228 -10 -256 -16 -27 -6 -84 -18 -125 -27 -41 -9 -86 -21 -100 -26 -14 -6 -38 -14 -55 -19 -83 -22 -220 -88 -321 -155 -174 -115 -342 -310 -423 -489 -12 -27 -26 -58 -31 -67 -31 -57 -76 -233 -89 -344 -18 -154 -9 -299 30 -454 84 -341 313 -611 614 -723 120 -45 168 -52 335 -52 169 0 176 1 350 53 30 9 64 22 75 29 11 7 25 13 33 13 7 0 91 38 185 84 299 145 399 189 537 231 30 10 73 24 95 31 23 8 49 14 59 14 11 0 42 6 70 14 107 31 343 69 536 87 213 21 685 23 965 5 138 -9 338 -22 445 -28 449 -29 930 -7 1163 53 22 6 62 15 90 20 29 5 75 15 102 23 28 8 75 21 105 30 45 12 171 56 265 91 66 25 333 155 380 185 17 11 39 24 50 30 62 31 258 165 330 225 159 132 221 188 313 283 161 166 316 361 417 523 149 241 264 468 340 669 9 25 23 60 31 78 8 18 14 39 14 47 0 8 6 29 14 47 20 50 64 208 89 328 46 214 51 270 51 525 0 213 -4 268 -22 370 -32 172 -70 323 -91 364 -6 11 -11 27 -11 36 0 13 -45 118 -70 165 -5 8 -27 51 -50 95 -140 274 -377 541 -648 730 -136 95 -361 216 -502 270 -25 9 -60 23 -78 31 -18 8 -39 14 -47 14 -8 0 -29 6 -47 14 -90 38 -340 93 -548 121 -149 19 -596 19 -755 -2z"/>
+ <path d="M13015 11574 c-38 -14 -82 -29 -96 -33 -37 -12 -65 -29 -149 -93 -140 -104 -232 -231 -334 -462 -14 -32 -26 -65 -26 -72 0 -7 -6 -28 -14 -46 -38 -88 -83 -311 -120 -598 -8 -63 -22 -164 -31 -225 -8 -60 -15 -123 -15 -140 0 -58 -74 -434 -110 -560 -41 -140 -109 -337 -121 -349 -5 -6 -9 -18 -9 -27 0 -10 -6 -30 -14 -46 -7 -15 -36 -73 -62 -128 -94 -192 -192 -343 -316 -485 -291 -335 -615 -526 -1058 -624 -238 -52 -703 -39 -1030 29 -36 7 -103 21 -150 30 -47 9 -114 24 -150 32 -36 8 -94 21 -130 30 -36 8 -90 20 -120 28 -30 7 -91 21 -135 30 -44 9 -105 23 -135 30 -30 7 -91 21 -135 30 -601 126 -716 140 -1195 140 -386 0 -486 -8 -667 -50 -34 -8 -71 -15 -84 -15 -21 0 -42 -5 -189 -47 -104 -30 -360 -125 -385 -143 -5 -5 -44 -25 -85 -47 -41 -21 -95 -51 -120 -67 -71 -45 -195 -129 -200 -136 -3 -3 -32 -27 -65 -52 -94 -72 -253 -234 -337 -345 -43 -56 -78 -104 -78 -106 0 -3 -16 -29 -35 -59 -38 -56 -175 -329 -175 -347 0 -6 -6 -25 -14 -43 -33 -78 -70 -222 -92 -358 -13 -77 -17 -163 -17 -325 1 -272 17 -386 93 -650 25 -88 69 -199 133 -335 43 -92 235 -395 266 -420 3 -3 33 -36 65 -75 98 -115 271 -279 396 -375 65 -49 122 -90 125 -90 4 0 24 -13 45 -30 21 -16 40 -30 43 -30 3 0 38 -19 79 -43 74 -43 98 -55 243 -123 85 -40 218 -90 273 -104 19 -5 46 -13 60 -18 106 -39 342 -86 587 -117 340 -43 944 2 1234 91 25 8 53 14 62 14 10 0 33 6 51 14 18 7 58 21 88 30 54 17 82 27 170 62 154 60 411 188 517 257 24 15 45 27 47 27 3 0 53 33 113 72 59 40 116 77 125 83 9 5 50 33 90 61 198 138 305 210 438 296 418 271 740 388 1064 388 186 0 413 -50 676 -150 30 -12 73 -28 95 -36 22 -9 54 -19 70 -23 17 -5 41 -13 55 -19 40 -16 216 -64 300 -82 30 -6 131 -18 224 -26 146 -12 191 -12 320 0 83 8 174 20 201 26 153 36 175 43 285 85 103 39 130 52 225 108 206 121 414 319 517 493 18 31 42 70 52 88 29 48 110 234 128 296 39 133 48 172 63 285 19 150 19 237 0 373 -28 194 -53 286 -117 432 -121 274 -324 495 -570 620 -162 82 -287 110 -485 110 -172 0 -323 -26 -453 -78 -14 -5 -45 -18 -70 -27 -207 -81 -450 -238 -666 -430 -6 -5 -46 -41 -90 -80 -89 -78 -322 -310 -434 -431 -41 -44 -98 -105 -126 -135 -27 -30 -76 -83 -109 -119 -57 -64 -221 -239 -400 -430 -171 -182 -443 -446 -550 -535 -27 -22 -65 -54 -84 -71 -62 -53 -192 -149 -307 -225 -144 -96 -146 -98 -164 -106 -8 -4 -33 -18 -55 -32 -50 -31 -271 -141 -305 -152 -14 -4 -50 -17 -80 -29 -30 -12 -68 -26 -85 -30 -16 -5 -61 -18 -100 -30 -232 -68 -529 -86 -730 -43 -75 15 -204 61 -270 95 -44 23 -165 111 -205 149 -91 88 -156 189 -201 319 -33 92 -34 286 -2 377 53 149 164 293 313 408 32 25 61 45 64 45 3 0 22 12 43 26 102 69 308 150 503 197 139 33 484 77 605 77 123 0 511 46 645 76 106 25 183 45 215 55 17 6 44 14 60 19 116 32 360 139 475 209 19 11 42 24 50 28 23 11 201 133 236 162 124 105 252 218 289 256 50 52 199 211 280 300 102 113 328 341 401 406 90 80 205 168 314 240 109 72 369 209 434 228 17 5 56 19 86 31 64 25 137 47 198 60 23 5 51 14 61 20 11 5 30 10 42 10 12 0 45 6 73 14 28 8 87 22 131 31 436 94 699 247 911 530 155 206 235 393 290 675 13 69 15 128 11 310 -4 240 -15 314 -72 515 -58 202 -145 395 -243 544 -23 34 -42 65 -42 68 0 15 -256 313 -269 313 -3 0 -19 13 -36 28 -96 89 -257 189 -365 226 -114 38 -160 46 -277 45 -98 0 -130 -5 -188 -25z"/>
+ </g>
+ </svg>
{settingsOpen && (
<span style={{ fontSize: 13, fontWeight: 600, color: '#8e8e93', letterSpacing: '0.01em' }}>
/ Settings
diff --git a/src/components/Panel.tsx b/src/components/Panel.tsx
index a6a2440..2becffa 100644
--- a/src/components/Panel.tsx
+++ b/src/components/Panel.tsx
@@ -228,6 +228,7 @@ export function Panel() {
transition={{ duration: 0.15 }}
style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden', position: 'relative' }}
>
+ <div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 18, background: 'linear-gradient(to bottom, #000000, transparent)', pointerEvents: 'none', zIndex: 10 }} />
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 18, background: 'linear-gradient(to bottom, #000000, transparent)', pointerEvents: 'none', zIndex: 10 }} />
<ItemList />
<div className="footer" style={{ position: 'relative' }}>
@@ -236,7 +237,13 @@ export function Panel() {
{total} item{total === 1 ? '' : 's'}
</span>
<div className="spacer" />
- <button className="text-btn danger" onClick={clear} disabled={total === 0} title="Clear shelf" style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
+ <button
+ className="text-btn danger"
+ onClick={clear}
+ disabled={total === 0}
+ title="Clear shelf"
+ style={{ display: 'flex', alignItems: 'center', gap: 6 }}
+ >
<TrashIcon width={14} height={14} />
<span>Clear</span>
</button>
@@ -251,6 +258,23 @@ export function Panel() {
)
}
+function getTutorialText(step: number): string {
+ switch (step) {
+ case 1:
+ return 'Click the trash icon on the pinned card below to delete it.'
+ case 2:
+ return 'Copy any text or image (Ctrl + C) from another application to capture it.'
+ case 3:
+ return 'Drag the image card below and drop it onto your desktop.'
+ case 4:
+ return 'Click the files card below to expand the stack and view its contents.'
+ case 5:
+ return 'Click the Clear button at the bottom of the panel to finish.'
+ default:
+ return ''
+ }
+}
+
function DropOverlay() {
const dragActive = useStore((s) => s.dragActive)
const internalDragReq = useStore((s) => s.internalDragReq)
diff --git a/src/hooks/useEdgeHover.ts b/src/hooks/useEdgeHover.ts
index 633f634..b6ee840 100644
--- a/src/hooks/useEdgeHover.ts
+++ b/src/hooks/useEdgeHover.ts
@@ -62,6 +62,11 @@ export function useEdgeHover(): void {
const settingsRef = useRef(settings)
settingsRef.current = settings
+ // Throttle the self-healing setInteractive(true) call.
+ // Without this, it fires at 60Hz (every 16ms) via the cursor-edge poll,
+ // flooding the IPC queue and starving the messages that open the panel.
+ const lastSetInteractiveRef = useRef(0)
+
// Hot zone and panel bounds, recomputed on resize to avoid reading DOM at 1000Hz
const zone = useRef({ top: 0, bottom: 0, midY: 0, panelHalfH: 0 })
@@ -195,7 +200,12 @@ export function useEdgeHover(): void {
if (!openRef.current) return
// Self-healing safety: if panel is open, enforce interactivity so it can never be stuck click-through!
- edge.setInteractive(true)
+ // Throttled to fire at most once every 2 seconds to prevent flooding the IPC queue.
+ const now = Date.now()
+ if (now - lastSetInteractiveRef.current > 2000) {
+ lastSetInteractiveRef.current = now
+ edge.setInteractive(true)
+ }
// Hysteresis-based close detection.
// Using two separate thresholds prevents the oscillation that occurs when
diff --git a/src/hooks/useFilteredItems.ts b/src/hooks/useFilteredItems.ts
index e02dfbe..bb0b371 100644
--- a/src/hooks/useFilteredItems.ts
+++ b/src/hooks/useFilteredItems.ts
@@ -34,14 +34,34 @@ export interface GroupedItems {
export function useFilteredItems(): GroupedItems {
const items = useStore((s) => s.items)
const query = useStore((s) => s.query)
+ const tutorialStep = useStore((s) => s.tutorialStep)
return useMemo(() => {
const pinned: ClipboardItemDto[] = []
const recent: ClipboardItemDto[] = []
- for (const it of items) {
+
+ const filteredByTutorial = items.filter((it) => {
+ if (tutorialStep <= 0) return true
+ switch (tutorialStep) {
+ case 1:
+ return it.id === 'onboarding-welcome'
+ case 2:
+ return false
+ case 3:
+ return it.id === 'onboarding-image' || !it.id.startsWith('onboarding-')
+ case 4:
+ return it.id === 'onboarding-files'
+ case 5:
+ return true
+ default:
+ return true
+ }
+ })
+
+ for (const it of filteredByTutorial) {
if (!matches(it, query.trim())) continue
;(it.pinned ? pinned : recent).push(it)
}
return { pinned, recent }
- }, [items, query])
+ }, [items, query, tutorialStep])
}
diff --git a/src/main.tsx b/src/main.tsx
index 864b79e..bac4d6a 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -2,6 +2,7 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'
+import { Onboarding } from './Onboarding'
// Stylesheet order matters: tokens first, then globals, then components.
import './styles/tokens.css'
@@ -13,8 +14,10 @@ import './styles/settings.css'
const container = document.getElementById('root')
if (!container) throw new Error('#root element not found')
+const isOnboarding = window.location.href.includes('onboarding')
+
createRoot(container).render(
<StrictMode>
- <App />
+ {isOnboarding ? <Onboarding /> : <App />}
</StrictMode>
)
diff --git a/src/store/appStore.ts b/src/store/appStore.ts
index 2a745c0..4d75558 100644
--- a/src/store/appStore.ts
+++ b/src/store/appStore.ts
@@ -58,7 +58,7 @@ interface AppState {
clear: () => Promise<void>
copy: (id: string) => Promise<void>
paste: (id: string) => Promise<void>
- pasteSubitem: (req: import('../../shared/types').DragRequest) => Promise<void>
+ pasteSubitem: (req: DragRequest) => Promise<void>
patchSettings: (patch: Partial<Settings>) => Promise<void>
}
@@ -75,7 +75,11 @@ export const useStore = create<AppState>((set, get) => ({
async hydrate() {
const { items, settings } = await edge.loadState()
- set({ items, settings, hydrated: true })
+ set({
+ items,
+ settings,
+ hydrated: true
+ })
},
setItems: (items) => set({ items }),
diff --git a/src/styles/item.css b/src/styles/item.css
index 62d86cd..4379cb7 100644
--- a/src/styles/item.css
+++ b/src/styles/item.css
@@ -455,3 +455,46 @@
border-radius: 999px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
+
+/* Interactive Onboarding Tutorial Banner styling */
+.tutorial-banner {
+ margin: 16px 16px 8px 16px;
+ padding: 14px 16px;
+ background: rgba(255, 255, 255, 0.02);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ border-radius: 12px;
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
+}
+
+.tutorial-title {
+ font-size: 10px;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: rgba(255, 255, 255, 0.4);
+}
+
+.tutorial-instruction {
+ font-size: 13px;
+ line-height: 1.45;
+ color: rgba(255, 255, 255, 0.95);
+ font-weight: 500;
+}
+
+.tutorial-highlight {
+ animation: pulse-glow 1.5s infinite alternate;
+ border-color: rgba(255, 255, 255, 0.6) !important;
+ background: rgba(255, 255, 255, 0.12) !important;
+}
+
+@keyframes pulse-glow {
+ from {
+ box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
+ }
+ to {
+ box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
+ }
+}