From 38c4ae183dcae001cef46d06bf0524fa89ef1877 Mon Sep 17 00:00:00 2001 From: Stone Filipczak Date: Wed, 12 Feb 2025 11:52:38 -0500 Subject: [PATCH 01/31] remove create account and switch task buttons --- app/views/layouts/_header.html.erb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index b6db8a9f..b07bd318 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -135,7 +135,7 @@ aria-label="Official website of the United States government" @@ -187,10 +185,8 @@ aria-label="Official website of the United States government" <%= current_user.email %> <%= button_to("Logout", session_path, method: :delete, class: "usa-button font-body-3xs usa-button--outline margin-y-1 text-no-wrap desktop:margin-left-1 width-full", type: "button") %> - <% else %> <%= button_to("Login", new_session_path, method: :get, class: "usa-button font-body-3xs usa-button--outline margin-y-1 text-no-wrap desktop:margin-left-1 width-full", type: "button") %> - <% end %> From 66701ad073facfd685b90d239978ddcab7901456 Mon Sep 17 00:00:00 2001 From: Stone Filipczak Date: Wed, 12 Feb 2025 12:27:46 -0500 Subject: [PATCH 02/31] update utility menu links --- app/helpers/navigation_helper.rb | 3 ++- app/views/layouts/_utility_menu.erb | 9 +++------ spec/requests/dashboard_request_spec.rb | 1 + spec/support/shared_examples/utility_menu.rb | 13 ++++++++----- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/helpers/navigation_helper.rb b/app/helpers/navigation_helper.rb index 25a93eb2..129144db 100644 --- a/app/helpers/navigation_helper.rb +++ b/app/helpers/navigation_helper.rb @@ -6,7 +6,8 @@ def utility_menu_link(image_path, href, _alt, button_label) link_to(href, class: "display-flex flex-align-center flex-column desktop:flex-row " \ "margin-x-1 desktop:margin-x-3 text-white - width-9 tablet:width-auto tablet:text-no-wrap text-center") do + width-9 tablet:width-auto tablet:text-no-wrap text-center", + id: "utility-menu-link-#{button_label}") do image_tag( "images/usa-icons/#{image_path}.svg", class: "usa-icon--size-4 desktop:usa-icon--size-3 icon-white desktop:margin-right-1", diff --git a/app/views/layouts/_utility_menu.erb b/app/views/layouts/_utility_menu.erb index 4b4d109a..55ac0f56 100644 --- a/app/views/layouts/_utility_menu.erb +++ b/app/views/layouts/_utility_menu.erb @@ -1,15 +1,12 @@