Skip to content
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

Merged
merged 7 commits into from
Aug 21, 2024

Conversation

pauldambra
Copy link
Member

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)

@pauldambra pauldambra requested a review from a team August 20, 2024 21:00
Copy link
Contributor

github-actions bot commented Aug 20, 2024

Size Change: 0 B

Total Size: 1.08 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.08 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

3 snapshot changes in total. 0 added, 3 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

3 snapshot changes in total. 0 added, 3 modified, 0 deleted:

  • chromium: 0 added, 3 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@@ -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']
Copy link
Collaborator

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

@pauldambra pauldambra merged commit aa57fb6 into master Aug 21, 2024
93 checks passed
@pauldambra pauldambra deleted the feat/make-group-identify-properties-easier-to-find branch August 21, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants