feat: Trafero v0.2.0 - Tdarr v2 native Android client with slow-connection resilience

Full client for the Tdarr /api/v2 JSON API (jobs, library, nodes, stats, logs, settings, flows, multi-server switcher) plus v0.2.0 resilience: per-server timeout + slow-connection mode, retry-with-backoff on read polls, last-good-data + reconnecting chip, 60s poll backoff after repeated failures, and keep-alive eviction on app resume.

Includes GPL-3.0 licensing (LICENSE/NOTICE), README, CONTRIBUTING, PREVIOUS_HISTORY, issue/PR templates, CI release-notes script, keystore docs and the vendored OpenAPI 2.0 spec.
This commit is contained in:
nick committed 2026-09-21 17:46:29 +12:00
commit 312858e8f6
50 files changed
+4446

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# Trafero — Previous Release History
Reference archive of Trafero's user-facing release history.
Current downloads ship **with their own notes**: every release on the [Releases page](https://git.trevena.info/nick/Trafero/releases) carries its version's changelog — rendered in the release description and also attached beside the APKs as `Trafero-<version>-changes.md`. The CI generates both from the matching section below via `scripts/ci/release-notes.py` at tag-build time.
**Adding a release:** append a `## v<VERSION> — <DATE>` section at the top of this file. Newest first; never delete or reorder older sections — the CI must find a section for whatever tag it builds. If a tag has no section, the release falls back to a plain "Release <tag>" description.
---
## v0.2.0 — 2026-09-21
> **⚠️ Reinstall required for phone installs of the debug build.** This is the first Trafero release built and signed by CI. Release APKs are signed with the persistent CI keystore, which is a **different signing key** from locally-built debug APKs (such as the v0.1.1 debug install most testers have). Android refuses to install over a different signature — uninstall the old app first, then install either APK from this release. From v0.2.0 onwards, debug↔release stay separate apps but release→release upgrades are normal in-place updates.
- **Slow-connection resilience.** Tdarr servers reached over VPN, Wi-Fi repeaters or powerline adapters often stall mid-request; Trafero now rides those out instead of showing a dead-end "Connection timed out" banner.
- **Per-server timeout settings.** The server editor now exposes a connect-timeout field (default 20 s; read timeout scales ×4.5 to 90 s) plus a **"Slow connection"** switch that doubles every timeout for high-latency links. Timeouts are saved per server profile.
- **Automatic retry for read-style calls.** Polling and screen-load requests retry up to two times with 2 s / 5 s backoff on network failures only. Actions you trigger yourself (cancel job, pause node, approve transcode, scans) are never silently repeated.
- **"reconnecting…" chip instead of error walls.** When a poll fails transiently while the screen already shows data, the last good data stays on screen with a slim reconnecting indicator; the full error banner now only appears when nothing has loaded, or when the problem is authentication or a server error (these are now clearly distinguished).
- **Nerfed failure storms.** After three consecutive poll failures a screen backs off to one retry per minute until the server answers again; returning to the foreground (or switching tabs) retries immediately and evicts stale keep-alive sockets so the next request opens a fresh connection.
## v0.1.1 — 2026-09-21
- **First public build.** Native Kotlin / Jetpack Compose (Material 3) client for the Tdarr v2.2x+ `/api/v2` JSON API: connection wizard with multi-server switcher (no-auth / API key / login, self-signed TLS support), running workers with progress/fps/ETA and cancel, staged queue approve/reject, job history and error stacks, library search with per-library filter, sort and file detail sheets (ffprobe streams, plugin output, re-check), node pause/resume with worker limits and kill, server stats with transcode/health donuts and codec mix, live server log, global settings, library scans and a read-only flow-plugin catalog.
- **Fixed:** first (onboarding/server) screen rendered on the light platform window background — now dark and readable everywhere; cold-start white flash gone (DayNight window theme + Compose Surface base layer).
- **Fixed:** "Connection timed out" after the app was backgrounded — polling is now lifecycle-aware (pauses in background, refetches instantly on resume) and OkHttp keep-alive is 30 s so stale LAN sockets are evicted.
- **Fixed:** Stats donut rendered oversized and crushed its legend.
- Library cards no longer show a literal "none" plugin line.