Skip to content

refactor: reduce complexity#6182

Merged
lisalupi merged 5 commits intomainfrom
chore/complexity
Mar 26, 2026
Merged

refactor: reduce complexity#6182
lisalupi merged 5 commits intomainfrom
chore/complexity

Conversation

@lisalupi
Copy link
Copy Markdown
Collaborator

@lisalupi lisalupi commented Mar 5, 2026

Summary

Type

  • Refactor

Summarize concisely:

What is expected?

Refactor some components to reduce complexity (oxlint/biome), improve legibility, reduce repetitive code, have only 1 component/file.

Before After
OXC Capture d’écran 2026-03-26 à 15 39 27 Capture d’écran 2026-03-26 à 16 31 35
OXC type aware Capture d’écran 2026-03-26 à 15 40 54 Capture d’écran 2026-03-26 à 16 30 49

@lisalupi lisalupi self-assigned this Mar 5, 2026
@lisalupi lisalupi added the refactor Refactor without breaking changes label Mar 5, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 5, 2026

⚠️ No Changeset found

Latest commit: c3c6d29

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 89.17402% with 135 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.64%. Comparing base (dd040da) to head (c3c6d29).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
packages/ui/src/components/Popup/helpers.ts 75.00% 19 Missing and 4 partials ⚠️
...i/src/components/Expandable/AnimatedExpandable.tsx 62.22% 14 Missing and 3 partials ⚠️
...ages/ui/src/components/Modal/components/Dialog.tsx 6.66% 9 Missing and 5 partials ⚠️
...nents/SelectInput/components/Dropdown/Dropdown.tsx 88.07% 10 Missing and 3 partials ⚠️
...nts/compositions/EstimateCost/Components/Total.tsx 54.16% 11 Missing ⚠️
...i/src/components/SelectInput/components/helpers.ts 84.09% 7 Missing ⚠️
...s/ui/src/components/TextInput/ShowHidePassword.tsx 12.50% 7 Missing ⚠️
...nts/SelectInput/components/SelectBar/SelectBar.tsx 95.14% 5 Missing ⚠️
...ckages/ui/src/components/List/ExpandButtonCell.tsx 55.55% 4 Missing ⚠️
packages/ui/src/components/Menu/MenuContent.tsx 85.18% 4 Missing ⚠️
... and 17 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6182      +/-   ##
==========================================
+ Coverage   92.28%   92.64%   +0.36%     
==========================================
  Files         469      533      +64     
  Lines        9937     9979      +42     
  Branches     3869     3779      -90     
==========================================
+ Hits         9170     9245      +75     
+ Misses        696      670      -26     
+ Partials       71       64       -7     
Files with missing lines Coverage Δ
packages/ui/src/components/Button/index.tsx 96.42% <ø> (ø)
packages/ui/src/components/Carousel/Item.tsx 100.00% <100.00%> (ø)
packages/ui/src/components/Carousel/index.tsx 43.90% <ø> (-3.83%) ⬇️
packages/ui/src/components/Checkbox/index.tsx 100.00% <100.00%> (+3.22%) ⬆️
...ckages/ui/src/components/CheckboxGroup/Context.tsx 100.00% <100.00%> (ø)
...ui/src/components/CheckboxGroup/SingleCheckbox.tsx 100.00% <100.00%> (ø)
packages/ui/src/components/CheckboxGroup/index.tsx 82.60% <100.00%> (-5.63%) ⬇️
.../components/DateInput/components/CalendarDaily.tsx 100.00% <100.00%> (ø)
...omponents/DateInput/components/CalendarMonthly.tsx 100.00% <100.00%> (ø)
packages/ui/src/components/DateInput/helpers.ts 97.87% <100.00%> (+0.46%) ⬆️
... and 125 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2512e0a...c3c6d29. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lisalupi lisalupi merged commit 89ccfa0 into main Mar 26, 2026
14 of 15 checks passed
@lisalupi lisalupi deleted the chore/complexity branch March 26, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor without breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants