Skip to content
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

New feature - selection #510

Merged
merged 13 commits into from May 3, 2023
Merged

New feature - selection #510

merged 13 commits into from May 3, 2023

Conversation

popara96
Copy link
Collaborator

@popara96 popara96 commented Apr 7, 2023

Adding the ability to select packages that the user wants to uninstall or update (instead of uninstalling/updating all). Also added an option to uninstall all packages.

@popara96 popara96 requested review from igor84 and JoC0de April 7, 2023 22:34
Copy link
Collaborator

@igor84 igor84 left a comment

Choose a reason for hiding this comment

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

We would also want to be able to select packages that we want to install but it is good that this commit focuses on only on updates and uninstalls for now since install would probably require a bit better UX.

src/NuGetForUnity/Editor/NugetHelper.cs Outdated Show resolved Hide resolved
src/NuGetForUnity/Editor/NugetHelper.cs Outdated Show resolved Hide resolved
src/NuGetForUnity/Editor/NugetHelper.cs Outdated Show resolved Hide resolved
src/NuGetForUnity/Editor/NugetWindow.cs Outdated Show resolved Hide resolved
src/NuGetForUnity/Editor/NugetHelper.cs Outdated Show resolved Hide resolved
- selection now works directly on existing "update" and "installed" packages, taking advantage of the "IsSelected" property of the package. This way, NugetHelper class should stay virtually untouched.
-  introduced some minor QoL changes: "Refresh" and "Preferences" buttons are now consistent, being drawn in the upper left on every tab; Search bar now doesn't have the "Search" button in "Installed" and "Updates" tabs - instead, every key stroke refreshes the filtered packages (it's a start for mentioned UX changes needed to improve the "Online" tab).
@popara96
Copy link
Collaborator Author

Small note about the most recent commit: IsSelected was removed when I merged master into select_packages branch, as I decided to resolve it that way because I was planning to remove the flag in the coming change.

@JoC0de
Copy link
Collaborator

JoC0de commented Apr 23, 2023

@popara96 I now like it much more. Are there still thinks you need to work on? Only think I see is you need to fix the UnitTest*s.

@popara96
Copy link
Collaborator Author

@JoC0de I'll fix the unit tests theses days when I have time, probably tomorrow. As for what I need to work on, I'd like to do similar thing for 'Online' tab but I will probably do it in a separate PR because there might be additional changes in order to do it.

Copy link
Collaborator

@JoC0de JoC0de left a comment

Choose a reason for hiding this comment

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

I fixed the last thinks by myself.
I will merge it now, so thanks for the contribution 👍.

@JoC0de JoC0de merged commit 8a12c82 into GlitchEnzo:master May 3, 2023
8 checks passed
@popara96 popara96 deleted the select_packages branch May 4, 2023 11:45
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.

None yet

3 participants