[PR #7643] [MERGED] chore: improve local ai settings page #8015

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7643
Author: @richardshiue
Created: 3/28/2025
Status: Merged
Merged: 3/29/2025
Merged by: @richardshiue

Base: mainHead: chore/improve-local-ai-setting-page


📝 Commits (3)

  • 07b5b32 chore: improve local ai settings page
  • f976596 chore: improve local ai settings page
  • 12a93a5 chore: simplify state and improve ui

📊 Changes

17 files changed (+727 additions, -1031 deletions)

View changed files

frontend/appflowy_flutter/lib/workspace/application/settings/ai/download_offline_ai_app_bloc.dart (+0 -41)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_bloc.dart (+86 -59)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_on_boarding_bloc.dart (+1 -1)
frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_setting_panel_bloc.dart (+0 -92)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/ai/ollama_setting_bloc.dart (+3 -5)
frontend/appflowy_flutter/lib/workspace/application/settings/ai/plugin_state_bloc.dart (+0 -146)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/init_local_ai.dart (+0 -82)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart (+141 -97)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting_panel.dart (+0 -32)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollama_setting.dart (+114 -0)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollma_setting.dart (+0 -168)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/plugin_state.dart (+0 -248)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/plugin_status_indicator.dart (+309 -0)
📝 frontend/resources/translations/en.json (+8 -6)
📝 frontend/rust-lib/flowy-ai/src/entities.rs (+32 -2)
📝 frontend/rust-lib/flowy-ai/src/local_ai/controller.rs (+11 -12)
📝 frontend/rust-lib/flowy-ai/src/local_ai/resource.rs (+22 -40)

📄 Description

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.

Summary by Sourcery

Improve the local AI settings page by refactoring the UI components, state management, and user interaction for the local AI settings

Enhancements:

  • Refactored LocalAIToggleBloc to simplify state management
  • Improved UI components with more consistent styling and layout
  • Enhanced user interaction for local AI settings

Chores:

  • Renamed some files and classes for better clarity
  • Simplified error handling and state management

🔄 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/7643 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 3/28/2025 **Status:** ✅ Merged **Merged:** 3/29/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `chore/improve-local-ai-setting-page` --- ### 📝 Commits (3) - [`07b5b32`](https://github.com/AppFlowy-IO/AppFlowy/commit/07b5b32528c87bbf1c2226c8e94e54d167f86c07) chore: improve local ai settings page - [`f976596`](https://github.com/AppFlowy-IO/AppFlowy/commit/f976596c31a4070e1fd0e22d2cd25d7b8dba94a8) chore: improve local ai settings page - [`12a93a5`](https://github.com/AppFlowy-IO/AppFlowy/commit/12a93a5f615ed69459e2437fb04f8977157dc239) chore: simplify state and improve ui ### 📊 Changes **17 files changed** (+727 additions, -1031 deletions) <details> <summary>View changed files</summary> ➖ `frontend/appflowy_flutter/lib/workspace/application/settings/ai/download_offline_ai_app_bloc.dart` (+0 -41) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_bloc.dart` (+86 -59) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_on_boarding_bloc.dart` (+1 -1) ➖ `frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_setting_panel_bloc.dart` (+0 -92) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/ai/ollama_setting_bloc.dart` (+3 -5) ➖ `frontend/appflowy_flutter/lib/workspace/application/settings/ai/plugin_state_bloc.dart` (+0 -146) ➖ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/init_local_ai.dart` (+0 -82) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting.dart` (+141 -97) ➖ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/local_ai_setting_panel.dart` (+0 -32) ➕ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollama_setting.dart` (+114 -0) ➖ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/ollma_setting.dart` (+0 -168) ➖ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/plugin_state.dart` (+0 -248) ➕ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/plugin_status_indicator.dart` (+309 -0) 📝 `frontend/resources/translations/en.json` (+8 -6) 📝 `frontend/rust-lib/flowy-ai/src/entities.rs` (+32 -2) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/controller.rs` (+11 -12) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/resource.rs` (+22 -40) </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 <!--- 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. - [x] 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. ## Summary by Sourcery Improve the local AI settings page by refactoring the UI components, state management, and user interaction for the local AI settings Enhancements: - Refactored LocalAIToggleBloc to simplify state management - Improved UI components with more consistent styling and layout - Enhanced user interaction for local AI settings Chores: - Renamed some files and classes for better clarity - Simplified error handling and state management --- <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:13 +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#8015
No description provided.