Skip to content

Commit

Permalink
fix: plan comparison functionality (#4925)
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 select…
  • Loading branch information
13 people committed Jan 23, 2025
1 parent 054882c commit db393aa
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 92 deletions.
79 changes: 79 additions & 0 deletions app/assets/javascripts/plan_shopping.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ function applyPlanFilterCBs(cbKlass, cbFilterKlass, planValueTag) {

function initSorts() {
console.log('Plans are loaded');

const compareChecks = document.querySelectorAll(".compare_plan_checkbox");
compareChecks.forEach(check => check.addEventListener('click', event => {
comparePlan(check);
}));

ogPlanSort = $('#all-plans #ivl_plans .plan-row')
}
}
Expand Down Expand Up @@ -452,3 +458,76 @@ $(document).on("click", "#dependentList", function(event) {
event.preventDefault();
$("#dependentTable").toggleClass('hidden');
});

//// app/views/insured/plan_shoppings/_plan_details.html.erb
function resetComparePlan() {

var compareBtn = document.getElementById('compareBtn')
compareBtn.classList.add('hidden')
checkboxes = document.querySelectorAll('.compare_plan_checkbox')
checkboxes.forEach(function(checkbox) {
checkbox.checked = false;
})
}

function comparePlan(element) {
plansToCompareArray = [];
checkboxes = document.querySelectorAll('.compare_plan_checkbox')
count = 0;
checkboxes.forEach(function(checkbox) {
//
if (checkbox.checked) {
count++;
hios = checkbox.dataset.hiosId;
planYear = checkbox.dataset.planYear;
hbxId = checkbox.dataset.hbxId;
enrollmentKind = checkbox.dataset.planEnrollmentKind;
changePlan = checkbox.dataset.planChangePlan;
uri = checkbox

var compareBtn = document.getElementById('compareBtn')

if (count > 1) {
compareBtn.classList.remove('hidden')
} else {
compareBtn.classList.add('hidden')
}

if (count > 3) {
checkbox.checked = false;
if (document.getElementById('planComparisonCountExceeded')) {
$('#planComparisonCountExceeded').modal('show');
} else {
swal({
title: "Plan count exceeded",
text: "You may only compare up to 3 plans at a time",
icon: "warning"
});
}
}
if (count <= 3) {
plansToCompareArray.push(hios)
plansToCompareArray = uniqueValues(plansToCompareArray)
}
}
})
}

function compareResults() {
uri = document.getElementById('compareBtn').dataset.uri;
$.ajax({
type: "GET",
url: uri,
dataType: 'script',
data: {
"standard_component_ids": plansToCompareArray,"hbx_enrollment_id": hbxId, "active_year": planYear, "enrollment_kind": enrollmentKind,
"change_plan": changePlan
}
});
}

function uniqueValues(array) {
let map = new Map();
array.forEach(value => map.set(value, value));
return [...map.values()];
};
96 changes: 4 additions & 92 deletions app/views/insured/plan_shoppings/_plan_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@
<% else %>
<% if (@tax_household || @aptc_grants) && params[:market_kind]=='individual' && params[:coverage_kind] == 'health' %>
<% if @csr_available && plan.metal_level != "silver" %>
<%= link_to l10n("select_plan"), "javascript:void(0)", class: 'btn btn-default btn-right', data: {'toggle': 'modal', 'target': "#csrEligibleReminder-#{plan.id}"} %>
<%= link_to(l10n("select_plan"), "javascript:void(0)", {class: 'hidden btn btn-default btn-right plan-select select', data: {url: thankyou_insured_plan_shopping_path(@hbx_enrollment, plan_id: plan.id, change_plan: @change_plan, market_kind: @market_kind, coverage_kind: @coverage_kind, enrollment_kind: @enrollment_kind)}}) %>
<%= link_to l10n("select_plan"), "#", class: 'btn btn-default btn-right', data: {'toggle': 'modal', 'target': "#csrEligibleReminder-#{plan.id}"} %>
<%= link_to(l10n("select_plan"), "#", {class: 'hidden btn btn-default btn-right plan-select select', data: {url: thankyou_insured_plan_shopping_path(@hbx_enrollment, plan_id: plan.id, change_plan: @change_plan, market_kind: @market_kind, coverage_kind: @coverage_kind, enrollment_kind: @enrollment_kind)}}) %>
<%= render partial: "shared/csr_eligible_reminder_modal", locals: { plan: plan } %>
<% else %>
<%= link_to(l10n("select_plan"), "javascript:void(0)", {class: 'btn btn-default btn-right plan-select select', data: {url: thankyou_insured_plan_shopping_path(@hbx_enrollment, plan_id: plan.id, change_plan: @change_plan, market_kind: @market_kind, coverage_kind: @coverage_kind, enrollment_kind: @enrollment_kind)}}) %>
<%= link_to(l10n("select_plan"), "#", {class: 'btn btn-default btn-right plan-select select', data: {url: thankyou_insured_plan_shopping_path(@hbx_enrollment, plan_id: plan.id, change_plan: @change_plan, market_kind: @market_kind, coverage_kind: @coverage_kind, enrollment_kind: @enrollment_kind)}}) %>
<% end %>
<% else %>
<%= link_to(l10n("select_plan"), "javascript:void(0)", {class: 'btn btn-default btn-right plan-select select', data: {url: thankyou_insured_plan_shopping_path(@hbx_enrollment, plan_id: plan.id, change_plan: @change_plan, market_kind: @market_kind, coverage_kind: @coverage_kind, enrollment_kind: @enrollment_kind)}}) %>
<%= link_to(l10n("select_plan"), "#", {class: 'btn btn-default btn-right plan-select select', data: {url: thankyou_insured_plan_shopping_path(@hbx_enrollment, plan_id: plan.id, change_plan: @change_plan, market_kind: @market_kind, coverage_kind: @coverage_kind, enrollment_kind: @enrollment_kind)}}) %>
<% end %>
<% end %>
</div>
Expand Down Expand Up @@ -184,16 +184,6 @@
</div>
</div>
</div>










<% else %>
<div class="module plan-row panel panel-default" data-plan-id="<%= plan.id %>" data-plan-category="<%= plan.product_type ? plan.product_type.downcase : '' %>" data-plan-metal-level="<%= plan.metal_level.downcase %>" data-plan-metal-network="<%= plan.network&.downcase %>" data-plan-metal-premium="<%= plan.total_employee_cost %>" data-plan-metal-ehb-premium="<%= plan.total_ehb_premium %>" data-plan-childcare-subsidy-eligible="<%= plan_childcare_subsidy_eligible(plan) %>" data-plan-metal-deductible="<%= plan.deductible == 'Not Applicable' ? '$0' : plan.deductible %>" data-plan-name="<%= plan.name %>" data-plan-carrier="<%= plan_carrier.try(:legal_name) %>" data-plan-hsa-eligibility="<%= ivl_hsa_status(@plan_hsa_status, plan) %>" data-plan-osse-eligibility="<%= osse_status(plan) %>" data-plan-ehb="<%= plan.ehb %>" data-can-use-aptc="<%= plan.can_use_aptc? %>">
<div class="panel-body">
Expand Down Expand Up @@ -308,81 +298,3 @@
}
</style>
<% end %>
<script>
var compareChecks = document.querySelectorAll(".compare_plan_checkbox");
compareChecks.forEach(check => check.addEventListener('click', event => {
comparePlan(check);
}));

