-
Notifications
You must be signed in to change notification settings - Fork 843
Plans: don't hide on small screens #8969
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
Conversation
Very small screens don't look great, but we didn't bring in the dedicated moblie view from Calypso
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.
Was gonna approve this one, but it just looks really bad on my phone (iPhone SE). ( I know you mentioned it looks bad on small screens on this PR's description). I wouldn't ship this as is unless Design approves.
|
@mattwiebe + @oskosk let me test this a bit and we'll see what kind of a quick fix we can get in until we can get the full collapsible plans cards from calypso (and jetpack.com). cc @keoshi |
adding a mobile notice to view plans
|
Alright, I made some quick enhancements for a slightly better UX on small mobile devices Currently, on screen sizes smaller than 660px, we can see some real cramping in the table: Unfortunately, after taking a look at the code, I discovered that this table is built with some row-centric table markup (instead of column centric), so we're not easily able to break apart the columns and make them mobile friendly. Because of which, I'm suggesting we hide the table on devices with screen sizes smaller than 660px and display a card with two CTAs. One with a link to manage the users plan, and one to view all plans. I've already coded them in and it currently looks like this on small screens: These links should take the users to view the proper plans page and plans listing in calypso, which are all mobile optimized. @mattwiebe I just need a little help from you! Thankfully, we have a really low traffic rate for small mobile devices at this point in time, so this is an okay quick fix, but we'll need to take some time to look at bringing over the proper pricing tables from calypso at some point since they're all optimized for mobile! Thanks! |
zinigor
left a comment
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.
This needs more work due to missing i18n strings and variables.
_inc/client/plans/plan-grid.jsx
Outdated
| <div className="plan-features"> | ||
| <div className="plans-mobile-notice dops-card"> | ||
| <h2>Your plan</h2> | ||
| <p>You're currently on the Jetpack [plan name].</p> |
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.
This line actually needs the plan name now, and the entire block needs translated strings.
|
For reference, here's what I see for WP 4.9.4 JP 5.9 for WP Admin > Jetpack > "Plans" and "Compare All Plans." And here is what I see on the same page with the branch loaded via https://jurassic.ninja/create/?shortlived&jetpack-beta&nojetpack&branch=fix/plans-small-screens
Tested with Pixel, Android 8.1.0 using WordPress 4.9.4 and Jetpack 6.0-beta-17828-4f10116-fix_plans-small-screens. |
|
@zinigor @designsimply Thanks for testing. Sorry, this PR should of had a "in progress" label—there's still work to be done here! |
|
@mattwiebe Lookin' good dude. Labels changed accordingly. |
oskosk
left a comment
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.
LGTM!
* Changelog 6.0: create base for changelog. * Add #8938 to changelog * Add #8962 to changelog * Add #8974 to changelog * Add #8975 to changelog * Add #8978 to changelog * Add #8867 to changelog * Add #8937 to changelog * Add #8961 to changelog * Add #8855 to changelog * Add #8944 to changelog * Add #8973 to changelog * Add #8977 to changelog * Add #8979 to changelog * Add #8980 to changelog * Add #8982 to changelog * Add #8983 to changelog * Add #8984 to changelog * Add #8986 to changelog * Add #9005 to changelog * Add #9010 to changelog * Add #9012 to changelog * Add #9021 to changelog * Add #9022 to changelog * Add #9056 to changelog * Add #9061 to changelog * Add #9079 to changelog * Add #9080 to changelog * Add #9088 to changelog * Add #9096 to changelog * Add #9097 to changelog * Add #9100 to changelog * Add #9107 to changelog * Add #8969 to changelog * Add #8993 to changelog * Add #9003 to changelog * Add #9031 to changelog * Add #8945 to changelog * Add #9052 to changelog * Add #9058 to changelog * Add #9066 to changelog * Add #9076 to changelog * Add #9053 to changelog * Add #9108 to changelog * Add #9135 to changelog * Add #9148 to changelog * Add #9125 to changelog * Add #9137 to changelog * Added testing instructions for 6.0. * Added IS testing instructions, huge props to @tiagonoronha. * Added #8498 to changelog. * Added #8954 to changelog. * Added #8985 to changelog. * add #9027 * add #9112 to changelog * add #9136 to changelog * add #9102 to changelog * add #9093 to changelog * add #9062 to changelog * add #9172 to changelog










Changes proposed in this Pull Request:
Testing instructions:
View the Plans tab on a screen smaller than 600px wide. Before this PR, the table will be hidden. After, it shows.
It does look bad on very small screens, and we should plan to bring over the plans cards view from Calypso in the next release.
Changelog entry
Show link to see all plans on small screens.