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

JITM: make sure no JITMs can ever be displayed at the same time. #11087

Merged
merged 1 commit into from
Jan 8, 2019

Conversation

jeherve
Copy link
Member

@jeherve jeherve commented Jan 4, 2019

Fixes #11045

Changes proposed in this Pull Request:

Before to insert a JITM into the admin notices, we now check if one exists first. If we have one, we replace it.

Testing instructions:

  • Start from a site that was never connected to WordPress.com before (JN is a great tool for that)
  • Connect to WordPress.com
  • Make sure that when you are sent back to the Jetpack dashboard, only one JITM gets displayed.
  • Navigate to the Plans tab; another JITM should appear.
  • Navigate to the main dashboard. You should see a message there as well.
  • There should never be 2 messages.

Proposed changelog entry for your changes:

  • None.

@jeherve jeherve added [Type] Bug When a feature is broken and / or not performing as intended [Status] Needs Review To request a review from Crew. Label will be renamed soon. [Pri] BLOCKER [Feature] JITM Just In Time Messages - pop-up tips and suggestions that appear on the dashboard and sidebar. labels Jan 4, 2019
@jeherve jeherve added this to the 6.9 milestone Jan 4, 2019
@jeherve jeherve self-assigned this Jan 4, 2019
@jeherve jeherve requested review from oskosk and brbrr January 4, 2019 18:08
@jeherve jeherve requested a review from a team as a code owner January 4, 2019 18:08
@jetpackbot
Copy link

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 against 91b5ddc

Copy link
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.

Works as expected. Note that if rapidly switching tabs, the previous JITM would show for a short time while the new one is loading but it's ok to me.

@oskosk oskosk added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review To request a review from Crew. Label will be renamed soon. labels Jan 7, 2019
@oskosk
Copy link
Contributor

oskosk commented Jan 7, 2019

Seems to me that If the new tab does not have a JITM to show, then the previous message will stay rendered, as reported in #11028. Though, this is outside of the scope of this PR.

@jeherve jeherve merged commit de04285 into master Jan 8, 2019
@ghost ghost removed the [Status] Ready to Merge Go ahead, you can push that green button! label Jan 8, 2019
@jeherve jeherve deleted the fix/double-jitm branch January 8, 2019 10:22
jeherve added a commit that referenced this pull request Jan 8, 2019
)

Fixes #11045 

#### Changes proposed in this Pull Request:

Before to insert a JITM into the admin notices, we now check if one exists first. If we have one, we replace it.

#### Testing instructions:

* Start from a site that was never connected to WordPress.com before (JN is a great tool for that)
* Connect to WordPress.com
* Make sure that when you are sent back to the Jetpack dashboard, only one JITM gets displayed.
* Navigate to the Plans tab; another JITM should appear.
* Navigate to the main dashboard. You should see a message there as well.
* There should never be 2 messages.

#### Proposed changelog entry for your changes:

* None.
@jeherve
Copy link
Member Author

jeherve commented Jan 8, 2019

Cherry-picked to branch-6.9 in 8d924a3

ockham added a commit that referenced this pull request Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] JITM Just In Time Messages - pop-up tips and suggestions that appear on the dashboard and sidebar. [Pri] BLOCKER [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants