-
Notifications
You must be signed in to change notification settings - Fork 293
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
Refactor the Feature Tours *setLastDismissedAt()
action to use *setCacheItem()
.
#6473
Comments
setLastDismissedAt
action to use *setCacheItem()
.*setLastDismissedAt()
action to use *setCacheItem()
.
@hussain-t, no need to change anything in that action, we can replace it completely with the Also, for the estimates, I think that |
@eugene-manuilov that makes sense, but the AC says to update the
In that case, do we need to update the AC to avoid any confusion down the road?
I set it to |
yeah, AC is updated.
We won't need to change tests, we will need to remove existing tests for the
Replacing one action with another and removing some unused code doesn't take long. So this ticket can be easily considered as |
Oups, apologies, @hussain-t, you are right, I checked the codebase and looks like what we need to do is what you mentioned in IB. Sorry, about confusing you 🤦. IB ✔️ + I'll update it to be |
No problem. Thanks, @eugene-manuilov 👍 |
QA Update
|
Hi @mohitwp, thank you for checking. Yes, it appears for me on development, locally and on instawp. Screen.Recording.2023-09-15.at.12.16.57.movCan you try to spin a new instance on instaWP, and then check the 1.29.0 version override? Or you can remove tours from your existing instance, by removing it from DB, here is the guide: Screen.Recording.2023-09-15.at.12.24.50.mov |
@zutigrm I saw your video and you are highlighting UnifiedDashboard Feature tour. But, QAB says 'Feature tour for help menu'.
As confirmed with @wpdarren we have intro tip for dashboard Help menu. See this - Figma link So, can you please confirm that testing UnifiedDashboard feature tour will be good enough ? |
QA Update ❌As discussed on huddle. I followed QAB and use the snippet but getting undefined for both the snippets. Recording.546.mp4 |
@mohitwp hm, I can't seem to replicate this. I tried locally and on instaWP, here is the video from instaWP: Screen.Recording.2023-09-18.at.16.23.16.mov |
Hey @mohitwp, I think I've realised what's up here. Looking at your screencast, you've got the "errors" filter in the console selected, which means it's only going to display |
QA Update ✅Thanks @techanvil @zutigrm ! Apologies ! I completely forgot that filter is active under console.
Recording.549.mp4 |
Feature Description
Following on from #6472, we should refactor the Feature Tours
*setLastDismissedAt()
action to use the new*setCacheItem()
action.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
*setLastDismissedAt()
action should be updated to reuse the new*setCacheItem()
action.CACHE_LAST_DISMISSED_AT
control that callssetItem()
should be removed as it will no longer be needed.Implementation Brief
assets/js/googlesitekit/datastore/user/feature-tours.js
:setLastDismissedAt()
action with the following:CACHE_LAST_DISMISSED_AT
control, use the*setCacheItem()
action which is being implemented in Add client-side cache store with*setCacheItem()
action. #6472.setCacheItem()
as are passed tosetItem()
in theCACHE_LAST_DISMISSED_AT
control.CACHE_LAST_DISMISSED_AT
control.Test Coverage
setLastDismissedAt()
action tests to use the*setCacheItem()
action instead of thesetItem
(setItemSpy
).QA Brief
Force initial Site Kit plugin version
option input1.29.0
console.log(window.googlesitekit.data.select('core/user').getLastDismissedAt())
it should show number, for example1693995426179
console.log(window.googlesitekit.data.select('core/user').areFeatureToursOnCooldown())
it should displaytrue
Changelog entry
The text was updated successfully, but these errors were encountered: