-
Notifications
You must be signed in to change notification settings - Fork 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
Plans: Add beginning of PlanOverview
, PlanFeatures
, and PlanStatus
#1395
Conversation
84a39a4
to
8f17719
Compare
PlanOverview
, PlanFeatures
, and PlanStatus
1ec483b
to
76a7503
Compare
76a7503
to
a0d81be
Compare
a0d81be
to
a55cbe5
Compare
|
||
.plan-status__info { | ||
display: flex; | ||
align-items: center; |
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.
We should order these css props alphabetically (We should do this on the whole file)
a55cbe5
to
f8c7e38
Compare
Should we feature flag this? code 👍 |
I signed up for a new trial from |
We need to fix the capitalization in this case (for "a day remaining"): Edit: Maybe it should say "one day" instead of "a day"? (cc @mikeshelton1503) |
Let's do:
|
|
Actually this seems to have been a weird one-off. I can't reproduce it anymore, I'm getting 14 days when I sign up for a trial. |
61fadda
to
867cef8
Compare
@fabianapsimoes This is a bit complex and may increase the size of this already large PR, so I opened an issue to fix displaying stale data on @matthusby Would you mind taking another look at this PR? |
96d69cc
to
76122fc
Compare
} ); | ||
} | ||
|
||
return this.translate( '1 day remaining' ); |
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.
We should probably use the count
attribute here in order to better handle pluralization.
76122fc
to
b414cb5
Compare
We should be good to go. I've created #1469 to better handle SVG files. |
QA 👍 |
These functions were only called once - it doesn't bring really any benefit to have this code extracted.
… Plans Details List component
The reason is to show the user that the trial has started already when they just subscribed
b414cb5
to
3a4f5e3
Compare
Plans: Add beginning of `PlanOverview`, `PlanFeatures`, and `PlanStatus`
This pull request addressed part of #1151 by introducing a new variant of the
Plans
page. This newPlan Overview
page is displayed when the user has subscribed to a free trial.Three new components are added in this PR:
PlanOverview
,PlanFeatures
, andPlanStatus
.PlanOverview
is used to render/plans/:site
when:site
has a free trial.PlanStatus
implements a<ProgressBar />
to show the amount of time remaining in a trial. To be implemented in a separate PR:PlanFeatures
is a stub component and will be implemented in a separate PR.Testing
/plans/:site
and start a premium or business free trial./plans/:site
and assert that you seePlanOverview
as above.