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

Update RingdownForm.js #288

Merged
merged 2 commits into from
Apr 6, 2023
Merged

Update RingdownForm.js #288

merged 2 commits into from
Apr 6, 2023

Conversation

holliskuang
Copy link
Collaborator

@holliskuang holliskuang commented Apr 4, 2023

Reformatted how the Field/Selection components were structured

When the SelectHospital button is selected, the focus jumps to the buttons and seems to remain there for the newly rendered components.

Currently, it is set up as:
{(Step 0) render }
{(Step 1) render }

{(Step 0) render }
{(Step 1) render }

A solution may be to restructure the Step 0s together, then the Step 1s together.

{(Step 0) render }
{(Step 0) render }

{(Step 1) render }
{(Step 1) render }

Therefore, when the Select Hospital Button is clicked, the next tab will naturally be the Hospital Selections without having to mess with tabIndex. Unsure if there are any unintended consequences with this, but everything seems to work fine on my side.

client/src/EMS/RingdownForm.js Outdated Show resolved Hide resolved
<fieldset className="usa-fieldset border-top border-base-lighter">
{step === 0 && <PatientFields onChange={onChange} ringdown={ringdown} />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you combine this with the next block, so there's just one step === 0 check? The PatientFields will probably need to go into the fragment. Same with step 1.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can Do!

@fwextensions
Copy link
Collaborator

Thanks for fixing this! Wouldn't have thought it would be such a simple change, but it works great.

@fwextensions fwextensions merged commit a07b34d into main Apr 6, 2023
@fwextensions fwextensions deleted the hkuang/bug/242 branch April 6, 2023 02:26
holliskuang added a commit that referenced this pull request Apr 6, 2023
* Update RingdownForm.js
francisli added a commit that referenced this pull request May 11, 2023
* Create Email Transporter Object

Create Email Object that uses takes gmail email and password from .env || SendMail function takes in (recipient email, email subject, and email contact) parameters to send out an email

* Update isAuthenticated to involve 2fa

User needs session two be authenticated in order to proceed.

* Add 2fa routing 

Route to email authentication page utilizing time-based one time password to authenticate

* Adding ToTP Generator

1. Take in Request
2. Generate token and key
3. Send Token to Email
4. Save Key in Request for Authentication

* Create Two Factor View

* Nodemail log-in var

* Update local.js

* Update RingdownForm.js (#288) (#290)

* Update RingdownForm.js

* Prettier

* prettier

* cicd

* redirects when authenticated

* cicd

* Making generateToTP a reusable function

* Switched from notp to OTPAuth

* Save Token to Database instead of Session

* MailCatcher up and Running!

* Link logo to send to user back to Login from 2fa

* turn sendEmail into a separate function

* WIP

* Migration for TwoFactorAuth

* rector ssodata to twofactordata

* correcting JSON formatting

* Playwright Tests

* Tests!

* Test edits

* yml

* Fix typo in package.json script

* Fix formatting

* eslint & migration

* Commented out home page tests

* prettier

* Remove previous addition of Auth-Related Columns

* Adding two Factor Flow to all tests

* Put 2fa for tests into helper fx for cleaner code

* Parameterize SMTP settings, update example.env

* Refactoring

* refactoring, adding else statement before next()

* Code style changes

---------

Co-authored-by: holliskuang <[email protected]>
Co-authored-by: Francis Li <[email protected]>
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