Bug Description
When submitting the Key Metrics for the first time after setup, we get redirected to the dashboard and the Welcome Modal is displayed, as expected. But if we dismiss the modal then go back and submit the answers again, the Welcome Modal is displayed again with the DATA_GATHERING_COMPLETE variant.
Steps to reproduce
- Set up Site Kit with Analytics and
setupFlowRefresh enabled
- Submit Key Metrics answers
- After landing on the dashboard, dismiss the Welcome Modal, then go back and resubmit Key Metrics
- Notice that the Welcome Modal is displayed again in the wrong variant
Screenshots
Additional Context
- PHP Version:
- OS: [e.g. iOS]
- Browser: [e.g. chrome, safari]
- Plugin Version: [e.g. 22]
- Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- When the Welcome Modal is dismissed, redoing the Key Metrics setup should not cause the Welcome Modal to appear again.
Implementation Brief
Test Coverage
- Add tests for this behaviour in
WelcomeModal.test.tsx
QA Brief
- Set up Site Kit with Analytics and
setupFlowRefresh enabled
- Submit Key Metrics answers
- After landing on the dashboard, dismiss the Welcome Modal, then go back and resubmit Key Metrics
- When landing back on Dashboard, the modal should not reappear.
Changelog entry
- Fix Welcome Modal reappearing after dismissing and resubmitting Key Metrics answers.
Bug Description
When submitting the Key Metrics for the first time after setup, we get redirected to the dashboard and the Welcome Modal is displayed, as expected. But if we dismiss the modal then go back and submit the answers again, the Welcome Modal is displayed again with the
DATA_GATHERING_COMPLETEvariant.Steps to reproduce
setupFlowRefreshenabledScreenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/components/WelcomeModal.tsxshouldRenderModalVariantto return a boolean value, it should include this current condition also add a condition where it should returnfalseifisDataGatheringCompleteModalActiveisfalseandmodalVariantis data gathering complete variant.nullif it returnsfalse.Test Coverage
WelcomeModal.test.tsxQA Brief
setupFlowRefreshenabledChangelog entry