[PR #7966] [MERGED] chore: adjust custom prompt UI #8242

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7966
Author: @richardshiue
Created: 5/22/2025
Status: Merged
Merged: 5/26/2025
Merged by: @LucasXu0

Base: mainHead: chore/adjust-custom-prompt-ui


📝 Commits (8)

  • 5131563 chore: refetch view when reload
  • 4ee246e chore: excessive padding
  • 0c2f85a chore: cursor for clear search input
  • 4c06007 chore: move other to bottom of category list
  • 3287bba chore: padding on mobile
  • 6d94c02 chore: select sources background color
  • 5c82e6f chore: support single and multi select
  • d6addeb chore: adjust colors

📊 Changes

14 files changed (+310 additions, -187 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/service/ai_entities.dart (+103 -53)
📝 frontend/appflowy_flutter/lib/ai/service/ai_prompt_selector_cubit.dart (+8 -2)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_category_list.dart (+4 -1)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_database_modal.dart (+120 -112)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_preview.dart (+2 -2)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_visible_list.dart (+7 -4)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_bottom_sheet.dart (+5 -2)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart (+6 -5)
frontend/appflowy_flutter/lib/shared/easy_localiation_service.dart (+26 -0)
📝 frontend/appflowy_flutter/lib/startup/deps_resolver.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart (+7 -1)
frontend/resources/flowy_icons/20x/eraser.svg (+3 -0)
📝 frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs (+15 -5)

📄 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

Adjust the custom prompt UI and improve prompt configuration loading

Bug Fixes:

  • Fetch and use the database view configuration when it’s missing in the prompt selector cubit

Enhancements:

  • Wrap the clear filter icon in a clickable mouse region and switch to the search_clear icon with tertiary color
  • Reorder prompt categories to sort alphabetically while always placing ‘other’ at the end
  • Add zero padding to database modal header and field selector overlays for consistent spacing

🔄 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/7966 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 5/22/2025 **Status:** ✅ Merged **Merged:** 5/26/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `chore/adjust-custom-prompt-ui` --- ### 📝 Commits (8) - [`5131563`](https://github.com/AppFlowy-IO/AppFlowy/commit/51315634360e3fe1a2c03e97d48219e73e601b53) chore: refetch view when reload - [`4ee246e`](https://github.com/AppFlowy-IO/AppFlowy/commit/4ee246e0c9639ed85c59b3499ab57d2b07ce7eee) chore: excessive padding - [`0c2f85a`](https://github.com/AppFlowy-IO/AppFlowy/commit/0c2f85a15ba9090e7fe8ff92e98afb8a66641cf4) chore: cursor for clear search input - [`4c06007`](https://github.com/AppFlowy-IO/AppFlowy/commit/4c06007cae7bbe6d93cdb536f605f8da12a21347) chore: move other to bottom of category list - [`3287bba`](https://github.com/AppFlowy-IO/AppFlowy/commit/3287bbabda69fca6a33ddc7192e7d5c7442fff37) chore: padding on mobile - [`6d94c02`](https://github.com/AppFlowy-IO/AppFlowy/commit/6d94c022d4899f5c832bbbdbb29da58bd12e257f) chore: select sources background color - [`5c82e6f`](https://github.com/AppFlowy-IO/AppFlowy/commit/5c82e6fc865274730102ebf6820476951bcf3acd) chore: support single and multi select - [`d6addeb`](https://github.com/AppFlowy-IO/AppFlowy/commit/d6addebf47c039129a54ad177c6ebc5d5683e481) chore: adjust colors ### 📊 Changes **14 files changed** (+310 additions, -187 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/service/ai_entities.dart` (+103 -53) 📝 `frontend/appflowy_flutter/lib/ai/service/ai_prompt_selector_cubit.dart` (+8 -2) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_category_list.dart` (+4 -1) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_database_modal.dart` (+120 -112) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_preview.dart` (+2 -2) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_visible_list.dart` (+7 -4) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_sources_bottom_sheet.dart` (+5 -2) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/message/ai_markdown_text.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart` (+6 -5) ➕ `frontend/appflowy_flutter/lib/shared/easy_localiation_service.dart` (+26 -0) 📝 `frontend/appflowy_flutter/lib/startup/deps_resolver.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart` (+7 -1) ➕ `frontend/resources/flowy_icons/20x/eraser.svg` (+3 -0) 📝 `frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs` (+15 -5) </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 Adjust the custom prompt UI and improve prompt configuration loading Bug Fixes: - Fetch and use the database view configuration when it’s missing in the prompt selector cubit Enhancements: - Wrap the clear filter icon in a clickable mouse region and switch to the search_clear icon with tertiary color - Reorder prompt categories to sort alphabetically while always placing ‘other’ at the end - Add zero padding to database modal header and field selector overlays for consistent spacing --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:23:16 +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#8242
No description provided.