Skip to content

Hide the duration of lessons that aren't released yet - #618

Merged
simonhamp merged 1 commit into
NativePHP:mainfrom
shrutibalasawebdev:hide-duration-for-unreleased-lessons
Nov 24, 2026
Merged

simonhamp merged 1 commit into
NativePHP:mainfrom
shrutibalasawebdev:hide-duration-for-unreleased-lessons

Conversation

@shrutibalasawebdev

Copy link
Copy Markdown
Contributor

On the course dashboard, a lesson that isn't published yet shows the Coming Soon badge. If a duration has already been added to it, that duration shows up next to the badge as well, even though the video isn't out yet.

Now each lesson row shows either the Coming Soon badge or the duration, never both. This covers the lesson list for course owners, the curriculum outline for non-owners, and the lesson page sidebar, where admins can still see draft lessons.

There's a test for each of the three lists.

A lesson that isn't published yet shows a Coming Soon badge, but if a
duration had already been added, it showed next to the badge as well.
Now a lesson row shows the badge until the lesson is released, and its
duration after that.

This applies to the lesson list for course owners, the curriculum
outline for non-owners, and the lesson page sidebar.
@simonhamp
simonhamp merged commit d61a36f into NativePHP:main Nov 24, 2026
1 check passed
@simonhamp

Copy link
Copy Markdown
Member

Thanks @shrutibalasawebdev

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.

2 participants