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

Plans: Clarify discount is for first year #10576

Merged
merged 1 commit into from Jan 13, 2017
Merged

Conversation

obenland
Copy link
Member

@obenland obenland commented Jan 11, 2017

This PR adds a way to specify copy for discounted plans for each plan. The plan header now displays the correct copy, based on whether it’s a discounted plan or not.

I decided to add an additional function to each plan to return the appropriate string similar to getBillingTimeFrame rather than doing it in the conditional of client/my-sites/plan-features/header.jsx. This way they can be controlled more granularly and in parallel with other time frames.

Fixes #10467.

@obenland obenland added [Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans. [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 11, 2017
@obenland obenland self-assigned this Jan 11, 2017
@matticbot
Copy link
Contributor

@gwwar
Copy link
Contributor

gwwar commented Jan 12, 2017

Thanks @obenland, it looks like we missed passing a prop to the mobile header:

screen shot 2017-01-11 at 4 07 08 pm

Hmm the text here seems a bit cramped. cc @sararosso or @iamtakashi for more ideas

screen shot 2017-01-11 at 4 06 28 pm

obenland added a commit that referenced this pull request Jan 12, 2017
@gwwar gwwar added [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 12, 2017
@gwwar
Copy link
Contributor

gwwar commented Jan 12, 2017

👍 code/behavior looks good here, let's see if we can get a bit more help with the copy.

@sararosso
Copy link
Contributor

Smaller font size? :) Not sure how we could say this shorter/more distinct. 😕

monthly for 12 months, billed yearly

@iamtakashi
Copy link
Contributor

iamtakashi commented Jan 12, 2017

To accommodate longer copies, we should make the copies go multiple lines if they need to. Even though if we come up with a little shorter copy, it could overflow with some other languages.

If we want to make it flexible, we'll need to tweak the CSS, and we'll need to move the plan specific CSS classes to keep the coloured border line-up though.

@gwwar
Copy link
Contributor

gwwar commented Jan 12, 2017

@obenland maybe let's try and allow that to break to two lines since we will probably have longer translations for i18n. Just be sure to check if it looks ok in this table view, mobile view, and with a Jetpack connected site.

@obenland
Copy link
Member Author

screen shot 2017-01-12 at 2 49 18 pm

This is not working fantastically either. Maybe we should consider a popover?

@gwwar
Copy link
Contributor

gwwar commented Jan 12, 2017

It's possible to get the headers aligned by moving the time text to another component in a new table row, but will require some refactoring.

@obenland do you mind using dev tools to make the other two columns align and take a screenshot? Let's check and see if it looks ok before we do that.

@gwwar
Copy link
Contributor

gwwar commented Jan 12, 2017

Maybe we should consider a popover?

Do you mean like an info popover when we hover on the price amount? That could work too.

cc @iamtakashi or @sararosso what do you think

@sararosso
Copy link
Contributor

I think a popover would be fine legally, we might want to check with @jennyzhu.

@jennyzhu
Copy link

From a legal perspective, we mention that the fees may change at renewal time:

Unless you notify Automattic before the end of the applicable subscription period that you want to cancel an Upgrade, your Upgrade subscription will automatically renew and you authorize us to collect the then-applicable annual or monthly subscription fee for such Upgrade.

But if we want this to be clear, I don't think a popover is the best approach. As a user, I wouldn't expect that I'd need to hover for more pricing info, esp since we don't seem to do that anywhere else in our pages/UI? I could be mistaken though!

@obenland
Copy link
Member Author

screen shot 2017-01-12 at 3 22 52 pm

The above would entail quite a significant refactoring to make it work

@obenland
Copy link
Member Author

As a user, I wouldn't expect that I'd need to hover for more pricing info, esp since we don't seem to do that anywhere else in our pages/UI?

It could just be the part that says the discount is only applicable for the first year, not all of it.
There are 29 additional popovers on that page, none for pricing details however, that is correct.

@gwwar
Copy link
Contributor

gwwar commented Jan 12, 2017

Thanks @obenland for testing that. Let's avoid the refactoring approach for now, the whitespace there looks a bit distracting.

Maybe just per month, billed yearly with an info icon next to it?

@jennyzhu
Copy link

There are 29 additional popovers on that page

Oh geez! Sorry and thanks for pointing out. I totally never noticed those (prob because I'm not scrutinizing the details of each plan, not because they're not apparent).

Maybe just per month, billed yearly with an info icon next to it?

With an info icon would be much better, IMO.

Adds a popover for discounted plans for each plan. The plan
header now shows additional information about the length of the
promotion, based on whether it’s a discounted plan or not.

Fixes #10467.
@obenland
Copy link
Member Author

With added info icon:
screen shot 2017-01-13 at 10 20 56 am

Copy:
screen shot 2017-01-13 at 10 21 21 am

@sararosso @jennyzhu @gwwar How is that?

@gwwar
Copy link
Contributor

gwwar commented Jan 13, 2017

This looks good to me and tests well. If folks are ok with the compromise, let's :shipit:

Note that the second click for any info popover appears in the wrong direction. We can fix this in a future PR. cc @retrofox

@retrofox
Copy link
Contributor

Note that the second click for any info popover appears in the wrong direction. We can fix this in a future PR. cc @retrofox

it happens from the first time btw.

@obenland obenland merged commit 42e1d03 into master Jan 13, 2017
@obenland obenland deleted the update/plans-strings branch January 13, 2017 20:38
@gwwar gwwar removed [Status] Ready to Merge [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Jan 13, 2017
@retrofox
Copy link
Contributor

Related PR: #10708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants