[PR #6267] [MERGED] feat: ai writer on multi-lines of text #7281

Closed
opened 2026-03-23 23:18:54 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6267
Author: @LucasXu0
Created: 9/10/2024
Status: Merged
Merged: 9/11/2024
Merged by: @LucasXu0

Base: mainHead: ai_writer_v2


📝 Commits (6)

  • be491e6 feat: ai writer on multi-lines of text
  • 6e226c1 feat: use flutter_bloc to manage ai response
  • 00203b1 feat: integrate smart_edit_bloc
  • 2778957 fix: bloc not found
  • ce87c2d feat: support 'fix spelling and grammer'
  • 19bac91 fix: add log to address ai generate issue

📊 Changes

8 files changed (+405 additions, -315 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/unsplash_image_widget.dart (+2 -3)
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_bloc.dart (+221 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart (+146 -299)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_toolbar_item.dart (+26 -5)
📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart (+2 -0)
📝 frontend/appflowy_flutter/macos/Podfile.lock (+1 -1)
📝 frontend/appflowy_flutter/pubspec.lock (+6 -6)

📄 Description

Feature Preview

closes #6075

  • update discard dialog style
  • refacotor the code using bloc.
  • support editing multi-lines of text
    • fix spelling & grammer
    • improve writing
    • summary
    • make it longer
  • keep block style

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/6267 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 9/10/2024 **Status:** ✅ Merged **Merged:** 9/11/2024 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `ai_writer_v2` --- ### 📝 Commits (6) - [`be491e6`](https://github.com/AppFlowy-IO/AppFlowy/commit/be491e658286c364bfe836ac47acd2c2b77797dc) feat: ai writer on multi-lines of text - [`6e226c1`](https://github.com/AppFlowy-IO/AppFlowy/commit/6e226c1805f81383289eedb650012c3af9b23f10) feat: use flutter_bloc to manage ai response - [`00203b1`](https://github.com/AppFlowy-IO/AppFlowy/commit/00203b11b5d0f22da623b2dcb3c4d24d33aeb438) feat: integrate smart_edit_bloc - [`2778957`](https://github.com/AppFlowy-IO/AppFlowy/commit/2778957e089d366ff8f58ded248001c28b983e4e) fix: bloc not found - [`ce87c2d`](https://github.com/AppFlowy-IO/AppFlowy/commit/ce87c2d020b3477fd21d3ee715cfa8d67f4aab43) feat: support 'fix spelling and grammer' - [`19bac91`](https://github.com/AppFlowy-IO/AppFlowy/commit/19bac91e6886589ac9841ed86060332f12a0d279) fix: add log to address ai generate issue ### 📊 Changes **8 files changed** (+405 additions, -315 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_page.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/unsplash_image_widget.dart` (+2 -3) ➕ `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_bloc.dart` (+221 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_node_widget.dart` (+146 -299) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/openai/widgets/smart_edit_toolbar_item.dart` (+26 -5) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart` (+2 -0) 📝 `frontend/appflowy_flutter/macos/Podfile.lock` (+1 -1) 📝 `frontend/appflowy_flutter/pubspec.lock` (+6 -6) </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 closes #6075 - [x] update discard dialog style - [x] refacotor the code using bloc. - [x] support editing multi-lines of text - [x] fix spelling & grammer - [x] improve writing - [x] summary - [x] make it longer - [x] keep block style <!--- 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) - [ ] 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:18:54 +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#7281
No description provided.