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: remove dependence on mui for spinner #2179

Open
wants to merge 1 commit into
base: qa
Choose a base branch
from

Conversation

jimniels
Copy link
Collaborator

Replace all instances of <CircularProgress> with our own custom spinner. This removes our dependence on the MUI package.

The new <SpinnerIcon> uses the progress_activity from our icon set and adds a spinning animation on it.

CleanShot 2025-01-09 at 16 47 29@2x

@cla-bot cla-bot bot added the cla-signed label Jan 10, 2025
Copy link

vercel bot commented Jan 10, 2025

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

Name Status Preview Updated (UTC)
quadratic ✅ Ready (Inspect) Visit Preview Jan 10, 2025 1:52am

.map((code, index) => {
return (
<span
className="-translate-x-[2px] -translate-y-[4px] scale-75"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FWIW: this is just a little futzing with the positioning by nudging things around until they looked right (since we're shirking the icon with scale-75 we have to get its position juuuuuuuuust right.

>
<SpinnerIcon
className={cn(code.color === 'black' && 'text-primary')}
style={code.color !== 'black' ? { color: code.color } : {}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

From my testing, it doesn't look like code.color was actually doing anything. It was always returning 'black' but I still left the logic the same (for now).

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.05%. Comparing base (b0e7aff) to head (172b782).
Report is 2 commits behind head on qa.

Additional details and impacted files
@@           Coverage Diff           @@
##               qa    #2179   +/-   ##
=======================================
  Coverage   89.05%   89.05%           
=======================================
  Files         306      306           
  Lines       62381    62381           
=======================================
  Hits        55554    55554           
  Misses       6827     6827           

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

Copy link

qa-wolf bot commented Jan 10, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants