feat: demo mode + demo end-to-end tests

- built-in mock Gitea backend (src/core/demo): repositories, issues, comments,
  reactions, labels/milestones, pulls, files, diff, reviews, inline comments,
  releases, notifications, activity, Actions runs/jobs/logs/artifacts/workflows,
  repo settings, orgs/teams/packages/credentials/admin, and benign writes
- session wires demoFetch for the demo instance; welcome screen 'Try the demo'
- demo E2E (16 tests over the real endpoint layer) + UI render E2E; minimal
  reanimated jest mock; README demo-mode section
This commit is contained in:
JustZoe101 committed 2026-10-09 19:18:41 +02:00
1 parent fbefa0d345
commit 1ee0f95b3f
10 files changed
+943 -5

No files matched your search

+10
View File
@@ -113,6 +113,16 @@ Then press `i` (iOS simulator), `a` (Android emulator) or scan the QR code with
a development build. Use `npx expo start` and open the app on a device/emulator
with a dev build for the full feature set.
## Demo mode
To try the app without a Gitea instance, tap **“Try the demo”** on the welcome
screen. It registers a local demo account whose API requests are served by an
in-app mock backend (`src/core/demo/demo-fetch.ts`) with sample repositories,
issues, pull requests, reviews, releases, notifications, Actions runs and more.
No network access or credentials are used, and every screen works exactly as it
does against a real instance. Remove the demo from **Settings → Accounts** to
leave demo mode.
## Configuration
There is **no server URL or credential in the repository**. Everything is