Files
yattee/Yattee/Views
Arkadiusz Fal a04b44e207 Let Home carry the account switcher and follow the selected account
The Home tab showed the same device-local numbers whatever data context
was selected, with no way to switch from there. Now it carries the same
DataContextSwitcherMenu as Subscriptions, History and Playlists, and its
data follows the switch:

- The history card and recent-history section resolve by the same
  HistoryDisplayMode rule as the history screen: an account with
  server-side history gets one probe of it (count up to 500, shown as a
  floor past that) and hydrated leading rows; a failed or still-out
  fetch reads as an em dash, never as the device's numbers under an
  account's name. Local writes no longer refetch the server; a posted
  watch does.
- The playlists card reads the remote playlists cache live in an
  account context, kicking the first fetch when the playlists screen
  never did.
- Context, credential and status changes reload the counts and refill
  the feed section the cache clearing just emptied; the channels-count
  fetch drops its result if the context moved while it was out.

Bookmarks, continue watching and downloads stay device-local on
purpose: they have no server counterpart. The notification
subscriptions moved into a dataObservers helper to keep the body within
the type-checker's budget.
2026-09-12 23:50:15 +02:00
..