[PR #6431] [MERGED] feat: support share page and block #7376

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

📋 Pull Request Information

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

Base: mainHead: share_link


📝 Commits (10+)

  • 8b27ec6 feat: support share page
  • 6a25b3a feat: support copy share link
  • abde2e2 chore: replace share icon
  • a1d51f0 chore: update translations
  • 99758df chore: optimize code
  • 8d55bd9 test: add share link test
  • 13bf370 Merge branch 'main' into share_link
  • 49a9b99 feat: support copy block link
  • abc6254 test: add copy link to block test
  • 09d9bf5 chore: refactor share code

📊 Changes

17 files changed (+508 additions, -34 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart (+7 -8)
📝 frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_drag_block_test.dart (+35 -1)
frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_option_actions_test.dart (+101 -0)
frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/share_menu_test.dart (+76 -0)
frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/workspace_test_runner.dart (+15 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+9 -4)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart (+49 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action.dart (+12 -4)
frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart (+23 -0)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/share_bloc.dart (+28 -8)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/share_button.dart (+5 -1)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/share_menu.dart (+3 -4)
frontend/appflowy_flutter/lib/plugins/shared/share/share_tab.dart (+124 -0)
📝 frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/primary_rounded_button.dart (+3 -0)
frontend/resources/flowy_icons/16x/share_tab_copy.svg (+5 -0)
frontend/resources/flowy_icons/16x/share_tab_icon.svg (+6 -0)
📝 frontend/resources/translations/en.json (+7 -2)

📄 Description

Feature Preview

  • support share a doc
  • support share a database
  • support share a block in doc
  • translations
  • hide share action in local mode
  • add tests
Screenshot 2024-09-30 at 16 06 32

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/6431 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 9/30/2024 **Status:** ✅ Merged **Merged:** 10/3/2024 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `share_link` --- ### 📝 Commits (10+) - [`8b27ec6`](https://github.com/AppFlowy-IO/AppFlowy/commit/8b27ec64315590634a03e733964ae139077def6a) feat: support share page - [`6a25b3a`](https://github.com/AppFlowy-IO/AppFlowy/commit/6a25b3a336691cd9e5d0da288b6563f124b1d7b5) feat: support copy share link - [`abde2e2`](https://github.com/AppFlowy-IO/AppFlowy/commit/abde2e2016ee1ce57dc9ba700b5b00e92817b299) chore: replace share icon - [`a1d51f0`](https://github.com/AppFlowy-IO/AppFlowy/commit/a1d51f025bcde02002fd54706d382a134d9d0aa6) chore: update translations - [`99758df`](https://github.com/AppFlowy-IO/AppFlowy/commit/99758df5dba722c62f2671d2b74414b534885fd6) chore: optimize code - [`8d55bd9`](https://github.com/AppFlowy-IO/AppFlowy/commit/8d55bd9c5e0da1ef5b6122125489adb55aea7bf3) test: add share link test - [`13bf370`](https://github.com/AppFlowy-IO/AppFlowy/commit/13bf3707390982dd7d64952e6f2a90f3e5a4037f) Merge branch 'main' into share_link - [`49a9b99`](https://github.com/AppFlowy-IO/AppFlowy/commit/49a9b99a13579f2d2332716cb3f3dfd41cddc9c9) feat: support copy block link - [`abc6254`](https://github.com/AppFlowy-IO/AppFlowy/commit/abc625421a0d47b8754592380dff511c3939b326) test: add copy link to block test - [`09d9bf5`](https://github.com/AppFlowy-IO/AppFlowy/commit/09d9bf5dafa13a76bdf2f31ba43b5ec0f268aaf9) chore: refactor share code ### 📊 Changes **17 files changed** (+508 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart` (+7 -8) 📝 `frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_drag_block_test.dart` (+35 -1) ➕ `frontend/appflowy_flutter/integration_test/desktop/cloud/document/document_option_actions_test.dart` (+101 -0) ➕ `frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/share_menu_test.dart` (+76 -0) ➕ `frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/workspace_test_runner.dart` (+15 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+9 -4) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart` (+49 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action.dart` (+12 -4) ➕ `frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart` (+23 -0) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/share_bloc.dart` (+28 -8) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/share_button.dart` (+5 -1) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/share_menu.dart` (+3 -4) ➕ `frontend/appflowy_flutter/lib/plugins/shared/share/share_tab.dart` (+124 -0) 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/primary_rounded_button.dart` (+3 -0) ➕ `frontend/resources/flowy_icons/16x/share_tab_copy.svg` (+5 -0) ➕ `frontend/resources/flowy_icons/16x/share_tab_icon.svg` (+6 -0) 📝 `frontend/resources/translations/en.json` (+7 -2) </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] support share a doc - [x] support share a database - [x] support share a block in doc - [x] translations - [x] hide share action in local mode - [x] add tests <img width="1306" alt="Screenshot 2024-09-30 at 16 06 32" src="https://github.com/user-attachments/assets/e5a7bb74-d6f7-44e3-b16e-1063045fdadf"> <!--- 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:20 +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#7376
No description provided.