[PR #7479] [MERGED] feat: support nested list in callout block and quote block #7907

Closed
opened 2026-03-23 23:21:43 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7479
Author: @LucasXu0
Created: 3/7/2025
Status: Merged
Merged: 3/10/2025
Merged by: @LucasXu0

Base: mainHead: nested_list_in_callout


📝 Commits (10+)

  • cfefa96 feat: support nested list in callout block
  • a4adbf7 chore: update pubspec.yml
  • b923996 feat: add new quote block
  • 7ff56bf feat: support nested list in quote block
  • a8348cd feat: refacotr quote block
  • d12a88f feat: optimize quote block align
  • e2c91a8 feat: support nested list in quote block
  • 2b4255f fix: icon and drag menu overlap
  • dd59653 chore: update appflowy editor version
  • ec60b83 feat: support trailing action builder for plugin blocks

📊 Changes

35 files changed (+507 additions, -38 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart (+0 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+41 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+4 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/util.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/turn_into_option_action.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart (+5 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_component.dart (+46 -16)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_shortcuts.dart (+14 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/columns/simple_column_block_component.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/columns/simple_columns_block_component.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/database_view_block_component.dart (+5 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/error/error_block_component_builder.dart (+6 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/custom_image_block_component.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_block_component.dart (+2 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart (+6 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/migration/editor_migration.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/aa_menu/_block_items.dart (+2 -1)

...and 15 more files

📄 Description

Feature Preview

  • render the nested list in callout block
  • render the nested list in quote block
  • add trailing builder to add padding between drag menu and block.
    • paragraph
    • numbered list
    • bulleted list
    • toggle list
    • ...
  • handle shortcuts
    • enter
    • delete
    • tab
  • icon and drag menu overlap
Screenshot 2025-03-09 at 20 36 44 Screenshot 2025-03-09 at 20 38 15

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/7479 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/10/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `nested_list_in_callout` --- ### 📝 Commits (10+) - [`cfefa96`](https://github.com/AppFlowy-IO/AppFlowy/commit/cfefa96c35c826090a61597d7d184e7023844cbb) feat: support nested list in callout block - [`a4adbf7`](https://github.com/AppFlowy-IO/AppFlowy/commit/a4adbf7a3befc62dab2cc5e6c7ea43cd6c6cca7f) chore: update pubspec.yml - [`b923996`](https://github.com/AppFlowy-IO/AppFlowy/commit/b923996d27f4513b3c77f334e58232ef491756e1) feat: add new quote block - [`7ff56bf`](https://github.com/AppFlowy-IO/AppFlowy/commit/7ff56bfdf9b88303dd27c6d0b0f345fe34cce53d) feat: support nested list in quote block - [`a8348cd`](https://github.com/AppFlowy-IO/AppFlowy/commit/a8348cd75984b4a00a8e814f59047e6803dc2c74) feat: refacotr quote block - [`d12a88f`](https://github.com/AppFlowy-IO/AppFlowy/commit/d12a88f3c93c1c1bbfcded2a06a4ca95591a1920) feat: optimize quote block align - [`e2c91a8`](https://github.com/AppFlowy-IO/AppFlowy/commit/e2c91a823663dbda8b204c256809627ea7be5a25) feat: support nested list in quote block - [`2b4255f`](https://github.com/AppFlowy-IO/AppFlowy/commit/2b4255f7bef5a6613c9f959c815497c96fb2c2d7) fix: icon and drag menu overlap - [`dd59653`](https://github.com/AppFlowy-IO/AppFlowy/commit/dd5965335d0c9866379e94e98995fc5c47debba3) chore: update appflowy editor version - [`ec60b83`](https://github.com/AppFlowy-IO/AppFlowy/commit/ec60b83e2ed9ff063e1ec1a857c1f16bc57bbd66) feat: support trailing action builder for plugin blocks ### 📊 Changes **35 files changed** (+507 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_data_pb_extension.dart` (+0 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+41 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+4 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/drag_to_reorder/util.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/turn_into_option_action.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart` (+5 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_component.dart` (+46 -16) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_shortcuts.dart` (+14 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/columns/simple_column_block_component.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/columns/simple_columns_block_component.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/database/database_view_block_component.dart` (+5 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/error/error_block_component_builder.dart` (+6 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/custom_image_block_component.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/multi_image_block_component.dart` (+2 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart` (+6 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/migration/editor_migration.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/aa_menu/_block_items.dart` (+2 -1) _...and 15 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 - [x] render the nested list in callout block - [x] render the nested list in quote block - [x] add trailing builder to add padding between drag menu and block. - [x] paragraph - [x] numbered list - [x] bulleted list - [x] toggle list - [x] ... - [x] handle shortcuts - [x] enter - [x] delete - [x] tab - [x] icon and drag menu overlap <img width="1412" alt="Screenshot 2025-03-09 at 20 36 44" src="https://github.com/user-attachments/assets/ebfc3619-27ce-432e-b668-8f80ee02ef55" /> <img width="1412" alt="Screenshot 2025-03-09 at 20 38 15" src="https://github.com/user-attachments/assets/b37a5910-1a87-47a8-9362-74283f1b9078" /> <!--- 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) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [x] 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:21:43 +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#7907
No description provided.