[PR #7128] [MERGED] feat(flutter): pre-defined response formats #7748

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7128
Author: @richardshiue
Created: 1/2/2025
Status: Merged
Merged: 1/8/2025
Merged by: @appflowy

Base: mainHead: feat/pre-defined-formats


📝 Commits (10+)

  • bb4b6b7 feat: pre-defined response formats
  • df05e3b chore: adjust bottom sheet
  • 31a756b chore: rename and clean up enums
  • c9bca30 chore: move all mobile input actions to the bottom
  • 6671422 chore: bump client-api
  • dc0e491 chore: connect to API
  • 9e40ef4 chore: apply suggestions from code review
  • 819a799 chore: code cleanup
  • ede207c chore: code cleanup
  • a539d82 chore: update client-api

📊 Changes

36 files changed (+1913 additions, -399 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_bloc.dart (+53 -13)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_entity.dart (+88 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart (+8 -3)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_mention_page_menu.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart (+96 -17)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart (+69 -27)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/predefined_format_buttons.dart (+225 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_related_question.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/layout_define.dart (+15 -5)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_change_format_bottom_sheet.dart (+193 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart (+199 -9)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart (+35 -2)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/image_menu.dart (+19 -15)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_bloc.dart (+3 -6)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart (+17 -6)
📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/image_provider.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/interactive_image_viewer.dart (+3 -2)

...and 16 more files

📄 Description

Desktop:

input:
Screenshot 2025-01-02 at 7 59 50 PM

regenerate:
Screenshot 2025-01-02 at 7 59 13 PM

Mobile:

input:
Screenshot 2025-01-02 at 8 01 47 PM

regenerate:
Screenshot 2025-01-02 at 8 01 22 PM

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/7128 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 1/2/2025 **Status:** ✅ Merged **Merged:** 1/8/2025 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat/pre-defined-formats` --- ### 📝 Commits (10+) - [`bb4b6b7`](https://github.com/AppFlowy-IO/AppFlowy/commit/bb4b6b7bc60977c0e02887629dd43110d01c1de0) feat: pre-defined response formats - [`df05e3b`](https://github.com/AppFlowy-IO/AppFlowy/commit/df05e3b7e5cc2b5e1d69959009c038e3a44746f9) chore: adjust bottom sheet - [`31a756b`](https://github.com/AppFlowy-IO/AppFlowy/commit/31a756bee1cc63ae320a49d82c9b00660eddd80d) chore: rename and clean up enums - [`c9bca30`](https://github.com/AppFlowy-IO/AppFlowy/commit/c9bca30b0ab88582ab45c0c60f288402dadb022c) chore: move all mobile input actions to the bottom - [`6671422`](https://github.com/AppFlowy-IO/AppFlowy/commit/6671422e11dc90ba2954e8d378048aaea4a3b8b7) chore: bump client-api - [`dc0e491`](https://github.com/AppFlowy-IO/AppFlowy/commit/dc0e491c811748fab886b736cb544d287b395da5) chore: connect to API - [`9e40ef4`](https://github.com/AppFlowy-IO/AppFlowy/commit/9e40ef4d71a0b6bca5abeed099260d289215b7fa) chore: apply suggestions from code review - [`819a799`](https://github.com/AppFlowy-IO/AppFlowy/commit/819a79903a5d76f7a41b7d38e8649dab81ffed62) chore: code cleanup - [`ede207c`](https://github.com/AppFlowy-IO/AppFlowy/commit/ede207c18d7ee0984c4318759ae37bd844e4b5ab) chore: code cleanup - [`a539d82`](https://github.com/AppFlowy-IO/AppFlowy/commit/a539d8217e7c318b91dfefe395f67a24c40ee879) chore: update client-api ### 📊 Changes **36 files changed** (+1913 additions, -399 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_bloc.dart` (+53 -13) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_entity.dart` (+88 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart` (+8 -3) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_mention_page_menu.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart` (+96 -17) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart` (+69 -27) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/predefined_format_buttons.dart` (+225 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_related_question.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/layout_define.dart` (+15 -5) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_change_format_bottom_sheet.dart` (+193 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_action_bar.dart` (+199 -9) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart` (+35 -2) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/custom_image_block_component/image_menu.dart` (+19 -15) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/multi_image_block_component/layouts/image_browser_layout.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/resizeable_image.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_bloc.dart` (+3 -6) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart` (+17 -6) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/image_provider.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/image_viewer/interactive_image_viewer.dart` (+3 -2) _...and 16 more files_ </details> ### 📄 Description Desktop: input: ![Screenshot 2025-01-02 at 7 59 50 PM](https://github.com/user-attachments/assets/3629122d-3b8e-4b59-8240-9a5bf4020823) regenerate: ![Screenshot 2025-01-02 at 7 59 13 PM](https://github.com/user-attachments/assets/ab0a0b7a-d620-4ffe-b03d-5de13fef8c2f) Mobile: input: <img width="435" alt="Screenshot 2025-01-02 at 8 01 47 PM" src="https://github.com/user-attachments/assets/e8f9d566-b75c-4e29-9ab1-5a69e78cc784" /> regenerate: <img width="421" alt="Screenshot 2025-01-02 at 8 01 22 PM" src="https://github.com/user-attachments/assets/dabee580-ef71-415b-a8d5-fe26f6aaf702" /> ### 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) - [ ] 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:02 +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#7748
No description provided.