-
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
[No QA] [TS migration] Review and clean up Styles files #27660
[No QA] [TS migration] Review and clean up Styles files #27660
Conversation
src/styles/themes/light.ts
Outdated
@@ -62,7 +63,7 @@ const lightTheme = { | |||
heroCard: colors.blue400, | |||
uploadPreviewActivityIndicator: colors.lightHighlightBackground, | |||
dropUIBG: 'rgba(252, 251, 249, 0.92)', | |||
dropTransparentOverlay: 'rgba(255,255,255,0)', | |||
receiptDropUIBG: '', // TODO: add color |
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.
Are we going to merge with the TODO?
receiptDropUIBG: '', // TODO: add color | |
receiptDropUIBG: '', // TODO: add color |
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.
There is an ongoing Theme migration to Typescript PR, they marked receiptDropUIBG
as optional. They also typed themes a bit differently, we need to coordinate these two PRs @fabioh8010, wdyt?
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.
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.
Left a few comments, overall LGTM. Hard and good work!
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.
Great work overall! 💯
@fabioh8010 Did you test that using styles inside components works well?
src/styles/themes/light.ts
Outdated
@@ -62,7 +63,7 @@ const lightTheme = { | |||
heroCard: colors.blue400, | |||
uploadPreviewActivityIndicator: colors.lightHighlightBackground, | |||
dropUIBG: 'rgba(252, 251, 249, 0.92)', | |||
dropTransparentOverlay: 'rgba(255,255,255,0)', | |||
receiptDropUIBG: '', // TODO: add color |
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.
There is an ongoing Theme migration to Typescript PR, they marked receiptDropUIBG
as optional. They also typed themes a bit differently, we need to coordinate these two PRs @fabioh8010, wdyt?
Ale you need to resolve conflicts @fabioh8010 |
@hayata-suenaga will you be able to look again? 😄 |
…yle/styles-refactor
…yle/styles-refactor
…yle/styles-refactor
Thank you for answering all questions I have 🙇 |
✋ 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/hayata-suenaga in version: 1.3.84-0 🚀
|
This PR caused regression - #29602, #29611 |
Yes, I will try to do PR asap @situchan |
...flex.flexWrap, | ||
...flex.flex1, |
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.
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.85-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
Details
This PR:
react-native-web
style and component props to the corereact-native
components. Please note that the solution is not perfect as this is actually a current issue in the community (Using TypeScript x React Native Web necolas/react-native-web#832, Exporting types necolas/react-native-web#1684).styles.js
to TypeScriptCSSProperties
as it's not needed anymore.Fixed Issues
$
PROPOSAL: N/A
Tests
Main flows test.
Offline tests
Main flows test.
QA Steps
Main flows test.
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
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.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
Web
Screen.Recording.2023-09-18.at.11.50.02.mov
Screen.Recording.2023-09-18.at.11.50.37.mov
Desktop
Screen.Recording.2023-09-18.at.11.51.13.mov
Mobile Web - Chrome
Screen.Recording.2023-09-18.at.11.52.21.mov
Android
Screen.Recording.2023-09-18.at.11.53.40.mov
Mobile Web - Safari
Screen.Recording.2023-09-18.at.11.55.06.mov
iOS
Screen.Recording.2023-09-18.at.11.56.04.mov