Repository navigation
refactor: use ServerType enum for media server display names - #3564
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
In the future, please check for any open issues first, as someone from the team had already been assigned to this. See #3327 |
|
Thanks for pointing this out. I missed that #3327 was already assigned. I'll check existing issues and assignments before starting future contributions. If the team decides to continue with this PR, Seerr CI and CodeQL are currently waiting for maintainer approval to run. |
fallenbagel
left a comment
There was a problem hiding this comment.
The swaps all look right, but one spot is missing. src/components/UserProfile/UserSettings/UserLinkedAccountsSettings/index.tsx has its own LinkedAccountType enum with the same three values as ServerType, plus name: 'Plex' / 'Jellyfin' / 'Emby' in the linkable list. Those need to use ServerType too.
…r linked accounts settings Co-authored-by: rahul05ranjan <11793455+rahul05ranjan@users.noreply.github.com>
|
Thanks for catching that @fallenbagel — done in 4e8ccf4. The local |
|
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
Resolve conflicts between the ServerType enum refactor and c22c266 (restore 4K label on Emby/Jellyfin play buttons): keep the play4k message fix and apply ServerType enum values to the mediaServerName arguments. Co-authored-by: rahul05ranjan <11793455+rahul05ranjan@users.noreply.github.com>
|
Merged The conflicts were all in Everything else is an additive merge — no force-push, no scope change. CI is green on the merge commit (lint, type-check/build, unit tests, Cypress, CodeQL, i18n). |
gauthier-th
left a comment
There was a problem hiding this comment.
LGTM, but please refrain from replying to us with a LLM.
Description
Adds
PLEXto theServerTypeenum and replaces the hardcoded'Jellyfin'/'Emby'/'Plex'display-name strings across the frontend with the enum, so the media server name is defined in one place and typos can't drift in.This is the follow-up refactor discussed in #3324 (the review comment asked to "stick to the 'Jellyfin' string" for that PR and open a separate one for the enum cleanup).
How Has This Been Tested?
pnpm exec tsc --noEmit(frontend) — passespnpm exec tsc --noEmit --project server/tsconfig.json(server) — passespnpm exec eslinton all changed files — passespnpm build:next— passespnpm build:server— passespnpm i18n:extract— passes (no new keys introduced by this change)The change is a pure string-for-enum substitution; the rendered values are identical (
ServerType.JELLYFIN === 'Jellyfin', etc.), so no visual change is expected.Screenshots / Logs (if applicable)
N/A
Checklist:
pnpm buildpnpm i18n:extractAI Disclosure: I used AI assistance to locate the hardcoded strings and draft the mechanical substitutions, then reviewed each change myself and verified with type-checking, lint, and a full build. The approach (add
PLEXtoServerType, swap literals for the enum) was my own.Summary by CodeRabbit
New Features
Improvements