[PR #7559] [MERGED] feat: allow user scroll during generation #7963

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7559
Author: @richardshiue
Created: 3/17/2025
Status: Merged
Merged: 3/20/2025
Merged by: @richardshiue

Base: mainHead: chore/allow-user-scroll-during-generation


📝 Commits (5)

  • cd9dc26 chore: add keep alive to ai writer block component
  • 7c351b1 chore: allow user scrolling during ai writer generation
  • 4389aa0 chore: pull ai writer cubit upwards
  • 6c6f60b test: fix unit tests
  • 75bf41a chore: clear selection

📊 Changes

9 files changed (+574 additions, -384 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/document_page.dart (+20 -12)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart (+41 -109)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_block_operations.dart (+20 -5)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart (+234 -224)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_gesture_detector.dart (+4 -1)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_scroll_wrapper.dart (+223 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/markdown_text_robot.dart (+4 -6)
📝 frontend/appflowy_flutter/lib/util/throttle.dart (+4 -0)
📝 frontend/appflowy_flutter/test/bloc_test/ai_writer_test/ai_writer_bloc_test.dart (+24 -27)

📄 Description

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/7559 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 3/17/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `chore/allow-user-scroll-during-generation` --- ### 📝 Commits (5) - [`cd9dc26`](https://github.com/AppFlowy-IO/AppFlowy/commit/cd9dc263d364411ab24d0fdc43ffd12cb2fff1de) chore: add keep alive to ai writer block component - [`7c351b1`](https://github.com/AppFlowy-IO/AppFlowy/commit/7c351b1384dc4f8e90b98e7e817f5e0e1d0220f3) chore: allow user scrolling during ai writer generation - [`4389aa0`](https://github.com/AppFlowy-IO/AppFlowy/commit/4389aa0c32d2f8aca52e16a158b8a96fd244cc8a) chore: pull ai writer cubit upwards - [`6c6f60b`](https://github.com/AppFlowy-IO/AppFlowy/commit/6c6f60bd33d04f9db1f03505e944694838873934) test: fix unit tests - [`75bf41a`](https://github.com/AppFlowy-IO/AppFlowy/commit/75bf41a3340b7256f230271600486ac6da81f3b6) chore: clear selection ### 📊 Changes **9 files changed** (+574 additions, -384 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/document_page.dart` (+20 -12) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart` (+41 -109) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_block_operations.dart` (+20 -5) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart` (+234 -224) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_gesture_detector.dart` (+4 -1) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_scroll_wrapper.dart` (+223 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/markdown_text_robot.dart` (+4 -6) 📝 `frontend/appflowy_flutter/lib/util/throttle.dart` (+4 -0) 📝 `frontend/appflowy_flutter/test/bloc_test/ai_writer_test/ai_writer_bloc_test.dart` (+24 -27) </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 <!--- 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:21:58 +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#7963
No description provided.