Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Profile Switching (PoC) #6377

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidmurdoch
Copy link
Contributor

Changes

LG's WebOS uses jellyfin-web for it's UI. This is a bit unfortunate because the jellyfin-web's UI/UX hasn't been as optimized for use on a TV. One of the biggest missing features that Android TV has that Web-OS does not is profile switching.

Warning: this code is just a crappy PoC that I hacked together really quickly.

After a user logs in their information and accessToken are stored in localStorage. I believe this is how the Android TV version does it (obviously not in localStorage, but in some other local db).

big issues: Log out isn't handled right now, and there should be some settings toggles to enable/disable the feature.

For testing I just hacked this into the login page, and added some links to the login page to some menus. It's not pretty.

What work needs to be complete to getting something like this merged and shipped? I don't want to spend time polishing the UI/UX without some guidance/specs/requirements from the team.

Assuming you even want this feature in jellyfin-web at all, of course :-)

Issues
Fixes jellyfin/jellyfin-webos#168

@davidmurdoch davidmurdoch requested a review from a team as a code owner December 13, 2024 19:09
@jellyfin-bot
Copy link
Collaborator

jellyfin-bot commented Dec 13, 2024

Cloudflare Pages deployment

Latest commit e24fffd
Status ✅ Deployed!
Preview URL https://6cd7a1e8.jellyfin-web.pages.dev
Type 🔀 Preview

View build logs

@thornbill
Copy link
Member

I converted this to a draft since it is a proof of concept.

Just a heads up, I’m currently pretty busy with life stuff so it might be awhile before I am able to review this, but this is definitely a feature we are interested in supporting. 💜

@davidmurdoch
Copy link
Contributor Author

davidmurdoch commented Dec 14, 2024

No problem. Do you have time to put together a list of requirements, or should I just use my best judgement (by copying much of how Android TV does it)?

Oh, and a TL;DR of the PoC:
I basically just write the user's accessToken to window.localStorage.

Do you foresee any issues doing it this way (I can't think of anything)?

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.

Support multiple users
3 participants