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

My Home: Try updating card mapping for Support card #42752

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

mmtr
Copy link
Member

@mmtr mmtr commented May 28, 2020

Changes proposed in this Pull Request

Explores the approach suggested in paYJgx-GU-p2 #comment-899 as an alternative to D43941-code.

This way, we re-use the existing FEATURE_SUPPORT card UID so the new Support Search card will be also used in future versions of the desktop app while keeping backwards compatibility with current and previous versions.

Testing instructions

Verify the Support Search shows up for all views, including the ones used on the desktop app. See #42752 (comment) for instructions about how to build a new desktop app version that includes the new Support Search card (I already generated it and confirmed it works as expected).

@mmtr mmtr added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 28, 2020
@mmtr mmtr requested review from a team May 28, 2020 14:33
@mmtr mmtr requested a review from a team as a code owner May 28, 2020 14:33
@mmtr mmtr self-assigned this May 28, 2020
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented May 28, 2020

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~533 bytes removed 📉 [gzipped])

name  parsed_size           gzip_size
home      -3278 B  (-0.8%)     -533 B  (-0.5%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@mmtr
Copy link
Member Author

mmtr commented May 28, 2020

I generated a desktop app build using the Calypso snapshot currently fixed in develop (Automattic/wp-desktop#886) and cherry picking changes from #42625 and this PR:

cd calypso
git cherry-pick c16b863e4fea5a4c9c59dae3e35128f242f8198d
git cherry-pick 84108dd3519c1e9120878b910162b0af15de2f4b
cd ..
make build

The new Support Search card shows up and works as expected while current version (5.1.1) keeps displaying the old Support card.

Custom build 5.1.1
Screen Shot 2020-05-28 at 17 12 04 Screen Shot 2020-05-28 at 16 59 19

@mmtr mmtr requested a review from nsakaimbo May 28, 2020 15:12
Copy link
Contributor

@gwwar gwwar left a comment

Choose a reason for hiding this comment

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

Thanks @mmtr for proposing this and crafting the PR 💖

This tests well for me. Let's let @getdave pick the landing approach:

  1. We either take My Home: Try updating card mapping for Support card #42752 and drop D43941-code
  2. Or keep D43941-code and close My Home: Try updating card mapping for Support card #42752

Respectively each patch needs to land last, otherwise we'll see the card in production. Going to add DO NOT MERGE label until folks are happy with a landing choice.

@getdave
Copy link
Contributor

getdave commented Jun 2, 2020

Thanks @mmtr for proposing this and crafting the PR 💖

This tests well for me. Let's let @getdave pick the landing approach:

Thanks both. I'm assigned to work on this again this 2 week Iteration so I'll be sure to update when I've decided on an approach. Much appreciated!

@getdave
Copy link
Contributor

getdave commented Jun 2, 2020

Still discussing a decision on whether to merge this in paYJgx-GU-p2#comment-917.

Copy link
Contributor

@getdave getdave left a comment

Choose a reason for hiding this comment

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

We decided in paYJgx-GU-p2#comment-917 that this was the best route to take.

Let's land this just as soon as @retrofox has landed the tracking PR.

We also need to address the followups noted in #42744

@retrofox
Copy link
Contributor

retrofox commented Jun 3, 2020

We decided in paYJgx-GU-p2#comment-917 that this was the best route to take.

Let's land this just as soon as @retrofox has landed the tracking PR.

Merging today in a few minutes...

@mmtr mmtr removed the DO NOT MERGE label Jun 3, 2020
@getdave getdave force-pushed the update/home-help-search-mapping branch from 84108dd to 1422cf0 Compare June 3, 2020 14:39
@nsakaimbo
Copy link
Contributor

👋 Thanks for proposing this solution, @mmtr - I think it's a good middle ground, given the alternatives.

Heads up that desktop CI is currently offline as there's a webpack-related issue that's being currently looked at in #42898.

Being as you tested this manually with a desktop build, I think this change is safe to land.

@getdave getdave closed this Jun 4, 2020
@getdave getdave reopened this Jun 4, 2020
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jun 4, 2020
@getdave getdave closed this Jun 4, 2020
@getdave getdave reopened this Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable HelpSearch card on Dotcom "My Home" for all non-Desktop App layouts
6 participants