summaryrefslogtreecommitdiff
path: root/Hutch/Views
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: suppress false "network request failed" error on ticket list scrollChristian Cleberg2026-04-131-1/+5
| | | | | | | | | | | | | | When scrolling through a large tracker, SwiftUI's .task modifier cancels in-flight pagination requests as rows leave the screen. URLSession responds with URLError(-999), which was being surfaced to the user as "The network request failed. Please try again." — even though the cancellation is expected and benign. Guard against Task.isCancelled in the catch block so cancellations are silently ignored; isLoadingMore is still reset unconditionally so the next scroll attempt retries from the same cursor position. Fixes: https://todo.sr.ht/~ccleberg/hutch/61
* fix: show empty state for bare git repos instead of an errorChristian Cleberg2026-04-132-12/+46
| | | | | | | | | | | git.sr.ht returns "internal system error" from the references query and "reference not found" from the log/readme queries when a repo has no commits. Broaden isEmptyRepositoryError to cover missingReference, unknownRevision, noRows, notFound, and those two message strings, then apply the same silent-empty treatment to loadReferences and loadArtifacts (which previously surfaced any error directly to the user). Fixes: https://todo.sr.ht/~ccleberg/hutch/60
* fix: mercurial parity and graphql handlingv3.0.4Christian Cleberg2026-04-1310-117/+204
| | | | | | | | | | - 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
* perf: cache filtered collections and add equatable row viewsChristian Cleberg2026-04-137-25/+70
| | | | | | | | | | | | | | | | Convert filteredJobs, filteredPastes, and filteredTickets from computed properties to stored properties updated via didSet on their inputs. Each update function guards with an equality check before assigning, so @Observable skips the notification when the filtered result hasn't changed — preventing list re-renders on auto-refresh when no visible data has actually changed. Add Equatable conformance to BuildRowView, PasteRowView, TicketRowView, and SelectableTicketRow, and apply .equatable() at each ForEach call site. When a list does re-render, SwiftUI now skips body evaluation for rows whose model value is identical to the previous pass. Implements: https://todo.sr.ht/~ccleberg/hutch/57
* perf: reduce redundant fetches and improve list render efficiencyChristian Cleberg2026-04-136-10/+26
| | | | | | | | | | | | | | | | - 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-1318-965/+1376
| | | | | | | | | | | | | | | | | | | | 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 power user actionsChristian Cleberg2026-04-1316-70/+571
| | | | | | 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-1215-64/+150
| | | | | | 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: add search and recent queriesChristian Cleberg2026-04-128-21/+302
| | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/47 Implements: https://todo.sr.ht/~ccleberg/hutch/48
* feat: add ticket label management and bulk actionsChristian Cleberg2026-04-123-42/+623
| | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/45 Implements: https://todo.sr.ht/~ccleberg/hutch/46
* feat: add repo settings managementChristian Cleberg2026-04-129-227/+405
| | | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/42 Implements: https://todo.sr.ht/~ccleberg/hutch/43 Implements: https://todo.sr.ht/~ccleberg/hutch/44
* feat: add repository acl managementChristian Cleberg2026-04-125-235/+475
| | | | | | 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-126-179/+363
| | | | | | 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 ticket saved filters and label filteringChristian Cleberg2026-04-124-37/+532
| | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/32 Implements: https://todo.sr.ht/~ccleberg/hutch/33
* feat: add build artifact listingChristian Cleberg2026-04-122-0/+65
| | | | Implements: https://todo.sr.ht/~ccleberg/hutch/31
* feat: add build log search and jump-to-error navigationChristian Cleberg2026-04-122-26/+399
| | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/29 Implements: https://todo.sr.ht/~ccleberg/hutch/30
* feat: add projects list, detail view, and home pinningChristian Cleberg2026-04-127-47/+372
| | | | | | 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 theme and high-density display modesChristian Cleberg2026-04-1211-0/+35
| | | | | Refs: https://todo.sr.ht/~ccleberg/hutch/24 Implements: https://todo.sr.ht/~ccleberg/hutch/25
* feat: improve inbox reply flow and basic threadingChristian Cleberg2026-04-121-29/+64
| | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/23 Implements: https://todo.sr.ht/~ccleberg/hutch/34
* fix: improve inbox patch rendering and diff collapsingChristian Cleberg2026-04-122-10/+111
| | | | | Fixes: https://todo.sr.ht/~ccleberg/hutch/22 Implements: https://todo.sr.ht/~ccleberg/hutch/35
* feat: improve ticket list actions and metadata visibilityChristian Cleberg2026-04-121-48/+71
| | | | | Implements: https://todo.sr.ht/~ccleberg/hutch/20 Implements: https://todo.sr.ht/~ccleberg/hutch/21
* fix: polish build retry and cancel actionsChristian Cleberg2026-04-122-14/+50
| | | | fixes: https://todo.sr.ht/~ccleberg/hutch/19
* feat: add builds auto-refresh and repo filteringChristian Cleberg2026-04-122-4/+120
| | | | | implements: https://todo.sr.ht/~ccleberg/hutch/17 implements: https://todo.sr.ht/~ccleberg/hutch/18
* feat: improve Home structure and navigationv2.16.0Christian Cleberg2026-04-123-60/+248
| | | | | | implements: https://todo.sr.ht/~ccleberg/hutch/14 implements: https://todo.sr.ht/~ccleberg/hutch/15 implements: https://todo.sr.ht/~ccleberg/hutch/16
* fix: ensure looked-up users' bios render correctlyChristian Cleberg2026-04-121-2/+5
|
* feat: add prioritization of polling hutch-stats for logged in userChristian Cleberg2026-04-122-2/+8
|
* chore: clean up debug loggingv2.15.1Christian Cleberg2026-04-124-36/+0
|
* 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-129-77/+829
|
* harden system status and app reliabilityv2.13.1Christian Cleberg2026-04-127-47/+256
|
* ensure clicking into status from home returns to homeChristian Cleberg2026-04-111-2/+2
|
* Add SourceHut system status screen and home disruption bannerChristian Cleberg2026-04-116-4/+348
|
* fix: respect contribution graphs toggle in widgetv2.12.1Christian Cleberg2026-04-111-0/+3
| | | | | | Mirror the contributionGraphsEnabled setting to shared app group defaults so the widget extension can read it. Show a descriptive message when contributions are disabled instead of placeholder data.
* feat: add contribution calendar to user profilesv2.11.0Christian Cleberg2026-04-115-5/+561
| | | | | | 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.
* refactor: extract ProfileView from SettingsViewv2.10.3Christian Cleberg2026-04-113-578/+659
| | | | | Move profile-related UI into its own dedicated ProfileView, simplifying SettingsView and improving navigation structure in MoreView.
* bump version and update new privacy policy locationChristian Cleberg2026-04-101-1/+1
|
* chore: add explanatory comments to all intentional empty closuresv2.10.2Christian Cleberg2026-04-035-9/+23
|
* chore: rename unused coder param to _ in CodeFileUIViewChristian Cleberg2026-04-031-1/+1
|
* Fixed extraneous srht.site link in MoreViewv2.10.1Christian Cleberg2026-04-031-2/+1
|
* feat: add in-app man pages browserChristian Cleberg2026-04-035-3/+197
| | | | | | | | | | | | | | 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
* add hg parityChristian Cleberg2026-04-022-32/+115
|
* Implement search history for Look Up pageChristian Cleberg2026-04-022-2/+115
|
* feat: browse user repositories and trackers from profilev2.9.0Christian Cleberg2026-04-025-10/+314
|
* feat: expand user profile in Look UpChristian Cleberg2026-04-012-8/+91
|
* feat: show commit dates in Refs tabv2.8.1Christian Cleberg2026-04-014-12/+49
|
* feat: add Look Up screen and restrict management actions to ownersv2.8.0Christian Cleberg2026-04-018-12/+514
| | | | Implements: https://todo.sr.ht/~ccleberg/Hutch/4
* add confirmation to repo renameChristian Cleberg2026-04-011-7/+21
|
* fix copy throughout repoChristian Cleberg2026-04-013-4/+4
|
* standardize nav labelsChristian Cleberg2026-04-012-2/+2
|
* reverse order of swipe actions for user acls in trackersChristian Cleberg2026-04-011-8/+7
|