-
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
[TS migration] Migrate 'OfflineWithFeedback.js' component to TypeScript #31124
[TS migration] Migrate 'OfflineWithFeedback.js' component to TypeScript #31124
Conversation
…s-migration/OfflineWithFeedback/component
…s-migration/OfflineWithFeedback/component
|
||
const hasErrors = !isEmptyObject(errors); | ||
// Some errors have a null message. This is used to apply opacity only and to avoid showing redundant messages. | ||
const errorMessages = lodashOmitBy(errors, (e) => e === null); |
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.
How about implementation without lodash?
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.
FYI Original implementation used omit, not omitBy:
const errorMessages = _.omit(props.errors, (e) => e === null);
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.
@blazejkustra lodash omit is used only for omits by keys
https://lodash.com/docs/4.17.15#omit
for omit by some function omitBy
need to be used
https://lodash.com/docs/4.17.15#omitBy
…s-migration/OfflineWithFeedback/component
@blazejkustra comments resolved |
Could we get some testing steps please? Thanks! |
@Ollyws added! |
@Ollyws kindly bump 😄 |
Reviewer Checklist
Screenshots/Videos |
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.
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25102 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
✋ 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/cristipaval in version: 1.4.10-0 🚀
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.10-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.10-1 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.10-1 🚀
|
Details
Fixed Issues
$ #25102
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)/** 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
Android: Native
android.mp4
Android: mWeb Chrome
iOS: Native
ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4