-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Contextual VideoCard and VideoThumbnail components #2725
Conversation
👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. |
🟢 This pull request modifies 18 files and might impact 3 other files. Details:All files potentially affected (total: 3)📄
|
9bad553
to
8f3a1a7
Compare
8f3a1a7
to
39e5274
Compare
39e5274
to
daf9d1c
Compare
fb42862
to
b91e215
Compare
b91e215
to
a9e1dd1
Compare
Hi @mSitkovets 👋 I'm so excited for your team's contribution, these are the first new components ever contributed 🎉!! Because there's so many files and these are net new components, there's a lot of requested changes and it's gonna likely take a couple of re-reviews to get these ready to ship as we work together to align on the API etc. I'll be pinging crafters from other disciplines to get extra eyes on things like content and design language change requests. I find it easiest to review large PRs by making and testing the changes in my editor, then referring to the diff in VSCode to comment the suggestions here on GitHub. To make viewing and copy/pasting easier, take a look at the split diff of my branch. Even though GitHub is back up now (🎉) I'm splitting the initial review up to attempt to make it a bit easier to get started with iteration: docs, straight forward code changes, and high level API changes/questions/feedback. If you get lost in the sea of comments, I'm happy to walk through the requested changes together 😊 Just throw a pairing session in my calendar 📆 I'll be keeping an eye out for replies to comments, but I'm Polaris ATC today so I'll be glued to Slack if you want to DM for faster response. |
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.
Okay! Here's review part 1 - Content eyes needed 📄 👀 cc @selenehinkley @janahue @krismausser
A lot of the request changes have been made already from the branch I shared, but there's a few things that were missing/out of sync between my review and the branch.
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.
Okay! Here's review part 1** - Content eyes needed 📄 👀 cc @selenehinkley @janahue @krismausser
(**A lot of the requested content changes have been made already from the branch I shared, but there's a few things that were missing/out of sync between my review and the branch.)
ef8f162
to
0ba7868
Compare
4d9b616
to
efc76aa
Compare
efc76aa
to
ebe0492
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.
Hi friends,
Here's a little drive-by review with a few little nitpicks :) Awesome work overall!
🎉 Thanks for your contribution to Polaris React! |
* Initial commit of adding the two components * Rewrote tests to follow Polaris test style * requested changes for easier diff viewing/copying * Renamed VideoCard to MediaCard * Edited documentation * Renamed media card variables * First doc edits from content session 1 * [MediaCard] Finished README; require children * [VideoThumbnail] finalized doc * add missing prop descriptions * fix into doc commit * [VideoThumbnail] Call onBeforeStartPlaying onFocus for keyboard supportted video preloading * [VideoThumbnail] Account for all combos of hours, mins, and secs * [VideoThumbnail] Fix test coverage * fix change log * lint 😑 * [MediaCard] remove Popover.preventAutofocus * little fixes Co-authored-by: Chloe Rice <chloe.rice@shopify.com>
WHY are these changes introduced?
The Contextual Learning team would like contribute components to Polaris for use when publishing contextual learning videos in the admin.
Unicorn project
WHAT is this pull request doing?
Adds two new components:
MediaCard
andVideoThumbnail
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
README.md
with documentation changes