summaryrefslogtreecommitdiff
path: root/HutchTests/ReadmeViewTests.swift
Commit message (Collapse)AuthorAgeFilesLines
* Adopt Swift 6 language modeChristian Cleberg34 hours1-0/+5
| | | | | | | | | | | | | | | | | | | | 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.
* Update test fixtures to [email protected] emailChristian Cleberg7 days1-3/+3
|
* test: assert image URLs are not double-escapedChristian Cleberg2026-07-151-1/+4
| | | | | | | | | | markdownImageQueryStringPreservesAmpersands rejected any "amp;metric" in the rendered HTML, but `&` is the correct encoding for `&` in an attribute value and is what a browser needs to request a literal `&`. The assertion conflated the URL with its HTML encoding. Target the real failure mode instead: double-escaping, which would send "&" through as part of the query string and break badge images.
* fix: fixes dead relative links in md/org with a new single-file viewer when ↵Christian Cleberg2026-04-151-0/+101
| | | | | | tapped Fixes: https://todo.sr.ht/~ccleberg/hutch/63
* fix(org): improve org-mode rendering supportv2.5.1Christian Cleberg2026-03-301-0/+102
|
* feat(markdown): finalize migration to apple/swift-markdown rendererv2.5.0Christian Cleberg2026-03-301-0/+10
|
* Migrate README markdown rendering to swift-markdown and fix badge imagesChristian Cleberg2026-03-301-54/+53
| | | | | | | | | | - replace the hand-rolled markdown parser with a MarkupVisitor renderer - keep the org-mode rendering path and shared sanitization helpers intact - update WKWebView styling and height measurement for README content - fix linked image and query-string badge rendering in markdown output - expand README rendering tests and add markdown syntax coverage Implements: https://todo.sr.ht/~ccleberg/Hutch/2
* partial extended support for markdown and org-modeChristian Cleberg2026-03-301-0/+211
|
* harden README web rendering and sanitize untrusted linksChristian Cleberg2026-03-181-0/+29