Skip to content

feat(agentflow): Add refresh button for Available Actions dropdown#6134

Open
jocelynlin-wd wants to merge 3 commits intomainfrom
feat/agentflow-list-actions-refresh-button
Open

feat(agentflow): Add refresh button for Available Actions dropdown#6134
jocelynlin-wd wants to merge 3 commits intomainfrom
feat/agentflow-list-actions-refresh-button

Conversation

@jocelynlin-wd
Copy link
Copy Markdown
Contributor

  • Introduced a refresh button in AsyncInput and AsyncMultiOptionsInput components to allow users to re-fetch options dynamically.
  • Updated InputParam interface to include a new refresh property.
  • Enhanced tests to verify the visibility and functionality of the refresh button based on the refresh property.
  • Adjusted loadMethodRegistry to ensure proper handling of credential and inputs for the listActions method.

This update improves user experience by providing a way to refresh options without needing to reload the entire component.

agentflow-sdk-list-actions-refresh-button.mov

- Introduced a refresh button in AsyncInput and AsyncMultiOptionsInput components to allow users to re-fetch options dynamically.
- Updated InputParam interface to include a new `refresh` property.
- Enhanced tests to verify the visibility and functionality of the refresh button based on the `refresh` property.
- Adjusted loadMethodRegistry to ensure proper handling of credential and inputs for the `listActions` method.

This update improves user experience by providing a way to refresh options without needing to reload the entire component.
@jocelynlin-wd jocelynlin-wd requested a review from j-sanaa April 3, 2026 04:36
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a refresh button for asynchronous input components, allowing users to manually re-fetch options by remounting the dropdown. It also updates the API registry to correctly handle credentials and input parameters for the listActions method and ensures that inputs are passed at the top level for other load methods. Feedback suggests extending the input-dependency whitelist in buildAsyncParams to include listTables, ensuring that dynamic filtering for that method works correctly in the UI.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants