Skip to content

fix(app): TV sign-in QR code, and a smooth TV app - #394

Merged
dragon-manner merged 1 commit into
mainfrom
fix/tv-perf-qr
Nov 25, 2026
Merged

dragon-manner merged 1 commit into
mainfrom
fix/tv-perf-qr

Conversation

@dragon-manner

Copy link
Copy Markdown
Owner

Fixes from the first real-TV install of #393.

QR code / sign-in code missing. Production names its Auth0 tenant in AUTH0_ISSUER_BASE_URL (required by the token check), not AUTH0_DOMAIN, so POST /tv-link refused every sign-in address (400 authorizeUrl must be this site's Auth0 sign-in address, confirmed against production). tvLink.ts now reads either; tests added.

Lag on the TV. Profiled on the Google TV emulator with the CPU slowed 6× (TV-box class):

before after
running animations on Home 184 0
idle long tasks (10 s) ~77 0
style recalculation (21 presses) 4.6 s 0.8 s
getBoundingClientRect 1.7 s 0.1 s
  • Artwork frames kept .skeleton's shimmer animating behind loaded pictures (181 of them) → stops once the image loads (all platforms), off entirely on TV.
  • Remote navigation only measures controls within a couple of screens; held buttons throttled; focus moves jump instead of gliding; no poster fade and no framer-motion decorative motion on TV.
  • Card focus prefetch waits until focus rests (400 ms); rows don't re-render per scroll frame; scroll memory reads once per frame.

Tested: unit (291 frontend, 444 backend, 15 app), typecheck, lint, emulator profiling before/after.

🤖 Generated with Claude Code

TV sign-in showed no code: production names its Auth0 tenant in
AUTH0_ISSUER_BASE_URL (the token check needs it), not AUTH0_DOMAIN, so
/tv-link refused every sign-in address. It now reads either.

The TV app lagged badly on a real TV box. Profiled on the Google TV
emulator with the CPU slowed 6x:
- Every artwork frame kept its loading shimmer running behind the loaded
  picture: 181 background animations restyled and repainted the page every
  frame, even with nothing happening. The shimmer now stops once the
  picture arrives (all platforms), and a TV never runs it. Idle went from
  ~77 long tasks in 10 s to none; style recalculation from 4.6 s to 0.8 s.
- A remote press measured every control on the page; it now looks closely
  only at those within a couple of screens (getBoundingClientRect 1.7 s ->
  0.1 s). A held-down button is throttled instead of queueing moves.
- Focus moves jump instead of smooth-scrolling (each glide frame cost a
  layout), posters appear without a fade, and framer-motion's decorative
  motion is off on a TV.
- Focusing a card no longer loads its details at once (it waits until
  the focus rests there); rows no longer re-render on every scroll frame;
  the scroll memory reads the position once a frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stream-vault-7u6q Ready Ready Preview Nov 25, 2026 9:53am UTC

@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ffa501b4-9b66-4e2d-84b7-e8d777f5bb57
Commits

Reviewing files that changed from the base of the PR and between eecdcd9 and 3cea56f.

Files selected for processing: 6

  • app/src/App.tsx
  • app/src/app.css
  • app/src/components/media.tsx
  • app/src/tv/tvRemote.ts
  • backend/src/routes/tvLink.test.ts
  • backend/src/routes/tvLink.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@dragon-manner
dragon-manner merged commit 3c154d6 into main Nov 25, 2026
28 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3cea56f1 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant