summaryrefslogtreecommitdiff
path: root/Hutch/Networking
Commit message (Collapse)AuthorAgeFilesLines
* feat(cache): persist read-only API responsesv3.3.1Christian Cleberg2026-05-064-24/+91
| | | | | | | | | | | | 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.
* feat: add persistent stale-while-revalidate API cacheChristian Cleberg2026-05-063-1/+740
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 custom hutch user-agent to api callsChristian Cleberg2026-04-154-10/+13
| | | | Implements: https://todo.sr.ht/~ccleberg/hutch/64
* fix: more sonarqube quality fixesv3.1.5Christian Cleberg2026-04-131-12/+13
|
* fix: sonarqube code smell fixesv3.1.4Christian Cleberg2026-04-132-34/+24
|
* fix: centralize URLs, tighten models, and polish SwiftUI bindingsv3.1.3Christian Cleberg2026-04-133-33/+35
| | | | | | | | | | | | | | | | | | | | - Add shared HutchDeepLinkURL constants for app, widgets, and tests. - Bump marketing version to 3.1.2 and build to 70 (app + widget extension). - Point Hutch stats default base URL at HutchStatsAPI; add SRHTWebURL status incident feed and reuse it from SystemStatusService. - Group Project into Metadata and Resources; split ContributionStatsResponse into StatsWindow and StatsTotals with updated decoding and tests. - Replace @Bindable usage with explicit Bindings in Profile, Projects list, and repository ACL flows; simplify Home pinned-item helper; add no-op bodies on cancel alert buttons where the compiler requires a statement. - Move repository row build-status indicator next to the relative-updated caption and reserve a fixed 8×8 slot so the row does not jump when status loads. - Use NSString.lastPathComponent for build artifact filenames; collapse duplicate ACL error branches; minor HutchStats HTTP and XMLParserDelegate cleanups. - Point widgets at HutchDeepLinkURL helpers; align tests with the new response and URL types.
* fix: mercurial parity and graphql handlingv3.0.4Christian Cleberg2026-04-133-75/+97
| | | | | | | | | | - implements consistent UX between repo types - ensures centralized services and routes are used between repo types - graphql error handling is centralized - error messages are consistent Implements: https://todo.sr.ht/~ccleberg/hutch/58 Implements: https://todo.sr.ht/~ccleberg/hutch/59
* feat: add repository acl managementChristian Cleberg2026-04-121-0/+106
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/39 Implements: https://todo.sr.ht/~ccleberg/hutch/40 Implements: https://todo.sr.ht/~ccleberg/hutch/41
* feat: polish read-only project views and home integrationChristian Cleberg2026-04-121-0/+118
| | | | | | 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-20/+28
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/26 Implements: https://todo.sr.ht/~ccleberg/hutch/27 Implements: https://todo.sr.ht/~ccleberg/hutch/28
* feat: add prioritization of polling hutch-stats for logged in userChristian Cleberg2026-04-121-5/+14
|
* chore: clean up debug loggingv2.15.1Christian Cleberg2026-04-121-12/+0
|
* harden system status and app reliabilityv2.13.1Christian Cleberg2026-04-123-46/+303
|
* Add SourceHut system status screen and home disruption bannerChristian Cleberg2026-04-112-0/+457
|
* feat: add contribution calendar to user profilesv2.11.0Christian Cleberg2026-04-111-0/+121
| | | | | | 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 in-app man pages browserChristian Cleberg2026-04-031-0/+216
| | | | | | | | | | | | | | Add a native Man Pages section to the More tab with in-app browsing for man.sr.ht documentation and srht.site pages. - add ManPageService for fetching and extracting public docs content - add ManPageBrowserView and ManPageDetailView - add More tab navigation for Man Pages - support in-place navigation for internal documentation links - allow HTMLWebView to intercept internal links and use a base URL - support man.sr.ht and srht.site content extraction - remove heading permalink "#" anchors from man page rendering - fix relative links, fragment links, and srht.site CTA/icon layout
* feat: add Look Up screen and restrict management actions to ownersv2.8.0Christian Cleberg2026-04-011-0/+10
| | | | Implements: https://todo.sr.ht/~ccleberg/Hutch/4
* fix copy throughout repoChristian Cleberg2026-04-013-6/+6
|
* fix: ensure projects in Home tab are sorted by last updated dateChristian Cleberg2026-04-011-1/+4
|
* v2.1: bundled polish and fixesChristian Cleberg2026-03-191-0/+72
|
* feat: implement support for projects, lists, and pastesChristian Cleberg2026-03-195-2/+627
|
* Guard authenticated text fetches to sr.ht hosts and add regression testChristian Cleberg2026-03-182-0/+18
|
* v1.0Christian Cleberg2026-03-177-0/+920