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

chore: replace antd Select component in ObjectTags #20981

Merged
merged 21 commits into from
Mar 28, 2024
Merged

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Mar 18, 2024

Problem

Towards #13624

Since #20948 we have a new multiselect component

Changes

Replace custom SelectGradientOverflow style Select with the new LemonInputSelect which has everything the old component offered already built in

Debated making a size attribute on the LemonInputSelect but there is some drift between the size of the input & lemon snacks (snacks themselves don't have any size so would need to be added, and the close button size would not map directly to the input).

Does this work well for both Cloud and self-hosted?

Nope!

How did you test this code?

tags.mp4

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@daibhin daibhin force-pushed the dn-chore/replace-tags branch from e59a7d5 to 448ba37 Compare March 18, 2024 16:24
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented Mar 18, 2024

Size Change: 0 B

Total Size: 824 kB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 824 kB

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

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@@ -329,7 +329,7 @@ describe('the activity log logic', () => {
const actual = logic.values.humanizedActivity

expect(render(<>{actual[0].description}</>).container).toHaveTextContent(
'peter added tags 4 5 , and removed tags 2 3 on test insight'
'peter added tags 45, and removed tags 23 on test insight'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Believe this is just the new dom structure. Checked the stories and things still render nicely
Screenshot 2024-03-20 at 09 36 22

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@daibhin daibhin requested a review from benjackwhite March 28, 2024 10:29
@daibhin daibhin requested a review from Twixes March 28, 2024 10:29
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

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

Looks great to me! Didn't check every snapshot of course but looks like a safe change

@daibhin daibhin merged commit ce403ee into master Mar 28, 2024
83 checks passed
@daibhin daibhin deleted the dn-chore/replace-tags branch March 28, 2024 11:36
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