Skip to content
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

First pass on video drawer #2372

Merged
merged 1 commit into from Nov 14, 2019
Merged

First pass on video drawer #2372

merged 1 commit into from Nov 14, 2019

Conversation

rhysyngsun
Copy link
Contributor

@rhysyngsun rhysyngsun commented Nov 8, 2019

Pre-Flight checklist

  • Screenshots and design review for any changes that affect layout or styling
    • Desktop screenshots
    • Mobile width screenshots
    • Tag @Ferdi or @pdpinch for review
  • Migrations
    • Migration is backwards-compatible with current production code
  • Testing
    • Code is tested
    • Changes have been manually tested

What are the relevant tickets?

(Required)

What's this PR do?

(Required)

How should this be manually tested?

  • Reimport youtube videos (course_catalog.etl.pipelines.youtube_etl())
  • Go to search page and verify the drawer works and data displays as expected (e.g. duration, etc)

Screenshots (if appropriate)

Desktop:
Screenshot_2019-11-08 MIT Open Learning

Mobile:
Screenshot_2019-11-08 MIT Open Learning(2)

@odlbot odlbot temporarily deployed to odl-open-discussions-c-pr-2372 November 8, 2019 21:49 Inactive
@pdpinch
Copy link
Member

pdpinch commented Nov 12, 2019

Looks good, but we have an updated design in InVision: https://projects.invisionapp.com/d/main#/console/17477251/390731424/preview

@rhysyngsun
Copy link
Contributor Author

@pdpinch if you're referring the styling differences, I discussed with @abdulkdawson friday about that, the conclusion out of that was that new styling for all of the drawer designs is out of scope for this work since that styling is shared across all the drawer types, so this PR focuses on the functional display of the information relevant to video types and the playback of the video.

If you're referring to the partial height of the drawer, I also discussed that with Abdul since it's a departure from our other drawer designs. Some preliminary testing of mine indicated that this will cause some overall issues with scrolling of the sidebar, particularly on mobile. My opinion is that this is likely to be fussy and delicate at best (on top of the drawer already being fussy and delicate). I don't think there was a decision for that particular design aspect so I left this as-is until I heard otherwise.

@pdpinch
Copy link
Member

pdpinch commented Nov 12, 2019 via email

@rhysyngsun
Copy link
Contributor Author

@pdpinch there are no styling changes at all - the player embed didn't need any adjustments so the default styling already defined for the drawer is what we're getting here.

@rhysyngsun rhysyngsun temporarily deployed to odl-open-discussions-c-pr-2372 November 12, 2019 17:07 Inactive
@codecov-io
Copy link

codecov-io commented Nov 12, 2019

Codecov Report

Merging #2372 into master will increase coverage by 0.01%.
The diff coverage is 98.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2372      +/-   ##
==========================================
+ Coverage   95.25%   95.26%   +0.01%     
==========================================
  Files         677      679       +2     
  Lines       25745    25830      +85     
  Branches      847      847              
==========================================
+ Hits        24524    24608      +84     
- Misses       1099     1100       +1     
  Partials      122      122
Impacted Files Coverage Δ
course_catalog/etl/youtube.py 93.87% <ø> (ø) ⬆️
...components/ExpandedLearningResourceDisplay_test.js 100% <100%> (ø) ⬆️
static/js/lib/constants.js 100% <100%> (ø) ⬆️
static/js/factories/learning_resources.js 100% <100%> (ø) ⬆️
static/js/lib/learning_resources_test.js 100% <100%> (ø) ⬆️
static/js/lib/queries/embedly.js 100% <100%> (ø)
static/js/components/TruncatedText.js 88.88% <100%> (+3.17%) ⬆️
...tatic/js/components/LearningResourceDrawer_test.js 100% <100%> (ø) ⬆️
course_catalog/models.py 96.82% <100%> (+0.02%) ⬆️
static/js/lib/url.js 100% <100%> (ø) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a2d027...8288047. Read the comment docs.

@rhysyngsun rhysyngsun temporarily deployed to odl-open-discussions-c-pr-2372 November 12, 2019 19:12 Inactive
@rhysyngsun rhysyngsun temporarily deployed to odl-open-discussions-c-pr-2372 November 12, 2019 19:31 Inactive
@rhysyngsun rhysyngsun temporarily deployed to odl-open-discussions-c-pr-2372 November 12, 2019 19:47 Inactive
@rhysyngsun rhysyngsun marked this pull request as ready for review November 12, 2019 19:49
@alicewriteswrongs
Copy link
Contributor

alicewriteswrongs commented Nov 13, 2019

works great!

my one question is if we want to make it easier / more obvious how to open the video in a new tab - just wondering because some of these videos are quite long and watching a one-hour video from the drawer seems a bit fragile - like it might be frustrating for the user to get 15 minutes in and then accidentally click outside the drawer and lose their progress.

idk, just something that occurred to me, what do you think @abdulkdawson ?

Copy link
Contributor

@alicewriteswrongs alicewriteswrongs left a comment

Choose a reason for hiding this comment

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

looks great!

LR_TYPE_BOOTCAMP
])

export const formatDurationClockTime = (value: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like something moment should support itself!

@abdulkdawson
Copy link

@aliceriot I completely agree with you on this one. I may have to run this past Ferdi and Peter.

@rhysyngsun rhysyngsun merged commit d2f3ef6 into master Nov 14, 2019
@rhysyngsun rhysyngsun deleted the nl/video_drawer branch November 14, 2019 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants