[iOS] Admin Dashboard - Users Management (Passwords) #1278
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to try and make this one a smaller one but it's still coming in at like 800 lines. Luckily, the majority of this work is the ViewModel, Observer, and I almost 100% copy/pasted the ResetUserPasswordView so that one should be familiar with my only addition being a Reset Password button.
This creates a view with all of the users on the Jellyfin Server. It says their name, shows their icon, and has the last time they were seen. This is ordered alphabetically.
Selecting a user takes you to a UserDetailsView. This view WILL contain more items:
Currently, only the PasswordView is done. This is a direct steal of ResetUserPasswordView but uses my observer's actions instead. This Observer is Eventful so I am capturing a success/failure message depending on the response. The reset password is the only addition to ResetUserPasswordView.
Localizations are missing from this PR. Primarily because, if I localize everything then #1277 gets merged, I have to do a whole thing to update it to this branch. Instead, I am just going to localize everything either once #1277 is done OR, if this branch does in first, I have a branch where I have the User Permissions almost done that I can add the localizations to.
Views
It's out of order... But UsersView | Password | UserDetailsView