summaryrefslogtreecommitdiff
path: root/Hutch/Views/Home/HomeViewModel.swift
Commit message (Collapse)AuthorAgeFilesLines
* fix: give inbox threads identity distinct from their grouping keyChristian Cleberg2026-07-151-3/+3
| | | | | | | | | | | | | | | | | InboxThreadSummary.id returned threadGroupingKey, which is listRID plus the subject with Re:/Fwd: stripped. Two unrelated threads on one list sharing a subject therefore shared an id — common on sourcehut, where "[PATCH] test" is an ordinary subject — which collides under Identifiable in every list that renders these summaries. Key id on the root Message-ID, which is unique per thread, and leave threadGroupingKey subject-based so replies still collapse into one conversation. Read state moves to threadGroupingKey at each call site. It was already keyed on that string via id, so persisted keys are unchanged and marking a conversation read still covers the whole subject group, matching how HomeViewModel already builds the key for isUnread.
* feat(cache): persist read-only API responsesv3.3.1Christian Cleberg2026-05-061-11/+52
| | | | | | | | | | | | Add a bounded stale-while-revalidate cache at the Sourcehut API boundary with stable keys, centralized TTLs, request coalescing, payload hashing, and LRU disk pruning. Cache high-value read-only repo, build, ticket, project, profile, paste, and Home/Work Queue data while keeping mutations network-only and invalidating related prefixes after successful writes. Add focused cache tests and implementation notes.
* fix: profile loading error and user-timeline prefs updatev3.2.1Christian Cleberg2026-04-231-0/+4
|
* fix: collapse work inbox messages into thread summariesv3.2.0Christian Cleberg2026-04-201-3/+45
|
* fix: add mark all read actions and avoid resending unchanged repo metadataChristian Cleberg2026-04-201-0/+14
|
* feat: user-defined time period for recent builds cardChristian Cleberg2026-04-201-18/+60
| | | | | | | | | - limit Home failed-build counts to a configurable lookback window and add the setting under Behavior. - make the Recent and Builds rows fully tappable across the entire cell and add coverage for the new failed-build filtering. Fixes: https://todo.sr.ht/~ccleberg/hutch/67
* perf: reduce redundant fetches and improve list render efficiencyChristian Cleberg2026-04-131-0/+8
| | | | | | | | | | | | | | | | - Remove no-op per-row task from RepositoryListView; loadMoreIfNeeded is a stub for repos so each row was allocating a Task that did nothing - Fix BuildListView auto-refresh stopping permanently after navigating away; startAutoRefresh now runs unconditionally on task so it restarts on every reappear, not just first load - Add lastRefreshed tracking to HomeViewModel with a needsRefresh(after:) helper; HomeView and WorkView scene-activation handlers now skip loadDashboard() if the data is less than 60 seconds old - Add 120-second TTL to repository build status refresh; statuses are no longer re-fetched on every tab appear, only when stale or when the user explicitly pulls to refresh (forceRefresh: true) Implements: https://todo.sr.ht/~ccleberg/hutch/56
* release: v3.0.0 — navigation overhaul, Work view, and multi-pin supportv3.0.0Christian Cleberg2026-04-131-3/+3
| | | | | | | | | | | | | | | | | | | | Reworks the app's core navigation and home screen for v3.0.0: - Replace Inbox with Work view: unified dashboard showing unread threads and assigned tickets, with All/Unread/Assigned scope picker - Overhaul Home screen: redesigned with pinned items grid (trackers, repos, mailing lists, users), recent activity section, and system status banner; backed by HomePinStore supporting all resource types - Simplify navigation bars across list screens: default toolbar shows only the primary action (+) and an overflow menu (…); pin, share, and select moved into the overflow menu; selection mode gets its own nav bar with Cancel / "N Selected" / All - Consolidate repo detail toolbars: pin and share moved into the existing actions menu for both Git and Mercurial detail views - Add recent activity tracking via RecentActivityStore - Add work and inbox deep link aliases (hutch://work, hutch://inbox) Implements: https://todo.sr.ht/~ccleberg/hutch/55
* feat: add multi-account supportChristian Cleberg2026-04-121-8/+21
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/49 Implements: https://todo.sr.ht/~ccleberg/hutch/50 Implements: https://todo.sr.ht/~ccleberg/hutch/51
* feat: polish read-only project views and home integrationChristian Cleberg2026-04-121-2/+9
| | | | | | Refs: https://todo.sr.ht/~ccleberg/hutch/36 Refs: https://todo.sr.ht/~ccleberg/hutch/37 Refs: https://todo.sr.ht/~ccleberg/hutch/38
* feat: add projects list, detail view, and home pinningChristian Cleberg2026-04-121-1/+13
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/26 Implements: https://todo.sr.ht/~ccleberg/hutch/27 Implements: https://todo.sr.ht/~ccleberg/hutch/28
* add shortcuts widgets and power-user workflowsv2.15.0Christian Cleberg2026-04-121-0/+22
|
* improve home attention flows and cross-linkingv2.14.0Christian Cleberg2026-04-121-27/+295
|
* harden system status and app reliabilityv2.13.1Christian Cleberg2026-04-121-7/+21
|
* Add SourceHut system status screen and home disruption bannerChristian Cleberg2026-04-111-1/+19
|
* v2.4.0: widgetsv2.4.0Christian Cleberg2026-03-241-35/+92
|
* fix: log errors in HomeViewModel's silent catch blocksChristian Cleberg2026-03-241-0/+6
|
* feat: swipe actions on tickets, pastes, builds, and home dashboardChristian Cleberg2026-03-221-18/+132
|
* v2.1: bundled polish and fixesChristian Cleberg2026-03-191-3/+3
|
* feat: implement support for projects, lists, and pastesChristian Cleberg2026-03-191-0/+184
|
* add Home dashboard and repository build status indicatorsChristian Cleberg2026-03-181-0/+443