[PR #6523] [MERGED] feat: copy link to block #7441

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

📋 Pull Request Information

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

Base: mainHead: copy_link_to_block


📝 Commits (10+)

  • b67ab99 feat: copy link to block
  • baa4deb chore: add comment
  • 5c475e4 feat: using mention bloc to manage the mention bloc status
  • 6456681 feat: use mention page bloc to manage mentioned page status
  • d32b723 feat: observe mention block content changes
  • 4948745 feat: sync the block content
  • 9043abc fix: integration test
  • 3dcd55b fix: mentioned block display name contains unnessary -
  • 2858081 fix: handle block was deleted case
  • 16652cc chore: move the get doc block and get mentioned page status to service

📊 Changes

28 files changed (+1355 additions, -422 deletions)

View changed files

frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_copy_link_to_block_test.dart (+174 -0)
📝 frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_option_actions_test.dart (+0 -32)
📝 frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_test_runner.dart (+3 -0)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_test_runner_2.dart (+3 -1)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_page_test.dart (+2 -2)
📝 frontend/appflowy_flutter/integration_test/shared/document_test_operations.dart (+24 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/shared.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/application/document_service.dart (+37 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+550 -299)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart (+5 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart (+45 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/turn_into_option_action.dart (+0 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart (+7 -2)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_block_link.dart (+58 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/delta/text_delta_extension.dart (+46 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/inline_math_equation/inline_math_equation_toolbar_item.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_block.dart (+7 -3)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_bloc.dart (+245 -0)

...and 8 more files

📄 Description

Feature Preview

https://github.com/user-attachments/assets/29d65227-a0f9-4159-ba90-e6b3c975f730

  • add 'copy link to block' entry
  • paste the link in app
  • inapp navigation
  • use mention style to display the link
  • sync the block content?
  • 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/6523 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 10/10/2024 **Status:** ✅ Merged **Merged:** 10/14/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `copy_link_to_block` --- ### 📝 Commits (10+) - [`b67ab99`](https://github.com/AppFlowy-IO/AppFlowy/commit/b67ab99c81da415697881de5b5315e900dc4d5ab) feat: copy link to block - [`baa4deb`](https://github.com/AppFlowy-IO/AppFlowy/commit/baa4deb96aca04a2d649d46f2b4b8b644ff69521) chore: add comment - [`5c475e4`](https://github.com/AppFlowy-IO/AppFlowy/commit/5c475e4daadd1a9db23321603083aec1a30477bb) feat: using mention bloc to manage the mention bloc status - [`6456681`](https://github.com/AppFlowy-IO/AppFlowy/commit/64566817f0a5af0291ca1ead127123f8c350f6a4) feat: use mention page bloc to manage mentioned page status - [`d32b723`](https://github.com/AppFlowy-IO/AppFlowy/commit/d32b7233d6c569746e68d9df15ef22d291bdd270) feat: observe mention block content changes - [`4948745`](https://github.com/AppFlowy-IO/AppFlowy/commit/49487452f8c9e8196cf5045ef77040fa70e4f726) feat: sync the block content - [`9043abc`](https://github.com/AppFlowy-IO/AppFlowy/commit/9043abc532a99629f4308a4b822e3dd70ff895a8) fix: integration test - [`3dcd55b`](https://github.com/AppFlowy-IO/AppFlowy/commit/3dcd55b9107249ed631e808759f77a99f231d908) fix: mentioned block display name contains unnessary - - [`2858081`](https://github.com/AppFlowy-IO/AppFlowy/commit/28580810401314c93fd587ddab5b4d9354b342ec) fix: handle block was deleted case - [`16652cc`](https://github.com/AppFlowy-IO/AppFlowy/commit/16652cc7a7579f0c8901d4bc83716c6981be9854) chore: move the get doc block and get mentioned page status to service ### 📊 Changes **28 files changed** (+1355 additions, -422 deletions) <details> <summary>View changed files</summary> ➕ `frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_copy_link_to_block_test.dart` (+174 -0) 📝 `frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_option_actions_test.dart` (+0 -32) 📝 `frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_test_runner.dart` (+3 -0) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_test_runner_2.dart` (+3 -1) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_inline_page_test.dart` (+2 -2) 📝 `frontend/appflowy_flutter/integration_test/shared/document_test_operations.dart` (+24 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/shared.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/application/document_service.dart` (+37 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+550 -299) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_cubit.dart` (+5 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/option_actions.dart` (+45 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option/turn_into_option_action.dart` (+0 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart` (+7 -2) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_block_link.dart` (+58 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/delta/text_delta_extension.dart` (+46 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/inline_math_equation/inline_math_equation_toolbar_item.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_block.dart` (+7 -3) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_bloc.dart` (+245 -0) _...and 8 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 https://github.com/user-attachments/assets/29d65227-a0f9-4159-ba90-e6b3c975f730 - [x] add 'copy link to block' entry - [x] paste the link in app - [x] inapp navigation - [x] use mention style to display the link - [x] sync the block content? - [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. - [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:19:38 +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#7441
No description provided.