Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sep moving fields onkeydown refactor #4864

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
fb0dc09
Create main CSP branch.
TreyE Oct 2, 2024
3b87e28
Merge branch 'trunk' into epic_188588775_csp_enabled
RyanEddyIC Dec 5, 2024
a94cb96
fix jquery with csp context
RyanEddyIC Dec 6, 2024
017fb4d
rubocop fixes
RyanEddyIC Dec 6, 2024
31f0f23
Merge branch 'trunk' into epic_188588775_csp_enabled
RyanEddyIC Dec 6, 2024
259b9fe
Move in cucumber driver version fix from trunk for now.
TreyE Dec 9, 2024
65501f8
188588717 drop enrollment member (#4801)
RyanEddyIC Dec 11, 2024
8edaf7e
move inline js to external script (#4811)
RyanEddyIC Dec 11, 2024
06c2697
Merge branch 'trunk' into epic_188588775_csp_enabled
TreyE Dec 11, 2024
61115f1
Update continue buttons on individual flow. (#4818)
TreyE Dec 12, 2024
5c91811
Merge branch 'trunk' into epic_188588775_csp_enabled
TreyE Dec 12, 2024
847e0e7
remove inline js from family page add member forms (#4826)
RyanEddyIC Dec 12, 2024
2ffd0ea
Merge branch 'trunk' into epic_188588775_csp_enabled
RyanEddyIC Dec 16, 2024
b380c46
Keyboard navigation functions updates (#4832)
bbodine1 Dec 16, 2024
b08a11e
rubocop fix
RyanEddyIC Dec 16, 2024
a560e57
Merge branch 'trunk' into epic_188588775_csp_enabled
bbodine1 Dec 16, 2024
d371a99
188658143 plan shopping compare plan (#4835)
anncaballeroo Dec 16, 2024
678ab1d
Refactor checkbox selection and clean up unused code in product index…
bbodine1 Dec 16, 2024
44d3b67
sep admin detail onclick refactor (#4836)
charlienparker Dec 17, 2024
b3e4c1d
build the image for the csp branch (#4846)
kristinmerbach Dec 17, 2024
6e62d9a
self employed keydown removal (#4839)
charlienparker Dec 17, 2024
b8564a6
removal of in line event in the help me sign up button (#4845)
anncaballeroo Dec 17, 2024
8b6161a
fix primary nav layout when bs4 disabled (#4840)
RyanEddyIC Dec 17, 2024
f1e9799
Refactor upload button attributes for improved accessibility and cons…
bbodine1 Dec 18, 2024
ae59057
removal of in line event (#4842)
anncaballeroo Dec 18, 2024
1e34558
removal of in line event in the broker add office location button (#4…
anncaballeroo Dec 18, 2024
7ff6262
add event initializers to edit.js.erb (#4843)
RyanEddyIC Dec 18, 2024
4997958
removal of inline events (#4837)
anncaballeroo Dec 18, 2024
0f43b0c
Merge branch 'trunk' into epic_188588775_csp_enabled
RyanEddyIC Dec 18, 2024
a856f7d
remove safe selectors not supported
bbodine1 Dec 18, 2024
6b8de54
Create main CSP branch.
TreyE Oct 2, 2024
65b8197
fix jquery with csp context
RyanEddyIC Dec 6, 2024
d68a73d
rubocop fixes
RyanEddyIC Dec 6, 2024
9cd029c
188588717 drop enrollment member (#4801)
RyanEddyIC Dec 11, 2024
90255a6
move inline js to external script (#4811)
RyanEddyIC Dec 11, 2024
7ea23d4
Update continue buttons on individual flow. (#4818)
TreyE Dec 12, 2024
640b1e1
update text (#4823)
jacobkagon Dec 12, 2024
6b0362a
ignore actionpack warning (#4824)
jacobkagon Dec 12, 2024
06b26e6
remove inline js from family page add member forms (#4826)
RyanEddyIC Dec 12, 2024
0c9a001
do not store as hash data for a string value (#4822)
vkghub Dec 12, 2024
0588ad0
add index on family to speed up sep eligible filter (#4827)
saipraveen18 Dec 12, 2024
f6d703d
bootstrap 4 cucumber coverage for faa (#4812)
anncaballeroo Dec 13, 2024
abadf4c
add indexes on payment transactions model (#4830)
saipraveen18 Dec 13, 2024
bd1c92a
display enrolled plan at the top of the page for csr scenario (#4831)
vkghub Dec 13, 2024
68aed7a
Keyboard navigation functions updates (#4832)
bbodine1 Dec 16, 2024
c822203
rubocop fix
RyanEddyIC Dec 16, 2024
556c2a7
modifies monthly enrollment due on date (#4834)
saikumar9 Dec 16, 2024
298bc8b
188658143 plan shopping compare plan (#4835)
anncaballeroo Dec 16, 2024
63a24b2
Refactor checkbox selection and clean up unused code in product index…
bbodine1 Dec 16, 2024
5eddaa9
sep admin detail onclick refactor (#4836)
charlienparker Dec 17, 2024
ad86f6c
build the image for the csp branch (#4846)
kristinmerbach Dec 17, 2024
cb1d95d
self employed keydown removal (#4839)
charlienparker Dec 17, 2024
da11332
removal of in line event in the help me sign up button (#4845)
anncaballeroo Dec 17, 2024
70788a5
fix primary nav layout when bs4 disabled (#4840)
RyanEddyIC Dec 17, 2024
bb47601
Refactor upload button attributes for improved accessibility and cons…
bbodine1 Dec 18, 2024
682d723
removal of in line event (#4842)
anncaballeroo Dec 18, 2024
e5543b9
removal of in line event in the broker add office location button (#4…
anncaballeroo Dec 18, 2024
4a17a78
add event initializers to edit.js.erb (#4843)
RyanEddyIC Dec 18, 2024
4408deb
removal of inline events (#4837)
anncaballeroo Dec 18, 2024
5093921
cucumber split config improvement (#4833)
ATBull81 Dec 17, 2024
c6d219e
admin verification display logic for american indian status self atte…
ATBull81 Dec 17, 2024
95095b0
remove safe selectors not supported
bbodine1 Dec 18, 2024
4a2e3dc
move inline js to external file (#4810)
RyanEddyIC Dec 19, 2024
4b625c4
add data attr to date field div, refactor listener to handle bubbled …
charlienparker Dec 19, 2024
c0dd619
Merge branch 'epic_188588775_csp_enabled' of github.com:ideacrew/enro…
charlienparker Dec 19, 2024
6b036af
comment fix
charlienparker Dec 19, 2024
87e16ec
remoavl of in line event (#4847)
anncaballeroo Dec 19, 2024
833fbe9
refactor confirm button to use data attribute for keydown event handl…
bbodine1 Dec 19, 2024
e6d9e21
use keydown id attr
charlienparker Dec 19, 2024
c2f9ca4
use keydown attr on zip text fields, move ajax script to js file
charlienparker Dec 19, 2024
a9a8f2b
remove log
charlienparker Dec 19, 2024
55cfa2c
sep date inline fix (#4858)
charlienparker Dec 20, 2024
544b103
job income inline fixes (#4848)
charlienparker Dec 20, 2024
200da28
removal of in line events (#4870)
anncaballeroo Dec 20, 2024
21188d7
removal of in line events (#4869)
anncaballeroo Dec 20, 2024
d6b58f8
Merge branch 'epic_188588775_csp_enabled' into 188655901-sep-moving-f…
bbodine1 Dec 20, 2024
379c9f4
other income ai an inline fixes (#4851)
charlienparker Dec 20, 2024
0ad3d8c
Merge branch 'epic_188588775_csp_enabled' into 188655901-sep-moving-f…
bbodine1 Dec 20, 2024
820c9db
removal of in line JS (#4863)
anncaballeroo Dec 20, 2024
f7d1c5a
Merge branch 'epic_188588775_csp_enabled' into 188655901-sep-moving-f…
bbodine1 Dec 20, 2024
901a06f
Merge branch 'epic_188588775_csp_enabled' into 188655901-sep-moving-f…
bbodine1 Dec 21, 2024
01755eb
Merge branch 'epic_188588775_csp_enabled' into 188655901-sep-moving-f…
bbodine1 Dec 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 3 additions & 48 deletions app/views/insured/families/_moving_fields.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="special_qle_reasons hidden">
<fieldset>
<legend class="weight-n mb-2"><%= l10n("insured.indicate_following_circumstances_apply_to_you") %>: </legend>
<div class="focus" onkeydown="handleButtonKeyDown(event, 'qle_submit_reason')">
<div class="focus" data-keydown-id='qle_submit_reason'>
<label class="weight-n" class="radio">
<%= radio_button_tag :reason, "", true, id: "reason_accept", class: "zip-check"%>
<span><%= l10n('insured.qle_detail.special_reason.move', qle_start_date: @qle_date_calc, qle_date: @qle_date) %></span>
Expand All @@ -28,13 +28,13 @@
<div class="hidden zip_compare">
<label class="weight-n mb-2"><%= l10n("insured.qle_detail.special_reason.move.enter_zip") %></label>
<div class="flex-column col-6 px-0">
<div onkeydown="handleButtonKeyDown(event, 'qle_zip_compare')">
<div data-keydown-id='qle_zip_compare'>
<label>
<div><%= l10n("insured.qle_detail.special_reason.move.old_zip") %></div>
<input class="old_zip_code required zip"/>
</label>
</div>
<div onkeydown="handleButtonKeyDown(event, 'qle_zip_compare')">
<div data-keydown-id='qle_zip_compare'>
<label>
<div><%= l10n("insured.qle_detail.special_reason.move.new_zip") %></div>
<input class="new_zip_code required zip"/>
Expand Down Expand Up @@ -110,48 +110,3 @@
</div>
</div>
<% end %>

<script type="text/javascript">
<% if EnrollRegistry[:enroll_app].setting(:sep_moved_out_zip_compare).item %>
$('#qle_submit_reason').on('click', function(event) {
if (event.type === 'click' || (event.type === 'keydown' && event.keyCode === 13)) {
if ($("input:radio[name=reason]:checked").hasClass('zip-check')) {
$('.special_qle_reasons').addClass('hidden');
$('.zip_compare').removeClass('hidden');
event.preventDefault();
event.stopImmediatePropagation();
}
}
})
<% end %>

$('#qle_zip_compare').on('click', function() {
function handleFailure() {
$('#qle_reason').hide();
var errorNoticeAction = "<%= l10n('insured.qle_detail.error_text_not_eligible', site_short_name: EnrollRegistry[:enroll_app].setting(:short_name).item, contact_center_phone_number: EnrollRegistry[:enroll_app].setting(:contact_center_short_number).item) %>";
$("#qle-details .error-text").html(errorNoticeAction);
$('#qle-details .error-info').removeClass('hidden');
}

$.ajax({
type: "GET",
data:{old_zip: $('.old_zip_code').val(), new_zip: $('.new_zip_code').val()},
url: "/insured/families/sep_zip_compare.json",
success: function(response){
if (response.is_approved) {
$.ajax({
type: "GET",
data:{date_val: $("#qle_date").val(), qle_id: $("#qle_id").val(), qle_reason_val: $("input:radio[name=reason]:checked").val(), bs4: $("#bs4").val()},
url: "/insured/families/check_qle_date.js"
});
} else {
handleFailure();
}
},
error: handleFailure
});

event.preventDefault();
event.stopImmediatePropagation();
});
</script>
49 changes: 47 additions & 2 deletions app/views/insured/families/check_move_reason.js.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if @qualified_date %>
$('#qle-date-chose').hide();
$("#qle_reason").show();
$("#qle_reason").html("<%= escape_javascript(render 'moving_fields') %>");
$("#qle_reason").html("<%= escape_javascript(render 'moving_fields') %>").ready(init_moving_fields());
$('#qle_reason .special_qle_reasons').removeClass('hidden');
$("input:radio[name=reason]:first").click();
<% else %>
Expand All @@ -10,4 +10,49 @@
data:{date_val: $("#qle_date").val(), qle_id: $("#qle_id").val(), qle_reason_val: $("input:radio[name=reason]:checked").val(), bs4: $("#bs4").val()},
url: "/insured/families/check_qle_date.js"
});
<% end %>
<% end %>

function init_moving_fields(event) {
<% if EnrollRegistry[:enroll_app].setting(:sep_moved_out_zip_compare).item %>
$('#qle_submit_reason').on('click', function(event) {
if (event.type === 'click' || (event.type === 'keydown' && event.keyCode === 13)) {
if ($("input:radio[name=reason]:checked").hasClass('zip-check')) {
$('.special_qle_reasons').addClass('hidden');
$('.zip_compare').removeClass('hidden');
event.preventDefault();
event.stopImmediatePropagation();
}
}
})
<% end %>

$('#qle_zip_compare').on('click', function() {
function handleFailure() {
$('#qle_reason').hide();
var errorNoticeAction = "<%= l10n('insured.qle_detail.error_text_not_eligible', site_short_name: EnrollRegistry[:enroll_app].setting(:short_name).item, contact_center_phone_number: EnrollRegistry[:enroll_app].setting(:contact_center_short_number).item) %>";
$("#qle-details .error-text").html(errorNoticeAction);
$('#qle-details .error-info').removeClass('hidden');
}

$.ajax({
type: "GET",
data:{old_zip: $('.old_zip_code').val(), new_zip: $('.new_zip_code').val()},
url: "/insured/families/sep_zip_compare.json",
success: function(response){
if (response.is_approved) {
$.ajax({
type: "GET",
data:{date_val: $("#qle_date").val(), qle_id: $("#qle_id").val(), qle_reason_val: $("input:radio[name=reason]:checked").val(), bs4: $("#bs4").val()},
url: "/insured/families/check_qle_date.js"
});
} else {
handleFailure();
}
},
error: handleFailure
});

event.preventDefault();
event.stopImmediatePropagation();
});
}
Loading