-
Notifications
You must be signed in to change notification settings - Fork 3.5k
#2 - Fix number format polyfill isn't applied #68923
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
#2 - Fix number format polyfill isn't applied #68923
Conversation
|
@abdulrahuman5196 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] |
|
@abdulrahuman5196 bump for review |
|
@bernhardoj This is the same change as previous right? wouldn't it cause a crash again like here? |
|
@abdulrahuman5196 yes, it's the same change, but as I mentioned here, I can't actually reproduce the issue, so if possible, can you please test it on the hybrid app too? If you can't repro the crash too, maybe there is some conflict before with other code. |
Screen.Recording.2025-09-25.at.11.49.37.PM.movScreen.Recording.2025-09-25.at.11.50.55.PM.mov@bernhardoj I am able to see the crash in Hybrid iOS app. |
|
|
||
| // Polyfill the Intl API if locale data is not as expected | ||
| intlPolyfill(); | ||
|
|
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.
Hmm, this is hard because I can't use the Hybrid app. My best guess is that, there are some polyfills that are required but not loaded yet because we now only call the polyfill in NumberFormatUtils. I think we should keep this intlPolyfill in setup. Can you try that?
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.
@abdulrahuman5196 bump
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.
@abdulrahuman5196 bump
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.
Hi, Will try to repro this again on this tomorrow. Meanwhile you could also check? Hybrid app setup is actually straightforward now.
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.
@bernhardoj I don't face members crash if we keep this in setup.
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.
Still trying to run the app, facing some problems
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.
@abdulrahuman5196 I can reproduce the crash now on the HybridApp, and adding back the polyfill in setup works. We can continue with the PR.
a.mp4
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.
@abdulrahuman5196 bump
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.
@bernhardoj The code looks fine. In the author's checklist, could you kindly test again in the issue scenario due to new changes and also check in the places where crashes happened due to regression and update the author's checklist screenshot. Currently the screenshot are old during the initial pr raise.
I will do the same from my end once the author's checklist is complete.
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.
@abdulrahuman5196 done
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 9 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-05.at.2.38.12.PM.movAndroid: mWeb ChromeScreen.Recording.2025-11-05.at.2.52.46.PM.moviOS: HybridAppScreen.Recording.2025-11-05.at.2.20.11.PM.moviOS: mWeb SafariScreen.Recording.2025-11-05.at.2.23.32.PM.movMacOS: Chrome / SafariScreen.Recording.2025-11-05.at.1.49.56.PM.movMacOS: DesktopScreen.Recording.2025-11-05.at.2.03.08.PM.mov |
abdulrahuman5196
left a comment
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Valforte
🎀 👀 🎀
C+ Reviewed
|
✋ 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/Valforte in version: 9.2.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.45-6 🚀
|
Explanation of Change
Fixed Issues
$ #66784
PROPOSAL: #66784 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop