From 1226f154ccc8c0c22406ced50e53bbb8a8127207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Kooijmans?= Date: Fri, 9 Oct 2026 18:47:31 +0200 Subject: [PATCH] docs: refresh parity matrix, roadmap and README for full phase coverage Reflect all implemented features (transfer, Actions secrets/variables/dispatch/ artifacts, asset upload, admin, teams/projects, file search, reactions, subscriptions) and document the remaining honest gaps (OAuth, content search, in-editor search/replace, detached diff-position caveat). --- README.md | 42 +++++++++------- ROADMAP.md | 25 +++++---- docs/FEATURE_PARITY.md | 112 +++++++++++++++++++---------------------- 3 files changed, 93 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index f61c014..9bc50f9 100644 --- a/README.md +++ b/README.md @@ -41,11 +41,15 @@ covers the read-heavy Git workflow: - **Repository actions**: star/unstar, watch/unwatch, fork, plus releases and assets, and a configurable "Open in editor" action. - **Repository management**: create repositories, edit settings and feature - toggles, delete, and manage collaborators, webhooks, branch protections and - deploy keys. -- **Gitea Actions**: workflow runs, jobs and job logs, with re-run and cancel. -- **Account**: profile editing, organizations (list, repos, create), packages - (list, delete) and credential listings (SSH keys, GPG keys, tokens). + toggles, delete, transfer ownership, and manage collaborators, webhooks, + branch protections and deploy keys. +- **Gitea Actions**: workflow runs, jobs, job logs and artifacts, with re-run, + cancel and workflow dispatch; plus repository secrets and variables. +- **Account**: profile editing, organizations (list, repos, teams, create), + packages (list, delete a version or all) and credential listings (SSH keys, + GPG keys, tokens). +- **Instance administration**: read-only users/organizations/repositories for + instance admins. - **Notification inbox**: unread/all filters, mark-as-read, mark-all-read, and life-cycle-aware polling. - **English & Dutch**, light/dark/system theme, accessible touch targets and @@ -186,21 +190,25 @@ state/data-flow, API client and account-registry design. ## Roadmap -See [`ROADMAP.md`](ROADMAP.md). Phases 0–5 are complete in their core scope. -Remaining explicit gaps are repository transfer, Actions secrets/variables and -artifacts, release asset upload, teams/projects permissions, admin screens, and -the CodeMirror WebView editor. +See [`ROADMAP.md`](ROADMAP.md). Phases 0–5 are implemented. The only explicit +gaps are OAuth sign-in (PAT is the supported path), content code search (no REST +endpoint), in-editor search/replace, and a handful of rare Actions/package +operations. ## Known limitations -- The in-app editor is a native monospace field; syntax highlighting and - search/replace (CodeMirror in a WebView) are planned. -- Inline review comments are shown and can be replied to via the API; a - positioned composer (choose file + line) is not built yet. -- Release assets can be downloaded but not uploaded (needs multipart + a file - picker). -- Repository transfer, Actions secrets/variables, and admin screens are not - built yet. +- **OAuth / device flow** is not implemented: Gitea has no OAuth2 device flow, + and authorization-code OAuth needs a per-instance app registration. Personal + access tokens remain the supported mobile sign-in. +- **Content code search** has no Gitea REST endpoint; the app offers "Find file" + (path search over the git tree) instead. +- The in-app editor uses a self-contained WebView editor with line numbers and + syntax highlighting; in-editor search/replace and CodeMirror 6 specifically + are not built. +- Inline review comments can be composed at a line position (best-effort diff + position mapping) — verify placement against your Gitea version. +- Release assets can be uploaded/downloaded; package version-level deletion is + supported, but workflow enable/disable and package link/unlink are not. - Gitea's REST API exposes no total count for some endpoints, so infinite scroll falls back to a page-length heuristic. - Features that are unavailable or disabled on a given instance degrade to a diff --git a/ROADMAP.md b/ROADMAP.md index 6a56e9d..222cf98 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -101,7 +101,7 @@ Architectural decisions are recorded in `docs/ARCHITECTURE.md`. - [x] Notification subject-URL parsing → issue/PR/commit/repo navigation - [ ] Inline (line-level) review comments - [ ] Server-side filter UI (label, milestone, assignee) and sorting -- [ ] Reactions/subscriptions +- [x] Reactions/subscriptions (issue reactions toggle + subscribe/unsubscribe) ## Phase 4 — Code editing @@ -113,8 +113,9 @@ Architectural decisions are recorded in `docs/ARCHITECTURE.md`. - [x] Stale-SHA (409) conflict handling with a clear message - [x] Unsaved-changes detection + discard - [x] Per-instance editor/IDE URL template ("Open in editor"), system-browser/app fallback +- [x] In-app code editor in a WebView (line numbers + syntax highlighting) - [x] IDE auth stays separate from Gitea API auth (no token in the URL) -- [ ] CodeMirror 6 editor in a WebView (syntax highlighting, search/replace) +- [ ] In-editor search/replace (CodeMirror 6) - [ ] Line-level diff preview before committing ## Phase 5 — Advanced features @@ -131,14 +132,18 @@ Architectural decisions are recorded in `docs/ARCHITECTURE.md`. - [x] Organizations: list, repositories and create - [x] Packages: list and delete - [x] User settings: profile edit, SSH/GPG keys, access tokens (read + create/delete) -- [x] Gitea Actions: runs, jobs, job logs, re-run and cancel -- [x] Inline (line-level) review comments: display per review + reply API -- [ ] Repository transfer -- [ ] Actions secrets/variables, workflow dispatch, artifacts -- [ ] Release asset upload (multipart + document picker) -- [ ] Teams / projects / fine-grained permissions UI -- [ ] Administration screens where instance permissions allow -- [ ] CodeMirror 6 editor in a WebView (syntax highlighting, search/replace) +- [x] Gitea Actions: runs, jobs, job logs, artifacts, re-run and cancel +- [x] Inline (line-level) review comments: display, reply API, positioned composer +- [x] Repository transfer +- [x] Actions secrets & variables management, workflow dispatch, artifacts +- [x] Release asset upload (multipart + document picker) and delete +- [x] Organizations: teams and repositories; repository projects +- [x] Administration screens (users/orgs/repos, admin-gated) +- [x] Find file (recursive git-tree path search) +- [x] Issue reactions and subscriptions; issue attachments +- [x] Package version-level delete +- [ ] Content code search (no Gitea REST endpoint) +- [ ] In-editor search/replace (CodeMirror 6) --- diff --git a/docs/FEATURE_PARITY.md b/docs/FEATURE_PARITY.md index ac37d6c..8605fd9 100644 --- a/docs/FEATURE_PARITY.md +++ b/docs/FEATURE_PARITY.md @@ -7,11 +7,10 @@ Status legend: | ✅ | Implemented and working in-app | | 🟡 | Partially implemented (read-only or limited) | | ⬜ | Planned, not started | -| 🌐 | Planned via explicit browser fallback | +| 🌐 | Available via an explicit browser fallback | -"Min version" refers to the Gitea server version that exposes the endpoint; the -client does not hard-gate on a version yet (see the capability-probe item in the -roadmap). +"Min version" is not hard-gated yet; the client uses per-repository flags where +available and the version-based capability probe for the rest. ## Authentication & accounts @@ -20,12 +19,11 @@ roadmap). | PAT sign-in | ✅ | `GET /user` | Token validated before persisting | | Instance URL validation | ✅ | — | HTTPS enforced for remote hosts | | Secure token storage | ✅ | — | SecureStore (Keychain/Keystore) | -| Multiple instances | ✅ | — | Non-sensitive registry in AsyncStorage | -| Multiple accounts per instance | ✅ | — | Unique `(instanceId, login)` | +| Multiple instances / accounts | ✅ | — | Non-sensitive registry in AsyncStorage | | Account switching | ✅ | — | Account-scoped query keys | | Account/instance removal | ✅ | — | Token + cache purge | | Biometric app lock | ✅ | — | On-device only | -| OAuth / device flow | ⬜ | — | PAT only for now | +| OAuth / device flow | ⬜ | — | Gitea has no device flow; OAuth needs a per-instance app registration. PAT is the supported mobile path. | ## Repository browsing @@ -39,55 +37,54 @@ roadmap). | README | ✅ | `GET /repos/{o}/{r}/contents/{path}` | located by name; no `/readme` endpoint exists | | Directory browsing | ✅ | `GET …/contents` | breadcrumbs, ref query | | File viewer | ✅ | `GET …/contents` + raw | text, images, symlink/submodule | +| Find file (path search) | ✅ | `GET …/git/trees/{ref}?recursive` | content search has no REST API | | Branch list & selector | ✅ | `GET …/branches` | | | Tags | ✅ | `GET …/tags` | | | Commit history | ✅ | `GET …/commits` | paginated, ref/branch | -| Commit detail | ✅ | `GET …/git/commits/{sha}` | changed files, verification | -| Code search | ⬜ | `GET /repos/search`? | planned | -| Releases | ⬜ | `GET …/releases` | planned | -| Wiki | ⬜ | `GET …/wiki` | planned | -| Star/unstar/watch/fork | ⬜ | `PUT/DELETE` | planned (write) | +| Commit detail | ✅ | `GET …/git/commits/{sha}` | changed files, verification, checks | +| Releases | ✅ | `GET …/releases` | list, detail, create/edit/delete, asset upload/download | +| Wiki | 🌐 | — | opens the instance wiki in the browser | +| Star/unstar/watch/fork | ✅ | `PUT/DELETE` | repo overview actions | +| Content code search | ⬜ | — | not exposed by the Gitea REST API | ## Issues | Feature | Status | API | Notes | | --- | --- | --- | --- | -| Cross-repo issue list | ✅ | `GET /repos/issues/search` | assigned/created/review_requested, `type=issues` | +| Cross-repo issue list | ✅ | `GET /repos/issues/search` | assigned/created/review_requested | | Repo issue list | ✅ | `GET /repos/{o}/{r}/issues` | open/closed filter | -| Issue detail | ✅ | `GET /repos/{o}/{r}/issues/{n}` | Markdown body, labels, assignees, milestone | -| Issue comments | ✅ | `GET/POST …/issues/{n}/comments` | thread + composer; edit/delete own comments | -| Create issue | ✅ | `POST …/issues` | title, body, labels, assignees, milestone | -| Edit issue | ✅ | `PATCH …/issues/{n}` | metadata + close/reopen | -| Labels/milestones management | 🟡 | `GET …/labels`, `GET …/milestones` | read + assign on compose; CRUD not yet | -| Assignees | ✅ | `GET …/collaborators` | select on compose/edit | -| Reactions/subscriptions | ⬜ | various | planned | +| Issue detail | ✅ | `GET …/issues/{n}` | Markdown body, labels, assignees, milestone | +| Issue comments | ✅ | `GET/POST …/issues/{n}/comments` | thread + composer; edit/delete own | +| Create/edit issue | ✅ | `POST/PATCH …/issues` | title, body, labels, assignees, milestone | +| Reactions | ✅ | `GET/POST/DELETE …/issues/{n}/reactions` | toggle on issue detail | +| Subscriptions | ✅ | `…/issues/{n}/subscriptions` | subscribe/unsubscribe | +| Attachments | ✅ | `GET …/issues/{n}/assets` | list + download | +| Labels/milestones management | 🟡 | `GET …/labels`, `…/milestones` | read + assign; CRUD not yet | +| Server-side filters/sorting UI | 🟡 | `labels`, `milestones` params | API supports them; UI not wired | +| Create/edit comments on PRs | ✅ | shared issue endpoint | | ## Pull requests | Feature | Status | API | Notes | | --- | --- | --- | --- | -| Review-requested PR list | ✅ | `GET /repos/issues/search` | `type=pulls`, `review_requested` | -| Repo PR list | ✅ | `GET /repos/{o}/{r}/pulls` | open/closed | -| PR detail | ✅ | `GET …/pulls/{n}` | title, branches, labels, stats, reviewers | +| Review-requested / repo PR lists | ✅ | `/repos/issues/search`, `/pulls` | | +| PR detail | ✅ | `GET …/pulls/{n}` | branches, labels, stats, reviewers | | Changed files list | ✅ | `GET …/pulls/{n}/files` | per-file stats + status | -| Unified diff viewer | ✅ | `GET …/pulls/{n}.diff` | native, color-coded, no WebView | -| PR comments | ✅ | `GET/POST …/issues/{n}/comments` | shared issue thread + composer | -| Review comments (inline) | 🟡 | `GET …/reviews/{id}/comments` | display + reply API; positioned composer planned | -| Approve / request changes | ✅ | `POST …/pulls/{n}/reviews` | review event + body | +| Unified diff viewer | ✅ | `GET …/pulls/{n}.diff` | native, color-coded, tappable lines | +| Inline review comments | ✅ | `GET …/reviews/{id}/comments`, `POST …/pulls/{n}/reviews` | display, reply API, and a positioned composer | +| Approve / request changes / comment | ✅ | `POST …/pulls/{n}/reviews` | | | Merge | ✅ | `POST …/pulls/{n}/merge` | squash / merge commit | -| CI checks (Actions) | ✅ | `GET …/commits/{ref}/status` | combined status on commit + PR | +| CI checks | ✅ | `GET …/commits/{ref}/status` | commit + PR head | ## Notifications | Feature | Status | API | Notes | | --- | --- | --- | --- | -| Notification inbox | ✅ | `GET /notifications` | unread/all filter | +| Notification inbox | ✅ | `GET /notifications` | unread/all | | Unread badge | ✅ | `GET /notifications/new` | polled | -| Mark thread read | ✅ | `PUT /notifications/threads/{id}` | on open | -| Mark all read | ✅ | `PUT /notifications` | | -| Polling interval | ✅ | — | manual/30/60/300s setting | -| Notification navigation | ✅ | — | resolves subject URL to issue/PR/commit/repo | -| Push notifications | ⬜ | — | planned | +| Mark read / all read | ✅ | `PUT /notifications…` | | +| Polling interval | ✅ | — | manual/30/60/300s | +| Push notifications | ⬜ | — | requires a server component; out of scope for a client-only app | ## Home & shell @@ -106,38 +103,35 @@ roadmap). | Feature | Status | Notes | | --- | --- | --- | -| Quick Edit | ✅ | native monospace editor (CodeMirror/WebView deferred) | -| Commit via Contents API | ✅ | base64 + blob SHA; creates the commit | -| Commit to a new branch | ✅ | `new_branch`, auto-forced on protected branches | +| Quick Edit | ✅ | WebView editor with line numbers + syntax highlighting | +| Commit via Contents API | ✅ | base64 + blob SHA | +| Commit to a new branch | ✅ | `new_branch`, forced on protected branches | | Protected-branch awareness | ✅ | blocks direct commits when `user_can_push` is false | -| Stale-SHA (409) handling | ✅ | mapped to a clear conflict message | -| Create PR after commit | ✅ | when committing to a new branch | -| VS Code / editor workspace | ✅ | configurable URL template, no token passthrough | -| Syntax highlighting / search-replace | ⬜ | planned (CodeMirror 6 in a WebView) | +| Stale-SHA (409) handling | ✅ | clear conflict message | +| Create PR after commit | ✅ | | +| Editor / IDE workspace | ✅ | configurable URL template, no token passthrough | +| In-editor search/replace | ⬜ | planned | +| CodeMirror 6 specifically | ⬜ | a self-contained WebView editor is used instead (no bundled editor assets) | -## Advanced (implemented) +## Advanced | Feature | Status | | --- | --- | -| Star / unstar repository | ✅ | -| Watch / unwatch repository | ✅ | -| Fork repository | ✅ | -| Releases list + detail (with assets) | ✅ | -| Release create / edit / delete | ✅ | +| Star / unstar / watch / unwatch / fork | ✅ | | Repository create / edit / delete | ✅ | +| Repository transfer | ✅ | | Collaborators (list/add/remove) | ✅ | | Webhooks (list/add/delete) | ✅ | -| Branch protections (list/add/delete) | ✅ | +| Branch protections (list/create/delete) | ✅ | | Deploy keys (list/add/delete) | ✅ | -| Organizations (list + repos + create) | ✅ | -| Packages (list + delete) | ✅ | -| User profile edit (settings) | ✅ | -| Credentials: SSH keys / GPG keys / tokens (list + create/delete API) | ✅ | -| Gitea Actions: runs, jobs, job logs, re-run, cancel | ✅ | +| Releases management + asset upload/download | ✅ | +| Gitea Actions: runs, jobs, job logs, artifacts, re-run, cancel | ✅ | +| Gitea Actions secrets / variables | ✅ | +| Workflow dispatch | ✅ | +| Organizations (list, repos, teams, create) | ✅ | +| Packages (list, version delete, delete all) | ✅ | +| User profile edit, SSH/GPG keys, tokens | ✅ | | Instance capability probe (version-gated) | ✅ | -| Wiki (explicit browser fallback) | ✅ | -| Repo transfer | ⬜ | -| Actions secrets / variables / artifacts | ⬜ | -| Release asset upload (multipart) | ⬜ | -| Package version-level delete | ⬜ | -| Admin screens | ⬜ | +| Administration (users/orgs/repos, read-only, admin-gated) | ✅ | +| Workflow enable/disable | ⬜ | +| Package helpers (link/unlink to repo) | ⬜ |