[PR #7859] [MERGED] chore: import new prompts and add featured category #8169

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7859
Author: @richardshiue
Created: 4/29/2025
Status: Merged
Merged: 4/30/2025
Merged by: @LucasXu0

Base: mainHead: chore/import-new-prompts-and-add-is-featured


📝 Commits (4)

  • 0b1193c chore: mark prompts as featured
  • 312f485 chore: implement is featured list
  • 682b271 chore: implement categories
  • d6abd36 chore: remove learning category

📊 Changes

6 files changed (+688 additions, -79 deletions)

View changed files

📝 frontend/appflowy_flutter/assets/built_in_prompts.json (+640 -45)
📝 frontend/appflowy_flutter/lib/ai/service/ai_entities.dart (+21 -5)
📝 frontend/appflowy_flutter/lib/ai/service/ai_prompt_selector_cubit.dart (+11 -17)
📝 frontend/appflowy_flutter/lib/ai/service/appflowy_ai_service.dart (+0 -8)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_category_list.dart (+9 -1)
📝 frontend/resources/translations/en.json (+7 -3)

📄 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

Introduce the concept of featured AI prompts and update the prompt selection UI to handle them. Import new built-in prompts.

New Features:

  • Add an isFeatured flag to AI prompts.
  • Filter and display featured prompts by default in the AI prompt selector.
  • Add an "Other" category to the prompt category list.
  • Load new built-in prompts from the updated assets file.

Enhancements:

  • Remove caching for built-in prompts to ensure fresh data is loaded.

🔄 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/7859 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 4/29/2025 **Status:** ✅ Merged **Merged:** 4/30/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `chore/import-new-prompts-and-add-is-featured` --- ### 📝 Commits (4) - [`0b1193c`](https://github.com/AppFlowy-IO/AppFlowy/commit/0b1193c3f43c4c0747929af042aacbfc869c872c) chore: mark prompts as featured - [`312f485`](https://github.com/AppFlowy-IO/AppFlowy/commit/312f48596043d87dcfa7e55c18487c986b110cd2) chore: implement is featured list - [`682b271`](https://github.com/AppFlowy-IO/AppFlowy/commit/682b271bdcf77a00d56f8ae4ce70dcc880ad62cf) chore: implement categories - [`d6abd36`](https://github.com/AppFlowy-IO/AppFlowy/commit/d6abd36b22035a055a629000158d3230f49ccf60) chore: remove learning category ### 📊 Changes **6 files changed** (+688 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/assets/built_in_prompts.json` (+640 -45) 📝 `frontend/appflowy_flutter/lib/ai/service/ai_entities.dart` (+21 -5) 📝 `frontend/appflowy_flutter/lib/ai/service/ai_prompt_selector_cubit.dart` (+11 -17) 📝 `frontend/appflowy_flutter/lib/ai/service/appflowy_ai_service.dart` (+0 -8) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_category_list.dart` (+9 -1) 📝 `frontend/resources/translations/en.json` (+7 -3) </details> ### 📄 Description ### 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 Introduce the concept of featured AI prompts and update the prompt selection UI to handle them. Import new built-in prompts. New Features: - Add an `isFeatured` flag to AI prompts. - Filter and display featured prompts by default in the AI prompt selector. - Add an "Other" category to the prompt category list. - Load new built-in prompts from the updated assets file. Enhancements: - Remove caching for built-in prompts to ensure fresh data is loaded. --- <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:56 +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#8169
No description provided.