[PR #5843] [MERGED] feat: upload file in document #7042

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5843
Author: @Xazin
Created: 7/31/2024
Status: Merged
Merged: 7/31/2024
Merged by: @Xazin

Base: mainHead: feat/upload-file-in-document


📝 Commits (6)

  • 3c66fe3 feat: upload file in document
  • 61d30fa chore: merge branch 'upstream/main' into feat/upload-file-in-document
  • fd3f850 feat: add uploaded at & improvements
  • 111989c fix: popover onOpen not triggered by manual show
  • 15bf85f test: add basic file test
  • 5c6a1ea test: fix and add rename test

📊 Changes

20 files changed (+1461 additions, -53 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/document/document_test_runner.dart (+2 -0)
frontend/appflowy_flutter/integration_test/desktop/document/document_with_file_test.dart (+166 -0)
📝 frontend/appflowy_flutter/integration_test/shared/editor_test_operations.dart (+3 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/document_page.dart (+77 -38)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+1 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_drop_manager.dart (+17 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart (+2 -2)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_file.dart (+40 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block.dart (+2 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart (+497 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_menu.dart (+204 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_selection_menu.dart (+47 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_upload_menu.dart (+250 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_util.dart (+65 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/plugins.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/settings_dialog_bloc.dart (+0 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart (+30 -7)
📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart (+36 -1)
📝 frontend/resources/translations/en.json (+20 -0)

📄 Description

Relates: #5486 #5258 #2237

Feature Preview

TBD

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/5843 **Author:** [@Xazin](https://github.com/Xazin) **Created:** 7/31/2024 **Status:** ✅ Merged **Merged:** 7/31/2024 **Merged by:** [@Xazin](https://github.com/Xazin) **Base:** `main` ← **Head:** `feat/upload-file-in-document` --- ### 📝 Commits (6) - [`3c66fe3`](https://github.com/AppFlowy-IO/AppFlowy/commit/3c66fe3164b92202b52c7623fa0c8fa67766c2fb) feat: upload file in document - [`61d30fa`](https://github.com/AppFlowy-IO/AppFlowy/commit/61d30fad6c752bf04f3041e944f9c5540e0214b6) chore: merge branch 'upstream/main' into feat/upload-file-in-document - [`fd3f850`](https://github.com/AppFlowy-IO/AppFlowy/commit/fd3f850d63dd5776ff67e11d6e04393c26ab22b0) feat: add uploaded at & improvements - [`111989c`](https://github.com/AppFlowy-IO/AppFlowy/commit/111989c96c28e2049a0a7cf812894a68aa326f05) fix: popover onOpen not triggered by manual show - [`15bf85f`](https://github.com/AppFlowy-IO/AppFlowy/commit/15bf85f4ea3f9e8dc737279b7f056b0707b715d2) test: add basic file test - [`5c6a1ea`](https://github.com/AppFlowy-IO/AppFlowy/commit/5c6a1eaab36a1da289781796e66839cc7fda3c29) test: fix and add rename test ### 📊 Changes **20 files changed** (+1461 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_test_runner.dart` (+2 -0) ➕ `frontend/appflowy_flutter/integration_test/desktop/document/document_with_file_test.dart` (+166 -0) 📝 `frontend/appflowy_flutter/integration_test/shared/editor_test_operations.dart` (+3 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/document_page.dart` (+77 -38) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+1 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_drop_manager.dart` (+17 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/custom_paste_command.dart` (+2 -2) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/copy_and_paste/paste_from_file.dart` (+40 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block.dart` (+2 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart` (+497 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_menu.dart` (+204 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_selection_menu.dart` (+47 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_upload_menu.dart` (+250 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_util.dart` (+65 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/plugins.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/settings_dialog_bloc.dart` (+0 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart` (+30 -7) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart` (+36 -1) 📝 `frontend/resources/translations/en.json` (+20 -0) </details> ### 📄 Description Relates: #5486 #5258 #2237 ### Feature Preview TBD #### 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. - [ ] 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:17:50 +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#7042
No description provided.