Repository navigation
refactor: use ServerType enum for media server display names - #3564
rahul05ranjan wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (18)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds ChangesServerType enum adoption
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Suggested reviewers: Merge Risk: ⚪ Minimal · up to This refactor preserves the displayed server names and their existing selection behavior, so no actionable merge-blocking risk is identified. 🚥 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. A rabbit checks the server names, Comment |
|
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. |
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.