-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Audit][Implementation] Intl collator replacement #36592
[Audit][Implementation] Intl collator replacement #36592
Conversation
Main concerns:
|
@cubuspl42 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
From Slack adding @hoangzinh as they can review now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-19.at.18.52.02.android.movAndroid: mWeb ChromeScreen.Recording.2024-02-19.at.18.50.02.android.chrome.moviOS: NativeScreen.Recording.2024-02-19.at.18.47.13.ios.moviOS: mWeb SafariScreen.Recording.2024-02-19.at.18.45.23.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-02-19.at.18.37.53.web.movMacOS: DesktopScreen.Recording.2024-02-19.at.18.40.31.desktop.mp4 |
Hi @kacper-mikolajczak I found that we're also using localeCompare in other places Does this PR only replace in SidebarUtils? |
Hi @hoangzinh! The issue/analysis was mostly related to If it is not going to be an issue to replace all of them, we can definitely do that! |
@kacper-mikolajczak thanks for confirmation. I will continue with the review checklist. |
NAB, with a common util func in this PR, I think it's better if we have unit tests. If we all agree, we can add them in another PR if this PR is urgent. |
I think those are good points:
|
@kacper-mikolajczak I think testing steps are incorrect. We're touching |
Updated testing steps to specifically refer to LHN 👍 |
Those are valid points, thanks for that! I've got to handle different responsibilities today, but I am going to act on those as soon as I am free 👍 |
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.
LGTM
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.
Thanks!
Improvement noticed in the test
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.43-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀
|
Details
PR is a part of Callstack performance audit.
PR aims to replace costly
localeCompare
calls with staticIntl.Collator
Fixed Issues
$ #36795
PROPOSAL: #35234 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
mandroid.mov
iOS: Native
ios.mov
iOS: mWeb Safari
mios.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov