[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.
How about implementation without lodash?
There was a problem hiding this comment.
FYI Original implementation used omit, not omitBy:
const errorMessages = _.omit(props.errors, (e) => e === null);There was a problem hiding this comment.
@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 |
|
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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.mp4
Android: mWeb Chrome
iOS: Native
ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4