[PR #7498] [MERGED] fix: hide continue writing when document is empty #7915

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7498
Author: @richardshiue
Created: 3/11/2025
Status: Merged
Merged: 3/12/2025
Merged by: @richardshiue

Base: mainHead: fix/continue-writing


📝 Commits (4)

  • 701f110 fix: hide continue writing when document is empty
  • 06e3034 Merge branch 'AppFlowy-IO:main' into fix/continue-writing
  • 6c89d00 chore: code clean up and add documentation
  • 941e588 chore: merge remote-tracking branch 'main' into this one

📊 Changes

7 files changed (+156 additions, -26 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_document.dart (+11 -3)
📝 frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart (+6 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/document_page.dart (+4 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart (+58 -22)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_node_extension.dart (+62 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/slash_menu/slash_menu_items_builder.dart (+12 -1)

📄 Description

  1. Convert to markdown and trim to determine whether document is empty.
  2. Hide continue writing if empty

Feature Preview


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/7498 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 3/11/2025 **Status:** ✅ Merged **Merged:** 3/12/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `fix/continue-writing` --- ### 📝 Commits (4) - [`701f110`](https://github.com/AppFlowy-IO/AppFlowy/commit/701f110eb57aa2aa903a25d0aea5e9d7ec67e192) fix: hide continue writing when document is empty - [`06e3034`](https://github.com/AppFlowy-IO/AppFlowy/commit/06e3034d6596dd2181085b4f5571422f3453d710) Merge branch 'AppFlowy-IO:main' into fix/continue-writing - [`6c89d00`](https://github.com/AppFlowy-IO/AppFlowy/commit/6c89d000003799da5bf6948133a84f9476ae8e08) chore: code clean up and add documentation - [`941e588`](https://github.com/AppFlowy-IO/AppFlowy/commit/941e5888dbefd73b38bc1675a6da401a2423ea22) chore: merge remote-tracking branch 'main' into this one ### 📊 Changes **7 files changed** (+156 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/database/widgets/row/row_document.dart` (+11 -3) 📝 `frontend/appflowy_flutter/lib/plugins/database_document/database_document_page.dart` (+6 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/document_page.dart` (+4 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart` (+58 -22) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_node_extension.dart` (+62 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/slash_menu/slash_menu_items_builder.dart` (+12 -1) </details> ### 📄 Description 1. Convert to markdown and trim to determine whether document is empty. 2. Hide continue writing if empty ### Feature Preview <!--- 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. - [ ] 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:21: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#7915
No description provided.