Skip to content

Dashboard: add My Plan page#10556

Merged
keoshi merged 14 commits intomasterfrom
add/my-plan-page
Dec 5, 2018
Merged

Dashboard: add My Plan page#10556
keoshi merged 14 commits intomasterfrom
add/my-plan-page

Conversation

@keoshi
Copy link
Copy Markdown
Contributor

@keoshi keoshi commented Nov 7, 2018

Changes proposed in this Pull Request:

  • Adds a new My Plan page that solely focuses on the features for the current plan.
  • Adds a new option in the main navigation so people can open this new view.
  • Cleans up styles.
  • Adds tests for this change.
  • Bonus: fix track event name for Plans.

Could be a fix for #10381

image

Help!: I can't get the Dashboard option on the split button to remain selected when jumping into this new section, even though I added the new URL param to the window.wpNavMenuClassChange function.

image

Testing instructions:

  • Fire up this PR!
  • Go to your Jetpack dashboard.
  • Select My Plan.
  • Ensure the content is correctly split up between that section and Plans.

Proposed changelog entry for your changes:

  • Add My Plan page to the dashboard

@keoshi keoshi added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Design Review Design has been added. Needs a review! Admin Page React-powered dashboard under the Jetpack menu [Focus] NUX [Status] Needs Copy Review Copy has been added. Marketing will be notified for a copy review. labels Nov 7, 2018
@keoshi keoshi self-assigned this Nov 7, 2018
@keoshi keoshi requested review from a team and rickybanister November 7, 2018 13:24
@jetpackbot
Copy link
Copy Markdown
Collaborator

jetpackbot commented Nov 7, 2018

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: January 10, 2019.
Scheduled code freeze: January 3, 2019

Generated by 🚫 dangerJS

@keoshi keoshi added Plans [Status] Needs Review This PR is ready for review. and removed [Status] Needs Copy Review Copy has been added. Marketing will be notified for a copy review. labels Nov 7, 2018
@rickybanister
Copy link
Copy Markdown

Nice!

If we merge this we'll also have to update referrer links from wpcom to go to this tab instead of the old plans tab.

What shows if you don't have a paid plan? Is the tab still there?

@keoshi
Copy link
Copy Markdown
Contributor Author

keoshi commented Nov 7, 2018

If we merge this we'll also have to update referrer links from wpcom to go to this tab instead of the old plans tab.

Yes!

What shows if you don't have a paid plan? Is the tab still there?

No logic was applied to the tab, so the same content that already existed will be visible (promo for paid plans):

image

@rickybanister
Copy link
Copy Markdown

Great!

@keoshi keoshi requested a review from joanrho November 26, 2018 15:15
@jeherve
Copy link
Copy Markdown
Member

jeherve commented Nov 26, 2018

Help!: I can't get the Dashboard option on the split button to remain selected when jumping into this new section, even though I added the new URL param to the window.wpNavMenuClassChange function.

I took care of that for you in 4ba94b0

@jeherve jeherve removed the [Status] Needs Review This PR is ready for review. label Nov 26, 2018
Copy link
Copy Markdown
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

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

This worked well overall. 👍

I noticed that when in Dev mode, we show the Activity Log card. That seems like a mistake:

screenshot 2018-11-26 at 15 29 28

That is, however, not a problem introduced in this PR. It exists with the current stable as well.

When we ship this, we'll most likely need to update the upgrade flows in Calypso as well, so you land on my-plan when you click on "Back to my site" after purchasing a plan in Calypso.

@joanrho
Copy link
Copy Markdown
Contributor

joanrho commented Nov 30, 2018

@keoshi just to clarify—this PR takes all the "Current plan" content that currently lives within the Jetpack Dashboard > Plans tab and moves it out into its own new "My Plan" section? And then the plans grid/support card/mobile apps card would be the only things left in that "Plans" tab?

@keoshi
Copy link
Copy Markdown
Contributor Author

keoshi commented Nov 30, 2018

Yeah, exactly @joanrho. It pretty much mirrors the IA we have in Calypso.

@joanrho
Copy link
Copy Markdown
Contributor

joanrho commented Nov 30, 2018

@keoshi excellent! Just tested and works great.

This is a great stepping stone to updating all of the Jetpack Dashboard-side UI that needs to be updated to match the new work Luna and I have done in Calypso > My Plan.

Let's ship this first and then plan to update the card layouts/add illos/update feature descriptions next.

@keoshi keoshi added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Design Review Design has been added. Needs a review! labels Nov 30, 2018

trackPlansClick = () => {
this.trackNavClick( 'dashboard' );
this.trackNavClick( 'plans' );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This event name change may be of interest to @Automattic/luna

Copy link
Copy Markdown
Contributor Author

@keoshi keoshi Dec 3, 2018

Choose a reason for hiding this comment

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

True, very valid point. cc @johnHackworth so you're aware:

  • Before, both links had a path param that was dashboard.
  • This introduces differentiation in tracking between all three tabs:
    • “At a Glance” is dashboard
    • “My Plan” is my-plan (new tab)
    • “Plans” is plans

Copy link
Copy Markdown
Contributor

@oskosk oskosk left a comment

Choose a reason for hiding this comment

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

Tested an works great!

@keoshi keoshi merged commit 314fdaa into master Dec 5, 2018
@ghost ghost removed the [Status] Ready to Merge Go ahead, you can push that green button! label Dec 5, 2018
@keoshi keoshi deleted the add/my-plan-page branch December 5, 2018 14:27
jeherve added a commit that referenced this pull request Dec 19, 2018
jeherve added a commit that referenced this pull request Jan 3, 2019
jeherve added a commit that referenced this pull request Jan 3, 2019
* Add first version of the Changelog and testing list for 6.9

* Changelog: add #10710

* changelog: add #10538

* changelog: add #10741

* changelog: add #10749

* changelog: add #10664

* changelog: add #10224

* changelog: add #10788

* Changelog: add #10560

* Chanegelog: add #10812

* changelog: add #10556

* Changelog: add #10668

* Changelog: add #10846

* Changelog: add #10947

* Changelog: add #10962

* Changelog: add #10956

* Changelog: add #10940

* Changelog: add #10934

* Changelog: add #10912

* changelog: add #10866

* changelog: add #10924

* Changelog: add #10936

* Changelog: add #10833

* changelog: add #10867

* Changelog: add #10960

* Changelog: add #10888

* changelog: add #10840

* changelog: add #10972

* Changelog: add #10979

* changelog: add #10909

* Changelog: add #10958

* Changelog: add #10981

* Changelog: add #10564

* Changelog: add #10809

* Changelog: add #10982

* Changelog: add #10706

* Changelog: add #10978

* Changelog: add #10132

* Changelog: add #11022

* Changelog: add #11024

* Changelog: add #10875

* Changelog: add #11030

* Changelog: add #11053

* Changelog: add #10880

* Changelog: add #9359

* Changelog: add #11037

* Update block list

* Changelog: add #11060

* Changelog: add #10755

* changelog: add #11000

* Changelog: add #10786

* Changelog: add #10945

* Changelog: add #10597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Page React-powered dashboard under the Jetpack menu Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Focus] NUX Plans

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants