-
Notifications
You must be signed in to change notification settings - Fork 2
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
#161 Product Page: More Dates #192
Conversation
Codecov Report
@@ Coverage Diff @@
## master #192 +/- ##
==========================================
+ Coverage 94.41% 94.58% +0.17%
==========================================
Files 159 159
Lines 5331 5480 +149
Branches 312 312
==========================================
+ Hits 5033 5183 +150
+ Misses 242 241 -1
Partials 56 56
Continue to review full report at Codecov.
|
Here's an interim design from @abdulkdawson https://invis.io/WDRNN8N2BT8#/360581028_XPro_LandingPage_Tooltips_Dates Note that we don't have the enroll button coding done yet. Please omit those for now. |
974ff03
to
6e1c244
Compare
c97b9e2
to
7ea2b96
Compare
7ea2b96
to
549a8b5
Compare
@gsidebo feedback addressed, please review so I can close this |
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.
Looks great! 👍
Feel free to merge after adding that blank line
courses/models.py
Outdated
@@ -301,6 +309,18 @@ def first_unexpired_run(self): | |||
lambda course_run: course_run.is_unexpired, | |||
) | |||
|
|||
@property | |||
def unexpired_run_dates(self): |
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.
Sorry, one more thing. This is returning unexpired CourseRun
s, not dates, so this should be called unexpired_runs
not unexpired_run_dates
. Feel free to merge after this change is made, tests pass, and you confirm that the UI still works
ESlint and test fixes ESLint fixes (prettier formatting) Popover Design Formatting and Move to New Structure Removed BS3 included with catalog page Upgraded catalog page to BS4 Removed redundant CSS and JS Modified to Include Course Run ID Feedback from gsidebo
549a8b5
to
f25cc74
Compare
Pre-Flight checklist
What are the relevant tickets?
Closes #161
What's this PR do?
Adds a popover on click to "More Dates" link on the Course page. This popover will show all start dates of unexpired runs.
How should this be manually tested?
Go to the page of any course with multiple unexpired runs. Click on the "More Dates" link in metadata tiles, a list should appear showing all unexpired run start dates.
Screenshots (if appropriate)