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: promoted keys in properties table #25891

Merged
merged 5 commits into from
Oct 31, 2024
Merged

feat: promoted keys in properties table #25891

merged 5 commits into from
Oct 31, 2024

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Oct 30, 2024

in the replay inspector we promote properties on known events to the top of the sorting order so they're easier to find

this copies that user affordance to the properties table

e.g. promoting url on page view even though the list is sorted alphabetically otherwise

Screenshot 2024-10-30 at 08 55 30

@pauldambra pauldambra requested a review from a team October 30, 2024 08:59
* The container for these properties e.g. the event name of the event the properties are on
* Can be used for e.g. to promote particular properties when sorting the properties
*/
parent?: string
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it now needs to know its context so it can detect what properties can be promoted

i couldn't think of a better name than parent but I'm open to suggestions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parentEvent could work, as this is an event? At least it's a bit more descriptive

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it could be other things in future... e.g. groups have properties

i played with container, context, parent

i guess it's easy to change and as we add things it might become clear what it should be called

Copy link
Contributor

github-actions bot commented Oct 30, 2024

Size Change: 0 B

Total Size: 1.15 MB

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

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • 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

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@pauldambra pauldambra merged commit e8d88aa into master Oct 31, 2024
94 checks passed
@pauldambra pauldambra deleted the feat/promoted-keys branch October 31, 2024 10:04
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