Skip to content

Remove unused PasswordToggle React component#7278

Merged
aduth merged 2 commits intomainfrom
aduth-rm-pw-toggle-react
Nov 4, 2022
Merged

Remove unused PasswordToggle React component#7278
aduth merged 2 commits intomainfrom
aduth-rm-pw-toggle-react

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 3, 2022

🛠 Summary of changes

Removes the <PasswordToggle /> React component implementation, which is now unused after #7051.

This will also help simplify changes for upcoming work around LG-7947, as we will need to make changes to common password toggle behaviors.

@aduth aduth merged commit 09d0227 into main Nov 4, 2022
@aduth aduth deleted the aduth-rm-pw-toggle-react branch November 4, 2022 13:25
allthesignals added a commit that referenced this pull request Nov 16, 2022
allthesignals added a commit that referenced this pull request Nov 22, 2022
allthesignals added a commit that referenced this pull request Dec 1, 2022
…on search (#7385)

* Add address search component and relay results to USPS search

* Revert "Remove unused PasswordToggle React component (#7278)"

This reverts commit 09d0227.

* Shape the address search results into expected shape for querying USPS

* changelog: Improvements, In-Person Proofing, AddressSearch component

* Extract request into separate package; set types

* Track whether a search has been performed once. Show message on init

* Todo tests added; request is more flexible for plain get requests

* Update app/javascript/packages/request/index.ts

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Update app/javascript/packages/request/README.md

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Infer initial search from presence of foundAddress

* Drop unused helper func

* Rename to something more specific to the effect itself

* Hide AddressSearch implement behind feature flag

* Add type def

* Update app/javascript/packages/document-capture/components/in-person-location-step.tsx

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Include search results in address search component for testing

* Use window.fetch so it’s stubbable

* Remove prod-facing markup in favor of AddressSearch component

* Correct place to include header

* Remove styling and UX-specific work until ready...

* Use snake_case for data

* Minimal test to ensure happy path

* Failing test

* Add types for onChange signature

* Add passing test for request lib

* Fill out the rest of the tests

* Add polyfill for Response

* Refactor csrf to be injected another way

* Extract feature flag into new, IPP-specific Context

* Refactor to use index syntax

* Move Response polyfil to spec helper

* Add explicit assertion on window.fetch being called

* React isn’t used here

* No JSX, use TS

* Use memoization correctly

* Update app/javascript/packages/request/index.ts

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Test when CSRF is explicitly false

* Try moving this up

* Rework approach to import

* Reverse render order

* Dropping this for now because of conflict with other type definitions

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
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