Skip to content

Conversation

@ivaylo-matov
Copy link
Contributor

@ivaylo-matov ivaylo-matov commented Jan 27, 2026

Purpose

This PR addresses DYN-9357

It improves clarity in the Search tab so users can easily see which version of a package is currently installed:

  • the version dropdown now defaults to the installed version.
  • the installed version in the dropdown is labeled with an “(installed)” suffix.
  • a badge is shown when a newer version of the package is available.
  • the Install button now:
    • displays “Update” when a different version is available.
    • displays “Uninstall” when the installed version is selected.

Changes in code:

  • install state tracking in the search element view model (installed version, selected version, update availability).
  • InstallActionText / InstallActionCommand so the button label and action change based on state.
  • fallback “Installed” state when uninstall isn’t possible.
  • added a null guard when downloading a selected version to avoid crashes.

DYN-9357

Declarations

Check these if you believe they are true

Release Notes

Changes improves clarity in the Search tab so users can easily see which version of a package is currently installed.

Reviewers

@zeusongit
@DynamoDS/eidos

FYIs

@emru-y
@dnenov

Copilot AI review requested due to automatic review settings January 27, 2026 07:14
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9357

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the Package Manager Search tab by enhancing visibility of installed package versions and their update status. The changes allow users to see which package version is currently installed, whether updates are available, and provide contextual install/update/uninstall actions.

Changes:

  • Added tracking for installed package versions and update availability in the search element view model
  • Modified the install button to dynamically display "Install", "Update", or "Uninstall" based on the package state
  • Added visual indicators (badges and labels) to show installed versions and available updates
  • Added null guards to prevent crashes when downloading selected versions

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
PackageManagerSearchElement.cs Added IsInstalled property to VersionInformation to track installed package versions
PackageManagerPackagesControl.xaml Updated UI to display "(installed)" label in version dropdown and "New version available" badge; modified install button binding to use new command and text properties
PackageManagerSearchViewModel.cs Added methods to track install state, handle uninstall operations, and update UI based on package installation status
PackageManagerSearchElementViewModel.cs Added properties and commands to manage install/uninstall actions and track installation state; added null guards in download logic
PublicAPI.Unshipped.txt Documented new public API members for install state tracking and action properties
Resources.resx Added localization strings for "Update", "Uninstall", and "New version available"
Resources.en-US.resx Added English localization strings matching Resources.resx additions
Files not reviewed (1)
  • src/DynamoCoreWpf/Properties/Resources.Designer.cs: Language not supported

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.

1 participant