Show newer available tool version badge in tool form and empty-parameter state more clearly - #23046
Merged
mvdbeek merged 12 commits intoJul 15, 2026
Conversation
Member
|
Don't we want a badge that says that we do have a newer version when opening an older tool ? |
Add the inverse presentation state without changing existing ToolCard behavior, allowing caller migration separately.
Compare the active tool version with the final lineage entry so latest and single-version tools remain unflagged.
Use the version=latest alias instead of resolving and passing a concrete tool revision through the component tree.
Member
Author
@mvdbeek Good point. I agree that the actionable state is when an older version is selected. I inverted the behavior so that a "Newer version available" badge is shown only when a newer selectable version exists, while the latest and single-version tools remain quiet. |
mvdbeek
approved these changes
Jul 14, 2026
mvdbeek
left a comment
Member
There was a problem hiding this comment.
Approach looks good, happy to merge when it's green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes two potentially ambiguous tool-form states explicit:
Newer version availablewarning badge beside the version. The badge includes a tooltip and navigates to the same tool withversion=latestwhen clicked.Tool Parameterssection is not mistaken for a loading or rendering failure.The version badge remains hidden when the latest version is active or when the tool has only one version.
Newer version available
No input parameters
How to test the changes?
Newer version availablebadge.tool_idand usesversion=latest./?tool_id=interactive_tool_loom&version=latest.Tool Parameterssection shows:This tool requires no input parameters and can be run as is.License