Allow downgrades of adapters to current repository revision #3207
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 implements the enhancement request to allow users to downgrade adapters when switching from "latest" to "stable" repository by making version numbers clickable whenever they differ from the installed version, regardless of whether it's an upgrade or downgrade.
Problem
Previously, the admin interface only showed adapter versions as clickable update buttons when the repository version was higher than the installed version (upgrades only). When users switched from the "latest" repository to "stable", they couldn't easily downgrade to the stable version if it was lower than their currently installed version.
Solution
Modified the version display logic to make adapter versions clickable whenever they differ from the installed version, with visual distinctions for upgrades vs downgrades. The implementation also properly integrates with the latest "not maintained" functionality for adapters without repository versions.
Key Changes:
Updated version detection logic in
Adapters.tsxto include adapters in theupdateAvailablelist whenever repository version differs from installed version (previously only for upgrades)Enhanced version rendering in
AdapterGeneric.tsxto:Visual Indicators:
This change provides a seamless user experience when switching between repository channels, allowing single-click downgrades with clear visual feedback about the operation being performed, while also properly handling adapters that are no longer maintained in the repository.
Related to #2973.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.