[PR #6975] [MERGED] feat: select sources for ai prompt #7665

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

📋 Pull Request Information

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

Base: mainHead: feat/ai-select-sources


📝 Commits (5)

  • 780b032 feat: select sources for ai prompt
  • 43a0333 feat: mobile
  • bdb669d chore: disable mention page
  • c021f81 chore: disable select sources when on local ai
  • 84ecd4d chore: code cleanup

📊 Changes

15 files changed (+1409 additions, -100 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/mobile/presentation/base/mobile_view_page.dart (+7 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_bloc.dart (+42 -2)
frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_select_sources_cubit.dart (+330 -0)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart (+41 -25)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart (+68 -42)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart (+59 -30)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/select_sources_bottom_sheet.dart (+271 -0)
frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/select_sources_menu.dart (+521 -0)
frontend/resources/flowy_icons/16x/ai_source_drop_down.svg (+3 -0)
frontend/resources/flowy_icons/16x/check_partial.svg (+4 -0)
📝 frontend/resources/translations/en.json (+2 -1)
📝 frontend/rust-lib/flowy-ai/src/ai_manager.rs (+11 -0)
📝 frontend/rust-lib/flowy-ai/src/entities.rs (+16 -0)
📝 frontend/rust-lib/flowy-ai/src/event_handler.rs (+26 -0)
📝 frontend/rust-lib/flowy-ai/src/event_map.rs (+8 -0)

📄 Description

requires https://github.com/AppFlowy-IO/AppFlowy/pull/6982

Screenshot 2024-12-16 at 4 01 45 PM

Screenshot 2024-12-16 at 4 01 57 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/6975 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 12/12/2024 **Status:** ✅ Merged **Merged:** 12/18/2024 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `feat/ai-select-sources` --- ### 📝 Commits (5) - [`780b032`](https://github.com/AppFlowy-IO/AppFlowy/commit/780b032cde7ff3c920dd82ff53d0de501e788997) feat: select sources for ai prompt - [`43a0333`](https://github.com/AppFlowy-IO/AppFlowy/commit/43a0333e2ba8edfe9e42e470405a08f837d6fb70) feat: mobile - [`bdb669d`](https://github.com/AppFlowy-IO/AppFlowy/commit/bdb669d2f34e7260869473843430fbb630e01b5f) chore: disable mention page - [`c021f81`](https://github.com/AppFlowy-IO/AppFlowy/commit/c021f81d24bbe2978757033528b05e0802ee9be8) chore: disable select sources when on local ai - [`84ecd4d`](https://github.com/AppFlowy-IO/AppFlowy/commit/84ecd4defb49f9bbf41d044af19961ea66681890) chore: code cleanup ### 📊 Changes **15 files changed** (+1409 additions, -100 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/mobile/presentation/base/mobile_view_page.dart` (+7 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_bloc.dart` (+42 -2) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/application/chat_select_sources_cubit.dart` (+330 -0) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/chat_page.dart` (+41 -25) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart` (+68 -42) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_ai_prompt_input.dart` (+59 -30) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/select_sources_bottom_sheet.dart` (+271 -0) ➕ `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/select_sources_menu.dart` (+521 -0) ➕ `frontend/resources/flowy_icons/16x/ai_source_drop_down.svg` (+3 -0) ➕ `frontend/resources/flowy_icons/16x/check_partial.svg` (+4 -0) 📝 `frontend/resources/translations/en.json` (+2 -1) 📝 `frontend/rust-lib/flowy-ai/src/ai_manager.rs` (+11 -0) 📝 `frontend/rust-lib/flowy-ai/src/entities.rs` (+16 -0) 📝 `frontend/rust-lib/flowy-ai/src/event_handler.rs` (+26 -0) 📝 `frontend/rust-lib/flowy-ai/src/event_map.rs` (+8 -0) </details> ### 📄 Description requires https://github.com/AppFlowy-IO/AppFlowy/pull/6982 ![Screenshot 2024-12-16 at 4 01 45 PM](https://github.com/user-attachments/assets/87c4cb8c-0596-490f-a95e-d9793f18dbb6) <img width="484" alt="Screenshot 2024-12-16 at 4 01 57 PM" src="https://github.com/user-attachments/assets/600322dd-06b2-4ed2-a684-2418b1a8f922" /> ### 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:40 +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#7665
No description provided.