Files
gitea-native/ROADMAP.md
T
JustZoe101 5e8c9492b3 feat(phase5): star/watch/fork, releases, wiki fallback, capability probe
- endpoints: is-starred (404→false), star/unstar, subscription watch/unwatch,
  fork, releases list/detail
- hooks: useIsStarred/useToggleStar, useSubscription/useToggleWatch,
  useForkRepository, useReleases/useRelease
- repo overview: star/watch/fork actions, Releases + Wiki entries
  (wiki via explicit browser fallback gated by capability probe)
- screens: Releases list, Release detail with downloadable assets
- core/capabilities: version parsing + per-capability minimum versions + tests
- i18n (en/nl); README/ROADMAP/FEATURE_PARITY updated for phases 3-5
2026-10-09 17:34:15 +02:00

156 lines
7.6 KiB
Markdown

# Gitea Native — Roadmap
Unofficial, open-source Gitea client for iOS and Android built with React Native (Expo).
This document is the living implementation plan. It is updated as phases land.
> **Unofficial project.** Gitea Native is not affiliated with, endorsed by, or connected to
> the Gitea project or Codeberg. Gitea is a trademark of its respective owners.
---
## Status overview
| Phase | Scope | Status |
| --- | --- | --- |
| 0 | Project initialization, tooling, docs | ✅ Done |
| 1 | Foundation: design system, auth, multi-account, biometrics | ✅ Done |
| 2 | Core Git experience: home, repos, browsing, commits | ✅ Done |
| 3 | Collaboration: issues, PRs, reviews, notifications | ✅ Done (read + write) |
| 4 | Code editing: Quick Edit, commit flow, editor workspace | ✅ Done (native editor) |
| 5 | Advanced: Actions, packages, orgs, wiki, releases, admin | 🟡 In progress |
Detailed acceptance criteria per phase are in `docs/FEATURE_PARITY.md`.
Architectural decisions are recorded in `docs/ARCHITECTURE.md`.
---
## Phase 0 — Foundation scaffolding
- [x] Initialize Expo (SDK 57) app with TypeScript strict mode
- [x] React Navigation structure (native stack + bottom tabs, typed param lists)
- [x] i18next + expo-localization (English & Dutch, system detection, manual override)
- [x] ESLint + Prettier configuration
- [x] Jest (jest-expo) test setup
- [x] Documentation: README, ARCHITECTURE, SECURITY, FEATURE_PARITY, ROADMAP
## Phase 1 — Foundation
- [x] Centralized, typed design system (tokens, semantic colors, typography, spacing)
- [x] Light/dark/system theme with persisted preference
- [x] Reusable UI kit (Button, Card, Input, Skeleton, EmptyState, ErrorState, …)
- [x] Typed Gitea REST API client (endpoint-focused, generated-style types)
- [x] Centralized error handling + API error normalization
- [x] Instance URL normalization and validation (HTTPS enforcement)
- [x] Personal Access Token authentication flow with server-side validation
- [x] Secure credential storage (Expo SecureStore / Keystore / Keychain)
- [x] Account registry: multiple instances, multiple accounts per instance
- [x] Account switching without re-authentication
- [x] Account removal + cache purge on removal
- [x] Account-scoped TanStack Query keys (no cross-account cache leaks)
- [x] Biometric app lock (Face ID / Touch ID / Android biometrics), configurable
- [x] App-switcher snapshot redaction while locked
- [x] Graceful handling of expired/invalid/revoked tokens (401 → re-auth)
- [x] Unit tests: URL normalization, token storage, account store, query keys, API client
### Phase 1 exit criteria (milestone)
- [x] App launches in Expo development builds (iOS + Android via `expo start`)
- [x] Light and dark mode work
- [x] Connect to a Gitea instance with a PAT
- [x] Credentials persist securely across restarts
- [x] Multiple instances and multiple accounts per instance can be registered
- [x] Account switching works, data isolated per account
- [x] Biometric lock works on supported devices
- [x] TypeScript + ESLint checks pass
- [x] No secrets in logs or non-secure storage
> Device-specific criteria (biometric prompt on real hardware, iOS build) are verified with a
> development build; see "Known limitations" in the README for what was verified where.
## Phase 2 — Core Git experience
- [x] Home dashboard: account header, recent repos, assigned issues, activity, shortcuts
- [x] Repository list: search, sort, visibility filters, star filter
- [x] Starred repositories list
- [x] Repository details (metadata, stars/forks/watches, topics)
- [x] File browser with directory navigation and breadcrumbs
- [x] File viewer (text, image, binary fallback, large-file warning)
- [x] README rendering (Markdown)
- [x] Branch selector (branches + tags)
- [x] Commit history (paginated)
- [x] Commit details with file diffs
- [x] Pull-to-refresh, infinite scroll, skeleton and empty states
- [x] Offline read-only cache for previously loaded content (persister)
## Phase 3 — Collaboration (write paths)
- [x] Issue list: open/closed, cross-repo (assigned/created/review-requested) and per-repo
- [x] Issue search across repositories (`/repos/issues/search`)
- [x] Issue detail: body (Markdown), labels, assignees, milestones, comment count
- [x] Issue comments thread with composer (edit/delete own comments)
- [x] Create/edit issues (title, body, labels, assignees, milestone) + close/reopen
- [x] Pull request list (cross-repo review-requested + per-repo)
- [x] Pull request detail: branches, labels, stats, reviewers, Markdown body
- [x] Changed files list with per-file navigation
- [x] Unified diff viewer (native, color-coded)
- [x] Approve / request changes / comment reviews
- [x] Merge (squash / merge commit)
- [x] CI check statuses from Gitea Actions (commit + PR head)
- [x] Notifications inbox: read/unread, mark read, mark-all-read, unread badge
- [x] Lifecycle-aware notification polling tied to the refresh-interval setting
- [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
## Phase 4 — Code editing
- [x] Quick Edit: in-app editor over the file contents (native, monospace)
- [x] Commit through the Contents API (base64 content + blob SHA)
- [x] Branch selection and **commit to a new branch** (`new_branch`)
- [x] Protected-branch awareness (force a new branch when direct push is blocked)
- [x] Optional "create pull request" right after committing to a new branch
- [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] IDE auth stays separate from Gitea API auth (no token in the URL)
- [ ] CodeMirror 6 editor in a WebView (syntax highlighting, search/replace)
- [ ] Line-level diff preview before committing
## Phase 5 — Advanced features (in progress)
- [x] Star / unstar and watch / unwatch repositories
- [x] Fork a repository
- [x] Releases list and detail with downloadable assets
- [x] Wiki entry with an explicit browser fallback (never silent)
- [x] Instance capability service (version parsing + feature gating) with tests
- [ ] Repository create/edit/delete, settings, collaborators, webhooks, deploy keys
- [ ] Protected-branch management, release management, asset upload
- [ ] Organizations, teams, projects, permissions
- [ ] Gitea Actions: workflows, runs, jobs, logs, artifacts, reruns
- [ ] Package registries
- [ ] User settings: SSH/GPG keys, tokens, profile
- [ ] Administration screens where instance permissions allow
---
## Cross-cutting work (continuous)
- **Performance**: fast cold start, virtualized lists, image caching, no needless refetches,
large-file/diff warnings with safe fallbacks.
- **Accessibility**: 44pt touch targets, VoiceOver/TalkBack labels, dynamic text sizing,
reduced-motion support.
- **Testing**: unit tests for core logic, component tests for key flows, mocked Gitea API
fixtures (never real credentials), integration tests for multi-account behavior.
- **Quality gates**: `npm run typecheck`, `npm run lint`, `npm test` must pass before merge.
- **Docs**: feature parity matrix, security notes, and limitation disclosures kept current.
## Definition of done for any feature
1. Real implementation (no placeholders for auth, storage, or data fetching).
2. Loading, empty, and error states handled.
3. Account-scoped cache keys; no cross-account leakage.
4. Types added/updated; `typecheck` and `lint` pass.
5. Tests for non-trivial business logic.
6. Feature parity matrix updated (API availability, permissions, min Gitea version, status).