LG-6205: Add endpoint, button to trigger password reset (IdV app)#6360
LG-6205: Add endpoint, button to trigger password reset (IdV app)#6360
Conversation
|
Prior to pushing this, I had an idea for an alternative implementation, which is to update the password reset controller to have an action which would trigger the password reset. We likely don't want this to be part of the default Then, on this page, we could use the I'm open to revising if it seems preferable to others. |
Loading state style looks nice, thanks for flagging @aduth! Maybe something to put on our next design system office hours agenda for awareness/adding both styles to Figma? |
Good idea! I'll add it to the agenda. |
b6b1f7a to
fe54598
Compare
app/javascript/packages/verify-flow/steps/password-confirm/password-reset-button.tsx
Outdated
Show resolved
Hide resolved
**Why**: So that a user will receive an email to reset their password after confirming to do password reset during identity proofing. changelog: Upcoming Features, Identity Verification, Add password confirmation step
**Why**: Since a ButtonComponent could be nested content (e.g. button_to), finding the adjacent sibling of a button to apply spinner dot coloring is not reliable. Instead, since we have access to the button properties, determine if it's an outline button and apply a modifier class on the wrapper element.
**Why**: Simplify tests to avoid stubbing window global
14310ed to
c458ec6
Compare
Why: So that a user will receive an email to reset their password after confirming to do password reset during identity proofing.
Testing Instructions:
You will need to set the step as enabled in your local
config/application.yml:Screen recording:
Screen.Recording.2022-05-17.at.4.45.21.PM.mov
FYI @anniehirshman-gsa @Kamal-Munshi : Since the (current) implementation calls to an API before redirecting, I opted to use the spinner button we use elsewhere for asynchronous page transitions. This button is an outline button, which we haven't implemented as spinner buttons until now.