veza/apps/web/src/features
senke 698859cc52 feat(backend,web): surface RTMP ingest health on the Go Live page
Fifth item of the v1.0.6 backlog. "Go Live" was silent when the
nginx-rtmp profile wasn't up — an artist could copy the RTMP URL +
stream key, fire up OBS, hit "Start Streaming" and broadcast into the
void with no in-UI signal that the ingest wasn't listening. The audit
flagged this 🟡 ("livestream sans feedback UI si nginx-rtmp down").

Backend (`GET /api/v1/live/health`)
  * `LiveHealthHandler` TCP-dials `NGINX_RTMP_ADDR` (default
    `localhost:1935`) with a 2s timeout. Reports `rtmp_reachable`,
    `rtmp_addr`, a UI-safe `error` string (no raw dial target in the
    body — avoids leaking internal hostnames to the browser), and
    `last_check_at`.
  * 15s TTL cache protected by a mutex so a burst of page loads can't
    hammer the ingest. First call dials; subsequent calls within TTL
    serve the cached verdict.
  * Response ships `Cache-Control: private, max-age=15` so browsers
    piggy-back the same quarter-minute window.
  * When the dial fails the handler emits a WARN log so an operator
    watching backend logs sees the outage before a user does.
  * Public endpoint — no auth. The "RTMP is up / down" signal has no
    sensitive payload and is useful pre-login too.

Frontend
  * `useLiveHealth()` hook: react-query with 15s stale time, 1 retry,
    then falls back to an optimistic `{ rtmpReachable: true }` — we'd
    rather miss a banner than flash a false negative during a transient
    blip on the health endpoint itself.
  * `LiveRtmpHealthBanner`: amber, non-blocking banner with a Retry
    button that invalidates the health query. Copy explicitly tells the
    artist their stream key is still valid but broadcasting now won't
    reach anyone.
  * `GoLivePage` wraps `GoLiveView` in a vertical stack with the banner
    above — the view itself stays unchanged (the key + instructions
    remain readable even when the ingest is down).

Tests
  * 3 Go tests: live listener reports reachable + Cache-Control header;
    dead address reports unreachable + UI-safe error (asserts no
    `127.0.0.1` leak); TTL cache survives listener teardown within
    window.
  * 3 Vitest tests: banner renders nothing when reachable; banner
    visible + Retry enabled when unreachable; Retry invalidates the
    right query key.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-16 23:52:36 +02:00
..
admin feat(v0.11.3): F421-F425 frontend admin platform dashboard and routes 2026-03-10 18:20:27 +01:00
analytics fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
auth fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
chat fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
checkout fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
cloud fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
dashboard fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
developer/pages refactor(audit-2.1,2.6): unify views and pages to features/*/pages pattern 2026-02-15 14:30:40 +01:00
discover/pages feat(web): update all features, stories, e2e tests, and auth interceptor 2026-03-31 19:16:36 +02:00
distribution/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
education/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
error/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
feed fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
inventory fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
landing/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
library fix(backend,web): restore audio playback via /stream fallback 2026-04-16 14:52:26 +02:00
live feat(backend,web): surface RTMP ingest health on the Go Live page 2026-04-16 23:52:36 +02:00
marketplace fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
notifications fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
player fix(backend,web): restore audio playback via /stream fallback 2026-04-16 14:52:26 +02:00
playlists fix(backend,web): restore audio playback via /stream fallback 2026-04-16 14:52:26 +02:00
presence fix: stabilize frontend — 98 TS errors to 0, align API endpoints, optimize bundle 2026-03-24 21:18:49 +01:00
profile fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
prototype fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
purchases fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
roles fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
search fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
seller/pages refactor(audit-2.1,2.6): unify views and pages to features/*/pages pattern 2026-02-15 14:30:40 +01:00
sessions/api release(v0.903): Vault - ORDER BY whitelist, rate limiter, VERSION sync, chat-server cleanup, Go 1.24 2026-02-27 09:43:25 +01:00
settings feat(backend,web): self-service creator role upgrade via /settings 2026-04-16 18:35:07 +02:00
social/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
streaming fix(backend,web): restore audio playback via /stream fallback 2026-04-16 14:52:26 +02:00
subscription/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
support/pages fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00
tracks fix(backend,web): restore audio playback via /stream fallback 2026-04-16 14:52:26 +02:00
upload feat(backend,web): single source of truth for upload-size limits 2026-04-16 19:37:37 +02:00
user/components fix: stabilize builds, tests, and lint across all stacks 2026-04-05 16:48:07 +02:00