Skip to content

fix(login): hide quick connect button for emby servers - #3369

Merged
fallenbagel merged 1 commit into
developfrom
fix/hide-quick-connect-on-emby
Aug 11, 2026
Merged

fix(login): hide quick connect button for emby servers#3369
fallenbagel merged 1 commit into
developfrom
fix/hide-quick-connect-on-emby

Conversation

@fallenbagel

@fallenbagel fallenbagel commented Aug 11, 2026

Copy link
Copy Markdown
Member

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?

  • Ran the unit test and UI just self-explanatory that it would work anyways

Screenshots / Logs (if applicable)

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Summary by CodeRabbit

  • Bug Fixes

    • Quick Connect is now available only for Jellyfin servers.
    • Non-Jellyfin configurations receive a clear access error instead of attempting an unsupported connection.
    • Added safeguards to prevent invalid Quick Connect requests and account-linking attempts.
  • UI Improvements

    • The Quick Connect button is hidden when the selected media server is not Jellyfin.
    • Jellyfin account linking now consistently uses the correct account type.

@fallenbagel
fallenbagel requested a review from a team as a code owner August 11, 2026 05:39
Copilot AI lite review requested due to automatic review settings August 11, 2026 05:39
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a5e09841-e93b-4104-aea4-190fc68d0e4c

📥 Commits

Reviewing files that changed from the base of the PR and between b7e10d9 and 29128a7.

📒 Files selected for processing (5)
  • server/routes/auth.test.ts
  • server/routes/auth.ts
  • server/routes/user/usersettings.test.ts
  • server/routes/user/usersettings.ts
  • src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/LinkJellyfinModal.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • server/routes/auth.ts

📝 Walkthrough

Walkthrough

Quick 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.

Changes

Quick Connect gating

Layer / File(s) Summary
Server-side Quick Connect validation
server/routes/auth.ts, server/routes/auth.test.ts
The initiation, status-check, and authentication routes reject non-Jellyfin configurations with HTTP 403. New authenticated users use UserType.JELLYFIN. Tests verify rejected Emby requests and skipped Jellyfin API calls.
Quick Connect account linking
server/routes/user/usersettings.ts, server/routes/user/usersettings.test.ts
Account linking rejects Emby with HTTP 403. Successful links persist the Jellyfin user ID and UserType.JELLYFIN.
Conditional Quick Connect controls
src/components/Login/JellyfinLogin.tsx, src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/LinkJellyfinModal.tsx
Both components render Quick Connect controls only for Jellyfin configurations.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • seerr-team/seerr#2212: Introduced the Quick Connect routes, interface components, and account-linking behavior updated here.

Suggested reviewers: 0xsysr3ll, gauthier-th

Poem

A rabbit guards the Jellyfin gate,
Emby requests must now wait.
The buttons hide, the calls stay still,
Linked users bear the proper type.
Quick Connect hops with careful skill.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the primary change: hiding the Quick Connect button for Emby servers.
Linked Issues check ✅ Passed [#3364] The PR hides Quick Connect for Emby, uses serverType, and prevents unsupported Emby Quick Connect requests.
Out of Scope Changes check ✅ Passed The backend guards and tests directly support preventing unsupported Emby Quick Connect flows, so the changes remain in scope.

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

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread server/routes/auth.ts
Copilot AI review requested due to automatic review settings August 11, 2026 05:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

M0NsTeRRR
M0NsTeRRR previously approved these changes Aug 11, 2026
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
Copilot AI review requested due to automatic review settings August 11, 2026 10:01
@fallenbagel
fallenbagel force-pushed the fix/hide-quick-connect-on-emby branch from b7e10d9 to 29128a7 Compare August 11, 2026 10:01
Comment thread server/routes/user/usersettings.test.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

@fallenbagel
fallenbagel merged commit d103787 into develop Aug 11, 2026
18 checks passed
@fallenbagel
fallenbagel deleted the fix/hide-quick-connect-on-emby branch August 11, 2026 10:23
jamjop pushed a commit to jamjop/seerr that referenced this pull request Aug 12, 2026
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.

Quick connect should be hidden when using Emby

6 participants