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

feat: add button for 2fa submit [SQSERVICES-1991/ SQSERVICES-1940] #14961

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

tlebon
Copy link
Contributor

@tlebon tlebon commented Apr 3, 2023

BugSQSERVICES-1991 [Web] Missing feedback after entering 2FA code


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

UI does not have appropriate user feedback to understand what happens when 2fa code is entered.

Screen.Recording.2023-04-03.at.15.01.54.mov

Solutions

Adds a button to 2fa login flow to allow blocking the UI. (first usage is submitted automatically)

Screen.Recording.2023-04-03.at.14.57.52.mov

Needs releases with:

FRIDA

@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Merging #14961 (8db776a) into dev (a7f4480) will decrease coverage by 0.01%.
The diff coverage is 25.00%.

❗ Current head 8db776a differs from pull request most recent head c05bc6d. Consider uploading reports for the commit c05bc6d to get more accurate results

@@            Coverage Diff             @@
##              dev   #14961      +/-   ##
==========================================
- Coverage   42.88%   42.87%   -0.01%     
==========================================
  Files         630      630              
  Lines       21439    21446       +7     
  Branches     4920     4923       +3     
==========================================
+ Hits         9194     9196       +2     
- Misses      11078    11083       +5     
  Partials     1167     1167              

style={{marginTop: 60}}
onCodeComplete={submitTwoFactorLogin}
data-uie-name="enter-code"
markInvalid={!!twoFactorSubmitError}
// markInvalid={!!twoFactorSubmitError}
Copy link
Contributor

Choose a reason for hiding this comment

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

what shall we do with that?

style={{marginTop: 60}}
onCodeComplete={submitTwoFactorLogin}
data-uie-name="enter-code"
markInvalid={!!twoFactorSubmitError}
// markInvalid={!!twoFactorSubmitError}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// markInvalid={!!twoFactorSubmitError}

style={{marginTop: 60}}
onCodeComplete={submitTwoFactorLogin}
data-uie-name="enter-code"
markInvalid={!!twoFactorSubmitError}
// markInvalid={!!twoFactorSubmitError}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this comment/ line

setTwoFactorSubmitError('');
handleSubmit({...twoFactorLoginData, verificationCode: code}, []);
// Do not auto submit if already failed once
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@tlebon tlebon merged commit 92fdea7 into dev Apr 3, 2023
10 checks passed
@tlebon tlebon deleted the feat/2fa-submit-button branch April 3, 2023 13:16
tlebon added a commit that referenced this pull request Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants