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

UIBULKED-375: Localize alphabetical order of Bulk edit elements #421

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

UladzislauKutarkin
Copy link
Contributor

UIBULKED-375
Here we added alphabetical sorting for options and action in bulk edit. We made two separate functions because in options we have optgroups

Screen.Recording.2023-11-27.at.14.20.52.mov

@UladzislauKutarkin UladzislauKutarkin requested review from vashjs and a team November 27, 2023 10:25
Copy link

github-actions bot commented Nov 27, 2023

Jest Unit Test Statistics

    1 files  ±0    26 suites  +1   2m 45s ⏱️ -7s
171 tests +3  170 ✔️ +3  1 💤 ±0  0 ±0 
174 runs  +3  173 ✔️ +3  1 💤 ±0  0 ±0 

Results for commit 517de80. ± Comparison against base commit 0e72ea4.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 517de80. ± Comparison against base commit 0e72ea4.

♻️ This comment has been updated with latest results.

@@ -17,10 +17,21 @@ export const ActionsRow = ({ option, actions, onChange }) => {
return actions.map((action, actionIndex) => {
if (!action) return null;

const collator = new Intl.Collator();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this sorting logic to some utils files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@UladzislauKutarkin UladzislauKutarkin merged commit f388573 into master Nov 28, 2023
5 checks passed
@UladzislauKutarkin UladzislauKutarkin deleted the UIBULKED-375 branch November 28, 2023 11:55
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.

3 participants