Commit cc03259c9b
Verified · cmc ci/accessibility: success
Layout: unified · split
README.org +67 −25
| @@ -3,62 +3,104 @@ | |||
| 3 | support hutch with a tip in the app (more → about) or through [[https://github.com/sponsors/ccleberg][github sponsors]]. | 3 | support hutch with a tip in the app (more → about) or through [[https://github.com/sponsors/ccleberg][github sponsors]]. |
| 4 | 4 | ||
| 5 | * what | 5 | * what |
| 6 | ios client for sourcehut. native swiftui, iphone and ipad. uses | 6 | ios client for sourcehut. native swiftui, iphone and ipad, built on |
| 7 | sourcehut's graphql apis. stores your personal access token in the | 7 | sourcehut's graphql apis. |
| 8 | ios keychain. | 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 | * does | 14 | * does |
| 11 | - home dashboard: assigned tickets, recent builds, projects | 15 | ** repos |
| 12 | - git and mercurial repo browsing | 16 | - git and mercurial repo browsing |
| 13 | - repo details: readme, refs, commits, diffs, files, artifacts, | 17 | - repo details: readme, refs, commits, diffs, files, artifacts, |
| 14 | settings | 18 | settings, acls, deploy keys |
| 15 | - artifact upload and deletion on release tags | 19 | - artifact upload and deletion on release tags |
| 20 | |||
| 21 | ** tickets and builds | ||
| 16 | - trackers and tickets: browse, create, edit, delete, subscribe | 22 | - trackers and tickets: browse, create, edit, delete, subscribe |
| 17 | - builds: browse, detail, submit | 23 | - tracker management: settings, acls, labels |
| 18 | - inbox and mailing list reading | 24 | - builds: browse, detail, logs, submit, retry, cancel, resubmit |
| 25 | |||
| 26 | |||
| 27 | - inbox and mailing list reading, with read and unread state | ||
| 19 | - patchset review: cover letters, per-patch diffs, checks, version | 28 | - patchset review: cover letters, per-patch diffs, checks, version |
| 20 | chains, status changes | 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 | - pastes: browse, create, detail | 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 | management, audit log | 41 | management, audit log |
| 25 | - email preferences for todo.sr.ht and lists.sr.ht | 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 | * requires | 59 | * requires |
| 31 | xcode with a current ios sdk, a simulator or device, a sourcehut | 60 | xcode with a current ios sdk, a simulator or device on ios 17.6 or |
| 32 | account, and a personal access token. | 61 | later, a sourcehut account, and a personal access token. |
| 33 | 62 | ||
| 34 | * build | 63 | * build |
| 35 | #+begin_src sh | 64 | #+begin_src sh |
| 36 | git clone https://github.com/krazywarez/hutch | 65 | git clone https://gitbay.org/krz/hutch |
| 37 | #+end_src | 66 | #+end_src |
| 38 | 67 | ||
| 39 | open in xcode, build and run. on first launch paste a token. create | 68 | open =Hutch.xcodeproj= in xcode, build and run. on first launch paste a |
| 40 | one at https://meta.sr.ht/oauth2/personal-token. | 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 | 71 | the token is validated against meta.sr.ht before saving and stored in |
| 43 | in the keychain. Reset App Data clears the token, caches, cookies, | 72 | the keychain. Reset App Data clears the token, caches, cookies, and |
| 44 | and local web data. | 73 | local web data. |
| 45 | 74 | ||
| 46 | * develop | 75 | * develop |
| 47 | xcode app with tests under HutchTests. run the test plan in | 76 | tests live under =HutchTests=. =HutchTests.xctestplan= is the default |
| 48 | HutchTests.xctestplan. | 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 | * mirrors | 89 | * mirrors |
| 51 | #+begin_example | 90 | #+begin_example |
| 52 | github: https://github.com/krazywarez/hutch | 91 | krz.sh: https://gitbay.org/krz/hutch canonical |
| 53 | krz.sh: https://gitbay.org/krz/hutch | 92 | github: https://github.com/krazywarez/hutch push mirror |
| 54 | kept in sync. issues or patches on either. | ||
| 55 | #+end_example | 93 | #+end_example |
| 56 | 94 | ||
| 95 | issues and merge requests go to gitbay. pushes to github are | ||
| 96 | overwritten by the mirror. | ||
| 97 | |||
| 57 | * security | 98 | * security |
| 58 | see SECURITY.txt. | 99 | see SECURITY.md. |
| 59 | 100 | ||
| 60 | * license | 101 | * license |
| 61 | 0bsd. see LICENSE. | 102 | 0bsd. see LICENSE. |
| 62 | 103 | ||
| 63 | * contact | 104 | * contact |
| 64 | - root@krz.sh | 105 | - root@krz.sh |
| 106 | - https://krz.sh/apps/hutch/ | ||