Repository navigation
fix(tv): say when marking a card watched fails - #706
Conversation
The card menu closes before the write finishes, so a rejected Mark as Watched or Mark as Unwatched only rolled the card back, with no sign that anything went wrong. Show a toast with the server's reason when the write fails.
|
Warning Review limit reachedThis review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Next included review available in 59 minutes. View limit details
Comment |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: Silo-Server/silo-server#1253
Validation tasks: changes #350 C4
On Android TV, choosing Mark as Watched from a card's long-press menu gives no feedback when the server refuses it. The menu closes, the card shows no badge, and nothing tells the user it failed. For audiobooks every mark failed this way, because the server answered 404 (fixed in Silo-Server/silo-server#3169), but any rejected mark fails silently.
The card now shows the error when a mark fails.
Approach
The card menu's watched action shows a long toast, "Couldn't mark as watched." followed by the server's message, when the request fails and the card rolls back. Toasts are already how the TV app reports errors in Settings and Watch Party. Home-row cards use a different code path and still roll back silently; that is left for a follow-up.
Validation
e6df1d8ed(the 404 server): before, the menu closed with no message; after, a toast reads "Couldn't mark as watched. Item not found". Against a build with silo-server#3169: marking works, the card gets its badge, the menu then offers Mark as Unwatched, and unmarking removes the badge.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-706/
Surface and build: Android TV, Audiobooks → Browse → card long-press → Mark as Watched; before on
origin/maine9c410096, after on this branch; same synthetic library. Phone and tablet use different menus.Risks
None identified.
Checklist
AI Disclosure