summaryrefslogtreecommitdiff
path: root/HutchTests/HomeViewModelTests.swift
Commit message (Collapse)AuthorAgeFilesLines
* Adopt Swift 6 language modeChristian Cleberg34 hours1-0/+1
| | | | | | | | | | | | | | | | | | | | Flip SWIFT_VERSION to 6.0 (keeping SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor) and resolve every resulting diagnostic. Mechanical, no behaviour change: - Models: pure value types in Models/ and utility extensions (Date, DateFormatter, SRHTWebURL) marked nonisolated so the nonisolated networking layer can use them. - App Intents: stored 'static var' (title/description/openAppWhenRun/ typeDisplayRepresentation/defaultQuery/caseDisplayRepresentations) -> 'static let'; drop the invalid @retroactive on the in-module LookupType: AppEnum. - Sendable dicts: 'nil as String? as Any' -> 'nil as String? as any Sendable'. - UserDefaults: retroactive @unchecked Sendable (documented thread-safe). - WidgetKit completion handlers rebound nonisolated(unsafe) to cross into Task {}; TipStoreViewModel task handle is @ObservationIgnored nonisolated(unsafe) for its nonisolated deinit. - Tests run on @MainActor; a few constant fixtures marked nonisolated for use in @Sendable stub closures. Builds and the full suite are clean in Swift 6 mode. Roadmap updated.
* test: repair stale expectations and request-body captureChristian Cleberg2026-07-151-1/+1
| | | | | | | | | | | | | | | These tests drifted from the code and went unnoticed because CI never ran them. All four are test-side errors; no app behavior is involved. - TicketListViewModelTests asserted lowercase "resolved"/"fixed"/"reported" against TicketStatus/TicketResolution rawValues, which are uppercase to match the todo.sr.ht GraphQL enums. - HomeViewModelTests expected failedBuilds in ascending id order. Ordering moved to newest-first when sortBuildItemsForTriage landed in 5f6d545; the filtering the test covers is unchanged. - SettingsViewModelTests read request.httpBody inside a URLProtocol, where it is always nil because URLSession moves the body onto httpBodyStream. The stub now reads the body off the stream at capture time.
* fix: collapse work inbox messages into thread summariesv3.2.0Christian Cleberg2026-04-201-0/+52
|
* feat: user-defined time period for recent builds cardChristian Cleberg2026-04-201-0/+71
| | | | | | | | | - 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
* improve home attention flows and cross-linkingv2.14.0Christian Cleberg2026-04-121-0/+13
|
* Fix stale tests for current Swift concurrency modelChristian Cleberg2026-04-111-1/+10
|
* add Home dashboard and repository build status indicatorsChristian Cleberg2026-03-181-0/+67