Commit 250b80e
committed
feat(product tours): add tour wait period config (#48224)
## Problem
closes PostHog/posthog#48209 (comment)
<!-- Who are we building for, what are their needs, why is this important? -->
<!-- Does this fix an issue? Uncomment the line below with the issue ID to automatically close it when merged -->
<!-- Closes #ISSUE_ID -->
SDK PR: PostHog/posthog-js#3109
## Changes
- adds new wait period config in product tour UI
- updates API to handle wait period by adding person property checks to targeting flags
<!-- If there are frontend changes, please include screenshots. -->
<!-- If a reference design was involved, include a link to the relevant Figma frame! -->
## How did you test this code?
<!-- Briefly describe the steps you took. -->
<!-- Include automated tests if possible, otherwise describe the manual testing routine. -->
<!-- Docs reminder: If this change requires updated docs, please do that! Engineers are the primary people responsible for their documentation. 🙌 -->
👉 _Stay up-to-date with_ [_PostHog coding conventions_](https://posthog.com/docs/contribute/coding-conventions) _for a smoother review._
## Publish to changelog?
<!-- For features only -->
<!-- If publishing, you must provide changelog details in the #changelog Slack channel. You will receive a follow-up PR comment or notification. -->
<!-- If not, write "no" or "do not publish to changelog" to explicitly opt-out of posting to #changelog. Removing this entire section will not prevent posting. -->1 parent 172bfee commit 250b80e
1 file changed
+1
-1
lines changed- frontend/src/scenes/product-tours/components/AutoShowSection.tsx+69
- frontend/src/scenes/product-tours/components/NewProductTourModal.tsx+2-2
- frontend/src/scenes/product-tours/productTourLogic.ts+9
- frontend/src/types.ts+8
- products/product_tours/backend/api/product_tour.py+113-67
- products/product_tours/backend/api/test/test_product_tour.py+213-1
- products/product_tours/backend/constants.py+4
0 commit comments