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

Purchases: Update links to theme showcase #2959

Merged
merged 1 commit into from
Feb 2, 2016

Conversation

ockham
Copy link
Contributor

@ockham ockham commented Feb 1, 2016

  • Point to the new showcase (/design/${ domain }) to select a theme for a site.
  • Use the getDetailsUrl() helper from lib/themes for the theme details link.
    This way, the URL is guaranteed to remain correct once we re-wire that helper
    to point to the new showcase.

No visual changes.

To test:

  • Purchase a premium theme for any of your sites.
  • Navigate to calypso.localhost:3000/purchases/, and select the corresponding purchase.
  • Verify that the 'Theme Details' link points to the same URL as on the master branch, i.e. http://wordpress.com/themes/[site]/[theme]

Note that I haven't yet found out how to test the changes in client/me/purchases/cancel-purchase/product-information.jsx, since apparently I can't cancel a premium theme I purchased using free credits.

CC @drew and @gziolo for review.

* Point to the new showcase (`/design/${ domain }`) to select a theme for a site.
* Use the `getDetailsUrl()` helper from `lib/themes` for the theme details link.
  This way, the URL is guaranteed to remain correct once we re-wire that helper
  to point to the new showcase.
@ockham ockham added [Feature Group] Appearance & Themes Features related to the appearance of sites. [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. labels Feb 1, 2016
@ockham ockham self-assigned this Feb 1, 2016
@drewblaisdell
Copy link
Contributor

Works well, and the code looks good. 👍

@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 Feb 2, 2016
@ockham
Copy link
Contributor Author

ockham commented Feb 2, 2016

Thanks for reviewing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Appearance & Themes Features related to the appearance of sites. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants