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: add display name suggestions #17571

Merged
merged 10 commits into from
Sep 21, 2023
Merged

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Sep 21, 2023

Problem

The default Person Display Names look like they're already included when in fact a user would have to click "Save" to persist them

Screenshot 2023-09-21 at 11 36 51

Changes

  • Fix a bug with removing items
  • Make the defaults suggestions instead

How did you test this code?

suggestions.mp4

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

didn't run it but this looks 🔥

@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 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@daibhin daibhin merged commit 408d54a into master Sep 21, 2023
@daibhin daibhin deleted the dn-fix/display-name-suggestions branch September 21, 2023 15:23
@Twixes
Copy link
Member

Twixes commented Sep 21, 2023

Hmm, these are the actual defaults though. Since the default posthog_team.person_display_name_properties value is NULL, PERSON_DEFAULT_DISPLAY_NAME_PROPERTIES already acts as the effective fallback value. This is definitely the case in a bunch of places, such as asDisplay() in the frontend, or webhook formatting in the backend. So what's shown in settings is not mere suggestions. @daibhin

daibhin added a commit that referenced this pull request Sep 21, 2023
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.

7 participants