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

feat(ui): add episode shorthand to tv details UI (SxxExx) #3086

Merged
merged 1 commit into from
Jan 14, 2023
Merged

feat(ui): add episode shorthand to tv details UI (SxxExx) #3086

merged 1 commit into from
Jan 14, 2023

Conversation

aedelbro
Copy link
Contributor

Description

To provide the user more information concisely when viewing TV Details, this includes a "shorthand" for the episode SxxExx.  In the future, I'd like to add an on hover that shows the absolute episode number.

Screenshot (if UI-related)

As it currently stands:
Screen Shot 2022-10-17 at 5 23 31 PM

With the shorthand badge:
Screen Shot 2022-10-17 at 5 21 49 PM

To-Dos

  • Successful build yarn build
  • Translation keys yarn i18n:extract

References

Here's the discord discussion thread

Potential Issues

While testing a few other TV Shows, sometimes it shows the absolute number. I've so far only found 1 show where this happens, so it might be limited to just it.
When viewing One Piece, it shows the absolute episode number, instead of the episode number for just that season.
Example:
Screen Shot 2022-10-17 at 5 28 33 PM
While it's not the end of the world, it's not desired (I think an on hover for absolute episode number would be best).

Additionally, it's not currently padding the episode or season number. That would require additional information to be returned to the UI, or significantly more logic. I could setup padding on the episode number within the season, but not between seasons.

@danshilm
Copy link
Collaborator

We were actually just talking about this a few days ago. The season number in the badge is redundant, so that's not needed. Just the episode number would be enough. But I'm not sure whether it would be better as just 1. <Episode Title> or in a badge.

As for the absolute episode number being shown, that's an issue for TMDB to deal with as far as I know. There is an absolute order numbering that's available on TMDB, so I'm really not sure why they're using the absolute numbering together with the seasons. Not ideal but well...

@sct
Copy link
Owner

sct commented Oct 18, 2022

Like @danshilm said. I think showing the season number again is redundant. We can keep it simple like 1. Episode Name.

@aedelbro
Copy link
Contributor Author

aedelbro commented Oct 18, 2022

While seasons with only 8-12 episodes, the Sxx is not really needed. However, if a user has multiple seasons open, with 60-80 episodes per season, it could be useful to know where you are in the scroll.

Additionally, if an absolute episode number is implemented later (my thought is on hover of the badge), do you have thoughts on how to implement that with just the number up front?

If we do decide to use just the episode number, I would say having it in text and not the badge would be best. ie 5 - Some episode title

@aedelbro
Copy link
Contributor Author

@sct @danshilm any thoughts on the above?

Or just put the episode number in text up front and call it good?

@sct
Copy link
Owner

sct commented Dec 28, 2022

@sct @danshilm any thoughts on the above?

Or just put the episode number in text up front and call it good?

Sorry for the late reply. I think your argument about the season number being helpful in very long lists is one heck of an edge case but I don't mind it so much.

Looking at this again, I think my least favorite part is that we have a badge both before and after the title. Maybe moving the season/episode number badge next to the date would look better?

e: Or we could consider using different colors for the badge in front. Something feels weird about how its sandwiched in this.

@aedelbro
Copy link
Contributor Author

aedelbro commented Jan 2, 2023

@sct I agree on the sandwich feeling weird. I was really trying to make the badge work, as I'd really like the absolute episode number available in the future, and on hover of the badge feels like a natural way to do it. However, I feel like the episode number should be up front, and the air date info / badges feel like they should at the end.

In the interest of getting this out, I'll revert these commits, and just make the episode number show up front.

I feel like that's the easiest, quickest, least controversial change to get the episode number out, and the absolute number / badge / whatever can be addressed later if it ever comes back up.

@sct
Copy link
Owner

sct commented Jan 3, 2023

@sct I agree on the sandwich feeling weird. I was really trying to make the badge work, as I'd really like the absolute episode number available in the future, and on hover of the badge feels like a natural way to do it. However, I feel like the episode number should be up front, and the air date info / badges feel like they should at the end.

In the interest of getting this out, I'll revert these commits, and just make the episode number show up front.

I feel like that's the easiest, quickest, least controversial change to get the episode number out, and the absolute number / badge / whatever can be addressed later if it ever comes back up.

Sounds good. Let's start with that and see if we can improve afterwards.

@aedelbro
Copy link
Contributor Author

@sct got the simple change made. I just kept it in the same title line for formatting.

ex:
Screen Shot 2023-01-13 at 11 55 58 AM

Copy link
Owner

@sct sct left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@sct sct enabled auto-merge (squash) January 14, 2023 00:59
@sct sct merged commit a672b32 into sct:develop Jan 14, 2023
@sct
Copy link
Owner

sct commented Jan 14, 2023

@all-contributors please add @aedelbro for code

@allcontributors
Copy link
Contributor

@sct

I've put up a pull request to add @aedelbro! 🎉

@sct
Copy link
Owner

sct commented Jan 17, 2023

@holopin-bot @aedelbro add please :)

@holopin-bot
Copy link

holopin-bot bot commented Jan 17, 2023

Congratulations @aedelbro, you just earned a badge! Here it is: https://holopin.io/claim/clczkf4r8119208mmcb2l5qdg

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

@github-actions
Copy link

🎉 This PR is included in version 1.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

lenaxia pushed a commit to lenaxia/overseerr-oidc that referenced this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants