Skip to content
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

Switch II front-end to API v2 for registration #2654

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

frederikrothenberger
Copy link
Contributor

@frederikrothenberger frederikrothenberger commented Oct 16, 2024

This PR switches the II front-end to the APIv2. In particular, the front-end is now able to dynamically skip the captcha if it is switched off.

Note: This PR does not include e2e tests for switched off captchas. Since this requires a whole new CI setup, I'll do this in another PR.


🟡 Some screens were changed
🔴 Some screens were removed

@frederikrothenberger frederikrothenberger requested a review from a team as a code owner October 16, 2024 09:24
@frederikrothenberger frederikrothenberger requested review from nmattia and lmuntaner and removed request for a team and nmattia October 16, 2024 09:24
This PR switches the II front-end to the APIv2. In particular, the
front-end is now able to dynamically skip the captcha if it is switched
off.

Note: This PR does _not_ include e2e tests for switched off captchas.
Since this requires a whole new CI setup, I'll do this in another PR.
captcha_png_base64: string;
checkCaptcha: (
solution: string
) => Promise<Exclude<T, WrongCaptchaSolution> | WrongCaptchaSolution>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this type Exclude<T, WrongCaptchaSolution>?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I need to split the type into either a WrongCaptchaSolution or the generic type T. And in order for Typescript to not complain, I needed to make sure that T cannot be WrongCaptchaSolution.

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Oct 17, 2024
Merged via the queue into main with commit 814f3d2 Oct 17, 2024
66 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/new-reg-flow-fe branch October 17, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants