Skip to content

Commit

Permalink
can navigate to email address page
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Proebstel committed Dec 27, 2024
1 parent fe36497 commit db90448
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module StateFile
module Questions
class CompletedReturnEmailAddressController < QuestionsController
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module StateFile
class CompletedReturnEmailAddressForm < QuestionsForm

end
end
12 changes: 12 additions & 0 deletions app/lib/navigation/completed_tax_return_navigation.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Navigation
class CompletedTaxReturnNavigation < Navigation::StateFileBaseQuestionNavigation
include ControllerNavigation

SECTIONS = [
Navigation::NavigationSection.new("state_file.navigation.section_1", [
Navigation::NavigationStep.new(StateFile::Questions::CompletedReturnEmailAddressController),
]),
].freeze
FLOW = SECTIONS.map(&:controllers).flatten.freeze
end
end
2 changes: 2 additions & 0 deletions app/models/intake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@
#
# fk_rails_... (client_id => clients.id)
# fk_rails_... (matching_previous_year_intake_id => intakes.id)
# fk_rails_... (primary_drivers_license_id => drivers_licenses.id)
# fk_rails_... (spouse_drivers_license_id => drivers_licenses.id)
# fk_rails_... (vita_partner_id => vita_partners.id)
#

Expand Down
2 changes: 2 additions & 0 deletions app/models/intake/ctc_intake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@
#
# fk_rails_... (client_id => clients.id)
# fk_rails_... (matching_previous_year_intake_id => intakes.id)
# fk_rails_... (primary_drivers_license_id => drivers_licenses.id)
# fk_rails_... (spouse_drivers_license_id => drivers_licenses.id)
# fk_rails_... (vita_partner_id => vita_partners.id)
#
class Intake::CtcIntake < Intake
Expand Down
2 changes: 2 additions & 0 deletions app/models/intake/gyr_intake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@
#
# fk_rails_... (client_id => clients.id)
# fk_rails_... (matching_previous_year_intake_id => intakes.id)
# fk_rails_... (primary_drivers_license_id => drivers_licenses.id)
# fk_rails_... (spouse_drivers_license_id => drivers_licenses.id)
# fk_rails_... (vita_partner_id => vita_partners.id)
#
class Intake::GyrIntake < Intake
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

<% title = "butt" %>
<% content_for :page_title, title %>
9 changes: 8 additions & 1 deletion app/views/state_file/state_file_pages/about_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@
</div>
<% end %>
</section>
<% end %>
<% end %>

<div>
<%= t(".looking_for_return_html")%>
<div class = "spacing-above-10">
<%= link_to t(".tax_return_link") %>
</div>
</div>
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3794,6 +3794,8 @@ en:
<strong>We're closed for the tax season. Unfortunately you can no longer file your state return with us this year.</strong><br /><br />
Already filed your state taxes with us? <strong>You can download a copy of your state return until December 31, 2024</strong><br /><br />
header: A free state filing service for taxpayers using IRS Direct File
looking_for_return_html: <strong>Looking for your 2023 Arizona or New York State Tax Return?</strong>
tax_return_link: Click here to access your tax return
section1_html: |
<strong>How does it work?</strong>
<ol class="list--numbered">
Expand Down
1 change: 1 addition & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3768,6 +3768,7 @@ es:
<strong>Estamos cerrados por la temporada de impuestos. Desafortunadamente, no puede presentar tu declaración estatal con nosotros este año.</strong><br /><br />
¿Ya presentó tus impuestos estatales con nosotros? <strong>Puedes descargar una copia de tu declaración estatal hasta el 31 de diciembre de 2024</strong><br /><br />
header: Una herramienta sin costo para presentar impuestos estatales para los contribuyentes utilizando IRS Direct File
looking_for_return_html: <strong>¿Está buscando su declaración de impuestos del estado de Arizona o Nueva York de 2023?</strong>
section1_html: |
<strong>¿Cómo funciona?</strong>
<ol class="list--numbered">
Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,8 @@ def scoped_navigation_routes(context, navigation)
navigation_class = StateFile::StateInformationService.navigation_class(code)
scoped_navigation_routes(:questions, navigation_class)
end
scoped_navigation_routes(:questions, Navigation::CompletedTaxReturnNavigation)


match("/code-verified", action: :edit, controller: "state_file/questions/code_verified", via: :get)
match("/code-verified", action: :update, controller: "state_file/questions/code_verified", via: :put)
Expand Down
39 changes: 39 additions & 0 deletions db/data/20241226211010_add_address_to_completed_2023_tax_return.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# frozen_string_literal: true

class AddAddressToCompleted2023TaxReturn < ActiveRecord::Migration[7.1]
def up
puts "Migrating Arizona details"
StateFileAzIntake.all.each do |intake|
completed_return = Completed2023TaxReturn.new
completed_return.mailing_street = intake.direct_file_data.mailing_street
completed_return.mailing_apartment = intake.direct_file_data.mailing_apartment
completed_return.mailing_city = intake.direct_file_data.mailing_city
completed_return.mailing_state = intake.direct_file_data.mailing_state
completed_return.mailing_zip = intake.direct_file_data.mailing_zip
completed_return.email_address = intake.email_address
completed_return.state_code = 'az'
completed_return.hashed_ssn = intake.hashed_ssn
completed_return_pdf = Completed2023TaxReturnPdf.new

end

puts "Migrating New York details"
StateFileNyIntake.all.each do |intake|
completed_return = Completed2023TaxReturn.new
completed_return.mailing_street = intake.direct_file_data.mailing_street
completed_return.mailing_apartment = intake.direct_file_data.mailing_apartment
completed_return.mailing_city = intake.direct_file_data.mailing_city
completed_return.mailing_state = intake.direct_file_data.mailing_state
completed_return.mailing_zip = intake.direct_file_data.mailing_zip
completed_return.email_address = intake.email_address
completed_return.state_code = 'ny'
completed_return.hashed_ssn = intake.hashed_ssn
completed_return_pdf = Completed2023TaxReturnPdf.new

end
end

def down
raise ActiveRecord::IrreversibleMigration
end
end
6 changes: 5 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2024_12_20_195915) do
ActiveRecord::Schema[7.1].define(version: 2024_12_26_203341) do
create_schema "analytics"

# These are extensions that must be enabled in order to support this database
enable_extension "citext"
enable_extension "plpgsql"
Expand Down Expand Up @@ -2804,6 +2806,8 @@
add_foreign_key "incoming_text_messages", "clients"
add_foreign_key "intake_archives", "intakes", column: "id"
add_foreign_key "intakes", "clients"
add_foreign_key "intakes", "drivers_licenses", column: "primary_drivers_license_id"
add_foreign_key "intakes", "drivers_licenses", column: "spouse_drivers_license_id"
add_foreign_key "intakes", "intakes", column: "matching_previous_year_intake_id"
add_foreign_key "intakes", "vita_partners"
add_foreign_key "notes", "clients"
Expand Down

0 comments on commit db90448

Please sign in to comment.