-
Notifications
You must be signed in to change notification settings - Fork 43
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
Mod (downloads) Library UI initial impl #1268
Conversation
# Conflicts: # src/NexusMods.App.UI/NexusMods.App.UI.csproj # src/NexusMods.App.UI/Resources/Language.Designer.cs # src/NexusMods.App.UI/Resources/Language.resx
Fix DataGrid colums not adapting to content size
- LoadoutGrid - MyGames - In progress downloads
This PR conflicts with |
# Conflicts: # src/NexusMods.App.UI/LeftMenu/Home/HomeLeftMenuViewModel.cs # src/NexusMods.App.UI/Pages/LoadoutGrid/LoadoutGridViewModel.cs
This PR doesn't conflict with |
This PR conflicts with |
# Conflicts: # src/NexusMods.App.UI/Pages/Downloads/InProgressViewModel.cs # src/NexusMods.App.UI/Pages/MyGames/MyGamesViewModel.cs # src/NexusMods.App.UI/Resources/Language.resx
This PR doesn't conflict with |
src/NexusMods.App.UI/WorkspaceSystem/PanelTabHeader/PanelTabHeaderView.axaml
Outdated
Show resolved
Hide resolved
src/NexusMods.App.UI/WorkspaceSystem/PanelTabHeader/PanelTabHeaderView.axaml
Outdated
Show resolved
Hide resolved
string Version { get; init; } | ||
string Size { get; init; } | ||
string Date { get; init; } |
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 shouldn't be strings. If they stay as strings, then they won't be sortable.
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 store versions as strings, and comparisons there should work.
I'm not really sure how to show "-" in case of unknown date though
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 store versions as strings, and comparisons there should work.
Right.
I'm not really sure how to show "-" in case of unknown date though
Hijack how the dates are displayed. Use Optional<DateTime>
or something, if it's None
you display -
or just display nothing.
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'm doing a direct binding from the property to the DataGridTextColumn, there is no conversion step in the code behind or anything like that. I'd prefer not to do something like the LoadoutDataGrid where each column needs a custom view, vm, type, and an special definition.
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 added this to the things to to do #1284
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.
You should be able to update the binding and change the string formatting or use a converter. If that doesn't work, you can always make the text columns into template columns, which is probably easier.
Related to #1210 and #1155
TODO:
Bumping out to future PRs: