summaryrefslogtreecommitdiff
path: root/Hutch/App/AppState.swift
Commit message (Collapse)AuthorAgeFilesLines
* fix: start a new account at zero unreadChristian Cleberg2026-07-151-0/+3
| | | | | | | | | | | | | | | | | | | An absent view record read as unread, so on first sign-in every thread a list had ever carried was unread. On a busy list that is thousands of threads the user never intended to read, inflating the Home dashboard, the needs-attention snapshot, and the widget with a number that means nothing. Record a baseline when an account is activated: mail that predates it is read, mail after it is not. activate() is the single funnel for launch validation, account switching, and adding an account, so one call covers every sign-in path. Accounts that already carry read state have been in use, so they get a distantPast baseline and keep every unread thread they had — upgrading must not silently mark a real backlog as read. markUnread now records an explicit distantPast marker instead of deleting the entry. Deleting would drop the thread back to the baseline rule, so marking an old thread unread would appear to do nothing.
* feat: add App Intents for Hutch navigationChristian Cleberg2026-05-141-0/+6
| | | | | | | | | | - add read-only App Intents for core Hutch workflows - route intents through the existing Hutch navigation/deep-link model - expose Work Queue, Recent Activity, System Status, pinned resources, projects, failed builds, assigned tickets, saved searches, and search where supported - keep App Intents non-mutating for the initial implementation - preserve existing widget, Safari extension, and hutch:// routing behavior References: https://todo.sr.ht/~ccleberg/hutch/71
* feat: add Safari extension for sourcehut deep linksv3.4.0Christian Cleberg2026-05-141-2/+76
|
* feat: add persistent stale-while-revalidate API cacheChristian Cleberg2026-05-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce an actor-backed persistent cache layer at the SRHTClient boundary for read-only SourceHut data. Cache entries now store stable metadata including key, resource type, fetched/expires/access timestamps, payload hash, schema version, and payload size, with bounded memory and disk usage. Add centralized cache key builders and TTL defaults for repository, file, ticket, build, log, profile, status, and list-style resources. Support networkOnly, cacheOnly, cacheFirstThenRefresh, and refreshIgnoringCache policies, plus request coalescing for duplicate in-flight cache keys. Integrate first-pass caching into high-value low-risk read paths: - build detail and completed/active build logs - ticket detail - README lookup - repository tree, blob, and linked file reads Keep mutation paths network-only and add simple prefix invalidation after ticket and build mutations. Add compact cached/stale UI status rows and a Settings action to clear the persistent cache. Add focused cache tests covering round trips, expiration, stale fallback, policy behavior, request coalescing, prefix invalidation, size limits, LRU pruning, expired pruning, and mutation bypass behavior. Document storage, key, TTL, invalidation, limitations, and next recommended targets.
* feat: add power user actionsChristian Cleberg2026-04-131-0/+33
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/52 Implements: https://todo.sr.ht/~ccleberg/hutch/53 Implements: https://todo.sr.ht/~ccleberg/hutch/54
* feat: add multi-account supportChristian Cleberg2026-04-121-76/+179
| | | | | | 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: improve Home structure and navigationv2.16.0Christian Cleberg2026-04-121-0/+6
| | | | | | implements: https://todo.sr.ht/~ccleberg/hutch/14 implements: https://todo.sr.ht/~ccleberg/hutch/15 implements: https://todo.sr.ht/~ccleberg/hutch/16
* add shortcuts widgets and power-user workflowsv2.15.0Christian Cleberg2026-04-121-0/+2
|
* improve home attention flows and cross-linkingv2.14.0Christian Cleberg2026-04-121-5/+31
|
* Add SourceHut system status screen and home disruption bannerChristian Cleberg2026-04-111-1/+13
|
* feat: add contribution calendar to user profilesv2.11.0Christian Cleberg2026-04-111-0/+7
| | | | | | Add a trailing 365-day contribution heatmap to user profile views, backed by HutchStatsService. Includes calendar model, view model, SwiftUI calendar view, app configuration, and unit tests.
* feat: add multi-account supportv2.6.0Christian Cleberg2026-04-011-7/+93
| | | | Implements: https://todo.sr.ht/~ccleberg/Hutch/11
* v2.4.0: widgetsv2.4.0Christian Cleberg2026-03-241-0/+15
|
* feat: surface an alert when a deep link fails to resolveChristian Cleberg2026-03-221-0/+10
|
* feat: implement support for projects, lists, and pastesChristian Cleberg2026-03-191-5/+41
|
* feat: add support for reading inbox messages (emails) and replying in-appChristian Cleberg2026-03-191-0/+14
|
* v1.0Christian Cleberg2026-03-171-0/+222