-
Notifications
You must be signed in to change notification settings - Fork 197
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
Update course notices to have a CTA for course editors #7403
Conversation
It should continue in the course to display a notice that can't enroll when course is draft.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## trunk #7403 +/- ##
============================================
+ Coverage 50.95% 51.03% +0.08%
- Complexity 11156 11165 +9
============================================
Files 613 613
Lines 47073 47137 +64
Branches 404 405 +1
============================================
+ Hits 23986 24058 +72
+ Misses 22760 22752 -8
Partials 327 327
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
e00aae4
to
b53c07e
Compare
92a2da7
to
6753800
Compare
I just thought that I didn't consider the legacy courses (with no course outline). |
I just checked that the legacy course didn't have the respective notices. So I kept it even without the Course Outline. Notice that the position of the notices are a little weird because of this issue: #6173 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It looks like the "your lessons" link is currently going to the course editor, but as per the issue:
clicking on "your lessons" takes the user to the Lessons page (wp-admin/edit.php?post_type=lesson) in WP admin, filtered by the current course and by Draft status.
- For a course with no lessons, I see this message as an admin:
Since there are no lessons in the course, the sentences contradict each other. Could we use this text instead?
There are no published lessons in this course yet. Add some now.
where Add some now. is a link that goes to the course editor. (It would be even better if the link went to the Lesson editor with the Course dropdown pre-populated to the appropriate course, but I guess that will be tricky so linking to the course editor is fine. 🙂)
Co-authored-by: Donna Peplinskie <donnapep@gmail.com>
Co-authored-by: Donna Peplinskie <donnapep@gmail.com>
53e2f19
to
64ccf7f
Compare
afa0122
to
b85b748
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a tweak in 8390d01 after changing my mind. 😃 It it looks OK, we're 👍🏻 to merge.
Resolves #7374
Proposed Changes
I was afraid to break other notices, so I didn't do it as part of this PR. Maybe we could have another issue to think it better, reorganizing the HTML and styles of this notice, and maybe having a better design for it?
Testing Instructions
Published course containing only draft lessons
Published course without any lesson
Draft course
Redirect issue
Notice that we don't have a message when the lessons are published, but the course is in draft. Should we add a message for this case?
Screenshots
Student visiting a course with no lessons (or all draft):
Admin visiting a course with at least one draft lesson:
Admin visiting a course without lessons:
Admin trying to take a draft course:
Deprecated Code
Pre-Merge Checklist