Optimize sunset banner re-appears on Dashboard after dismissal #7138
Labels
Good First Issue
Good first issue for new engineers
Module: Optimize
Google Optimize module related issues
P1
Medium priority
Type: Bug
Something isn't working
Bug Description
The Optimize sunset banner appears on the dashboard even though it has been dismissed.
It only appears for a split second, and it is difficult to see even with slow 3G. Thought it was worth raising. I was able to recreate it with
GA4Reporting
enabled and disabled.Screen.Capture.on.2023-06-05.at.18-21-29.mp4
Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
OptimizeRemovalNotification
to return ifisDismissed
is not strictlyfalse
as this can beundefined
while dismissed items have not been resolved yet which is why the banner shows briefly (this is only observable when the client-side dismissed item is not present in session storage – i.e. the non-persistent dismissal)site-kit-wp/assets/js/components/notifications/OptimizeRemovalNotification.js
Line 54 in 394732a
Test Coverage
QA Brief
wp_googlesitekitpersistent_dismissed_items
inside of thewp_usermeta
table of the WordPress database, applicable to their user ID. Although this is the least preferred method, it will clear any item dismissal states to date and unlock testing of this fix.Changelog entry
The text was updated successfully, but these errors were encountered: