-
Notifications
You must be signed in to change notification settings - Fork 213
feat(product tours): support 'modal' steps #2723
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Size Change: -7.57 kB (-0.15%) Total Size: 5.19 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 files reviewed, 1 comment
playground/nextjs/package.json
Outdated
| "hls.js": "^1.5.15", | ||
| "next": "^15.5.7", | ||
| "posthog-js": "*", | ||
| "posthog-js": "file:/Users/adambowker/posthog-js/target/posthog-js.tgz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Local file path reference should not be committed - this breaks the build for other developers.
| "posthog-js": "file:/Users/adambowker/posthog-js/target/posthog-js.tgz", | |
| "posthog-js": "*", |
Prompt To Fix With AI
This is a comment left during a code review.
Path: playground/nextjs/package.json
Line: 23:23
Comment:
**logic:** Local file path reference should not be committed - this breaks the build for other developers.
```suggestion
"posthog-js": "*",
```
How can I resolve this? If you propose a fix, please make it concise.1bf7afb to
2b56252
Compare
2b56252 to
ce72dba
Compare
ce72dba to
a07da09
Compare
lucasheriques
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to fix the package.json to not commit your local changes
and also make it so both survreys and product tours share the url matching, since the function is the same
otherwise 🚢
lucasheriques
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly nice to have, prob can get those down in 1 session with claude, but approving already so we can demo 🚢
|
|
||
| // Modal step (no selector) - render without a target element | ||
| if (!step.selector) { | ||
| this._captureEvent('product tour step shown', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to have the events as constants in an enum, similar to how we do it for surveys
| const window = _window as Window & typeof globalThis | ||
|
|
||
| // Tour condition checking utilities (moved from utils/product-tour-utils.ts) | ||
| function doesTourUrlMatch(tour: ProductTour): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
share this utility with surveys or use the surveys, as it's the same really
maybe we just pass the url and the target so not pass the entire product tour
| } | ||
| } | ||
|
|
||
| function doesTourSelectorMatch(tour: ProductTour): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
survey also has a selector filter that we can prob reuse
| } | ||
| } | ||
|
|
||
| function isTourInDateRange(tour: ProductTour): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again can also share this with surveys 🤣 since exact same names too

Problem
Changes
Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file