-
Notifications
You must be signed in to change notification settings - Fork 53
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
Wizard: LOCALE - Add Languages drop down (HMS-5151) #2652
Wizard: LOCALE - Add Languages drop down (HMS-5151) #2652
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #2652 +/- ##
==========================================
+ Coverage 84.82% 85.14% +0.32%
==========================================
Files 172 173 +1
Lines 19625 20062 +437
Branches 1928 1945 +17
==========================================
+ Hits 16647 17082 +435
- Misses 2956 2958 +2
Partials 22 22
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
d603dfb
to
d7ddb4f
Compare
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [filterValue]); | ||
|
||
const sortfn = (a: string, b: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update this so it uses the reusable utility function. Will take care of it tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a commit for the reusable function, thank you!
d7ddb4f
to
b8c79b8
Compare
b8c79b8
to
5f4dbda
Compare
5f4dbda
to
de4c408
Compare
This adds a drop down for languages selection. The options are populated with an ouput of `localectl list-locales` and sorted to display results starting with the search term first. Also added tests.
This replaces sortfn with a reusable sorting function from utilities.
de4c408
to
d653b28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Rebased on #2651
This adds a drop down for languages selection. The options are populated with an ouput of
localectl list-locales
and sorted to display results starting with the search term first.Also added tests.