Repository navigation
feat(desktop): drag workspace files into composer - #786
Blue-Berrys wants to merge 3 commits into
Conversation
|
感谢时间,最近pr 有点多,我慢慢理! |
Keep workspace drag references compatible with the shared draft reference converter after incorporating upstream changes.
Merge current main while preserving the pull request behavior and resolving overlapping changes.
|
Thanks for this — and sorry for the wait, this one has been sitting for a while. It looks like solid work, and it's close to something we can evaluate properly. The one thing we're missing is visual evidence: since this changes how the UI behaves, we can't judge the result from the diff alone. Could you add screenshots to the description?
With those attached we can see the actual result and make a confident call on merging. |
|
Thank you for the careful input checks — refusing absolute paths, drive letters and parent-directory hops is the right instinct, and the short dedupe window avoids double-adding the same file. We asked for screenshots back in October and the branch has been quiet for over three weeks and now conflicts, so it is closed for now. The branch is preserved; a rebase plus those three captures (full window, close-up of the inserted chip, ideally a short recording) would bring it straight back. 谢谢你在输入校验上的细心——拒绝绝对路径、盘符和上级目录跳转是对的,那个很短的去重窗口也避免了同一个文件被加两次。 十月要的截图一直没到,这条已经三周多没有进展并且冲突,所以先关闭。分支保留;变基加上那几张(整屏、插入后的小标签特写,最好再来一段短录屏)就能直接回来。 |
Problem
Files shown in the bundled File Manager could not be dragged into the Composer, so users had to type a path or use the file picker instead.
Result
Regular, non-symlink file rows can now be dragged from the work panel into the Composer. A drop inserts one removable file chip using the workspace-relative path and leaves the source file in place. Direct and cross-WebContents delivery are deduplicated so one gesture creates one chip; directories remain navigation-only.
Closes #745
Validation
pnpm --filter @pi-desktop/shared buildpnpm --filter @pi-desktop/desktop typechecknode --experimental-strip-types --test test/composer-drag-drop.test.mjs(6 passed)node --test test/bundled-plugins.test.mjs(10 passed)pnpm lintpnpm docs:checkpnpm build:js