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

fix: cherry-picked forgot-password from core #1566

Merged
merged 8 commits into from
Mar 10, 2023
Merged

Conversation

ColinBuyck
Copy link
Collaborator

@ColinBuyck ColinBuyck commented Mar 2, 2023

Pull Request Template

Issue Overview

This PR addresses #1546

  • This change addresses the issue in full
  • This change addresses only certain aspects of the issue
  • This change is a dependency for another issue
  • This change has a dependency from another issue

Description

This PR is a cherry-pick from Core (with a few adjustments) so that entering an email on the forgot password page will return a neutral message that doesn't indicate if the email exists or not. This PR also adds tests to verify the backend changes required.

How Can This Be Tested/Reviewed?

This can be tested by submitting an email that exists in the db on the forgot password page and then one that doesn't to ensure that the UX is the same. This should be tested on both the partner's and public side.

Checklist:

  • My code follows the style guidelines of this project
  • I have added QA notes to the issue with applicable URLs
  • I have performed a self-review of my own code
  • I have reviewed the changes in a desktop view
  • I have reviewed the changes in a mobile view
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have assigned reviewers
  • I have run yarn generate:client and/or created a migration if I made backend changes that require them
  • I have exported any new pieces added to ui-components
  • My commit message(s) is/are polished, and any breaking changes are indicated in the message and are well-described
  • Commits made across packages purposefully have the same commit message/version change, else are separated into different commits

Reviewer Notes:

Steps to review a PR:

  • Read and understand the issue, and ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Also review the acceptance criteria on the Netlify deploy preview (noting that these do not yet include any backend changes made in the PR)
  • Either explicitly ask a clarifying question, request changes, or approve the PR if there are small remaining changes but the PR is otherwise good to go

On Merge:

If you have one commit and message, squash. If you need each message to be applied, rebase and merge.

@netlify
Copy link

netlify bot commented Mar 2, 2023

Deploy Preview for detroit-public-dev ready!

Name Link
🔨 Latest commit d1be391
🔍 Latest deploy log https://app.netlify.com/sites/detroit-public-dev/deploys/64090a3a0924140008b1a57f
😎 Deploy Preview https://deploy-preview-1566--detroit-public-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ColinBuyck ColinBuyck changed the title fix: cherry-picked commit from core fix: cherry-picked forgot-password from core Mar 2, 2023
@netlify
Copy link

netlify bot commented Mar 2, 2023

Deploy Preview for detroit-partners-dev ready!

Name Link
🔨 Latest commit d1be391
🔍 Latest deploy log https://app.netlify.com/sites/detroit-partners-dev/deploys/64090a3addc52800087be308
😎 Deploy Preview https://deploy-preview-1566--detroit-partners-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 2, 2023

Deploy Preview for detroit-storybook-dev ready!

Name Link
🔨 Latest commit d1be391
🔍 Latest deploy log https://app.netlify.com/sites/detroit-storybook-dev/deploys/64090a3a0332dc0008a440ba
😎 Deploy Preview https://deploy-preview-1566--detroit-storybook-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ColinBuyck ColinBuyck marked this pull request as ready for review March 8, 2023 05:58
@@ -307,7 +307,6 @@
"authentication.createAccount.reEnterEmail": "Vuelva a introducir la dirección de correo electrónico",
"authentication.createAccount.reEnterPassword": "Reingresa tu contraseña",
"authentication.createAccount.resendTheEmail": "Volver a enviar el email",
"authentication.forgotPassword.success": "Te hemos enviado un correo electrónico. Recibirás un correo electrónico con un enlace para restablecer tu contraseña.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a plan to get the translated strings for the new message? I believe it is also not translated in core as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is what I was referring to in standup @sarahlazarich!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch! I think we can do this in google translate -- I'll put the translations in the original ticket!

Copy link
Collaborator

@emilyjablonski emilyjablonski left a comment

Choose a reason for hiding this comment

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

@ColinBuyck ColinBuyck merged commit e7759d4 into dev Mar 10, 2023
@ColinBuyck ColinBuyck deleted the 1546/forgot-password-flow branch March 10, 2023 18:26
ludtkemorgan pushed a commit that referenced this pull request Mar 10, 2023
* fix: cherry-picked commit from core

* fix: update testing approach to mirror core

* fix: undo core test mirroring

* fix: resolve testing error

* fix: revert unrelated changes

* fix: space cleanup

* fix: space cleanup pt 2

* fix: translations added
ludtkemorgan added a commit that referenced this pull request Mar 15, 2023
* fix: reset focus for NVDA (#1556)

* fix: first attempt to reset focus for nvda

* fix: attemmpt with asPath approach

* fix: reset focus in application file

* fix: missing tabIndex value

* fix: hidden new page approach

* fix: new page with state

* fix: functional navigation announcement

* fix: cleaned up css approach

* fix: remove unused css

* fix: remove space typo

* fix: nvda testing without alert

* fix: re-instate alert

* fix: simpler solution for cross browser support

* fix: remove alert since focused

* fix: announcement clean up

* fix: variable naming

* fix: announcement updates pr LH feedback

* fix: heading level typo

* fix: clean up string handling

* fix: clean up rebase

* feat: change labels for no min/max rent (#1569)

* fix: release ux issues (#1571)

* refactor: uptake uic siteheader (#1565)

* fix: show all listings button labels (#1568)

* feat: add meaningful labels to filter buttons

* feat: change reset button label

* fix: add missing filter translations for spanish

* fix: cherry-picked forgot-password from core (#1566)

* fix: cherry-picked commit from core

* fix: update testing approach to mirror core

* fix: undo core test mirroring

* fix: resolve testing error

* fix: revert unrelated changes

* fix: space cleanup

* fix: space cleanup pt 2

* fix: translations added

* fix: custom focus management (#1572)

* fix: custom focus management

* fix: clean up + commenting

* fix: remove auto fix from linter

* fix: add missing screen reader only  labels to fields (#1573)

* fix: update to community type draggability (#1578)

* fix: description grid misalignment (#1581)

* fix: description grid misalignment

* fix: description misalignment

---------

Co-authored-by: ColinBuyck <53269332+ColinBuyck@users.noreply.github.com>
Co-authored-by: Krzysztof Zięcina <kriss.kontakt@gmail.com>
Co-authored-by: Emily Jablonski <65367387+emilyjablonski@users.noreply.github.com>
Co-authored-by: Yazeed Loonat <YazeedLoonat@gmail.com>
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