-
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
Upgraded onfido-sdk-ui to v14.42.0 #56940
base: main
Are you sure you want to change the base?
Conversation
@eVoloshchak 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] |
@shubham1206agra, tests well!
|
@@ -94,7 +94,7 @@ function initializeOnfido({sdkToken, onSuccess, onError, onUserExit, preferredLo | |||
} | |||
onSuccess(data); | |||
}, | |||
onError: (error: OnfidoError) => { | |||
onError: (error) => { |
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.
import type {SdkErrorTypes} from 'onfido-sdk-ui/types/shared/Error';
type OnfidoError = {
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
exception?: Error | unknown;
type: SdkErrorTypes;
message: string;
};
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.
I am not sure why do we need that. Since everything is typed here already.
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.
It's just vscode having problems. Restart the lint server to fix this.
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.
You're right, that did the trick!
I still think there might be value in extending the type so it's consistent with actual errors thrown, but that's NAB, let's resolve the issues In #56940 (comment) first
@eVoloshchak Done |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-19.at.19.43.03.movAndroid: mWeb ChromeScreen.Recording.2025-02-19.at.19.39.36.moviOS: NativeScreen.Recording.2025-02-19.at.19.38.11.moviOS: mWeb SafariScreen.Recording.2025-02-19.at.19.36.08.movMacOS: Chrome / SafariScreen.Recording.2025-02-19.at.19.34.51.movMacOS: DesktopScreen.Recording.2025-02-19.at.19.32.53.mov |
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!
Explanation of Change
Fixed Issues
$ #41398
PROPOSAL: #41398 (comment)
Tests
Offline tests
NA
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Screen.Recording.2025-02-19.at.9.58.19.PM.mov
Android: mWeb Chrome
Screen.Recording.2025-02-19.at.9.35.59.PM.mov
iOS: Native
Screen.Recording.2025-02-19.at.9.54.29.PM.mov
iOS: mWeb Safari
Screen.Recording.2025-02-19.at.9.28.07.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-08.at.12.29.55.AM.mov
MacOS: Desktop
Screen.Recording.2025-02-19.at.9.43.21.PM.mov