-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: make group identify props easier to find in replay #24497
feat: make group identify props easier to find in replay #24497
Conversation
Size Change: 0 B Total Size: 1.08 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
@@ -64,6 +64,8 @@ export function ItemEvent({ item, expanded, setExpanded }: ItemEventProps): JSX. | |||
let promotedKeys: string[] | undefined = undefined | |||
if (item.data.event === '$pageview') { | |||
promotedKeys = ['$current_url', '$title', '$referrer'] | |||
} else if (item.data.event === '$groupidentify') { | |||
promotedKeys = ['$group_type', '$group_key', '$group_set'] |
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.
oh this is cool :D
I had a good conversation here https://posthog.com/questions/events-and-groups-in-session-replay
One thing that was clear - you had to know what properties you were looking for to make a group identify event useful in the replay inspector
This adds promoted properties for them to lift the three important properties to the top
(new visual regression snapshot will show what that looks like)