Files
hapi/android/app/src
weishu 35898c09cd feat(android): web-parity presence badges, sort/filter and attached jobs
The home list showed presence only for connected sessions, offered no
sort or status choices, and ignored session-attached jobs. Its strict
SessionPatch parser also rejected every `attachedJob` SSE patch, so each
job heartbeat fell back to a REST list refetch.

- Presence badge follows web #2296: solid green pulsing while working,
  solid blue pulsing for background tasks only, a green ring when
  connected and waiting, and a power mark when stopped or archived.
- The Sort & filter sheet adds Show (all / active only / archived only)
  and Unread only next to machines and dates, then Sort by (last message
  or date created) and Active first (on by default; manual pins still
  lead). Sort and Active first persist app-wide in hapi_prefs; filters
  stay transient, keep the open session listed, and Reset leaves the
  order alone. Search keeps relevance with the base tie-break. The share
  picker keeps the base order.
- Decode AttachedJob on summaries and the versioned `attachedJob` patch,
  applied only when strictly newer, as on web. Full-session events keep
  the row's job. A running job counts as working on the badge and as
  active for the Show filter (web #1404), and adds a row line with
  label, remaining or percent, elapsed time and a thin bar, amber with
  "no heartbeat" after 15 minutes.
- HomeFilterWindowTest's click helper now scrolls back once it reaches
  the end; the taller sheet otherwise stranded targets above the
  viewport.
- Docs describe the Android sheet, row and job display.
2026-11-11 09:40:45 +08:00
..