[PR #6896] [MERGED] feat: revamp mention page interactions in AI chat #7624

Closed
opened 2026-03-23 23:20:28 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6896
Author: @richardshiue
Created: 12/1/2024
Status: Merged
Merged: 12/3/2024
Merged by: @richardshiue

Base: mainHead: feat/ai-mention-select-sources-refer-to


📝 Commits (8)

  • 0aec01a chore: code cleanup
  • 19e77ca chore: improve mention page ui
  • 9c94d1d chore: just use view pb
  • 1bea6b3 chore: remove chat input menu style
  • fde3f0c chore: code cleanup
  • 15115e9 chore: rewrite and unify chat input action handler and bloc
  • ef3384b feat: improve appearance of mention page popup
  • 3479d33 fix: misaligned emoji text

📊 Changes

15 files changed (+1355 additions, -1179 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/ai_prompt_input_bloc.dart (+53 -35)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_entity.dart (+3 -1)
frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_action_bloc.dart (+0 -217)
frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_action_control.dart (+0 -172)
frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_control_cubit.dart (+239 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_message_service.dart (+5 -5)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart (+1 -2)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_input_file.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_input_span.dart (+34 -28)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_mention_page_menu.dart (+419 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart (+427 -238)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart (+162 -145)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input_action_menu.dart (+0 -320)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart (+6 -3)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/loading_indicator.dart (+5 -12)

📄 Description

resolves https://github.com/AppFlowy-IO/AppFlowy/issues/6889

Screenshot 2024-12-01 at 3 14 20 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/6896 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 12/1/2024 **Status:** ✅ Merged **Merged:** 12/3/2024 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `feat/ai-mention-select-sources-refer-to` --- ### 📝 Commits (8) - [`0aec01a`](https://github.com/AppFlowy-IO/AppFlowy/commit/0aec01acf37f49f5cc1453c5b143f28e79a706e3) chore: code cleanup - [`19e77ca`](https://github.com/AppFlowy-IO/AppFlowy/commit/19e77ca99cb59cb93a28196bcc5f6d074d3a6401) chore: improve mention page ui - [`9c94d1d`](https://github.com/AppFlowy-IO/AppFlowy/commit/9c94d1dca9d78845a9735fbb24f4b39bfeed4b02) chore: just use view pb - [`1bea6b3`](https://github.com/AppFlowy-IO/AppFlowy/commit/1bea6b332eb8efe0d0576c3bb7dedf30e36d6072) chore: remove chat input menu style - [`fde3f0c`](https://github.com/AppFlowy-IO/AppFlowy/commit/fde3f0c6ffc9909a3e0c820a50ddbca21ecd03e4) chore: code cleanup - [`15115e9`](https://github.com/AppFlowy-IO/AppFlowy/commit/15115e9b15f326a9e1c370e93acf4e4ace0ee8ba) chore: rewrite and unify chat input action handler and bloc - [`ef3384b`](https://github.com/AppFlowy-IO/AppFlowy/commit/ef3384b8f1c3ee6321284f1dd42bcbc4462276f9) feat: improve appearance of mention page popup - [`3479d33`](https://github.com/AppFlowy-IO/AppFlowy/commit/3479d338f374492771f4542dae6d138a0a9f7e3e) fix: misaligned emoji text ### 📊 Changes **15 files changed** (+1355 additions, -1179 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/ai_prompt_input_bloc.dart` (+53 -35) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_entity.dart` (+3 -1) ➖ `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_action_bloc.dart` (+0 -217) ➖ `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_action_control.dart` (+0 -172) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_input_control_cubit.dart` (+239 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_message_service.dart` (+5 -5) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart` (+1 -2) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_input_file.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_input_span.dart` (+34 -28) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/chat_mention_page_menu.dart` (+419 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart` (+427 -238) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart` (+162 -145) ➖ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input_action_menu.dart` (+0 -320) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_text_message.dart` (+6 -3) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/loading_indicator.dart` (+5 -12) </details> ### 📄 Description resolves https://github.com/AppFlowy-IO/AppFlowy/issues/6889 ![Screenshot 2024-12-01 at 3 14 20 PM](https://github.com/user-attachments/assets/e2ff5f66-490f-4ab2-a66a-4281d56d2093) ### 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. - [ ] 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:20:28 +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#7624
No description provided.