-
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
[CP Staging] optional chaining for optiondata #45508
[CP Staging] optional chaining for optiondata #45508
Conversation
@sobitneupane 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] |
@yuwenmemon The PR is ready for review. Is there a C+ review required here considering that the fix is a small one? |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-07-17.at.3.06.53.AM.movMacOS: DesktopScreen.Recording.2024-07-17.at.3.10.36.AM.moviOS: mWeb SafariScreen.Recording.2024-07-17.at.3.16.30.AM.movAndroid: mWeb ChromeScreen.Recording.2024-07-17.at.3.23.18.AM.movAndroid: NativeScreen.Recording.2024-07-17.at.3.21.32.AM.moviOS: NativeScreen.Recording.2024-07-17.at.3.19.12.AM.mov |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…chat optional chaining for optiondata (cherry picked from commit 4f82531)
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.0.8-1 🚀
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.0.8-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
@yuwenmemon @pac-guerreiro @chiragsalian
Details
This PR adds optional chaining to optionData.
Fixed Issues
$ #45492
PROPOSAL:
Test
Steps:
1 Go to staging.new.expensify.com
2 Create a new ND account.
3 Go to self DM.
4 Click on the self DM header.
5 Check if the URL ends with an even number. If not, keep creating accounts until it ends with an even number. (Important)
6 Log in to the same account (with ending even number in User ID) on OD.
7 Log out of ND.
8 Click on the bubble on OD.
9 Verify that the app does not crash on desktop.
Offline tests
Same as the Steps in Tests Section.
QA Steps
Same as the Steps in Tests Section.
For all other platforms, we can verify if the signin does not result in a crash. We can signin using the same account used for testing desktop platform.
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)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Desktop
45492-desktop-001.mp4
iOS
45462-ios-native-001.mp4
Android
45462-android-native-001.mp4
Mobile Web - Chrome
45462-mweb-chrome-001.mp4
Mobile Web - Safari
45462-mweb-safari-001.mp4
Web
45492-web-safari-001.mp4