[PR #7833] [MERGED] chore: new design for custom prompt #8147

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7833
Author: @richardshiue
Created: 4/25/2025
Status: Merged
Merged: 4/28/2025
Merged by: @richardshiue

Base: mainHead: fix/custom-prompt-v2


📝 Commits (3)

📊 Changes

6 files changed (+270 additions, -150 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_category_list.dart (+10 -13)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_modal.dart (+1 -24)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_preview.dart (+60 -34)
📝 frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_visible_list.dart (+196 -76)
📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/prompt_input_text_controller.dart (+1 -1)
📝 frontend/resources/translations/en.json (+2 -2)

📄 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 user experience of the AI Custom Prompt modal by refining the layout and interaction for selecting prompts.

Enhancements:

  • Introduce a search bar to filter the AI prompt list.
  • Preview prompts automatically by hovering over list items.
  • Add dedicated "Use Prompt" buttons to list items (on hover) and the preview pane.

Chores:

  • Remove the redundant modal footer action button.
  • Refactor layout and spacing within the modal's components.

🔄 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/7833 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 4/25/2025 **Status:** ✅ Merged **Merged:** 4/28/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `fix/custom-prompt-v2` --- ### 📝 Commits (3) - [`b8e02d7`](https://github.com/AppFlowy-IO/AppFlowy/commit/b8e02d703a33c62ecb9eb694fe5d5a607c1798e8) chore: new design - [`41d2da4`](https://github.com/AppFlowy-IO/AppFlowy/commit/41d2da476d1e4370b6b651fb91b83f0112e8fe4e) chore: improve text selection bg - [`2adc79c`](https://github.com/AppFlowy-IO/AppFlowy/commit/2adc79c1f242e1d7dde963f4f27fe0edf9fe1c0d) fix: remove listener ### 📊 Changes **6 files changed** (+270 additions, -150 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_category_list.dart` (+10 -13) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_modal.dart` (+1 -24) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_preview.dart` (+60 -34) 📝 `frontend/appflowy_flutter/lib/ai/widgets/ai_prompt_modal/ai_prompt_visible_list.dart` (+196 -76) 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/prompt_input_text_controller.dart` (+1 -1) 📝 `frontend/resources/translations/en.json` (+2 -2) </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 user experience of the AI Custom Prompt modal by refining the layout and interaction for selecting prompts. Enhancements: - Introduce a search bar to filter the AI prompt list. - Preview prompts automatically by hovering over list items. - Add dedicated "Use Prompt" buttons to list items (on hover) and the preview pane. Chores: - Remove the redundant modal footer action button. - Refactor layout and spacing within the modal's components. --- <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:49 +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#8147
No description provided.