-
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
Pm mypackages - cherrypick package details extension #14278
Conversation
- merging existing functionality for the package details extension
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.
LGTM with some comments
@@ -89,6 +90,34 @@ private void ViewDetailsButton_OnClick(object sender, RoutedEventArgs e) | |||
if (!(button.DataContext is PackageManagerSearchElementViewModel packageManagerSearchElementViewModel)) return; | |||
|
|||
var PkgSearchVM = this.DataContext as PackageManagerSearchViewModel; | |||
|
|||
var name = this.Name; | |||
if (name.Equals(Dynamo.Wpf.Properties.Resources.PackageManagerSearchPackagesControlName)) |
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.
It's not a common practice to store the name of the control as resources because they will get localized, unless that was your intention? Maybe we can use static readonly strings
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.
Yes ... this didn't feel right I remember. I replaced them with private read-only static strings now. We cannot set the framework element name to code-behind value, at least I don't think so. Meaning that the values we check still come from two separate places, but I cannot think of a different way of doing it.
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.
If that's ok, I will remove the redundant localized strings in the next PR, as there are quite a few changes in the resources files lined up.
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.
sure, please do
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.
Removed the resource with this commit cc58820
src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchViewModel.cs
Show resolved
Hide resolved
No regressions reported. LGTM |
Cherry-pick from #14198 to break it down into smaller chunks.
Purpose
This is a follow-up PR on the package integration PR. It builds on the continuous design guides as per this Figma link.
Even though a lot of areas have been improved, this is still work in progress. With the main skeleton of the solution in place, the major directions of work are:
Screenshots
01 loading screen
02 discard loading timeout
03 package details extension interaction
04 package manager contents
05 package manager to preferences interaction
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Progression work on the Package Manager
Reviewers
@reddyashish
@QilongTang
FYIs
@Amoursol