Skip to content

Commit

Permalink
188690910 faa applicant demographics (#4856)
Browse files Browse the repository at this point in the history
* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* Update continue buttons on individual flow. (#4818)

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

* move inline js to external file (#4810)

* remoavl of in line event (#4847)

Co-authored-by: Brad Bodine <[email protected]>

* refactor confirm button to use data attribute for keydown event handling (#4859)

* sep date inline fix (#4858)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* update text (#4823)

* Update continue buttons on individual flow. (#4818)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

* add data attr to date field div, refactor listener to handle bubbled events

* comment fix

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* job income inline fixes (#4848)

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* remove onclick from self employed

---------

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line events (#4870)

* removal of in line events (#4869)

Co-authored-by: Brad Bodine <[email protected]>

* other income ai an inline fixes (#4851)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* update text (#4823)

* Update continue buttons on individual flow. (#4818)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* remove submit, date change, and kb nav helper inlines

* replace button handlers with data attr

* remove onclick from self employed

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* removal of in line JS (#4863)

Co-authored-by: Brad Bodine <[email protected]>

* fix keyboard navigation double firing function and keyboard upload on FAA verification (#4861)

enhance keyboard navigation and improve accessibility for evidence upload

* unemployment income inline fixes (#4849)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* Update continue buttons on individual flow. (#4818)

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* use keydown data attr

* replace keydown handler

* remove logs, updated selector to use new attr

* remove date warning handlers and submit handler from form

* remove kb handlers on income partial links

* replace landing page kb handlers

* Revert "replace landing page kb handlers"

This reverts commit 8afc4d24d675c560371be4f3237ddaa1e12f0098.

* remove onclick from self employed

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* Update continue buttons on individual flow. (#4818)

* update text (#4823)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* remove safe selectors not supported

* move inline js to external file (#4810)

* remoavl of in line event (#4847)

Co-authored-by: Brad Bodine <[email protected]>

* refactor confirm button to use data attribute for keydown event handling (#4859)

* sep date inline fix (#4858)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* update text (#4823)

* Update continue buttons on individual flow. (#4818)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

* add data attr to date field div, refactor listener to handle bubbled events

* comment fix

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* job income inline fixes (#4848)

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* remove onclick from self employed

---------

Co-authored-by: Brad Bodine <[email protected]>

* revert merge change on hbx profiles

* removal of in line events (#4870)

* removal of in line events (#4869)

Co-authored-by: Brad Bodine <[email protected]>

* other income ai an inline fixes (#4851)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* update text (#4823)

* Update continue buttons on individual flow. (#4818)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* remove submit, date change, and kb nav helper inlines

* replace button handlers with data attr

* remove onclick from self employed

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* removal of in line JS (#4863)

Co-authored-by: Brad Bodine <[email protected]>

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* other income inline fixes (#4850)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* Update continue buttons on individual flow. (#4818)

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* replace landing page kb nav handlers

* button replacements for keydown on landing page

* remove onchange and keyboard nav helper

* remove kb nav helpers from income partial

* remove onclick from self employed

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* Update continue buttons on individual flow. (#4818)

* update text (#4823)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* remove safe selectors not supported

* move inline js to external file (#4810)

* remoavl of in line event (#4847)

Co-authored-by: Brad Bodine <[email protected]>

* refactor confirm button to use data attribute for keydown event handling (#4859)

* sep date inline fix (#4858)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* update text (#4823)

* Update continue buttons on individual flow. (#4818)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

* add data attr to date field div, refactor listener to handle bubbled events

* comment fix

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* job income inline fixes (#4848)

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* remove onclick from self employed

---------

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line events (#4870)

* removal of in line events (#4869)

Co-authored-by: Brad Bodine <[email protected]>

* other income ai an inline fixes (#4851)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* update text (#4823)

* Update continue buttons on individual flow. (#4818)

* ignore actionpack warning (#4824)

* ignore actionpack warning

* add comment

* add comment to security.md

* do not store as hash data for a string value (#4822)

* do not store as hash data for a string value

* allow admin to add/edit reason when the broker application status is pending

* add spec

* rubocop fix

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* add index on family to speed up sep eligible filter (#4827)

* add index to speed up sep eligible filter

* fix rubocop

* bootstrap 4 cucumber coverage for faa (#4812)

* fixed missing transaltions in the review and health cov pages

* added translation keys to the shared file

* incorrect translation key fix for eligibility status on review page

* added chip short name key variable serving as an allias to the fa helper method

* other questions foster care with bs4 enabled, added additional locators and refactored step def

* job income fixes

* added sleep and employer adress field condition

* fixed job income and other questions bs4 tests

* added wait for income frequency dropdown

* added wait of 2 seconds to allow the frequency dropdown to be enabled

* change frequency css locator to xpath for failing step

* moving frequency xpath locator

* changed locator to attempt to solve github actions failure

* made step update to the submit your app file

* added wait to fix github actions step failure

* update locator to attempt to fix github actions element not found failure

* updated translation to not include the year for when bs4 is enabled

* turning bs4 for the income deductions page

* fix of the job income flaky feature file

* moved bs4 condition of the health cov page and cleaned up locator

* added wait so element can be interactible in ga

* reverting to initial click link function

* removing feature file redundant line

* added me faa translation keys to dc

* added missing translations to the ic file

---------

Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>

* add indexes on payment transactions model (#4830)

* display enrolled plan at the top of the page for csr scenario (#4831)

* rearrange list to display enrolled plan at the top of the page for csr scenario

* add spec

* update spec

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* modifies monthly enrollment due on date (#4834)

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selection and clean up unused code in product index (#4828)

Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>

* sep admin detail onclick refactor (#4836)

* move submit and modal confirm handlers to helper js

* fix selectors, move functions to file

---------

Co-authored-by: Ann Caballero <[email protected]>

* cucumber split config improvement (#4833)

* config improvements

* remove contrast_level_aa from split config

* update full suite

* remove contrast_level_aa from report

* removal of contrast_level_aa tests

* add in newer admin attestation

* less groupings

* update with new cuke

* admin verification display logic for american indian status self attestation (#4815)

* Admin AI/AN action dropdown

* add to split config

* add wait, create verif type for attested

* partial find

* make their own cuke split

* fix issue with dc/me

* replace reject with subtraction

* break up values

* rubocop issue

* fix issue

* build the image for the csp branch (#4846)

build images for epic_188588775_csp_enabled

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* self employed keydown removal (#4839)

* use data attr for handler

* refactor enter keydown listener to leverage event propagation to better handle AJAX elements

---------

Co-authored-by: Ann Caballero <[email protected]>

* removal of in line event in the help me sign up button (#4845)

* fix primary nav layout when bs4 disabled (#4840)

* remove onchange, refactor bs4 check in warning helper, store id on form

* use data keydown for job income partial

* replace kb handlers in index

* replace keydown handler

* remove logs, updated selector to use new attr

* remove submit, date change, and kb nav helper inlines

* replace button handlers with data attr

* remove onclick from self employed

* Refactor upload button attributes for improved accessibility and cons… (#4838)

* Refactor upload button attributes for improved accessibility and consistency

* Fix upload button text

* removal of in line event (#4842)

Co-authored-by: Brad Bodine <[email protected]>

* removal of in line event in the broker add office location button (#4844)

Co-authored-by: Brad Bodine <[email protected]>

* add event initializers to edit.js.erb (#4843)

Co-authored-by: Brad Bodine <[email protected]>

* removal of inline events (#4837)

Co-authored-by: Brad Bodine <[email protected]>

* remove safe selectors not supported

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* removal of in line JS (#4863)

Co-authored-by: Brad Bodine <[email protected]>

---------

Co-authored-by: Trey Evans <[email protected]>
Co-authored-by: Ryan Eddy <[email protected]>
Co-authored-by: RyanEddyIC <[email protected]>
Co-authored-by: Brad Bodine <[email protected]>
Co-authored-by: Ann Caballero <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Jacob Kagon <[email protected]>
Co-authored-by: vishal kalletla <[email protected]>
Co-authored-by: Sai Praveen Gudimetla <[email protected]>
Co-authored-by: haridhar yamjala <[email protected]>
Co-authored-by: Sai Kumar Kotagiri <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

* deductions inline fixes (#4853)

* replace onclick with propagated listener in js

* refactor to have checkDate accept inputs

* remove onchange, refactor bs4 check in warning helper, store id on form

* replace inline handlers for onchange date and kb helpers

* add validate handling for deduction, refactor form helper to pass in data attrs, DRY up combined form helpers using alias

* remove

* Revert "remove"

This reverts commit cf8389c1b5bed9763a26ffdfd97854a913bf7318.

---------

Co-authored-by: Brad Bodine <[email protected]>

* remove of onclick events (#4862)

* remove of onclick events

* removing jsvoid and adding event

---------

Co-authored-by: Brad Bodine <[email protected]>

* sep moving fields onkeydown refactor (#4864)

* Create main CSP branch.

* fix jquery with csp context

* rubocop fixes

* Move in cucumber driver version fix from trunk for now.

* 188588717 drop enrollment member (#4801)

remove admin onclick events from views

* move inline js to external script (#4811)

* Update continue buttons on individual flow. (#4818)

* remove inline js from family page add member forms (#4826)

* remove inline js from family page add member forms

* refactor new.js.erb

* add partials js init to my household render

* Keyboard navigation functions updates (#4832)

* Deprecate keyboard navigation functions and introduce data-keydown-id attribute for improved accessibility

* remove console log and update documentation

* update formatting

* update formatting

* rubocop fix

* 188658143 plan shopping compare plan (#4835)

* replace radiohandler with listener

* removal of onkeydown handlers

---------

Co-authored-by: Ryan Eddy <[email protected]>

* Refactor checkbox selec…
  • Loading branch information
13 people committed Jan 9, 2025
1 parent edfee3e commit 4484d41
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 61 deletions.
67 changes: 67 additions & 0 deletions app/assets/javascripts/financial_assistance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// Initialize the dependent person form
$(document).on('ajax:success', '#edit-dependent-person', function (event) {
$.inputMasks();

$('#applicant_same_with_primary').on('click', function () {
if ($(this).is(':checked')) {
$('#applicant-home-address-area').addClass('hidden');
} else {
$('#applicant-home-address-area').removeClass('hidden');
}
});

$(document).on('click', 'button#delete_applicant_button', function (e) {
e.preventDefault();
$('#destroyApplicant').modal();

$('#destroyApplicant .modal-cancel-button').on('click', function (e) {
console.log('cancel');
$('#destroyApplicant').modal('hidden');
});
$('.btn-confirmation').removeAttr('disabled');
});

$(document).on('click', '#destroyApplicant #destroy-confirm', function (e) {
confirmDestoyApplicant(e, $(this).data('url'));
});

function confirmDestoyApplicant(event, url) {
$('.btn-confirmation').prop('disabled', true);
event.preventDefault();
event.stopImmediatePropagation();
//
$('.modal-backdrop').removeClass('modal-backdrop');
$('.modal-open').removeClass('modal-open');

$.ajax({
url: url,
type: 'DELETE',
dataType: 'script',
contentType: false,
processData: false,
});
}

$(document).off('click', '#confirm_member');
$(document).on('click', '#confirm_member', function (e) {
if ($('input#applicant_same_with_primary').length) {
if ($('input#applicant_same_with_primary').is(':checked')) {
$(
'#applicant-home-address-area input.required, #applicant-home-address-area select.required, #applicant-home-address-area .address_required'
).removeAttr('required');
} else {
$(
'#applicant-home-address-area input.required, #applicant-home-address-area select.required, #applicant-home-address-area .address_required'
).attr('required', true);
}

$('.btn-confirmation').removeAttr('disabled');
}
$(this).addClass('disabled').attr('tabindex', -1).blur();
PersonValidations.manageRequiredValidations($('#confirm_member'));

if ($(this).closest('form')[0].checkValidity()) {
$(this).removeClass('disabled').attr('tabindex', 0);
}
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<%= f.button(id: 'confirm-member', class: "btn btn-primary hidden") do %>
<%= l10n("confirm_member") %>
<% end %>
<span tabindex="0" onkeydown="handleButtonKeyDown(event, 'confirm_member')" id="confirm_member" class="btn btn-primary">
<span tabindex="0" data-keydown-id="confirm_member" id="confirm_member" class="btn btn-primary">
<%= l10n("confirm_member") %>
</span>
</div>
Expand All @@ -156,71 +156,13 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary btn-confirmation" onclick='confirmDestoyApplicant(event, "<%=application_applicant_path(@application, @applicant)%>"); return false;'>Confirm</button>
<button type="button" class="btn btn-primary btn-confirmation" id="destroy-confirm" data-url="<%=application_applicant_path(@application, @applicant)%>">Confirm</button>

</div>
</div>
</div>
</div>

<script>
$(document).ready(function() {
$.inputMasks();
});

$('#applicant_same_with_primary').click(function(){
if($(this).is(':checked')){
$('#applicant-home-address-area').addClass("hidden");
} else {
$('#applicant-home-address-area').removeClass("hidden");
}
});

$(document).on('click', 'button#delete_applicant_button', function(e) {
e.preventDefault();
$("#destroyApplicant").modal();

$("#destroyApplicant .modal-cancel-button").click(function(e) {
$("#destroyApplicant").modal('hidden');
});
$(".btn-confirmation").removeAttr('disabled');
});

function confirmDestoyApplicant(event, url){
$(".btn-confirmation").prop('disabled', true);
event.preventDefault();
event.stopImmediatePropagation();
//
$('.modal-backdrop').removeClass('modal-backdrop');
$('.modal-open').removeClass('modal-open');

$.ajax({
url: url,
type: "DELETE",
dataType: 'script',
contentType: false,
processData: false,
});
}

$(document).off('click', '#confirm_member');
$(document).on('click', '#confirm_member', function(e) {
if ($("input#applicant_same_with_primary").length) {
if($("input#applicant_same_with_primary").is(":checked")){
$("#applicant-home-address-area input.required, #applicant-home-address-area select.required, #applicant-home-address-area .address_required").removeAttr('required');
} else {
$("#applicant-home-address-area input.required, #applicant-home-address-area select.required, #applicant-home-address-area .address_required").attr('required', true);
}

$(".btn-confirmation").removeAttr('disabled');
}
$(this).addClass("disabled").attr('tabindex', -1).blur();
PersonValidations.manageRequiredValidations($('#confirm_member'));

if ($(this).closest('form')[0].checkValidity()) {
$(this).removeClass("disabled").attr('tabindex', 0);
}
});
</script>

<% else %>
<%= form_for @applicant, url: application_applicant_path(@application, @applicant), method: :patch do |f|%>
Expand Down

0 comments on commit 4484d41

Please sign in to comment.