[PR #7578] [MERGED] feat: revamp toolbar link #7978

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7578
Author: @asjqkkkk
Created: 3/20/2025
Status: Merged
Merged: 3/24/2025
Merged by: @LucasXu0

Base: mainHead: feat/toolbar/link


📝 Commits (3)

  • c1f0d62 feat: revamp toolbar link
  • 79b3f82 fix: some review issues
  • b04c2ad chore: add integration test for toolbar link

📊 Changes

21 files changed (+1750 additions, -51 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_toolbar_test.dart (+151 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/desktop_floating_toolbar.dart (+13 -5)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_create_menu.dart (+164 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_edit_menu.dart (+429 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_hover_menu.dart (+322 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_search_text_field.dart (+326 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_styles.dart (+34 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/toolbar_cubit.dart (+17 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/emoji_icon_widget.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart (+7 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toolbar_item/custom_link_toolbar_item.dart (+170 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart (+61 -8)
📝 frontend/appflowy_flutter/macos/Podfile.lock (+23 -23)
📝 frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/appflowy_popover.dart (+10 -4)
📝 frontend/appflowy_flutter/pubspec.lock (+2 -2)
📝 frontend/appflowy_flutter/pubspec.yaml (+1 -1)
frontend/resources/flowy_icons/20x/toolbar_link_earth.svg (+3 -0)
frontend/resources/flowy_icons/20x/toolbar_link_edit.svg (+3 -0)
frontend/resources/flowy_icons/20x/toolbar_link_unlink.svg (+3 -0)

...and 1 more files

📄 Description

Feature Preview

  • Revamp Link Menu
  • Implement Textspan hover function
  • Implement hover menu
  • Implement edit menu
  • Searching pages in hover menu
  • Searching pages in edit menu
  • Integration test code

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/7578 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 3/20/2025 **Status:** ✅ Merged **Merged:** 3/24/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `feat/toolbar/link` --- ### 📝 Commits (3) - [`c1f0d62`](https://github.com/AppFlowy-IO/AppFlowy/commit/c1f0d624d39aef283add5119f1e8cfa6a81539ac) feat: revamp toolbar link - [`79b3f82`](https://github.com/AppFlowy-IO/AppFlowy/commit/79b3f82ff99d37ed708255a39b56528768849fc1) fix: some review issues - [`b04c2ad`](https://github.com/AppFlowy-IO/AppFlowy/commit/b04c2ad5572db2f0c3a4ec194eaa04658e174e59) chore: add integration test for toolbar link ### 📊 Changes **21 files changed** (+1750 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_toolbar_test.dart` (+151 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/desktop_floating_toolbar.dart` (+13 -5) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_create_menu.dart` (+164 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_edit_menu.dart` (+429 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_hover_menu.dart` (+322 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_search_text_field.dart` (+326 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/link/link_styles.dart` (+34 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/desktop_toolbar/toolbar_cubit.dart` (+17 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/emoji_icon_widget.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_page_block.dart` (+7 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/toolbar_item/custom_link_toolbar_item.dart` (+170 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_style.dart` (+61 -8) 📝 `frontend/appflowy_flutter/macos/Podfile.lock` (+23 -23) 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/lib/src/flowy_overlay/appflowy_popover.dart` (+10 -4) 📝 `frontend/appflowy_flutter/pubspec.lock` (+2 -2) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+1 -1) ➕ `frontend/resources/flowy_icons/20x/toolbar_link_earth.svg` (+3 -0) ➕ `frontend/resources/flowy_icons/20x/toolbar_link_edit.svg` (+3 -0) ➕ `frontend/resources/flowy_icons/20x/toolbar_link_unlink.svg` (+3 -0) _...and 1 more files_ </details> ### 📄 Description ### Feature Preview - [x] Revamp Link Menu - [x] Implement Textspan hover function - [x] Implement hover menu - [x] Implement edit menu - [x] Searching pages in hover menu - [x] Searching pages in edit menu - [x] Integration test code --- <!--- 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:22:03 +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#7978
No description provided.