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: remove antd progress #19953

Merged
merged 12 commits into from
Jan 26, 2024
Merged

chore: remove antd progress #19953

merged 12 commits into from
Jan 26, 2024

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Jan 24, 2024

Problem

Removing some old antd Progress components

Changes

Replicate all functionality currently used

How did you test this code?

Checked each case

Before After
b-signup a-signup
Before After
b-exp-result a-exp-result
Before After
b-experiment a-experiment

@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 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

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.

@daibhin daibhin changed the title Dn chore/remove antd progress chore: remove antd progress Jan 25, 2024
@daibhin daibhin force-pushed the dn-chore/remove-antd-progress branch from 709f9b7 to adb8f7a Compare January 25, 2024 10:26
@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.

@daibhin daibhin force-pushed the dn-chore/remove-antd-progress branch from 261cef8 to 7804f37 Compare January 25, 2024 10:43
@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.

Copy link
Contributor

github-actions bot commented Jan 25, 2024

Size Change: 0 B

Total Size: 2.22 MB

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

compressed-size-action

@daibhin daibhin requested a review from a team January 25, 2024 11:04
Copy link
Member

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

A few comments before we merge, but awesome to have this!

Comment on lines 1 to 5
.LemonProgress {
.LemonProgress__track {
transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Is Tailwind transition not enough? Ideally we should avoid .scss

Comment on lines 21 to 20
strokeColor={
trackColor={
Copy link
Member

Choose a reason for hiding this comment

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

I do believe strokeColor better represented what this means, because the track is the gray underlying bar. I think strokeColor or rangeColor would be clearer here. (E.g. Radix UI calls these parts "track" and "range")

<span
className={clsx(
'LemonProgress__track block h-full rounded-full',
percent > 0 ? (size === 'large' ? 'min-w-5' : 'min-w-[0.375rem]') : null
Copy link
Member

Choose a reason for hiding this comment

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

min-w-[0.375rem] === w-1.5

className?: string
}

export const LemonProgress = ({
Copy link
Member

Choose a reason for hiding this comment

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

Now that I think about this component, it would actually totally make sense to use it as the base of LemonSlider, just without the transition 🤔 I might do this in another PR

@daibhin daibhin force-pushed the dn-chore/remove-antd-progress branch from 6480e34 to f2b7539 Compare January 26, 2024 11:29
@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.

@daibhin daibhin enabled auto-merge (squash) January 26, 2024 11:41
@daibhin daibhin force-pushed the dn-chore/remove-antd-progress branch from aeb5d78 to 12a7cdc Compare January 26, 2024 15:42
@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.

@daibhin daibhin merged commit 0dd78c5 into master Jan 26, 2024
79 checks passed
@daibhin daibhin deleted the dn-chore/remove-antd-progress branch January 26, 2024 16:03
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