-
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
Add dropdown to package preferences dialog for package paths for download #11747
Conversation
@aparajit-pratap relative to the design - it looks like we're missing this label. |
Yes, I had seen this but I didn't quite understand why there was one label underneath another unless the |
@aparajit-pratap Then there is another expander/section for the installed packages. |
Ok, I got it now. That clears my confusion. I was wondering where the |
@Jingyi-Wen for the |
@aparajit-pratap Great catch! We were using the same font size but different thickness(bold vs semi-bold vs regular) to visually indicate levels in the design. We might need to adjust the thickness for item labels and expander labels |
@Jingyi-Wen @aparajit-pratap - another thought here - when a really long package download path is selected it appears like it's getting cut off - which makes sense since the dialog width is fixed. Can we do something like if you hover over the path the tooltip shows the full path? I think addressing @QilongTang wanted to address making the dialog resizable later after 2.12. |
Yeah, I was thinking the same thing about having the tooltip. I'll try to add it. |
Thank you! That sounds good. I thought about this but missed it in mockup, adding it now |
@aparajit-pratap - this looks really solid, just a few comments besides the ones inline.
|
<Label>SOME CONTENT</Label> | ||
<Label Content="{x:Static p:Resources.PreferencesViewPackageDownloadDirectory}" | ||
Padding="0,5,5,5" | ||
FontSize="13" |
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 this font is supposed to be re-used in other parts of the UI, maybe we can store it in the styles xaml ?
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.
I have added a style for this now, we can clean it up later though after these all get merged.
This reverts commit cd2ed3c.
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
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.
a few small comments - probably not blockers.
<Label>SOME CONTENT</Label> | ||
<Label Content="{x:Static p:Resources.PreferencesViewPackageDownloadDirectory}" | ||
Padding="0,5,5,5" | ||
FontSize="13" |
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.
I have added a style for this now, we can clean it up later though after these all get merged.
|
||
internal void SetPackagesDownloadDirectory(string downloadDirectory, string userDataFolder) | ||
{ | ||
defaultPackagesDirectoryIndex = packagesDirectories.IndexOf( |
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.
what if this returns -1, is that acceptable?
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 was being assigned -1 even before, the core logic is the same as before so I didn't think much about it.
{ | ||
var folder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); | ||
var dynamoVersion = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); | ||
var appDataFolder = Path.Combine(Path.Combine(folder, "Dynamo", "Dynamo Core"), |
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.
are these strings possibly already defined somewhere?
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.
These probably should be defined as constants somewhere as they are hardcoded in several places throughout the codebase. I'm not doing it here as it could clutter this PR.
Purpose
DYN-3723: Add a dropdown to list all package paths where packages can be downloaded.
WIP:
Declarations
Check these if you believe they are true
*.resx
filesFYIs
@QilongTang
@Amoursol
@Jingyi-Wen