[PR #6285] [MERGED] feat: support dragging the block to reorder #7291

Closed
opened 2026-03-23 23:18:58 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6285
Author: @LucasXu0
Created: 9/12/2024
Status: Merged
Merged: 9/16/2024
Merged by: @LucasXu0

Base: mainHead: drag_to_reorder


📝 Commits (10+)

  • e06249a feat: support dragging the block to reorder
  • aaec8fd feat: render feedback widget
  • 213fb38 feat: add drag to move translation
  • 0eb6384 fix: the feedback widget doesn't update after node changed
  • 28c49aa feat: render table placeholder
  • e7a18c7 feat: implement auto scroll when dragging to edge
  • 6fbbdb8 chore: add back the drop images/files feature
  • fa1fe16 chore: code refactor
  • 277cc02 feat: exclude image and file block
  • 368e8dd feat: exclude image gallery and database block

📊 Changes

11 files changed (+383 additions, -95 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/document_page.dart (+24 -9)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_list.dart (+7 -3)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart (+37 -72)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/draggable_option_button.dart (+292 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart (+2 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/favorites/favorite_menu_bloc.dart (+5 -1)
📝 frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/flowy_tooltip.dart (+10 -4)
📝 frontend/appflowy_flutter/pubspec.lock (+2 -2)
📝 frontend/appflowy_flutter/pubspec.yaml (+1 -1)
📝 frontend/resources/translations/en.json (+2 -0)

📄 Description

Feature Preview

  • update editor version
  • implement feedback widget
  • implement move logic
  • exclude the blocks that don't support moving, (render a placeholder)
  • translaction
  • the block content doesn't update
  • auto scroll

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • 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/6285 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 9/12/2024 **Status:** ✅ Merged **Merged:** 9/16/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `drag_to_reorder` --- ### 📝 Commits (10+) - [`e06249a`](https://github.com/AppFlowy-IO/AppFlowy/commit/e06249ae85cb4ceff841125d3f7442fca1c609e7) feat: support dragging the block to reorder - [`aaec8fd`](https://github.com/AppFlowy-IO/AppFlowy/commit/aaec8fd6e005f7614d3f37ceee1ebf95f9d00744) feat: render feedback widget - [`213fb38`](https://github.com/AppFlowy-IO/AppFlowy/commit/213fb38edcdf6a12a0447c22f05fa8292d038225) feat: add drag to move translation - [`0eb6384`](https://github.com/AppFlowy-IO/AppFlowy/commit/0eb6384a33c0c29721915ef1bde0cdfba9efac2f) fix: the feedback widget doesn't update after node changed - [`28c49aa`](https://github.com/AppFlowy-IO/AppFlowy/commit/28c49aa54fec8adddcd16daa9c4c88a0fc15ddce) feat: render table placeholder - [`e7a18c7`](https://github.com/AppFlowy-IO/AppFlowy/commit/e7a18c7b34218dc97c9d9a019ad4d372105ff924) feat: implement auto scroll when dragging to edge - [`6fbbdb8`](https://github.com/AppFlowy-IO/AppFlowy/commit/6fbbdb884f596d74c147649367c929eea7edea9f) chore: add back the drop images/files feature - [`fa1fe16`](https://github.com/AppFlowy-IO/AppFlowy/commit/fa1fe161b77d16a45ab7ac610f90b57fec87cb14) chore: code refactor - [`277cc02`](https://github.com/AppFlowy-IO/AppFlowy/commit/277cc02c174e41362e8d50ca4ded5d88c8699f71) feat: exclude image and file block - [`368e8dd`](https://github.com/AppFlowy-IO/AppFlowy/commit/368e8dd3b6f2633b12c2dac953ca2cff096eec50) feat: exclude image gallery and database block ### 📊 Changes **11 files changed** (+383 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/document_page.dart` (+24 -9) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_list.dart` (+7 -3) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart` (+37 -72) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/draggable_option_button.dart` (+292 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart` (+2 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/favorites/favorite_menu_bloc.dart` (+5 -1) 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/lib/widget/flowy_tooltip.dart` (+10 -4) 📝 `frontend/appflowy_flutter/pubspec.lock` (+2 -2) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+1 -1) 📝 `frontend/resources/translations/en.json` (+2 -0) </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 - [x] update editor version - [x] implement feedback widget - [x] implement move logic - [x] exclude the blocks that don't support moving, (render a placeholder) - [x] translaction - [x] the block content doesn't update - [x] auto scroll <!--- 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 - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] 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 23:18:58 +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#7291
No description provided.