Commit d2579a9790
Unsigned ci/accessibility: success
Layout: unified · split
Docs/API_CACHE.txt → Docs/API_CACHE.md renamed
Docs/StoreKit.txt → Docs/StoreKit.md renamed
Hutch.xcodeproj/project.pbxproj +4 −4
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | 85EF08B88008A7861BC573CD /* AccessibilityUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36512CB22293FDA01F42B239 /* AccessibilityUITests.swift */; }; |
| 12 | 12 | 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89632F69DEB900FC0253 /* LICENSE */; }; |
| 13 | 13 | 8B2F89672F69DEB900FC0253 /* README.org in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89642F69DEB900FC0253 /* README.org */; }; |
| 14 | 8B2F89682F69DEB900FC0253 /* SECURITY.txt in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89652F69DEB900FC0253 /* SECURITY.txt */; }; | |
| 14 | 8B2F89682F69DEB900FC0253 /* SECURITY.md in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89652F69DEB900FC0253 /* SECURITY.md */; }; | |
| 15 | 15 | 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C82F7E211800E609E2 /* meta.json */; }; |
| 16 | 16 | 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C62F7E211800E609E2 /* hg.json */; }; |
| 17 | 17 | 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C42F7E211800E609E2 /* builds.json */; }; |
| @@ -79,7 +79,7 @@ | ||
| 79 | 79 | 8B01C8012F955ACC00FCFB9A /* SyncedProducts.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; path = SyncedProducts.storekit; sourceTree = "<group>"; }; |
| 80 | 80 | 8B2F89632F69DEB900FC0253 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; }; |
| 81 | 81 | 8B2F89642F69DEB900FC0253 /* README.org */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.org; sourceTree = "<group>"; }; |
| 82 | 8B2F89652F69DEB900FC0253 /* SECURITY.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = SECURITY.txt; sourceTree = "<group>"; }; | |
| 82 | 8B2F89652F69DEB900FC0253 /* SECURITY.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = SECURITY.md; sourceTree = "<group>"; }; | |
| 83 | 83 | 8B2FA9C42F7E211800E609E2 /* builds.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = builds.json; sourceTree = "<group>"; }; |
| 84 | 84 | 8B2FA9C52F7E211800E609E2 /* git.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = git.json; sourceTree = "<group>"; }; |
| 85 | 85 | 8B2FA9C62F7E211800E609E2 /* hg.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = hg.json; sourceTree = "<group>"; }; |
| @@ -252,7 +252,7 @@ | ||
| 252 | 252 | 8B8182C22F6B742B000AE049 /* HutchTests */, |
| 253 | 253 | 8B2F89632F69DEB900FC0253 /* LICENSE */, |
| 254 | 254 | 8B2F89642F69DEB900FC0253 /* README.org */, |
| 255 | 8B2F89652F69DEB900FC0253 /* SECURITY.txt */, | |
| 255 | 8B2F89652F69DEB900FC0253 /* SECURITY.md */, | |
| 256 | 256 | 8B4B28D32F6704280045FA19 /* Hutch */, |
| 257 | 257 | 8BE081F42F80000100000001 /* Shared */, |
| 258 | 258 | 8BE081F52F80000100000001 /* HutchWidgetExtension */, |
| @@ -462,7 +462,7 @@ | ||
| 462 | 462 | files = ( |
| 463 | 463 | 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */, |
| 464 | 464 | 8B2F89672F69DEB900FC0253 /* README.org in Resources */, |
| 465 | 8B2F89682F69DEB900FC0253 /* SECURITY.txt in Resources */, | |
| 465 | 8B2F89682F69DEB900FC0253 /* SECURITY.md in Resources */, | |
| 466 | 466 | 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */, |
| 467 | 467 | 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */, |
| 468 | 468 | 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */, |
Hutch/API_REFERENCE.txt → Hutch/API_REFERENCE.md renamed
README.org +67 −25
| @@ -3,62 +3,104 @@ | ||
| 3 | 3 | support hutch with a tip in the app (more → about) or through [[https://github.com/sponsors/ccleberg][github sponsors]]. |
| 4 | 4 | |
| 5 | 5 | * what |
| 6 | ios client for sourcehut. native swiftui, iphone and ipad. uses | |
| 7 | sourcehut's graphql apis. stores your personal access token in the | |
| 8 | ios keychain. | |
| 6 | ios client for sourcehut. native swiftui, iphone and ipad, built on | |
| 7 | sourcehut's graphql apis. | |
| 8 | ||
| 9 | several accounts can be signed in at once. each keeps its own personal | |
| 10 | access token in the ios keychain and its own caches and preferences. | |
| 11 | read-only api responses are cached on disk per account, so most screens | |
| 12 | open without a round trip. | |
| 9 | 13 | |
| 10 | 14 | * does |
| 11 | - home dashboard: assigned tickets, recent builds, projects | |
| 15 | ** repos | |
| 12 | 16 | - git and mercurial repo browsing |
| 13 | 17 | - repo details: readme, refs, commits, diffs, files, artifacts, |
| 14 | settings | |
| 18 | settings, acls, deploy keys | |
| 15 | 19 | - artifact upload and deletion on release tags |
| 20 | ||
| 21 | ** tickets and builds | |
| 16 | 22 | - trackers and tickets: browse, create, edit, delete, subscribe |
| 17 | - builds: browse, detail, submit | |
| 18 | - inbox and mailing list reading | |
| 23 | - tracker management: settings, acls, labels | |
| 24 | - builds: browse, detail, logs, submit, retry, cancel, resubmit | |
| 25 | ||
| 26 | ||
| 27 | - inbox and mailing list reading, with read and unread state | |
| 19 | 28 | - patchset review: cover letters, per-patch diffs, checks, version |
| 20 | 29 | chains, status changes |
| 21 | - mailing list create, settings, delete | |
| 30 | - mailing lists: create, subscribe, settings, delete | |
| 31 | ||
| 32 | ** the rest | |
| 33 | - home dashboard and work queue: what is assigned, unread or failing, | |
| 34 | plus pinned projects and repos | |
| 35 | - projects: public discovery, create, edit, link and unlink resources | |
| 36 | - lookup: any user's profile, repos, trackers, contribution graph | |
| 22 | 37 | - pastes: browse, create, detail |
| 23 | - profile and account settings: ssh keys, pgp keys, token | |
| 38 | - man.sr.ht browser over a bundled catalog, synced weekly by ci | |
| 39 | - status.sr.ht summary | |
| 40 | - profile and account settings: ssh keys, pgp keys, avatar, token | |
| 24 | 41 | management, audit log |
| 25 | 42 | - email preferences for todo.sr.ht and lists.sr.ht |
| 26 | - deep links for repos, tickets, build jobs | |
| 27 | 43 | |
| 28 | some sr.ht services are still browser-only and open in safari. | |
| 44 | ** system integration | |
| 45 | - widgets: contribution graph, needs attention, system status | |
| 46 | - app intents for shortcuts and spotlight: work queue, recent | |
| 47 | activity, failed builds, assigned tickets, system status, pinned | |
| 48 | resources, search | |
| 49 | - =hutch://= deep links for repos, tickets, builds, lists, profiles, | |
| 50 | projects, status and search | |
| 51 | - safari web extension that offers to open a supported sr.ht page in | |
| 52 | the app | |
| 53 | - themes including amoled, compact density, optional swipe actions | |
| 54 | ||
| 55 | some sr.ht services are still browser-only and open in safari. see | |
| 56 | SCOPE.md for what is deliberately left out and why, and ROADMAP.md for | |
| 57 | what is planned. | |
| 29 | 58 | |
| 30 | 59 | * requires |
| 31 | xcode with a current ios sdk, a simulator or device, a sourcehut | |
| 32 | account, and a personal access token. | |
| 60 | xcode with a current ios sdk, a simulator or device on ios 17.6 or | |
| 61 | later, a sourcehut account, and a personal access token. | |
| 33 | 62 | |
| 34 | 63 | * build |
| 35 | 64 | #+begin_src sh |
| 36 | git clone https://github.com/krazywarez/hutch | |
| 65 | git clone https://gitbay.org/krz/hutch | |
| 37 | 66 | #+end_src |
| 38 | 67 | |
| 39 | open in xcode, build and run. on first launch paste a token. create | |
| 40 | one at https://meta.sr.ht/oauth2/personal-token. | |
| 68 | open =Hutch.xcodeproj= in xcode, build and run. on first launch paste a | |
| 69 | token. create one at https://meta.sr.ht/oauth2/personal-token. | |
| 41 | 70 | |
| 42 | the token is validated against meta.sr.ht before saving and stored | |
| 43 | in the keychain. Reset App Data clears the token, caches, cookies, | |
| 44 | and local web data. | |
| 71 | the token is validated against meta.sr.ht before saving and stored in | |
| 72 | the keychain. Reset App Data clears the token, caches, cookies, and | |
| 73 | local web data. | |
| 45 | 74 | |
| 46 | 75 | * develop |
| 47 | xcode app with tests under HutchTests. run the test plan in | |
| 48 | HutchTests.xctestplan. | |
| 76 | tests live under =HutchTests=. =HutchTests.xctestplan= is the default | |
| 77 | plan for the =Hutch= scheme, so =xcodebuild test -scheme Hutch= runs | |
| 78 | it. | |
| 79 | ||
| 80 | notes on the internals are in =Docs=: =API_CACHE.md= for the caching | |
| 81 | layer, =StoreKit.md= for the tip products, =Hutch/API_REFERENCE.md= for | |
| 82 | sourcehut's endpoints and token scopes, and =Docs/API= for schema dumps | |
| 83 | (partial — see the api traps in ROADMAP.md before trusting them). | |
| 84 | ||
| 85 | ci runs on the gitbay instance from =.gitbay/ci.yml=: an accessibility | |
| 86 | check over the view files and the weekly man-page sync. the xcodebuild | |
| 87 | test plan is not in ci; there is no macos runner. | |
| 49 | 88 | |
| 50 | 89 | * mirrors |
| 51 | 90 | #+begin_example |
| 52 | github: https://github.com/krazywarez/hutch | |
| 53 | krz.sh: https://gitbay.org/krz/hutch | |
| 54 | kept in sync. issues or patches on either. | |
| 91 | krz.sh: https://gitbay.org/krz/hutch canonical | |
| 92 | github: https://github.com/krazywarez/hutch push mirror | |
| 55 | 93 | #+end_example |
| 56 | 94 | |
| 95 | issues and merge requests go to gitbay. pushes to github are | |
| 96 | overwritten by the mirror. | |
| 97 | ||
| 57 | 98 | * security |
| 58 | see SECURITY.txt. | |
| 99 | see SECURITY.md. | |
| 59 | 100 | |
| 60 | 101 | * license |
| 61 | 102 | 0bsd. see LICENSE. |
| 62 | 103 | |
| 63 | 104 | * contact |
| 64 | 105 | - root@krz.sh |
| 106 | - https://krz.sh/apps/hutch/ | |
ROADMAP.txt → ROADMAP.md renamed +8 −8
| @@ -4,7 +4,7 @@ Planned work for Hutch, ordered by dependency. Feature gaps below were | ||
| 4 | 4 | identified by diffing the GraphQL schema dumps in `Docs/API` against actual |
| 5 | 5 | call sites in the Swift source. |
| 6 | 6 | |
| 7 | See [SCOPE.txt](SCOPE.txt) for features that are intentionally out of scope. | |
| 7 | See [SCOPE.md](SCOPE.md) for features that are intentionally out of scope. | |
| 8 | 8 | |
| 9 | 9 | ## SourceHut API traps |
| 10 | 10 | |
| @@ -166,7 +166,7 @@ and deploy keys — once slated for 3.9.0 — move to 3.10.0, and the hub.sr.ht | ||
| 166 | 166 | writes that were provisionally 3.10.0 landed early, because the SDL, once |
| 167 | 167 | actually read, turned out to have the mutations (it was not the empty bucket the |
| 168 | 168 | sequencing had guarded against). The ingest still leads 3.10.0: its real output |
| 169 | is a `SCOPE.txt` that is true. | |
| 169 | is a `SCOPE.md` that is true. | |
| 170 | 170 | |
| 171 | 171 | `KeychainHelper` is deliberately unbucketed; see the SonarCloud hotspots below. |
| 172 | 172 | |
| @@ -183,9 +183,9 @@ Three of the six planned. The other three did not survive contact: | ||
| 183 | 183 | - The `events` feed was built, then removed: todo.sr.ht's root `events` resolver |
| 184 | 184 | joins `event.participant_id` against `participant.user_id`, which are |
| 185 | 185 | different id spaces, so it returns an empty list for everyone. See |
| 186 | [SCOPE.txt](SCOPE.txt). | |
| 186 | [SCOPE.md](SCOPE.md). | |
| 187 | 187 | - Webhook management, `shareSecret`, and build groups are reachable but declined |
| 188 | on judgement — see [SCOPE.txt](SCOPE.txt) for the reasoning, so they do not get | |
| 188 | on judgement — see [SCOPE.md](SCOPE.md) for the reasoning, so they do not get | |
| 189 | 189 | re-proposed. |
| 190 | 190 | |
| 191 | 191 | ### Localization — v4.0.0, and only with translations |
| @@ -334,9 +334,9 @@ not just a green suite. | ||
| 334 | 334 | sr.ht posts a quarterly update to `~sircmpwn/sr.ht-announce`, mirrored at |
| 335 | 335 | <https://sourcehut.org/blog/>. Nothing in Hutch tracks it, so the API grows and |
| 336 | 336 | this repo's assumptions quietly rot. Read each quarter's post, diff it against |
| 337 | `Docs/API`, `SCOPE.txt`, and the call sites, and file what changed. | |
| 337 | `Docs/API`, `SCOPE.md`, and the call sites, and file what changed. | |
| 338 | 338 | |
| 339 | That this is worth doing is already proven: **`SCOPE.txt` claims pronouns are | |
| 339 | That this is worth doing is already proven: **`SCOPE.md` claims pronouns are | |
| 340 | 340 | "not in GraphQL schema", while `AppState` queries `pronouns` and |
| 341 | 341 | `UserProfileView` displays them.** sr.ht shipped it, the doc never caught up, |
| 342 | 342 | and it has been discouraging work that is in fact already done. |
| @@ -347,7 +347,7 @@ flags two openings: | ||
| 347 | 347 | - **hub.sr.ht gained a writable GraphQL API** for managing projects and project |
| 348 | 348 | resources. ~~Rechecked and shipped~~: project create/edit, resource |
| 349 | 349 | link/unlink, and public discovery landed (#12–#15) — see "hub.sr.ht writes" |
| 350 | below. `SCOPE.txt`'s "hub has no public API / no discovery" claim has since | |
| 350 | below. `SCOPE.md`'s "hub has no public API / no discovery" claim has since | |
| 351 | 351 | been corrected. |
| 352 | 352 | - ~~git.sr.ht deploy keys are complete~~ — **shipped** (v3.10.0). |
| 353 | 353 | `createDeployKey` / `deleteDeployKey` (and `Repository.deployKeys`) are wired |
| @@ -403,7 +403,7 @@ Verify on a signed-in device. | ||
| 403 | 403 | |
| 404 | 404 | `mailingListSubscribe` is now buildable: the ingest found `MailingList` gained a |
| 405 | 405 | `subscription` field, so per-list state is readable and the subscribe/unsubscribe |
| 406 | toggle can reflect it — see the "mailing list subscribe" bucket below. `SCOPE.txt` | |
| 406 | toggle can reflect it — see the "mailing list subscribe" bucket below. `SCOPE.md` | |
| 407 | 407 | has since had its "hub has no public API / no discovery" claim corrected. |
| 408 | 408 | |
| 409 | 409 | ### App Intent gaps — unscheduled |
SCOPE.txt → SCOPE.md renamed +3 −3
| @@ -7,12 +7,12 @@ | ||
| 7 | 7 | - ~~Explore / search (hub.sr.ht) (no public discovery API)~~ — **stale**. |
| 8 | 8 | hub.sr.ht added a public `projects` query ("List all public projects"), and |
| 9 | 9 | Hutch ships it as project discovery (#12, `DiscoverProjectsView`). Left struck |
| 10 | through as more evidence for the ingestion task in ROADMAP.txt: this entry ruled | |
| 10 | through as more evidence for the ingestion task in ROADMAP.md: this entry ruled | |
| 11 | 11 | out a feature the API had come to support. |
| 12 | 12 | - ~~Pronouns on profile (not in GraphQL schema)~~ — **stale**. sr.ht added |
| 13 | 13 | pronouns (see the Q1 2026 "What's cooking"), and Hutch already queries them in |
| 14 | 14 | `AppState` and shows them in `UserProfileView`. Left here struck through as |
| 15 | evidence for the ingestion task in ROADMAP.txt: this entry spent months telling | |
| 15 | evidence for the ingestion task in ROADMAP.md: this entry spent months telling | |
| 16 | 16 | people not to build something that was already built. |
| 17 | 17 | - Revoke personal access tokens (`@internal` in schema, inaccessible) |
| 18 | 18 | - Archive a message to a list (`archiveMessage` is `@internal`, inaccessible) |
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | - ~~Subscribe to a mailing list~~ — **shipped** (v3.11.0). A subscribe/unsubscribe |
| 35 | 35 | toggle on the mailing-list detail view. State comes from the `subscriptions` |
| 36 | 36 | query (`MailingList.subscription` is a trap — it never reports your state; see |
| 37 | ROADMAP.txt API traps), and a list is reachable to subscribe to via Lookup or a | |
| 37 | ROADMAP.md API traps), and a list is reachable to subscribe to via Lookup or a | |
| 38 | 38 | project's lists — no discovery API needed. |
| 39 | 39 | - Submitting patches (a `git send-email` flow, not a GraphQL mutation; Hutch |
| 40 | 40 | reviews patchsets but cannot send them) |