-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Flatten styles to avoid crash #13525
Conversation
|
Made it ready for review to speed up things, I'll be testing all platforms now |
@parasharrajat @nkuoch One of you needs to 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] |
Tested in all platforms. |
Asked about App/src/components/DisplayNames/index.js Line 86 in a464a5c
|
Converting to draft while I change |
These calculated styles are passed down to other components in our code base, we should keep them as array.
This is ready for review again |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
…ployee Flatten styles to avoid crash (cherry picked from commit 8a054ac)
…-13525 🍒 Cherry pick PR #13525 to staging 🍒
🚀 Cherry-picked to staging by @chiragsalian in version: 1.2.38-6 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @chiragsalian in version: 1.2.38-6 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Flatten styles
Before:
After:
Fixed Issues
$ #13508
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting 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
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)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.Screenshots/Videos
Web
Screen.Recording.2022-12-12.at.12.13.44.PM.mov
Mobile Web - Chrome
Screen.Recording.2022-12-12.at.12.11.46.PM.mov
Mobile Web - Safari
Screen.Recording.2022-12-12.at.12.11.00.PM.mov
Desktop
Screen.Recording.2022-12-12.at.12.15.49.PM.mov
iOS
Screen.Recording.2022-12-12.at.12.07.55.PM.mov
Android
Screen.Recording.2022-12-12.at.12.06.58.PM.mov