[PR #3004] [MERGED] feat: support drag and drop for tauri #5518

Closed
opened 2026-03-23 22:19:05 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3004
Author: @qinluhe
Created: 7/14/2023
Status: Merged
Merged: 7/19/2023
Merged by: @qinluhe

Base: mainHead: feat/tauri-drag-view


📝 Commits (1)

  • fe13bbd feat: support views drag and drop

📊 Changes

46 files changed (+1082 additions, -283 deletions)

View changed files

📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+24 -0)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+6 -6)
frontend/appflowy_tauri/src/appflowy_app/components/_shared/BlockDraggable/BlockDragDropContext.tsx (+121 -0)
frontend/appflowy_tauri/src/appflowy_app/components/_shared/BlockDraggable/BlockDraggable.hooks.ts (+82 -0)
frontend/appflowy_tauri/src/appflowy_app/components/_shared/BlockDraggable/index.tsx (+73 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/_shared/app-dialog/ConfirmDialog.tsx (+3 -3)
📝 frontend/appflowy_tauri/src/appflowy_app/components/board/BoardSettingsPopup.tsx (+3 -2)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSelection/BlockRangeSelection.hooks.ts (+4 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSelection/BlockRectSelection.hooks.ts (+1 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockSideToolbar.hooks.tsx (+56 -43)
frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/ToolbarButton.tsx (+0 -24)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/index.tsx (+53 -42)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/DividerBlock/index.tsx (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx (+17 -7)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Overlay/BlockOverlay.tsx (+6 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/Overlay/index.tsx (+0 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/VirtualizedList/index.tsx (+6 -0)
📝 frontend/appflowy_tauri/src/appflowy_app/components/document/_shared/SubscribeNode.hooks.ts (+1 -1)
📝 frontend/appflowy_tauri/src/appflowy_app/components/layout/Layout.tsx (+18 -15)
📝 frontend/appflowy_tauri/src/appflowy_app/components/layout/NestedPage/DeleteDialog.tsx (+13 -36)

...and 26 more files

📄 Description

Feature Preview

  • Support nested views drag and drop

https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/9715f48a-ab1a-4f6f-baa3-29bcad02f8f6

  • Support document nested blocks drag and drop

https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/4dffb47c-aaae-4f61-ad7a-1accdcb1b0cd


PR Checklist

  • My code adheres to the AppFlowy Style Guide
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/3004 **Author:** [@qinluhe](https://github.com/qinluhe) **Created:** 7/14/2023 **Status:** ✅ Merged **Merged:** 7/19/2023 **Merged by:** [@qinluhe](https://github.com/qinluhe) **Base:** `main` ← **Head:** `feat/tauri-drag-view` --- ### 📝 Commits (1) - [`fe13bbd`](https://github.com/AppFlowy-IO/AppFlowy/commit/fe13bbd20be46b07aee9e854956aee0d24691774) feat: support views drag and drop ### 📊 Changes **46 files changed** (+1082 additions, -283 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+24 -0) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+6 -6) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/_shared/BlockDraggable/BlockDragDropContext.tsx` (+121 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/_shared/BlockDraggable/BlockDraggable.hooks.ts` (+82 -0) ➕ `frontend/appflowy_tauri/src/appflowy_app/components/_shared/BlockDraggable/index.tsx` (+73 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/_shared/app-dialog/ConfirmDialog.tsx` (+3 -3) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/board/BoardSettingsPopup.tsx` (+3 -2) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSelection/BlockRangeSelection.hooks.ts` (+4 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSelection/BlockRectSelection.hooks.ts` (+1 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/BlockSideToolbar.hooks.tsx` (+56 -43) ➖ `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/ToolbarButton.tsx` (+0 -24) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/BlockSideToolbar/index.tsx` (+53 -42) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/DividerBlock/index.tsx` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Node/index.tsx` (+17 -7) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Overlay/BlockOverlay.tsx` (+6 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/Overlay/index.tsx` (+0 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/VirtualizedList/index.tsx` (+6 -0) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/document/_shared/SubscribeNode.hooks.ts` (+1 -1) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/layout/Layout.tsx` (+18 -15) 📝 `frontend/appflowy_tauri/src/appflowy_app/components/layout/NestedPage/DeleteDialog.tsx` (+13 -36) _...and 26 more files_ </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview - [ ] Support nested views drag and drop https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/9715f48a-ab1a-4f6f-baa3-29bcad02f8f6 - [x] Support document nested blocks drag and drop https://github.com/AppFlowy-IO/AppFlowy/assets/108015703/4dffb47c-aaae-4f61-ad7a-1accdcb1b0cd <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [ ] My code adheres to the [AppFlowy Style Guide](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/submitting-code/style-guides) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:19:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#5518
No description provided.