Commit d2579a9790

d2579a979020bb43491a374b68d5f38c13e9c10a

parent: a80c294814

Unsigned ci/accessibility: success

cmc <hello@cleberg.net> · 2026-11-16 21:29 UTC

Convert plain-text docs to Markdown; refresh README (!15)

Two commits.

**Renames.** SCOPE, ROADMAP, SECURITY, `Docs/StoreKit`, `Docs/API_CACHE` and
`Hutch/API_REFERENCE` go from `.txt` to `.md`. All six already held Markdown.
Cross-references updated in ROADMAP, SCOPE, README and `project.pbxproj`, where
SECURITY sits in the app's Resources build phase.

**README.** The feature list was about a release behind. Adds multiple accounts,
the on-disk API cache, work queue, project discovery and writes, lookup profiles
with contribution graphs, man page browser, system status, repo and tracker
ACLs, deploy keys, build retry/cancel/resubmit, avatar management, inbox
read/unread, widgets, App Intents, the Safari extension and theming. Also notes
the iOS 17.6 minimum, points into `Docs/`, and describes what CI actually runs.

Two fixes: the clone URL pointed at GitHub, which is the push mirror — gitbay is
canonical, so "issues or patches on either" was wrong. And `xcodebuild test
-scheme Hutch` needs no `-testPlan`, since `HutchTests.xctestplan` is the
scheme's default.

