-
Notifications
You must be signed in to change notification settings - Fork 367
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
fix: [M3-7533] - RegionSelect sorting in Firefox #9971
Conversation
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.
biggest pr i've ever seen 😆
Confirmed regions are now sorted on Firefox, and chrome + safari are the same ✅
Coverage Report: ❌ |
5c8fac0
to
79eea76
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.
✅ Regions are alphabetically sorted in Firefox in the same order they are on Chrome and Safari.
❓ This might have been discussed in previous RegionSelect PRs and I'm lacking context, but did we recently decide to sort alphabetically by region regardless of country?
In prod, we sort alpha by country and so Toronto appears below Washington. In dev and this branch, Toronto is in alpha order within the US DCs. Same situation with Asia.
Prod | Dev/This Branch |
---|---|
@mjac0bs yup this has been discussed and approved by UI - they are in the process or refactoring-redesigning this component but in the meantime the alphabetical approach for ordering DCs within their groups has been pushed forward. |
79eea76
to
3f0115e
Compare
@mjac0bs @coliu-akamai I also added grouping by country to make things a bit more readable on Mariah's suggestion - please feel free to take another look before I merge tomorrow. Thank you! |
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 like that change resulted in a unit test failure because the test case is expecting a CA region to come before the US still, since they're both North America.
Edit: Also, this doesn't need a changeset, does it? This never made it to prod.
Approving since aside from that, I confirmed that sorting is happening by Region and then by Country in Chrome, Firefox, and Safari, which now matches prod. Thanks for making that country sort change - in the absence of final UX guidance, I think it is for the best that we keep prod's current sorting and easy visual navigation by flag. While it's not currently ideal for regions like Europe, I suspect that users in those regions are accustomed to their region's placement.
thanks Alban and Mariah! Reconfirmed sorting + confirmed grouping by country |
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.
Only observation found is DC: Singapore, SG was enabled in Firefox and safari. But, disabled in chrome.
@cpathipa I can't reproduce. Please make sure you are testing:
|
@abailly-akamai Sorry, My bad, that's due to different account in chrome. Confirming that sorting is working as expected in Firefox and no regression found. |
Description 📝
This giant PR fixes a small issue with the region select DCs not being sorted properly in Firefox.
Changes 🔄
Preview 📷
How to test 🧪
Reproduction steps
Verification steps
As an Author I have considered 🤔
Check all that apply