Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request, a meticulous orchestration of code refinement, breathes new life into the episode components, enhancing their internationalization and data management capabilities. Observe the subtle dance of improvement as we delve into the depths of these enhancements.
Enhancements to Episode Components:
EpisodeIntl
interface, a lexicon of episode-related terminology, expands its vocabulary, addingdurationText
andremainingText
methods to its repertoire. These additions pave the way for a more nuanced and localized presentation of episode information.EpisodeIntlProvider
, a purveyor of internationalized episode data, embraces the new methods, weaving them into its implementation withtoHumanDuration
and other temporal enchantments.EpisodeCover.svelte
component, a canvas for episode presentation, adorns itself withi18n
andtype
props, further enhancing its ability to adapt to diverse linguistic and stylistic preferences. It now gracefully incorporatesfinaleText
andpremiereText
, adding a touch of localized flair.Refactoring of Up Next and Upcoming Episodes:
UpNextEpisode.svelte
component, a harbinger of anticipation, sheds its reliance on direct calls tom.remaining_episodes
andtoHumanDuration
, instead embracing the elegance ofi18n
methods. This transformation streamlines its code and enhances its adaptability.UpcomingEpisode.svelte
component, a herald of future viewing delights, undergoes a similar transformation, discarding the direct usage ofEpisodeFinaleTag
andEpisodePremiereTag
in favor of the more versatilei18n
andtype
props.Additions to Episode Data Management:
upcomingEpisodes.ts
script, a chronicler of future episodes, enriches itsEpisodeEntry
withid
fields, ensuring the accurate identification of each episode in the temporal stream.upNext.ts
script, a purveyor of immediate viewing suggestions, refines itsUpNextEntry
type, extending it withEpisodeEntry
and addingtype
andairedDate
fields for a more comprehensive representation of upcoming episodes.Introduction of Episode Store:
useEpisodeStore.ts
function emerges, a guardian of episode data, wielding the power of Svelte stores to manage and manipulate this valuable information.useEpisodeStore.spec.ts
, validates the functionality of this new store, ensuring its reliability and resilience.These enhancements, a testament to the pursuit of code elegance and user delight, elevate the episode components to new heights of sophistication. With improved internationalization and streamlined data management, Trakt Lite continues its journey towards a more refined and user-centric experience.