Skip to content

Commit

Permalink
fix: correct modal IDs and form IDs for termination date updates (#4867)
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]
  • Loading branch information
13 people committed Jan 10, 2025
1 parent e5adeef commit e3c7013
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 79 deletions.
Original file line number Diff line number Diff line change
@@ -1,84 +1,9 @@
<script type="text/javascript">
var id = $('[id^="terminate_hbx_"]:checked').first().attr('id').split('_').reverse()[0];
jQuery('[id^="terminate_hbx_"]:checked').closest('tr').find("input[type=checkbox]").prop('disabled', false);
$('#termination-date-picker_' + id).prop('disabled', false);
jQuery('[id^="terminate_hbx_"]').click(function($) {
jQuery('[id^="terminate_hbx_"]').each(function($) {
id = jQuery(this).attr('id').split('_').reverse()[0];
if (this.checked) {
jQuery(jQuery(this).closest('tr').find('[type=checkbox]')[0]).prop('disabled', false);
jQuery('#termination-date-picker_' + id).prop('disabled', false);
}else{
jQuery(jQuery(this).closest('tr').find('[type=checkbox]')[0]).prop('disabled', true);
jQuery(jQuery(this).closest('tr').find('[type=checkbox]')[0]).prop('checked', false);
jQuery('#termination-date-picker_' + id).prop('disabled', true); }
});
});

var TerminateWithEarlierDate = function () {
$('#termiante_with_earlier_date').modal('show');
jQuery('[id^="terminate_hbx_"]').each(function($) {
if (this.checked) {

var dup_enr_ids = <%= raw @dup_enr_ids %>;
var input_id = this.value;
var output = dup_enr_ids.includes(input_id);
var new_term_date = jQuery(this).closest('tr').find("input[name=new_termination_date]")[0].value
var enrollment_effective = jQuery(this).closest('tr').find("td#enrollment_effective_on").html();
if(new_term_date == enrollment_effective && !output){
jQuery('#cancel_message').show();
jQuery('#termination_message').hide();
jQuery('#no_termination_message').show();
jQuery(".btn-confirmation").show();
}
else if(new_term_date !== enrollment_effective && output ){
jQuery('#cancel_message').hide();
jQuery('#termination_message').hide();
jQuery('#no_termination_message').show();
jQuery(".btn-confirmation").hide();
}
else{
jQuery('#cancel_message').hide();
jQuery('#termination_message').show();
jQuery('#no_termination_message').hide();
jQuery(".btn-confirmation").show();
}
}
});
}

function confirmUpdateEndDate(event){
$(".btn-confirmation").prop('disabled', true);

event.preventDefault();
event.stopImmediatePropagation();

$('.modal-backdrop').removeClass('modal-backdrop');
$('.modal-open').removeClass('modal-open');

var formData = new FormData($('#termiante_with_earlier_date-form')[0]);

$.ajax({
url: '/exchanges/hbx_profiles/update_enrollment_terminated_on_date.js',
type: "POST",
data : formData,
contentType: false,
processData: false,
});
}

<% if @bs4 %>
$('.btn-confirmation').on('click', function(event) {
confirmUpdateEndDate(event);
return false;
});
<% end %>
</script>

<% if @bs4 %>
<td colspan="90%">
<%if @enrollments.present?%>
<%= form_tag update_enrollment_terminated_on_date_exchanges_hbx_profiles_path, :method => :post, remote: true, id: 'termiante_with_earlier_date-form' do %>
<%= form_tag update_enrollment_terminated_on_date_exchanges_hbx_profiles_path, :method => :post, remote: true, id: 'terminate_with_earlier_date-form' do %>
<h3 class='title'><%= l10n('hbx_profiles.enrollment_end_date.header')%></h3>
<br />
<table class="table table-striped vertically-center">
Expand Down Expand Up @@ -123,7 +48,7 @@
<h4 class='title'><%= l10n('hbx_profiles.enrollment_end_date.empty') %></h4>
<%end%>

