[PR #7879] [MERGED] refacotr: ai chat page folder strcture #8179

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7879
Author: @LucasXu0
Created: 5/5/2025
Status: Merged
Merged: 5/6/2025
Merged by: @LucasXu0

Base: mainHead: ai_chat_page_ui


📝 Commits (7)

  • f30337c refacotr: ai chat page folder strcture
  • db04181 feat: add non-reversed animated chat list
  • f88424c chore: add scroll animation
  • 2818947 feat: add fade animation
  • f7c017b fix: refresh issue
  • c28067b feat: add flag to control the ai chat animation
  • 42e616c chore: enable reversed list

📊 Changes

16 files changed (+1277 additions, -524 deletions)

View changed files

frontend/appflowy_flutter/lib/plugins/ai_chat/application/ai_chat_prelude.dart (+15 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart (+2 -403)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list.dart (+95 -72)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list_reversed.dart (+375 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_animation_list_widget.dart (+89 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_content_page.dart (+33 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_footer.dart (+137 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_message_widget.dart (+0 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/load_chat_message_status_ready.dart (+117 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/text_message_widget.dart (+154 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart (+122 -3)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart (+110 -29)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/page_block/custom_page_block_component.dart (+23 -12)
📝 frontend/appflowy_flutter/pubspec.lock (+2 -2)
📝 frontend/appflowy_flutter/pubspec.yaml (+1 -1)

📄 Description

Feature Preview

Added the fade transition animation when generating the AI result.


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.

Summary by Sourcery

Refactor the AI chat page folder structure by extracting components from the main chat page into separate files, improving code organization and modularity.

Enhancements:

  • Split large chat page component into smaller, more focused components
  • Create separate files for different chat page responsibilities
  • Improve code readability by breaking down complex widget

Chores:

  • Reorganize AI chat page file structure
  • Extract widget logic into dedicated files

🔄 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/7879 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 5/5/2025 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `ai_chat_page_ui` --- ### 📝 Commits (7) - [`f30337c`](https://github.com/AppFlowy-IO/AppFlowy/commit/f30337c7eb01077a26315b8332e993d6383e0584) refacotr: ai chat page folder strcture - [`db04181`](https://github.com/AppFlowy-IO/AppFlowy/commit/db04181ff70bece56ab5c003de53f149f7f85011) feat: add non-reversed animated chat list - [`f88424c`](https://github.com/AppFlowy-IO/AppFlowy/commit/f88424cb340ef758acc093ffce72e54f8a13413b) chore: add scroll animation - [`2818947`](https://github.com/AppFlowy-IO/AppFlowy/commit/2818947fba2249c01c5682cbc03968920a69756b) feat: add fade animation - [`f7c017b`](https://github.com/AppFlowy-IO/AppFlowy/commit/f7c017bbe6dbd689e878c30d4a85813ff01c4a9f) fix: refresh issue - [`c28067b`](https://github.com/AppFlowy-IO/AppFlowy/commit/c28067b7d696b04a414b89d293ca2c01f1420c29) feat: add flag to control the ai chat animation - [`42e616c`](https://github.com/AppFlowy-IO/AppFlowy/commit/42e616c2a417cc2e7c4c0c94bd3e7fe2c9cf5390) chore: enable reversed list ### 📊 Changes **16 files changed** (+1277 additions, -524 deletions) <details> <summary>View changed files</summary> ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/application/ai_chat_prelude.dart` (+15 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart` (+2 -403) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list.dart` (+95 -72) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/animated_chat_list_reversed.dart` (+375 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_animation_list_widget.dart` (+89 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_content_page.dart` (+33 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_footer.dart` (+137 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/chat_message_widget.dart` (+0 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/load_chat_message_status_ready.dart` (+117 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_page/text_message_widget.dart` (+154 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart` (+122 -3) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_message_bubble.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart` (+110 -29) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/page_block/custom_page_block_component.dart` (+23 -12) 📝 `frontend/appflowy_flutter/pubspec.lock` (+2 -2) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+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 Added the fade transition animation when generating the AI result. <!--- 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 - [ ] 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. ## Summary by Sourcery Refactor the AI chat page folder structure by extracting components from the main chat page into separate files, improving code organization and modularity. Enhancements: - Split large chat page component into smaller, more focused components - Create separate files for different chat page responsibilities - Improve code readability by breaking down complex widget Chores: - Reorganize AI chat page file structure - Extract widget logic into dedicated files --- <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: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#8179
No description provided.