-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DYN-7341: PM redesign search tab with compatibility info #15522
DYN-7341: PM redesign search tab with compatibility info #15522
Conversation
- initial UI changes - blocker reached - not sure where the host compatibility information is coming from
- now uses listview with expanding items instead of a datagrid
- finished the ui elements as per the design - starting transitions
- version is compatible changes icon
- main ui changes are done - add back the package dependencies links (should be working in the current live version)
- merged specific files from commit
- picking specific files only
- replaced the mockup data with the real Greg response - adapted the solution, but will work on simplifying it further
- added public properties to the declared API doc
UI Smoke TestsTest: success. 11 passed, 0 failed. |
- visibility when no version compatibility infos are found - removed table interactions
- simplified the way to instantiate the information feeding the compatibility table - now directly and dynamically takes that from the compatibility_matrx response - test added
- added test for latest compatible version
- will set the detail version expander corresponding to the currently selected package version to expanded upon opening the package details view - changed invoking of the scroll up to happen after the view has finished generating to make sure it scrolls all the way to the top
- added tooltips and related resources - added fallback message to compatibility section inside detail items if no compatibility is found
- properly centers the messagebox in Dynamo/Package Manager window
src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs
Outdated
Show resolved
Hide resolved
- added a temporary compatibilityMap in lieu of the route to come - added tests to complement the complex compatibility computation
- captured a large portion of tests failing after adding a new message box prompt
Also @dnenov there is one conflict, resolve it. |
This is taken care of, I will leave the gif for posterity, as currently I have nothing to demonstrate the prompt with otherwise :/ But, just so it is clear, only |
- new greg version - API break fixed by introducing a new overload constructor - logging error when we try to navigate to a bad link in the package details (links are provided by package authors, so we cannot control the conversion to a valid URI) - comments to public properties - small UI aligment to enforce consistency of line height between packages with and without Host information
- first stab at replacing the static compatibility map with the one coming from the new greg route - struggling to find the best design patter for the most efficient way of serving the data to each individual `PackageManagerSearchElement` - `PackageManagerSearchElement` are internalized using only the 'Header' corresponding to each individual package - the `PackageManagerSearchElement` is part of the `DocumentationBrowserViewExtension` - Ideally the Compatibility Map is only loaded once per Dynamo session. Furthermore, we do that inside the PackageManagerSearchViewModel, which is part of `DynamoCoreWPF` - as a consequence, the individual `PackageManagerSearchElement`s have no visibility over the `PackageManagerSearchViewModel` - is the best way fowrard to make the `PackageManagerSearchViewModel` visible to the `PackageManagerSearchElement` and create the map a static property in a singleton?
- moved the static compatibility map to the PackageViewModel (thank you Aaron and Ashish!!!) - fixed tests - added test
There was a problem hiding this 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-7341
src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchElementViewModel.cs
Outdated
Show resolved
Hide resolved
@@ -237,5 +447,13 @@ private void DetectDependencies() | |||
PythonVersion = pythonEngineVersions.Count > 0 ? string.Join(", ", pythonEngineVersions) : Dynamo.Properties.Resources.NoneString; | |||
Hosts = hostDependencies.Count > 0 ? string.Join(", ", hostDependencies) : Dynamo.Properties.Resources.NoneString; | |||
} | |||
|
|||
private static string CapitalizeFirstLetter(string word) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can maybe move this to utilityclass later
/// </summary> | ||
/// <param name="dateString"></param> | ||
/// <returns></returns> | ||
private string GetFormattedDate(string dateString) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment here
Purpose
Follow DYN-7341. Related tasks:
A redesign of the PM search & install functionality.
Current State
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@QilongTang
@zeusongit
FYIs