Left as-is: README stays `.org`, and ROADMAP's reference to a
`.github/workflows/test.yml` that no longer exists is history, not current docs.

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 @@
1111 85EF08B88008A7861BC573CD /* AccessibilityUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36512CB22293FDA01F42B239 /* AccessibilityUITests.swift */; };
1212 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89632F69DEB900FC0253 /* LICENSE */; };
1313 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 */; };
1515 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C82F7E211800E609E2 /* meta.json */; };
1616 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C62F7E211800E609E2 /* hg.json */; };
1717 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C42F7E211800E609E2 /* builds.json */; };
@@ -79,7 +79,7 @@
7979 8B01C8012F955ACC00FCFB9A /* SyncedProducts.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; path = SyncedProducts.storekit; sourceTree = "<group>"; };
8080 8B2F89632F69DEB900FC0253 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
8181 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>"; };
8383 8B2FA9C42F7E211800E609E2 /* builds.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = builds.json; sourceTree = "<group>"; };
8484 8B2FA9C52F7E211800E609E2 /* git.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = git.json; sourceTree = "<group>"; };
8585 8B2FA9C62F7E211800E609E2 /* hg.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = hg.json; sourceTree = "<group>"; };
@@ -252,7 +252,7 @@
252252 8B8182C22F6B742B000AE049 /* HutchTests */,
253253 8B2F89632F69DEB900FC0253 /* LICENSE */,
254254 8B2F89642F69DEB900FC0253 /* README.org */,
255 8B2F89652F69DEB900FC0253 /* SECURITY.txt */,
255 8B2F89652F69DEB900FC0253 /* SECURITY.md */,
256256 8B4B28D32F6704280045FA19 /* Hutch */,
257257 8BE081F42F80000100000001 /* Shared */,
258258 8BE081F52F80000100000001 /* HutchWidgetExtension */,
@@ -462,7 +462,7 @@
462462 files = (
463463 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */,
464464 8B2F89672F69DEB900FC0253 /* README.org in Resources */,
465 8B2F89682F69DEB900FC0253 /* SECURITY.txt in Resources */,
465 8B2F89682F69DEB900FC0253 /* SECURITY.md in Resources */,
466466 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */,
467467 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */,
468468 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */,
Hutch/API_REFERENCE.txt → Hutch/API_REFERENCE.md renamed
README.org +67 −25
@@ -3,62 +3,104 @@
33support hutch with a tip in the app (more → about) or through [[https://github.com/sponsors/ccleberg][github sponsors]].
44
55* what
6ios client for sourcehut. native swiftui, iphone and ipad. uses
7sourcehut's graphql apis. stores your personal access token in the
8ios keychain.
6ios client for sourcehut. native swiftui, iphone and ipad, built on
7sourcehut's graphql apis.
8
9several accounts can be signed in at once. each keeps its own personal
10access token in the ios keychain and its own caches and preferences.
11read-only api responses are cached on disk per account, so most screens
12open without a round trip.
913
1014* does
11- home dashboard: assigned tickets, recent builds, projects
15** repos
1216- git and mercurial repo browsing
1317- repo details: readme, refs, commits, diffs, files, artifacts,
14 settings
18 settings, acls, deploy keys
1519- artifact upload and deletion on release tags
20
21** tickets and builds
1622- 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** mail
27- inbox and mailing list reading, with read and unread state
1928- patchset review: cover letters, per-patch diffs, checks, version
2029 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
2237- 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
2441 management, audit log
2542- email preferences for todo.sr.ht and lists.sr.ht
26- deep links for repos, tickets, build jobs
2743
28some 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
55some sr.ht services are still browser-only and open in safari. see
56SCOPE.md for what is deliberately left out and why, and ROADMAP.md for
57what is planned.
2958
3059* requires
31xcode with a current ios sdk, a simulator or device, a sourcehut
32account, and a personal access token.
60xcode with a current ios sdk, a simulator or device on ios 17.6 or
61later, a sourcehut account, and a personal access token.
3362
3463* build
3564#+begin_src sh
36git clone https://github.com/krazywarez/hutch
65git clone https://gitbay.org/krz/hutch
3766#+end_src
3867
39open in xcode, build and run. on first launch paste a token. create
40one at https://meta.sr.ht/oauth2/personal-token.
68open =Hutch.xcodeproj= in xcode, build and run. on first launch paste a
69token. create one at https://meta.sr.ht/oauth2/personal-token.
4170
42the token is validated against meta.sr.ht before saving and stored
43in the keychain. Reset App Data clears the token, caches, cookies,
44and local web data.
71the token is validated against meta.sr.ht before saving and stored in
72the keychain. Reset App Data clears the token, caches, cookies, and
73local web data.
4574
4675* develop
47xcode app with tests under HutchTests. run the test plan in
48HutchTests.xctestplan.
76tests live under =HutchTests=. =HutchTests.xctestplan= is the default
77plan for the =Hutch= scheme, so =xcodebuild test -scheme Hutch= runs
78it.
79
80notes on the internals are in =Docs=: =API_CACHE.md= for the caching
81layer, =StoreKit.md= for the tip products, =Hutch/API_REFERENCE.md= for
82sourcehut's endpoints and token scopes, and =Docs/API= for schema dumps
83(partial — see the api traps in ROADMAP.md before trusting them).
84
85ci runs on the gitbay instance from =.gitbay/ci.yml=: an accessibility
86check over the view files and the weekly man-page sync. the xcodebuild
87test plan is not in ci; there is no macos runner.
4988
5089* mirrors
5190#+begin_example
52github: https://github.com/krazywarez/hutch
53krz.sh: https://gitbay.org/krz/hutch
54kept in sync. issues or patches on either.
91krz.sh: https://gitbay.org/krz/hutch canonical
92github: https://github.com/krazywarez/hutch push mirror
5593#+end_example
5694
95issues and merge requests go to gitbay. pushes to github are
96overwritten by the mirror.
97
5798* security
58see SECURITY.txt.
99see SECURITY.md.
59100
60101* license
611020bsd. see LICENSE.
62103
63104* contact
64105- 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
44identified by diffing the GraphQL schema dumps in `Docs/API` against actual
55call sites in the Swift source.
66
7See [SCOPE.txt](SCOPE.txt) for features that are intentionally out of scope.
7See [SCOPE.md](SCOPE.md) for features that are intentionally out of scope.
88
99## SourceHut API traps
1010
@@ -166,7 +166,7 @@ and deploy keys — once slated for 3.9.0 — move to 3.10.0, and the hub.sr.ht
166166writes that were provisionally 3.10.0 landed early, because the SDL, once
167167actually read, turned out to have the mutations (it was not the empty bucket the
168168sequencing had guarded against). The ingest still leads 3.10.0: its real output
169is a `SCOPE.txt` that is true.
169is a `SCOPE.md` that is true.
170170
171171`KeychainHelper` is deliberately unbucketed; see the SonarCloud hotspots below.
172172
@@ -183,9 +183,9 @@ Three of the six planned. The other three did not survive contact:
183183- The `events` feed was built, then removed: todo.sr.ht's root `events` resolver
184184 joins `event.participant_id` against `participant.user_id`, which are
185185 different id spaces, so it returns an empty list for everyone. See
186 [SCOPE.txt](SCOPE.txt).
186 [SCOPE.md](SCOPE.md).
187187- 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
189189 re-proposed.
190190
191191### Localization — v4.0.0, and only with translations
@@ -334,9 +334,9 @@ not just a green suite.
334334sr.ht posts a quarterly update to `~sircmpwn/sr.ht-announce`, mirrored at
335335<https://sourcehut.org/blog/>. Nothing in Hutch tracks it, so the API grows and
336336this 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.
338338
339That this is worth doing is already proven: **`SCOPE.txt` claims pronouns are
339That this is worth doing is already proven: **`SCOPE.md` claims pronouns are
340340"not in GraphQL schema", while `AppState` queries `pronouns` and
341341`UserProfileView` displays them.** sr.ht shipped it, the doc never caught up,
342342and it has been discouraging work that is in fact already done.
@@ -347,7 +347,7 @@ flags two openings:
347347- **hub.sr.ht gained a writable GraphQL API** for managing projects and project
348348 resources. ~~Rechecked and shipped~~: project create/edit, resource
349349 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
351351 been corrected.
352352- ~~git.sr.ht deploy keys are complete~~ — **shipped** (v3.10.0).
353353 `createDeployKey` / `deleteDeployKey` (and `Repository.deployKeys`) are wired
@@ -403,7 +403,7 @@ Verify on a signed-in device.
403403
404404`mailingListSubscribe` is now buildable: the ingest found `MailingList` gained a
405405`subscription` field, so per-list state is readable and the subscribe/unsubscribe
406toggle can reflect it — see the "mailing list subscribe" bucket below. `SCOPE.txt`
406toggle can reflect it — see the "mailing list subscribe" bucket below. `SCOPE.md`
407407has since had its "hub has no public API / no discovery" claim corrected.
408408
409409### App Intent gaps — unscheduled
SCOPE.txt → SCOPE.md renamed +3 −3
@@ -7,12 +7,12 @@
77- ~~Explore / search (hub.sr.ht) (no public discovery API)~~ — **stale**.
88 hub.sr.ht added a public `projects` query ("List all public projects"), and
99 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
1111 out a feature the API had come to support.
1212- ~~Pronouns on profile (not in GraphQL schema)~~ — **stale**. sr.ht added
1313 pronouns (see the Q1 2026 "What's cooking"), and Hutch already queries them in
1414 `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
1616 people not to build something that was already built.
1717- Revoke personal access tokens (`@internal` in schema, inaccessible)
1818- Archive a message to a list (`archiveMessage` is `@internal`, inaccessible)
@@ -34,7 +34,7 @@
3434- ~~Subscribe to a mailing list~~ — **shipped** (v3.11.0). A subscribe/unsubscribe
3535 toggle on the mailing-list detail view. State comes from the `subscriptions`
3636 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
3838 project's lists — no discovery API needed.
3939- Submitting patches (a `git send-email` flow, not a GraphQL mutation; Hutch
4040 reviews patchsets but cannot send them)
SECURITY.txt → SECURITY.md renamed