diff --git a/app/controllers/concerns/idv/step_indicator_concern.rb b/app/controllers/concerns/idv/step_indicator_concern.rb index 6d95ba445f8..8329f6af596 100644 --- a/app/controllers/concerns/idv/step_indicator_concern.rb +++ b/app/controllers/concerns/idv/step_indicator_concern.rb @@ -20,13 +20,21 @@ module StepIndicatorConcern { name: :secure_account }, ].freeze + STEP_INDICATOR_STEPS_IPP = [ + { name: :find_a_post_office }, + { name: :verify_info }, + { name: :verify_phone }, + { name: :re_enter_password }, + { name: :go_to_the_post_office }, + ].freeze + included do helper_method :step_indicator_steps end def step_indicator_steps if in_person_proofing? - Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS + Idv::StepIndicatorConcern::STEP_INDICATOR_STEPS_IPP elsif gpo_address_verification? Idv::StepIndicatorConcern::STEP_INDICATOR_STEPS_GPO else diff --git a/app/controllers/idv/by_mail/request_letter_controller.rb b/app/controllers/idv/by_mail/request_letter_controller.rb index 77197dbb477..a7ae8df4857 100644 --- a/app/controllers/idv/by_mail/request_letter_controller.rb +++ b/app/controllers/idv/by_mail/request_letter_controller.rb @@ -59,11 +59,7 @@ def confirm_letter_sends_allowed end def step_indicator_steps - if in_person_proofing? - Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS_GPO - else - StepIndicatorConcern::STEP_INDICATOR_STEPS_GPO - end + StepIndicatorConcern::STEP_INDICATOR_STEPS_GPO end end end diff --git a/app/controllers/idv/by_mail/resend_letter_controller.rb b/app/controllers/idv/by_mail/resend_letter_controller.rb index 9e583cc46af..4faed1d29fd 100644 --- a/app/controllers/idv/by_mail/resend_letter_controller.rb +++ b/app/controllers/idv/by_mail/resend_letter_controller.rb @@ -83,11 +83,7 @@ def pii_locked? end def step_indicator_steps - if in_person_proofing? - Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS_GPO - else - StepIndicatorConcern::STEP_INDICATOR_STEPS_GPO - end + StepIndicatorConcern::STEP_INDICATOR_STEPS_GPO end end end diff --git a/app/views/idv/in_person/address/show.html.erb b/app/views/idv/in_person/address/show.html.erb index e5a7ab2be63..4a06cea6aa0 100644 --- a/app/views/idv/in_person/address/show.html.erb +++ b/app/views/idv/in_person/address/show.html.erb @@ -1,6 +1,6 @@ <% content_for(:pre_flash_content) do %> <%= render StepIndicatorComponent.new( - steps: Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS, + steps: Idv::StepIndicatorConcern::STEP_INDICATOR_STEPS_IPP, current_step: :verify_info, locale_scope: 'idv', class: 'margin-x-neg-2 margin-top-neg-4 tablet:margin-x-neg-6 tablet:margin-top-neg-4', diff --git a/app/views/idv/in_person/state_id/show.html.erb b/app/views/idv/in_person/state_id/show.html.erb index ebcf6df6ed3..a3400b9d881 100644 --- a/app/views/idv/in_person/state_id/show.html.erb +++ b/app/views/idv/in_person/state_id/show.html.erb @@ -1,6 +1,6 @@ <% content_for(:pre_flash_content) do %> <%= render StepIndicatorComponent.new( - steps: Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS, + steps: Idv::StepIndicatorConcern::STEP_INDICATOR_STEPS_IPP, current_step: :verify_info, locale_scope: 'idv', class: 'margin-x-neg-2 margin-top-neg-4 tablet:margin-x-neg-6 tablet:margin-top-neg-4', diff --git a/spec/views/idv/in_person/ready_to_verify/show.html.erb_spec.rb b/spec/views/idv/in_person/ready_to_verify/show.html.erb_spec.rb index 152365c4d20..4379ef66113 100644 --- a/spec/views/idv/in_person/ready_to_verify/show.html.erb_spec.rb +++ b/spec/views/idv/in_person/ready_to_verify/show.html.erb_spec.rb @@ -29,7 +29,7 @@ is_enhanced_ipp: is_enhanced_ipp, ) end - let(:step_indicator_steps) { Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS } + let(:step_indicator_steps) { Idv::StepIndicatorConcern::STEP_INDICATOR_STEPS_IPP } let(:sp_event_name) { 'IdV: user clicked sp link on ready to verify page' } let(:help_event_name) { 'IdV: user clicked what to bring link on ready to verify page' } diff --git a/spec/views/idv/shared/ssn.html.erb_spec.rb b/spec/views/idv/shared/ssn.html.erb_spec.rb index c951b33ba9f..e0bff6b6f6d 100644 --- a/spec/views/idv/shared/ssn.html.erb_spec.rb +++ b/spec/views/idv/shared/ssn.html.erb_spec.rb @@ -30,7 +30,7 @@ :ssn_presenter, Idv::SsnPresenter.new( sp_name: sp_name, ssn_form: Idv::SsnFormatForm.new(nil), - step_indicator_steps: Idv::Flows::InPersonFlow::STEP_INDICATOR_STEPS + step_indicator_steps: Idv::StepIndicatorConcern::STEP_INDICATOR_STEPS ), ) render template: 'idv/shared/ssn', locals: {