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(circle,line): enable indeterminate mode #216

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

Conversation

SaidMarar
Copy link

@SaidMarar SaidMarar commented Jan 1, 2023

This is an enhancement for the request #84 it enables the indeterminate mode when the user does not define the percent property for both components circle and line.

<Circle />
<Line />

indeterminate

@vercel
Copy link

vercel bot commented Jan 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
progress ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 5, 2024 8:31pm

@codecov
Copy link

codecov bot commented Jan 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1b6ad30) 99.36% compared to head (e645a90) 99.41%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #216      +/-   ##
==========================================
+ Coverage   99.36%   99.41%   +0.05%     
==========================================
  Files           6        8       +2     
  Lines         157      172      +15     
  Branches       49       52       +3     
==========================================
+ Hits          156      171      +15     
  Misses          1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@afc163
Copy link
Member

afc163 commented Jan 1, 2023

👍

tests/index.spec.js Outdated Show resolved Hide resolved
@yoyo837
Copy link
Member

yoyo837 commented Jan 3, 2024

Rebase please

@SaidMarar
Copy link
Author

@yoyo837 Done 😄

@afc163
Copy link
Member

afc163 commented Jan 5, 2024

code coverage is down.

};
}

const animationName = 'circle-indeterminate-animate';
Copy link
Member

Choose a reason for hiding this comment

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

Do not hard code this. Follow id generation logic to dynamic create this.

Copy link
Author

Choose a reason for hiding this comment

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

@zombieJ
Just added could you check please, and one more thing is when we are using useId hook inside Line component it performs another render which changes the transition-duration like in Circle, so that's why i updated the snapshot.

arfter this change i tested on demo and i see no impacts.

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.

5 participants