[PR #6381] [MERGED] fix: row cover improvements #7350

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6381
Author: @Xazin
Created: 9/23/2024
Status: Merged
Merged: 9/23/2024
Merged by: @Xazin

Base: mainHead: fix/row-cover-improvements


📝 Commits (8)

  • 04430d0 fix: row cover improvements
  • bbe00fd feat: set image from media cell as cover
  • 005d0a6 fix: duplicate row meta when duplicating row
  • 74f911d fix: use serialize repr and deserialize repr
  • b1e0bba chore: update collab revision
  • 67a58f2 fix: failing test and bug w/ document icon
  • fc90087 fix: show empty cover on load failure
  • 6291a58 fix: tauri collab revision

📊 Changes

30 files changed (+876 additions, -562 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/database/database_row_cover_test.dart (+37 -34)
📝 frontend/appflowy_flutter/integration_test/desktop/database/database_row_page_test.dart (+18 -23)
📝 frontend/appflowy_flutter/integration_test/desktop/document/document_with_cover_image_test.dart (+2 -1)
📝 frontend/appflowy_flutter/integration_test/shared/database_test_op.dart (+1 -3)
📝 frontend/appflowy_flutter/lib/mobile/presentation/database/board/mobile_board_page.dart (+29 -24)
📝 frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart (+6 -4)
📝 frontend/appflowy_flutter/lib/mobile/presentation/database/card/mobile_card_content.dart (+5 -7)
📝 frontend/appflowy_flutter/lib/plugins/database/application/row/related_row_detail_bloc.dart (+16 -4)
📝 frontend/appflowy_flutter/lib/plugins/database/application/row/row_banner_bloc.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_card.dart (+8 -6)
📝 frontend/appflowy_flutter/lib/plugins/database/grid/application/row/row_detail_bloc.dart (+7 -5)
📝 frontend/appflowy_flutter/lib/plugins/database/widgets/card/card.dart (+57 -10)
📝 frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart (+33 -9)
📝 frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart (+486 -330)
📝 frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart (+24 -13)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/desktop_cover.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_header_node_widget.dart (+25 -33)
frontend/appflowy_flutter/lib/plugins/shared/cover_type_ext.dart (+11 -0)
📝 frontend/appflowy_flutter/lib/shared/af_image.dart (+9 -0)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+8 -8)

...and 10 more files

📄 Description

Requires: https://github.com/AppFlowy-IO/AppFlowy-Collab/pull/294

  • Adjust size of the file upload menu in media cell
  • Fix issue where sometimes the upload menu for media wouldn't open
  • Use same style for Cover in Document on Row Detail Page
  • Show the row cover when opened in full page
  • Add ability to change cover after it is added, and adjust behavior so it's the same as the document cover. (Adding a cover will make it into the default asset cover)
  • Adjusted tests to the new changes
  • Set image from media cell as cover
  • Duplicate row meta when duplicating a row (eg. also bring cover, and other meta data in new row)

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/6381 **Author:** [@Xazin](https://github.com/Xazin) **Created:** 9/23/2024 **Status:** ✅ Merged **Merged:** 9/23/2024 **Merged by:** [@Xazin](https://github.com/Xazin) **Base:** `main` ← **Head:** `fix/row-cover-improvements` --- ### 📝 Commits (8) - [`04430d0`](https://github.com/AppFlowy-IO/AppFlowy/commit/04430d0c155865e20e97325f1d793a282da18916) fix: row cover improvements - [`bbe00fd`](https://github.com/AppFlowy-IO/AppFlowy/commit/bbe00fda53bc06384f168e1688e42bcc3a9afb45) feat: set image from media cell as cover - [`005d0a6`](https://github.com/AppFlowy-IO/AppFlowy/commit/005d0a68534bd3cd93f2d0baf2f45ad61cda7867) fix: duplicate row meta when duplicating row - [`74f911d`](https://github.com/AppFlowy-IO/AppFlowy/commit/74f911da7cdd884efb6a38616341a454cee28cfd) fix: use serialize repr and deserialize repr - [`b1e0bba`](https://github.com/AppFlowy-IO/AppFlowy/commit/b1e0bbac0441032279f0940697eef808ba7fd16c) chore: update collab revision - [`67a58f2`](https://github.com/AppFlowy-IO/AppFlowy/commit/67a58f2e86c8d64a9cfd8b1615ec90925f6a21e8) fix: failing test and bug w/ document icon - [`fc90087`](https://github.com/AppFlowy-IO/AppFlowy/commit/fc900875a5aeeeecb59100708d4dc15011ae40e2) fix: show empty cover on load failure - [`6291a58`](https://github.com/AppFlowy-IO/AppFlowy/commit/6291a5835065a21b8329b84abdf49ca8004e8b39) fix: tauri collab revision ### 📊 Changes **30 files changed** (+876 additions, -562 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/database/database_row_cover_test.dart` (+37 -34) 📝 `frontend/appflowy_flutter/integration_test/desktop/database/database_row_page_test.dart` (+18 -23) 📝 `frontend/appflowy_flutter/integration_test/desktop/document/document_with_cover_image_test.dart` (+2 -1) 📝 `frontend/appflowy_flutter/integration_test/shared/database_test_op.dart` (+1 -3) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/database/board/mobile_board_page.dart` (+29 -24) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/database/card/card_detail/mobile_card_detail_screen.dart` (+6 -4) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/database/card/mobile_card_content.dart` (+5 -7) 📝 `frontend/appflowy_flutter/lib/plugins/database/application/row/related_row_detail_bloc.dart` (+16 -4) 📝 `frontend/appflowy_flutter/lib/plugins/database/application/row/row_banner_bloc.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/database/calendar/presentation/calendar_event_card.dart` (+8 -6) 📝 `frontend/appflowy_flutter/lib/plugins/database/grid/application/row/row_detail_bloc.dart` (+7 -5) 📝 `frontend/appflowy_flutter/lib/plugins/database/widgets/card/card.dart` (+57 -10) 📝 `frontend/appflowy_flutter/lib/plugins/database/widgets/cell/desktop_row_detail/desktop_row_detail_media_cell.dart` (+33 -9) 📝 `frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_banner.dart` (+486 -330) 📝 `frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart` (+24 -13) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/desktop_cover.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_header_node_widget.dart` (+25 -33) ➕ `frontend/appflowy_flutter/lib/plugins/shared/cover_type_ext.dart` (+11 -0) 📝 `frontend/appflowy_flutter/lib/shared/af_image.dart` (+9 -0) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+8 -8) _...and 10 more files_ </details> ### 📄 Description Requires: https://github.com/AppFlowy-IO/AppFlowy-Collab/pull/294 - [x] Adjust size of the file upload menu in media cell - [x] Fix issue where sometimes the upload menu for media wouldn't open - [x] Use same style for Cover in Document on Row Detail Page - [x] Show the row cover when opened in full page - [x] Add ability to change cover after it is added, and adjust behavior so it's the same as the document cover. (Adding a cover will make it into the default asset cover) - [x] Adjusted tests to the new changes - [x] Set image from media cell as cover - [x] Duplicate row meta when duplicating a row (eg. also bring cover, and other meta data in new row) ### Feature Preview TBD #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] 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:13 +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#7350
No description provided.