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

Add additional device options to addon-viewport #3918

Merged
merged 2 commits into from
Jul 25, 2018

Conversation

kawwong
Copy link
Contributor

@kawwong kawwong commented Jul 25, 2018

Issue: #3915

What I did

Added iPhone, iPad, Samsung Galaxy and Google Pixel models to the list of devices in addon-viewport

How to test

I spun up the html-kitchen-sink example and was able to see the new devices and sizes.

@kawwong kawwong requested a review from saponifi3d as a code owner July 25, 2018 00:14
@codecov
Copy link

codecov bot commented Jul 25, 2018

Codecov Report

Merging #3918 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3918   +/-   ##
=======================================
  Coverage   41.55%   41.55%           
=======================================
  Files         455      455           
  Lines        5179     5179           
  Branches      899      899           
=======================================
  Hits         2152     2152           
  Misses       2487     2487           
  Partials      540      540
Impacted Files Coverage Δ
addons/viewport/src/shared/index.js 100% <ø> (ø) ⬆️

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 a57b65b...0534cdf. Read the comment docs.

@ndelangen ndelangen added feature request addon: viewport patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jul 25, 2018
@ndelangen
Copy link
Member

Thank you @camel-floss!

Copy link
Contributor

@Keraito Keraito left a comment

Choose a reason for hiding this comment

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

I'm not too familiar with viewports, but does it matter that certain entries don't have a type property?

@igor-dv
Copy link
Member

igor-dv commented Jul 25, 2018

@Keraito I am not sure it matters, but consistency-wise it hurts my eyes.
@camel-floss, wouldn't you mind to fix that?

@kawwong
Copy link
Contributor Author

kawwong commented Jul 25, 2018

@igor-dv Done!

@igor-dv igor-dv merged commit 72f1a94 into storybookjs:master Jul 25, 2018
@ndelangen
Copy link
Member

Wow super quick @camel-floss 👏

@@ -40,6 +40,22 @@ export const INITIAL_VIEWPORTS = {
},
type: 'mobile',
},
iphone8p: {
name: 'iPhone 7 Plus',
Copy link
Contributor

Choose a reason for hiding this comment

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

You mean iPhone 8 Plus, right?

@Hypnosphi
Copy link
Member

This works on top of #3099 so it can't go to 3.4 release, sorry

@Hypnosphi Hypnosphi removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Aug 2, 2018
@ndelangen
Copy link
Member

Good catch!

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.

6 participants