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

Link directly to the manage page for this plan. #579

Merged
merged 14 commits into from
Dec 2, 2015

Conversation

matthusby
Copy link
Contributor

Fixes #543

Testing

  1. Apply this patch: D593-code
  2. git checkout update/Link-directly-to-manage-purchase
  3. Browse to http://calypso.localhost:3000/plans
  4. Select a site with a plan
  5. Clicking on manage purchase takes you to the correct /purchases/ page for this plan
  6. Visit Billing History and verify that the Manage Purchases link takes you to purchases
  7. Make sure that the Manage Purchase links for upcoming charges takes you to the correct purchase.

Also test:

  1. The link at the top of /me/billing
  2. The Payment Settings link on http://calypso.localhost:3000/domains/manage/:site/edit/:domain
  3. The "Renew them now." link which appears when you have a domain warning
  4. The "Manage Purchases" link shown when you want to delete a site.
  • Code review
  • QA review

@matthusby matthusby added the [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. label Nov 23, 2015
@matthusby matthusby self-assigned this Nov 23, 2015
@matthusby matthusby added this to the Purchases: v1 milestone Nov 23, 2015
@matthusby matthusby added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 23, 2015
@Tug
Copy link
Contributor

Tug commented Nov 23, 2015

In my case, I had a Manage Plan button in the Business section which linked to http://calypso.localhost:3000/purchases/MY_SITE/undefined.
Do not hesitate if you need more info :)

@Tug Tug added [Status] Awaiting Fixes and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Nov 23, 2015
@matthusby
Copy link
Contributor Author

@Tug There is an api change that needs to be applied.

@matthusby matthusby added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Awaiting Fixes labels Nov 23, 2015
@Tug
Copy link
Contributor

Tug commented Nov 23, 2015

I see! I wasn't sure about the whole D538-code thing ;)

@matthusby
Copy link
Contributor Author

@Tug No worries, Thanks for taking the time to review :)

@matthusby matthusby added [Status] In Progress and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Nov 24, 2015
@mikeshelton1503
Copy link
Contributor

Let's also update the "Payment settings" link for domains. I thought there were more instances of it but that's the only one I could find.

@fabianapsimoes
Copy link
Contributor

We should also update these links:
https://github.com/Automattic/wp-calypso/search?q=my-upgrades (h/t @scruffian)

@gziolo
Copy link
Member

gziolo commented Nov 26, 2015

@mikeshelton1503 @fabianapsimoes: Do we want to keep target="_blank" for updated links? Personally I would avoid opening new tab/window, because it breaks idea of Single Page App :)

@fabianapsimoes
Copy link
Contributor

@gziolo no, we don't need that anymore now that /purchases is in Calypso. So let's get rid of target="_blank" and open stuff in the same tab.

@scruffian scruffian assigned scruffian and unassigned matthusby Nov 27, 2015
@@ -64,7 +64,7 @@ var NAV_ITEMS = {
},

'My Upgrades': {
paths: [ '/my-upgrades' ],
paths: [ '/purchases' ],
label: i18n.translate( 'My Upgrades' ),
Copy link
Member

Choose a reason for hiding this comment

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

I guess this should say "Manage Purchases"

@scruffian scruffian added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Nov 27, 2015
paths: [ '/my-upgrades' ],
label: i18n.translate( 'My Upgrades' ),
paths: [ '/purchases' ],
label: i18n.translate( 'Manage Purchases' ),
external: true
Copy link
Contributor

Choose a reason for hiding this comment

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

screen shot 2015-11-27 at 12 01 29 pm

/purchases is an internal link, so we should try and open this in the window for the same reason that we updated the target="_blank" links.

This will require updating some logic in UpgradesNavigation, because we currently assume that internal links follow the pattern path + siteSlug.

@drewblaisdell drewblaisdell force-pushed the update/Link-directly-to-manage-purchase branch from 8c71bd5 to 01604bd Compare December 2, 2015 21:04
@drewblaisdell
Copy link
Contributor

QA. 👍

@drewblaisdell
Copy link
Contributor

Code LGTM.

@drewblaisdell drewblaisdell added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 2, 2015
drewblaisdell added a commit that referenced this pull request Dec 2, 2015
…e-purchase

Link directly to the manage page for this plan.
@drewblaisdell drewblaisdell merged commit 96fcd26 into master Dec 2, 2015
@drewblaisdell drewblaisdell deleted the update/Link-directly-to-manage-purchase branch December 2, 2015 21:25
@scruffian
Copy link
Member

Finally \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. [Type] Task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants