Skip to content

refactor(ui): optimize bundle size and remove heavy dependencies#5682

Merged
kodiakhq[bot] merged 1 commit intov2from
rd/v2/ui-cleanup
Apr 6, 2026
Merged

refactor(ui): optimize bundle size and remove heavy dependencies#5682
kodiakhq[bot] merged 1 commit intov2from
rd/v2/ui-cleanup

Conversation

@erka
Copy link
Copy Markdown
Contributor

@erka erka commented Apr 6, 2026

  • Add manualChunks for code splitting in Vite config
  • Replace uuid package with custom UUID v4 function using crypto.randomUUID
  • Replace @mui/x-charts SparkLineChart with custom SVG Sparkline component
  • Remove unused dependencies: @mui/material, @mui/x-charts, @emotion/*, uuid, @types/uuid, @types/loadable__component

@erka erka requested a review from a team as a code owner April 6, 2026 12:35
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 6, 2026
@erka erka added dx Developer experience v2 Flipt v2 labels Apr 6, 2026
@erka erka added ui and removed dx Developer experience labels Apr 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.12%. Comparing base (c2c288b) to head (b94179b).
⚠️ Report is 1 commits behind head on v2.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2    #5682   +/-   ##
=======================================
  Coverage   61.12%   61.12%           
=======================================
  Files         141      141           
  Lines       14170    14170           
=======================================
  Hits         8662     8662           
  Misses       4777     4777           
  Partials      731      731           
Flag Coverage Δ
integrationtests 34.52% <ø> (ø)
unittests 52.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 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.

- Add manualChunks for code splitting in Vite config
- Replace uuid package with custom UUID v4 function using crypto.randomUUID
- Replace @mui/x-charts SparkLineChart with custom SVG Sparkline component
- Remove unused dependencies: @mui/material, @mui/x-charts, @emotion/*, uuid, @types/uuid, @types/loadable__component
- Remove unused sidebar cookie persistence

Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
@erka erka force-pushed the rd/v2/ui-cleanup branch from 964f33f to b94179b Compare April 6, 2026 12:51
Copy link
Copy Markdown
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

ty!

@erka erka added the automerge Used by Kodiak bot to automerge PRs label Apr 6, 2026
@kodiakhq kodiakhq Bot merged commit 44c80ce into v2 Apr 6, 2026
33 checks passed
@kodiakhq kodiakhq Bot deleted the rd/v2/ui-cleanup branch April 6, 2026 13:09
@github-project-automation github-project-automation Bot moved this to Done in Flipt V2 Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Used by Kodiak bot to automerge PRs size:L This PR changes 100-499 lines, ignoring generated files. ui v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants