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

refactor(ui): rework dropdown component #3634

Merged
merged 5 commits into from
Nov 21, 2024
Merged

refactor(ui): rework dropdown component #3634

merged 5 commits into from
Nov 21, 2024

Conversation

erka
Copy link
Collaborator

@erka erka commented Nov 19, 2024

Flipt uses headlessui for dropdown, but it had an issue that it's
impossible to specify the direction for the items. It's visible
in Console for copy curl/flipt commands. Recently headlessui released v2 which has different api and requires a full refactor of components. I decided to switch to radix-ui and gradually rewrite all components with headlessui. Dropdown is the first one. The new Button component is introduced but it is not migrated.

image

Flipt uses headlessui for dropdown, but it had an issue that it's
impossible to specify the direction for the items. It's visible
in Console for copy curl/flipt commands. Recently headlessui released v2 which has different api and requires a full refactor of components. I decided to switch to radix-ui and gradually rewrite all components with headlessui. Dropdown is the first one. The new Button component is introduced but it is not migrated.

Signed-off-by: Roman Dmytrenko <[email protected]>
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.31%. Comparing base (a59fd2e) to head (37f4cb3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3634      +/-   ##
==========================================
+ Coverage   64.27%   64.31%   +0.03%     
==========================================
  Files         170      170              
  Lines       17020    17020              
==========================================
+ Hits        10940    10946       +6     
+ Misses       5399     5395       -4     
+ Partials      681      679       -2     
Flag Coverage Δ
unittests 64.31% <ø> (+0.03%) ⬆️

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.


🚨 Try these New Features:

erka added 4 commits November 20, 2024 17:46
Signed-off-by: Roman Dmytrenko <[email protected]>
Signed-off-by: Roman Dmytrenko <[email protected]>
@erka erka marked this pull request as ready for review November 21, 2024 08:41
@erka erka requested a review from a team as a code owner November 21, 2024 08:41
Copy link
Member

@GeorgeMac GeorgeMac left a comment

Choose a reason for hiding this comment

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

Nice 💪

@erka erka merged commit 765849c into main Nov 21, 2024
39 checks passed
@erka erka deleted the rework-dropdown branch November 21, 2024 14:46
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.

2 participants