-
-
Notifications
You must be signed in to change notification settings - Fork 308
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] Media Item Menu - Refresh / Delete Items #1348
Conversation
That isn't necessarily true as routers are retrieved via @EnvironmentObject
private var router: ItemCoordinator.Router
//...
.onReceive(deleteViewModel.events) { event in
switch event {
case let .error(eventError):
error = eventError
isPresentingEventAlert = true
case .deleted:
router.dismissCoordinator()
}
} |
Ah! My bad, yes this worked. I did have to delete the I validated that this does work! Additionally, with the new Notifications, I no longer need the IMO, this is all ready to go! Only item that may need an adjustment is:
I going over some of what I've done, there are like 3 differing formats for errors. Just varying versions of the same thing that are all roughly the same but have some weird interactions. The issue I ran into working on this is one of error that I had on iOS didn't have a way to dismiss it. I wanted to just knock that out since copying and pasting clearing isn't working for me lol.
So, we should just be able to call |
…data fails to load, and add errorMessage on failed events. MARK sections: Var/Func always unless only Body and Var/Lets only if there are several of varying types / functions.
Swiftfin/Views/ItemEditorView/AddItemElementView/Components/SearchResultsSection.swift
Show resolved
Hide resolved
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.
Looks great!
* 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]>
Summary
This should be the full extent of tvOS item management. I can't imagine that anyone want to manually write metadata or replace images from their TV. Instead, this should allow refreshing metadata if data is missing or some information is wrong. Additionally, if enabled, this should allow for deleting items which was a popular ask on the Android TV side: jellyfin/jellyfin-androidtv#2368
This should almost 1 to 1 mirror iOS with some small differences:
router
access to dismiss the coordinator on item Deletion. The result is the user needs to manually go back.ProgressView()
on theRefresh Metadata
button. Since tvOS's button is hidden behind the menu, I removed the loading circle since it was giving some weird flashing (at least on the emulator)Screenshots
Buttons - No Access vs Access
Menu Buttons
Refresh Options
Delete Warning