[PR #7736] [MERGED] feat: improve select modal button #8076

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

📋 Pull Request Information

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

Base: feat/custom-promptHead: feat/ai-select-modal-animation


📝 Commits (1)

  • 4af1a39 feat: improve select modal button

📊 Changes

1 file changed (+42 additions, -36 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart (+42 -36)

📄 Description

  • When loading current model from backend, still display the ai icon
  • add a horizontal size transition for when the text content changes

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 select model button UI in the AI prompt input widget to handle null model states more gracefully and add better visual responsiveness

New Features:

  • Update the current model button to support optional model selection
  • Add conditional rendering for model name display

Enhancements:

  • Add AnimatedSize to provide smooth size transitions for the model selection button
  • Modify the button to handle null model states without breaking the UI

🔄 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/7736 **Author:** [@richardshiue](https://github.com/richardshiue) **Created:** 4/14/2025 **Status:** ✅ Merged **Merged:** 4/14/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `feat/custom-prompt` ← **Head:** `feat/ai-select-modal-animation` --- ### 📝 Commits (1) - [`4af1a39`](https://github.com/AppFlowy-IO/AppFlowy/commit/4af1a3995d2da180a7e37fd05375479c9c5ca019) feat: improve select modal button ### 📊 Changes **1 file changed** (+42 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/select_model_menu.dart` (+42 -36) </details> ### 📄 Description - When loading current model from backend, still display the ai icon - add a horizontal size transition for when the text content changes ### 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 select model button UI in the AI prompt input widget to handle null model states more gracefully and add better visual responsiveness New Features: - Update the current model button to support optional model selection - Add conditional rendering for model name display Enhancements: - Add AnimatedSize to provide smooth size transitions for the model selection button - Modify the button to handle null model states without breaking the UI --- <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:30 +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#8076
No description provided.