[PR #7651] [MERGED] chore: improve local ai settings page #8022

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7651
Author: @richardshiue
Created: 3/30/2025
Status: Merged
Merged: 3/31/2025
Merged by: @richardshiue

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


📝 Commits (5)

  • b070889 chore: improve local ai settings page
  • 2c0339c chore: move local to top in select list
  • 4bb9908 chore: improve copy of missing model
  • 6c53de1 chore: remove green background and add progress indicator
  • 6e0b3d4 chore: change text color

📊 Changes

19 files changed (+793 additions, -923 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_bloc.dart (+110 -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 -150)
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 (+118 -96)
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/model_selection.dart (+12 -7)
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 -168)
frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/plugin_status_indicator.dart (+359 -0)
📝 frontend/resources/translations/ar-SA.json (+4 -4)
📝 frontend/resources/translations/en.json (+12 -9)
📝 frontend/resources/translations/ko-KR.json (+4 -4)
📝 frontend/rust-lib/flowy-ai/src/entities.rs (+32 -2)
📝 frontend/rust-lib/flowy-ai/src/local_ai/controller.rs (+2 -4)
📝 frontend/rust-lib/flowy-ai/src/local_ai/resource.rs (+22 -40)

📄 Description

Reland https://github.com/AppFlowy-IO/AppFlowy/pull/7643

  • use freezed data structs
  • fix restart button
  • always show plugin status indicator

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

Refactor and improve the local AI settings page in AppFlowy, introducing a more robust and user-friendly implementation for managing local AI plugin settings

New Features:

  • Added comprehensive status indicators for different local AI plugin states
  • Introduced granular resource tracking for local AI plugin

Enhancements:

  • Redesigned local AI settings page with improved state management
  • Added more detailed status indicators for local AI plugin
  • Implemented a more flexible resource handling mechanism for local AI

Chores:

  • Removed deprecated local AI setting panel and plugin state blocs
  • Restructured local AI resource management in the backend

Summary by Sourcery

Refactor and improve the local AI settings page in AppFlowy, introducing a more robust and user-friendly implementation for managing local AI plugin settings

New Features:

  • Added comprehensive status indicators for local AI plugin states
  • Introduced more detailed resource tracking for local AI plugin

Enhancements:

  • Redesigned local AI settings page with improved state management
  • Added granular status indicators for local AI plugin
  • Implemented a more flexible resource handling mechanism

Chores:

  • Removed deprecated local AI setting panel and plugin state blocs
  • Restructured local AI resource management in the backend

🔄 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/7651 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 3/30/2025 **Status:** ✅ Merged **Merged:** 3/31/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `chore/improve-local-ai-setting-page` --- ### 📝 Commits (5) - [`b070889`](https://github.com/AppFlowy-IO/AppFlowy/commit/b0708891e43f6dc770d29cce6a9f786e31733847) chore: improve local ai settings page - [`2c0339c`](https://github.com/AppFlowy-IO/AppFlowy/commit/2c0339c76a9be4016ecd31de9e9932dcd2808aa1) chore: move local to top in select list - [`4bb9908`](https://github.com/AppFlowy-IO/AppFlowy/commit/4bb9908681cca06985626c3d069dfe55697d5a7f) chore: improve copy of missing model - [`6c53de1`](https://github.com/AppFlowy-IO/AppFlowy/commit/6c53de198e4403997befdd5846bdee4902be7880) chore: remove green background and add progress indicator - [`6e0b3d4`](https://github.com/AppFlowy-IO/AppFlowy/commit/6e0b3d4f8f86f96fddc0f95dadda2e0621adbfda) chore: change text color ### 📊 Changes **19 files changed** (+793 additions, -923 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/ai/local_ai_bloc.dart` (+110 -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 -150) ➖ `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` (+118 -96) ➖ `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/model_selection.dart` (+12 -7) ➕ `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 -168) ➕ `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/setting_ai_view/plugin_status_indicator.dart` (+359 -0) 📝 `frontend/resources/translations/ar-SA.json` (+4 -4) 📝 `frontend/resources/translations/en.json` (+12 -9) 📝 `frontend/resources/translations/ko-KR.json` (+4 -4) 📝 `frontend/rust-lib/flowy-ai/src/entities.rs` (+32 -2) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/controller.rs` (+2 -4) 📝 `frontend/rust-lib/flowy-ai/src/local_ai/resource.rs` (+22 -40) </details> ### 📄 Description Reland https://github.com/AppFlowy-IO/AppFlowy/pull/7643 - use freezed data structs - fix restart button - always show plugin status indicator <!--- 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 Refactor and improve the local AI settings page in AppFlowy, introducing a more robust and user-friendly implementation for managing local AI plugin settings New Features: - Added comprehensive status indicators for different local AI plugin states - Introduced granular resource tracking for local AI plugin Enhancements: - Redesigned local AI settings page with improved state management - Added more detailed status indicators for local AI plugin - Implemented a more flexible resource handling mechanism for local AI Chores: - Removed deprecated local AI setting panel and plugin state blocs - Restructured local AI resource management in the backend ## Summary by Sourcery Refactor and improve the local AI settings page in AppFlowy, introducing a more robust and user-friendly implementation for managing local AI plugin settings New Features: - Added comprehensive status indicators for local AI plugin states - Introduced more detailed resource tracking for local AI plugin Enhancements: - Redesigned local AI settings page with improved state management - Added granular status indicators for local AI plugin - Implemented a more flexible resource handling mechanism Chores: - Removed deprecated local AI setting panel and plugin state blocs - Restructured local AI resource management in the backend --- <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:15 +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#8022
No description provided.