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(persons): improve persons scene copy #27028

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thmsobrmlr
Copy link
Contributor

@thmsobrmlr thmsobrmlr commented Dec 18, 2024

Problem

The copy on the persons page was confusing, see individual comments on the code.

Changes

Improves it. I also removed a legacy component that I think isn't used any more.

How did you test this code?

👀

@posthog-bot
Copy link
Contributor

Hey @thmsobrmlr! 👋
This pull request seems to contain no description. Please add useful context, rationale, and/or any other information that will help make sense of this change now and in the distant Mars-based future.

@@ -20,8 +20,7 @@ interface LabelType {
const labels: Record<ActorType, LabelType> = {
person: {
label: 'persons',
description:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is still in reference to the legacy implementation. The current query looks like this:

SELECT id, id, created_at, 1
FROM persons
WHERE or(
    ilike(properties.email, '%QUERY%'), 
    ilike(properties.name, '%QUERY%'), 
    ilike(toString(id), '%QUERY%'), 
    in(id, (SELECT person_id FROM person_distinct_ids WHERE ilike(distinct_id, '%QUERY%')))
)
ORDER BY created_at DESC
LIMIT 101 OFFSET 0

@@ -52,7 +52,7 @@ export const personsManagementSceneLogic = kea<personsManagementSceneLogicType>(
{
key: 'persons',
url: urls.persons(),
label: 'People & groups',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We just list persons in this tab, no group.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the legacy implementation that doesn't seem to be used any more.

Copy link
Contributor

github-actions bot commented Dec 18, 2024

Size Change: 0 B

Total Size: 1.11 MB

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

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 6 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.

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.

2 participants