-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
[tvOS] Delete User from User Selection Screen #1359
[tvOS] Delete User from User Selection Screen #1359
Conversation
I hope @LePips has a better answer but I've found this issue is consistent when you put a
This being said, this works but I hope there is a way to make that menu work. We could mirror something like how the LearnMoreModal works. This is really rough but: Like I said, What I have there looks like this:
|
Due to overall issues with the "navigation bar" on tvOS with design, platform and SwiftUIs [lack of] implementation, and long standing focus issues, I'm more inclined to forego it and go with alternative designs and interactions. That does require more work due to the focus system as well. For this view, we can make our own "bar" at the bottom that would hold all buttons that would typically go on the navigation bar on iOS. Refinements aside, I think we would do better with stuff like:
This custom "bottom navigation bar" would probably be best split out into a separate Here is my branch to recreate those screenshots: |
Working on #1360 and I realized we already have exactly what I am looking at in |
I think that should work for the use case here, those changes do look much better too! I'll keep an eye on the conversation happening over there and make changes accordingly. |
Here is my progress so far, still some work left and I need to determine why the delete/cancel buttons hug the bottom, but it's functional! in-small.mov |
Nice work!!!
My guess is some kind of padding issue? It looks like the user icons drop down a little with it? In my experience, fiddle with it for half an hour and it will randomly align how you need it to haha.
|
While editing user selection we currently don't show stuff like "select/remove all" like we have developed during the dashboard implementations. While not necessary for this round of implementation, it would possibly be nice if that was implemented as well. iOS should also receive that before 1.3 drops on the App Store and should be a relatively small change (within an ugly file...). |
Sorry, another thing that I would like changed though. Repeating the message of #1365 (comment), a lot has been added in tvOS since I've last looked at it to make buttons better. This would allow the following where Sample commit: 4611587 Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.at.1080p.-.2024-12-17.at.15.58.18.mp4 |
Please correct me if I'm wrong but it looks like this view already has
|
You are correct! I missed that sorry about that! |
# Conflicts: # Swiftfin tvOS/Views/SelectUserView/Components/ServerSelectionMenu.swift
I did push a different workaround for the weird Since
|
a80cfa5
to
0062a59
Compare
#Conflicts: # Swiftfin tvOS/Views/SelectUserView/Components/UserGridButton.swift
@LePips I added If you'd like I can add the focus logic but wanted your thoughts on this simpler approach first. |
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, a focusSection
is necessary and used in my FocusGuide
but for now it's just fine. I thought I would have more time to work with my FocusGuide
but I need to spend some time to rework it a bit and won't let that stop this.
* upstream/main: (392 commits) [tvOS] Add pin prompt to sign-in screen (jellyfin#1383) [iOS] Admin Dashboard - User Access Tags (jellyfin#1377) [Meta] 2025 Disclaimer (jellyfin#1381) [tvOS] Delete User from User Selection Screen (jellyfin#1359) [iOS] Media Item Menu - Identify Media Item (jellyfin#1369) [iOS] Admin Dashboard - User Profiles (jellyfin#1328) [iOS] Select all Users When Editing (jellyfin#1373) [Meta] Automatic String Organization (jellyfin#1372) [iOS & tvOS] Unused Localization Cleanup (jellyfin#1362) [tvOS] SelectServerView Change to Menu (jellyfin#1363) [tvOS] Update ConnectToServerView & UserSignInView (jellyfin#1365) Trim Fastlane Options (jellyfin#1367) Update Fastlane Runner (jellyfin#1366) [iOS & tvOS] Localize Existing Strings (jellyfin#1361) [iOS] Admin Dashboard - User Access Schedules (jellyfin#1358) [iOS] Admin Dashboard - Parental Ratings (jellyfin#1353) [iOS & tvOS] Error Cleanup (jellyfin#1357) update (jellyfin#1356) Fix possible duplicate ids (jellyfin#1354) [tvOS] Media Item Menu - Refresh / Delete Items (jellyfin#1348) ... Signed-off-by: ddrccw <[email protected]>
This PR adds the capability to delete local users on tvOS. There may need some tweaks such as the use of FocusGuide (which I'm not yet familiar with). Also strangely, I am unable to get the advanced menu to work if there is a conditional surrounding the edit users button (noted with a TODO).
Demo:
recording.mov
Delete via context menu:
Screen.Recording.mov
Notes:
When investigating the bottom bar moving to the bottom edge when only buttons are present, I discovered that the
Menu
component provides it's own bottom padding. So I added a padding of 50 to the button group to mostly match the spacing of the ServerSelectionMenu and AdvancedMenu.