fix(login): hide quick connect button for emby servers - #3369
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughQuick Connect now supports Jellyfin configurations only. Server routes and account linking return HTTP 403 for Emby. The login and linked-account interfaces hide Quick Connect controls for Emby. Tests verify rejection, skipped Jellyfin calls, and successful Jellyfin linking. ChangesQuick Connect gating
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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. Comment |
cc184b5 to
b7e10d9
Compare
There was a problem hiding this comment.
Pull request overview
This PR prevents users from attempting Jellyfin Quick Connect against Emby servers (which don’t support it), eliminating a guaranteed error path on the login screen and adding a server-side safeguard.
Changes:
- Hide the Quick Connect button in the Jellyfin login UI unless the configured server type is Jellyfin.
- Add a server-side 403 guard on Quick Connect initiation when the media server type is not Jellyfin.
- Add a unit test verifying the 403 behavior when configured for Emby.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/components/Login/JellyfinLogin.tsx | Conditionally renders the Quick Connect button only for Jellyfin servers. |
| server/routes/auth.ts | Rejects Quick Connect initiation requests unless Jellyfin is the configured server type. |
| server/routes/auth.test.ts | Adds test coverage for the new 403 behavior when media server type is Emby. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Quick Connect isn't supported by Emby, so the button was gated to only render for Jellyfin, matching what the backend can actually service. fix #3364
b7e10d9 to
29128a7
Compare
Description
The Quick Connect button was shown on the login screen for any Jellyfin-family server, but Emby doesn't support Quick Connect, so clicking it there always failed with an error. This hides the button when the configured server is Emby, showing it only for Jellyfin.
How Has This Been Tested?
Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit
Bug Fixes
UI Improvements