Make recording history reachable from the lobby

ZU
12h ago
+611-8

Summary

  • Expose recordingAvailable in /api/session based on the active recorder.
  • Show Your recordings beside Interview progress only when the session confirms availability, without waiting for saved reports.
  • Add Back to lobby navigation to Replay.
  • Preserve existing recording authorization, consent, and retention behavior.

Tests

  • Browser tests: 3,661 passed, 0 failed.
  • Rust web tests: 231 passed, 0 failed, 2 ignored.
  • ./scripts/test.sh rust passed.
  • Full gate remains blocked by an existing ShellCheck SC2319 warning in scripts/git-post-commit.sh.

Close #773


Summary by cubic

Makes recording history reachable from the lobby and adds a return path from Replay, so recordings aren't buried behind saved-report loading or a direct URL visit.

  • /api/session now reports recordingAvailable only for signed-in sessions with an active recorder; the signed-out response omits the field, keeping the link hidden on deployments that don't record.
  • The lobby shows Your recordings next to Interview progress as soon as the session confirms availability, without waiting for saved reports, and hides the link again on sign-out or session loss.
  • The link is made inert while report deletion or a sign-out is pending, so users can't navigate mid-operation.
  • Replay now has a Back to lobby link, click- and keyboard-reachable even when opened directly.
  • Existing recording authorization, consent, and 24-hour retention behavior is unchanged. Closes #773.