function resetComparePlan() {

var compareBtn = document.getElementById('compareBtn')
compareBtn.classList.add('hidden')
checkboxes = document.querySelectorAll('.compare_plan_checkbox')
checkboxes.forEach(function(checkbox) {
checkbox.checked = false;
})
}

function comparePlan(element) {
plansToCompareArray = [];
checkboxes = document.querySelectorAll('.compare_plan_checkbox')
count = 0;
checkboxes.forEach(function(checkbox) {
//
if (checkbox.checked) {
count++;
hios = checkbox.dataset.hiosId;
planYear = checkbox.dataset.planYear;
hbxId = checkbox.dataset.hbxId;
enrollmentKind = checkbox.dataset.planEnrollmentKind;
changePlan = checkbox.dataset.planChangePlan;
uri = checkbox

var compareBtn = document.getElementById('compareBtn')

if (count > 1) {
compareBtn.classList.remove('hidden')
} else {
compareBtn.classList.add('hidden')
}

if (count > 3) {
checkbox.checked = false;
if (document.getElementById('planComparisonCountExceeded')) {
$('#planComparisonCountExceeded').modal('show');
} else {
swal({
title: "Plan count exceeded",
text: "You may only compare up to 3 plans at a time",
icon: "warning"
});
}
}
if (count <= 3) {
plansToCompareArray.push(hios)
plansToCompareArray = uniqueValues(plansToCompareArray)
}
}
})
}

function compareResults() {
uri = document.getElementById('compareBtn').dataset.uri;
$.ajax({
type: "GET",
url: uri,
dataType: 'script',
data: {
"standard_component_ids": plansToCompareArray,"hbx_enrollment_id": hbxId, "active_year": planYear, "enrollment_kind": enrollmentKind,
"change_plan": changePlan
}
});
}

function uniqueValues(array) {
let map = new Map();
array.forEach(value => map.set(value, value));
return [...map.values()];
};
</script>

0 comments on commit db393aa

Please sign in to comment.