<div class="modal" id="termiante_with_earlier_date" tabindex="-1" role="dialog" role="document">
<div class="modal" id="terminate_with_earlier_date" tabindex="-1" role="dialog" role="document">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="border-bottom:none">
Expand Down Expand Up @@ -163,7 +88,7 @@
<% else %>
<td colspan="90%">
<%if @enrollments.present?%>
<%= form_tag update_enrollment_terminated_on_date_exchanges_hbx_profiles_path, :method => :post, remote: true, id: 'termiante_with_earlier_date-form' do %>
<%= form_tag update_enrollment_terminated_on_date_exchanges_hbx_profiles_path, :method => :post, remote: true, id: 'terminate_with_earlier_date-form' do %>
<h3 class='title'>Terminated Enrollment To Update End Date</h3>
<br />
<table class="table table-striped">
Expand Down Expand Up @@ -207,7 +132,7 @@
<h4 class='title'>No Enrollments to terminate</h4>
<%end%>

<div class="modal fade" id="termiante_with_earlier_date" tabindex="-1" role="dialog" aria-labelledby="RetermConfirm" role="document">
<div class="modal fade" id="terminate_with_earlier_date" tabindex="-1" role="dialog" aria-labelledby="RetermConfirm" role="document">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header" style="border-bottom:none">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,77 @@ else {
$("li>a:contains('Collapse Form')").eq(containing_row.index()).removeClass('disabled');
$('.dropdown.pull-right').removeClass('open');
}


var id = $('[id^="terminate_hbx_"]:checked').first().attr('id').split('_').reverse()[0]
jQuery('[id^="terminate_hbx_"]:checked').closest('tr').find('input[type=checkbox]').prop('disabled', false)
$('#termination-date-picker_' + id).prop('disabled', false)
jQuery('[id^="terminate_hbx_"]').on('click',function ($) {
jQuery('[id^="terminate_hbx_"]').each(function ($) {
id = jQuery(this).attr('id').split('_').reverse()[0]
if (this.checked) {
jQuery(jQuery(this).closest('tr').find('[type=checkbox]')[0]).prop('disabled', false)
jQuery('#termination-date-picker_' + id).prop('disabled', false)
} else {
jQuery(jQuery(this).closest('tr').find('[type=checkbox]')[0]).prop('disabled', true)
jQuery(jQuery(this).closest('tr').find('[type=checkbox]')[0]).prop('checked', false)
jQuery('#termination-date-picker_' + id).prop('disabled', true)
}
})
})

function TerminateWithEarlierDate () {
$('#terminate_with_earlier_date').modal('show')
jQuery('[id^="terminate_hbx_"]').each(function ($) {
if (this.checked) {
var dup_enr_ids = <%= raw @dup_enr_ids %>;
var input_id = this.value
var output = dup_enr_ids.includes(input_id)
var new_term_date = jQuery(this).closest('tr').find('input[name=new_termination_date]')[0].value
var enrollment_effective = jQuery(this).closest('tr').find('td#enrollment_effective_on').html()
if (new_term_date == enrollment_effective && !output) {
jQuery('#cancel_message').show()
jQuery('#termination_message').hide()
jQuery('#no_termination_message').show()
jQuery('.btn-confirmation').show()
} else if (new_term_date !== enrollment_effective && output) {
jQuery('#cancel_message').hide()
jQuery('#termination_message').hide()
jQuery('#no_termination_message').show()
jQuery('.btn-confirmation').hide()
} else {
jQuery('#cancel_message').hide()
jQuery('#termination_message').show()
jQuery('#no_termination_message').hide()
jQuery('.btn-confirmation').show()
}
}
})
}

function confirmUpdateEndDate(event) {
$('.btn-confirmation').prop('disabled', true)

event.preventDefault()
event.stopImmediatePropagation()

$('.modal-backdrop').removeClass('modal-backdrop')
$('.modal-open').removeClass('modal-open')

var formData = new FormData($('#terminate_with_earlier_date-form')[0])

$.ajax({
url: '/exchanges/hbx_profiles/update_enrollment_terminated_on_date.js',
type: 'POST',
data: formData,
contentType: false,
processData: false,
})
}

<% if @bs4 %>
$('.btn-confirmation').on('click', function(event) {
confirmUpdateEndDate(event);
return false;
});
<% end %>

0 comments on commit e3c7013

Please sign in to comment.