[PR #7596] [MERGED] chore: pass ai writer context #7987

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

📋 Pull Request Information

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

Base: mainHead: chore/passing-context


📝 Commits (7)

  • 84da9fc chore: pass ai writer context
  • bea0e49 chore: maintain selection after starting ai writer
  • 297c566 chore: improve ui of additional comments
  • e4e109f chore: revert podfile.lock changes
  • be10031 chore: code readability
  • a770e8e chore: revert podfile.lock changes
  • 3f10a99 fix: accept shouldn't try to unformat

📊 Changes

11 files changed (+387 additions, -262 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_text_field.dart (+16 -14)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart (+15 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_chat_input.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart (+124 -89)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_block_operations.dart (+19 -3)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart (+189 -107)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_entities.dart (+6 -7)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_prompt_input_more_button.dart (+3 -17)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_scroll_wrapper.dart (+11 -20)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/markdown_text_robot.dart (+1 -1)

📄 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/7596 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/24/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `chore/passing-context` --- ### 📝 Commits (7) - [`84da9fc`](https://github.com/AppFlowy-IO/AppFlowy/commit/84da9fc0d2e5ca83740a97865fafdd438e106fef) chore: pass ai writer context - [`bea0e49`](https://github.com/AppFlowy-IO/AppFlowy/commit/bea0e49e2eb8bd6e013d3ca103fe15d5eaf6cdc6) chore: maintain selection after starting ai writer - [`297c566`](https://github.com/AppFlowy-IO/AppFlowy/commit/297c566968489ebbc83af085c056b632eee9fdb7) chore: improve ui of additional comments - [`e4e109f`](https://github.com/AppFlowy-IO/AppFlowy/commit/e4e109f555b1537f81a1d8b64057b1cfc400728a) chore: revert podfile.lock changes - [`be10031`](https://github.com/AppFlowy-IO/AppFlowy/commit/be10031523cd8d9ffccc11c0c2119a4257c1cd6d) chore: code readability - [`a770e8e`](https://github.com/AppFlowy-IO/AppFlowy/commit/a770e8eebe7bc5ae83019ab6d9f357a7a599dc3d) chore: revert podfile.lock changes - [`3f10a99`](https://github.com/AppFlowy-IO/AppFlowy/commit/3f10a9905b80821b61907d47a9d4a0acbcf689ec) fix: accept shouldn't try to unformat ### 📊 Changes **11 files changed** (+387 additions, -262 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_text_field.dart` (+16 -14) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart` (+15 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_chat_input.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/ai_writer_block_component.dart` (+124 -89) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_block_operations.dart` (+19 -3) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_cubit.dart` (+189 -107) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/operations/ai_writer_entities.dart` (+6 -7) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_prompt_input_more_button.dart` (+3 -17) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/ai/widgets/ai_writer_scroll_wrapper.dart` (+11 -20) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/markdown_text_robot.dart` (+1 -1) </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:22:05 +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#7987
No description provided.