[PR #6516] [MERGED] feat: support 'turn into' in doc #7434

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

📋 Pull Request Information

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

Base: mainHead: turn_into


📝 Commits (10+)

  • 5bb2d48 feat: customize animation for popover
  • b64e275 chore: code refactor
  • e6a0c0e feat: using popover direction calculate the popover animation translate direction
  • 304c509 feat: integrate the animated popover in appflowy_popover and popover_action
  • 85f5ff6 fix: close popover assertion
  • 6c7201b chore: format code
  • 85929a5 chore: code refactor
  • fb7bd40 feat: optimize the popover listener
  • 727421f feat: clear popover when hot-reloading
  • dca6d0a chore: refactor code

📊 Changes

34 files changed (+1712 additions, -819 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_option_action_test.dart (+60 -3)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_outline_block_test.dart (+3 -10)
📝 frontend/appflowy_flutter/integration_test/shared/document_test_operations.dart (+24 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+51 -18)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_list.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart (+69 -277)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart (+250 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/align_option_action.dart (+152 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/color_option_action.dart (+125 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/depth_option_action.dart (+142 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/divider_option_action.dart (+20 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart (+74 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/turn_into_option_action.dart (+254 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action.dart (+0 -430)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_component.dart (+2 -6)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/plugins.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/slash_menu/slash_menu_items.dart (+1 -2)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_cubit.dart (+5 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/space_more_popup.dart (+5 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_actions.dart (+5 -1)

...and 14 more files

📄 Description

Feature Preview

depends on https://github.com/AppFlowy-IO/AppFlowy/pull/6507

only support for single line now

  • add 'turn into' entry.
  • support the following type conversions:
    • paragraph
    • bulleted list / numbered list / todo list
    • headings, toggle headings
    • callout
    • quote
  • integrate animated popover in block action button
  • replace icons
  • tests

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/6516 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 10/9/2024 **Status:** ✅ Merged **Merged:** 10/10/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `turn_into` --- ### 📝 Commits (10+) - [`5bb2d48`](https://github.com/AppFlowy-IO/AppFlowy/commit/5bb2d48f981f5253e22ecf6ee0146abde9797693) feat: customize animation for popover - [`b64e275`](https://github.com/AppFlowy-IO/AppFlowy/commit/b64e27542a0dc6685836f464df81230effa2874d) chore: code refactor - [`e6a0c0e`](https://github.com/AppFlowy-IO/AppFlowy/commit/e6a0c0e36e7d91ba24e2ae06111b77908b3465ed) feat: using popover direction calculate the popover animation translate direction - [`304c509`](https://github.com/AppFlowy-IO/AppFlowy/commit/304c509a3155967063ae13d4a526dcff700a7dfb) feat: integrate the animated popover in appflowy_popover and popover_action - [`85f5ff6`](https://github.com/AppFlowy-IO/AppFlowy/commit/85f5ff642f64d7923c169735bb12dad8f6e44ae8) fix: close popover assertion - [`6c7201b`](https://github.com/AppFlowy-IO/AppFlowy/commit/6c7201b4991563ca41fa697aba7345e0fd128ad1) chore: format code - [`85929a5`](https://github.com/AppFlowy-IO/AppFlowy/commit/85929a5ff0eed361fcbab01b9084571670740020) chore: code refactor - [`fb7bd40`](https://github.com/AppFlowy-IO/AppFlowy/commit/fb7bd4015401b7da0808e42f8b9171bd3ac9706b) feat: optimize the popover listener - [`727421f`](https://github.com/AppFlowy-IO/AppFlowy/commit/727421f3a44b0a249be6806b17ede3362f1ef489) feat: clear popover when hot-reloading - [`dca6d0a`](https://github.com/AppFlowy-IO/AppFlowy/commit/dca6d0ae8ff75469c70a92c567e06b44772b89d0) chore: refactor code ### 📊 Changes **34 files changed** (+1712 additions, -819 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_option_action_test.dart` (+60 -3) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_outline_block_test.dart` (+3 -10) 📝 `frontend/appflowy_flutter/integration_test/shared/document_test_operations.dart` (+24 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+51 -18) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_list.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart` (+69 -277) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart` (+250 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/align_option_action.dart` (+152 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/color_option_action.dart` (+125 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/depth_option_action.dart` (+142 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/divider_option_action.dart` (+20 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart` (+74 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/turn_into_option_action.dart` (+254 -0) ➖ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action.dart` (+0 -430) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/callout/callout_block_component.dart` (+2 -6) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/plugins.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/slash_menu/slash_menu_items.dart` (+1 -2) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/shortcuts/settings_shortcuts_cubit.dart` (+5 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/space_more_popup.dart` (+5 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_actions.dart` (+5 -1) _...and 14 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 depends on https://github.com/AppFlowy-IO/AppFlowy/pull/6507 > only support for single line now - [x] add 'turn into' entry. - [x] support the following type conversions: - [x] paragraph - [x] bulleted list / numbered list / todo list - [x] headings, ~~toggle headings~~ - [x] callout - [x] quote - [x] integrate animated popover in block action button - [x] replace icons - [x] tests <!--- 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. - [ ] 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:19:36 +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#7434
No description provided.