Skip to content

Conversation

@sam-shift72
Copy link
Contributor

@sam-shift72 sam-shift72 commented Dec 2, 2025

Adds s72-playback-progress to meta items. This is intended for SVOD / content creator sites.

I slightly tweaked the line-height of the availability label so that there's a little more room for the progress bar. I think it looks ok with a little more space and hopefully shouldn't cause layout issues cos it's absolute positioned anyway.

If it causes problems we could move the lineheight to a css var so that it's easier to customize it when this config is enabled?

image
  • Has this been discussed with Louis?

Designs:

  • image

Edge cases/Caveats/Known issues

  • TV seasons don't have progress (but, that seems like it would be cool to add)

Config settings/Toggles required for the feature to work

  • media_item_show_playback_progress = true

Checklist

  • CI tests are passing Github actions (inc. linting)
  • Key areas of the feature outlined for context and testing
  • If there are designs for this work are they noted here and in the ADO card
  • Design review
  • Have checked this at multiple screen resolutions and range of browsers
  • Moved ADO card to Dev/done, checked link to Github, tagged "Review"
  • Updated changelog (if applicable)
  • I promise to document any new feature toggles/configurations in the appropriate documentation

@sam-shift72 sam-shift72 requested a review from l0ud0gg December 2, 2025 02:20
<s72-userwishlist-button data-slug="{{item.Slug}}" class="btn-wishlist"></s72-userwishlist-button>
</div>

{{if config("media_item_show_playback_progress") == "true"}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Figured we already had two configs for media_item_... that affect how this stuff gets displayed so I may as well match that naming.

Copy link
Contributor

@l0ud0gg l0ud0gg left a comment

Choose a reason for hiding this comment

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

LGTM. will test after merge


// Playback progress bar shown on meta item and sub-items
--playback-progress-bar-height: 3px;
--playback-progress-bar-color: var(--secondary);
Copy link
Contributor

Choose a reason for hiding this comment

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

secondary color is the button hover color and usually just a ligher version of their brand colour. might make more sense to use the primary but will see how it looks in practice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was what the existing core-template styles were doing (for the tv sub-item styling). Switching it to the primary accent colour might be fine though. I figured making it a variable meant it'd be much easier to customise in shared template or the theming ui if needed.

@l0ud0gg l0ud0gg merged commit 090f87b into develop Dec 3, 2025
1 check passed
@l0ud0gg l0ud0gg deleted the add-playback-progresses branch December 3, 2025 02:28
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.

3 participants