[PR #1897] [MERGED] Implement cover plugin 1868 #5002

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1897
Author: @rizwan3395
Created: 2/27/2023
Status: Merged
Merged: 3/2/2023
Merged by: @LucasXu0

Base: mainHead: implement_cover_plugin_1868


📝 Commits (9)

  • 5e1e0c0 implement_cover_plugin_#1868
  • 3d833c1 code cleanup
  • 21db865 fix: CI issue fix
  • 9f66838 Merge branch 'main' into implement_cover_plugin_1868
  • 8a3a7c9 fix: cover plugin implementation finalized
  • 2599552 fix: localization fixes
  • 346c677 fix: added add cover button
  • e95d42c chore: optimize the cover plugin code
  • 7a2d190 feat: auto hide the add button and cover buttons when leaving

📊 Changes

13 files changed (+806 additions, -66 deletions)

View changed files

frontend/appflowy_flutter/assets/images/Local Disk (C) - Shortcut.lnk (+0 -0)
frontend/appflowy_flutter/assets/images/app_flowy_abstract_cover_1.jpg (+0 -0)
frontend/appflowy_flutter/assets/images/app_flowy_abstract_cover_2.jpg (+0 -0)
📝 frontend/appflowy_flutter/assets/translations/en.json (+10 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/document_page.dart (+22 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/editor_styles.dart (+1 -1)
frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/cover/change_cover_popover.dart (+376 -0)
frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/cover/cover_node_widget.dart (+302 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/header/add_button.dart (+16 -2)
📝 frontend/appflowy_flutter/packages/appflowy_backend/windows/appflowy_backend_plugin.cpp (+68 -54)
📝 frontend/appflowy_flutter/packages/appflowy_backend/windows/appflowy_backend_plugin_c_api.cpp (+5 -4)
📝 frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/editor_service.dart (+4 -1)
📝 frontend/appflowy_flutter/packages/appflowy_editor_plugins/lib/appflowy_editor_plugins.dart (+2 -0)

📄 Description

Description

Implemented a cover plugin for the editor. The user can add a cover by typing /cover command from the editor, Change the cover with any image from the local director, or abstract images added in the assets or pick any color and use it as . The user can also delete the cover.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • Via slash command in the editor (/cover)

Checklist:

  • I have performed a self-review of my own code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

🔄 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/1897 **Author:** [@rizwan3395](https://github.com/rizwan3395) **Created:** 2/27/2023 **Status:** ✅ Merged **Merged:** 3/2/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `implement_cover_plugin_1868` --- ### 📝 Commits (9) - [`5e1e0c0`](https://github.com/AppFlowy-IO/AppFlowy/commit/5e1e0c013797986c19a51b0225698dce2d289f98) implement_cover_plugin_#1868 - [`3d833c1`](https://github.com/AppFlowy-IO/AppFlowy/commit/3d833c1dfef2844bd33a1ff2170d8ddaaacbf37b) code cleanup - [`21db865`](https://github.com/AppFlowy-IO/AppFlowy/commit/21db8650d7ca95acdb040396c3687756b3495d1e) fix: CI issue fix - [`9f66838`](https://github.com/AppFlowy-IO/AppFlowy/commit/9f66838ecda43b1248418d82591df8fe9e90c3cb) Merge branch 'main' into implement_cover_plugin_1868 - [`8a3a7c9`](https://github.com/AppFlowy-IO/AppFlowy/commit/8a3a7c9171089fe6d27cd582fe75851387f6de34) fix: cover plugin implementation finalized - [`2599552`](https://github.com/AppFlowy-IO/AppFlowy/commit/25995520362dfb5efe04d8451f22b43ff6e68ea8) fix: localization fixes - [`346c677`](https://github.com/AppFlowy-IO/AppFlowy/commit/346c677ac6ea322cb1d8253c61bfc2b9e5f44641) fix: added add cover button - [`e95d42c`](https://github.com/AppFlowy-IO/AppFlowy/commit/e95d42ccab8b182343b11335b099ed3ec6597fbe) chore: optimize the cover plugin code - [`7a2d190`](https://github.com/AppFlowy-IO/AppFlowy/commit/7a2d190b945c941751b455cf7faf38222a908b19) feat: auto hide the add button and cover buttons when leaving ### 📊 Changes **13 files changed** (+806 additions, -66 deletions) <details> <summary>View changed files</summary> ➕ `frontend/appflowy_flutter/assets/images/Local Disk (C) - Shortcut.lnk` (+0 -0) ➕ `frontend/appflowy_flutter/assets/images/app_flowy_abstract_cover_1.jpg` (+0 -0) ➕ `frontend/appflowy_flutter/assets/images/app_flowy_abstract_cover_2.jpg` (+0 -0) 📝 `frontend/appflowy_flutter/assets/translations/en.json` (+10 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/document_page.dart` (+22 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/editor_styles.dart` (+1 -1) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/cover/change_cover_popover.dart` (+376 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/plugins/cover/cover_node_widget.dart` (+302 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/app/header/add_button.dart` (+16 -2) 📝 `frontend/appflowy_flutter/packages/appflowy_backend/windows/appflowy_backend_plugin.cpp` (+68 -54) 📝 `frontend/appflowy_flutter/packages/appflowy_backend/windows/appflowy_backend_plugin_c_api.cpp` (+5 -4) 📝 `frontend/appflowy_flutter/packages/appflowy_editor/lib/src/service/editor_service.dart` (+4 -1) 📝 `frontend/appflowy_flutter/packages/appflowy_editor_plugins/lib/appflowy_editor_plugins.dart` (+2 -0) </details> ### 📄 Description # Description Implemented a cover plugin for the editor. The user can add a cover by typing /cover command from the editor, Change the cover with any image from the local director, or abstract images added in the assets or pick any color and use it as . The user can also delete the cover. ## Type of change - [ ] New feature (non-breaking change which adds functionality) - [ ] This change requires a documentation update # How Has This Been Tested? - [ ] Via slash command in the editor (/cover) # Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:16:46 +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#5002
No description provided.