Commit 71d8bcdadd
Verified · cmc ci/accessibility: success
Layout: unified · split
README.org +67 −25
| @@ -1,62 +1,104 @@ | |||
| 1 | #+title: hutch | 1 | #+title: hutch |
| 2 | 2 | ||
| 3 | * what | 3 | * what |
| 4 | ios client for sourcehut. native swiftui, iphone and ipad. uses | 4 | ios client for sourcehut. native swiftui, iphone and ipad, built on |
| 5 | sourcehut's graphql apis. stores your personal access token in the | 5 | sourcehut's graphql apis. |
| 6 | ios keychain. | 6 | |
| 7 | several accounts can be signed in at once. each keeps its own personal | ||
| 8 | access token in the ios keychain and its own caches and preferences. | ||
| 9 | read-only api responses are cached on disk per account, so most screens | ||
| 10 | open without a round trip. | ||
| 7 | 11 | ||
| 8 | * does | 12 | * does |
| 9 | - home dashboard: assigned tickets, recent builds, projects | 13 | ** repos |
| 10 | - git and mercurial repo browsing | 14 | - git and mercurial repo browsing |
| 11 | - repo details: readme, refs, commits, diffs, files, artifacts, | 15 | - repo details: readme, refs, commits, diffs, files, artifacts, |
| 12 | settings | 16 | settings, acls, deploy keys |
| 13 | - artifact upload and deletion on release tags | 17 | - artifact upload and deletion on release tags |
| 18 | |||
| 19 | ** tickets and builds | ||
| 14 | - trackers and tickets: browse, create, edit, delete, subscribe | 20 | - trackers and tickets: browse, create, edit, delete, subscribe |
| 15 | - builds: browse, detail, submit | 21 | - tracker management: settings, acls, labels |
| 16 | - inbox and mailing list reading | 22 | - builds: browse, detail, logs, submit, retry, cancel, resubmit |
| 23 | |||
| 24 | |||
| 25 | - inbox and mailing list reading, with read and unread state | ||
| 17 | - patchset review: cover letters, per-patch diffs, checks, version | 26 | - patchset review: cover letters, per-patch diffs, checks, version |
| 18 | chains, status changes | 27 | chains, status changes |
| 19 | - mailing list create, settings, delete | 28 | - mailing lists: create, subscribe, settings, delete |
| 29 | |||
| 30 | ** the rest | ||
| 31 | - home dashboard and work queue: what is assigned, unread or failing, | ||
| 32 | plus pinned projects and repos | ||
| 33 | - projects: public discovery, create, edit, link and unlink resources | ||
| 34 | - lookup: any user's profile, repos, trackers, contribution graph | ||
| 20 | - pastes: browse, create, detail | 35 | - pastes: browse, create, detail |
| 21 | - profile and account settings: ssh keys, pgp keys, token | 36 | - man.sr.ht browser over a bundled catalog, synced weekly by ci |
| 37 | - status.sr.ht summary | ||
| 38 | - profile and account settings: ssh keys, pgp keys, avatar, token | ||
| 22 | management, audit log | 39 | management, audit log |
| 23 | - email preferences for todo.sr.ht and lists.sr.ht | 40 | - email preferences for todo.sr.ht and lists.sr.ht |
| 24 | - deep links for repos, tickets, build jobs | ||
| 25 | 41 | ||
| 26 | some sr.ht services are still browser-only and open in safari. | 42 | ** system integration |
| 43 | - widgets: contribution graph, needs attention, system status | ||
| 44 | - app intents for shortcuts and spotlight: work queue, recent | ||
| 45 | activity, failed builds, assigned tickets, system status, pinned | ||
| 46 | resources, search | ||
| 47 | - =hutch://= deep links for repos, tickets, builds, lists, profiles, | ||
| 48 | projects, status and search | ||
| 49 | - safari web extension that offers to open a supported sr.ht page in | ||
| 50 | the app | ||
| 51 | - themes including amoled, compact density, optional swipe actions | ||
| 52 | |||
| 53 | some sr.ht services are still browser-only and open in safari. see | ||
| 54 | SCOPE.md for what is deliberately left out and why, and ROADMAP.md for | ||
| 55 | what is planned. | ||
| 27 | 56 | ||
| 28 | * requires | 57 | * requires |
| 29 | xcode with a current ios sdk, a simulator or device, a sourcehut | 58 | xcode with a current ios sdk, a simulator or device on ios 17.6 or |
| 30 | account, and a personal access token. | 59 | later, a sourcehut account, and a personal access token. |
| 31 | 60 | ||
| 32 | * build | 61 | * build |
| 33 | #+begin_src sh | 62 | #+begin_src sh |
| 34 | git clone https://github.com/krazywarez/hutch | 63 | git clone https://gitbay.org/krz/hutch |
| 35 | #+end_src | 64 | #+end_src |
| 36 | 65 | ||
| 37 | open in xcode, build and run. on first launch paste a token. create | 66 | open =Hutch.xcodeproj= in xcode, build and run. on first launch paste a |
| 38 | one at https://meta.sr.ht/oauth2/personal-token. | 67 | token. create one at https://meta.sr.ht/oauth2/personal-token. |
| 39 | 68 | ||
| 40 | the token is validated against meta.sr.ht before saving and stored | 69 | the token is validated against meta.sr.ht before saving and stored in |
| 41 | in the keychain. Reset App Data clears the token, caches, cookies, | 70 | the keychain. Reset App Data clears the token, caches, cookies, and |
| 42 | and local web data. | 71 | local web data. |
| 43 | 72 | ||
| 44 | * develop | 73 | * develop |
| 45 | xcode app with tests under HutchTests. run the test plan in | 74 | tests live under =HutchTests=. =HutchTests.xctestplan= is the default |
| 46 | HutchTests.xctestplan. | 75 | plan for the =Hutch= scheme, so =xcodebuild test -scheme Hutch= runs |
| 76 | it. | ||
| 77 | |||
| 78 | notes on the internals are in =Docs=: =API_CACHE.md= for the caching | ||
| 79 | layer, =StoreKit.md= for the tip products, =Hutch/API_REFERENCE.md= for | ||
| 80 | sourcehut's endpoints and token scopes, and =Docs/API= for schema dumps | ||
| 81 | (partial — see the api traps in ROADMAP.md before trusting them). | ||
| 82 | |||
| 83 | ci runs on the gitbay instance from =.gitbay/ci.yml=: an accessibility | ||
| 84 | check over the view files and the weekly man-page sync. the xcodebuild | ||
| 85 | test plan is not in ci; there is no macos runner. | ||
| 47 | 86 | ||
| 48 | * mirrors | 87 | * mirrors |
| 49 | #+begin_example | 88 | #+begin_example |
| 50 | github: https://github.com/krazywarez/hutch | 89 | krz.sh: https://gitbay.org/krz/hutch canonical |
| 51 | krz.sh: https://gitbay.org/krz/hutch | 90 | github: https://github.com/krazywarez/hutch push mirror |
| 52 | kept in sync. issues or patches on either. | ||
| 53 | #+end_example | 91 | #+end_example |
| 54 | 92 | ||
| 93 | issues and merge requests go to gitbay. pushes to github are | ||
| 94 | overwritten by the mirror. | ||
| 95 | |||
| 55 | * security | 96 | * security |
| 56 | see SECURITY.txt. | 97 | see SECURITY.md. |
| 57 | 98 | ||
| 58 | * license | 99 | * license |
| 59 | 0bsd. see LICENSE. | 100 | 0bsd. see LICENSE. |
| 60 | 101 | ||
| 61 | * contact | 102 | * contact |
| 62 | - root@krz.sh | 103 | - root@krz.sh |
| 104 | - https://krz.sh/apps/hutch/ | ||