From 8685b62232cd08e527c2489a96998dbf11952766 Mon Sep 17 00:00:00 2001 From: vkagithala <“vkagithala@cirm.ca.gov”> Date: Wed, 3 Dec 2025 17:21:50 -0800 Subject: [PATCH 1/2] Added 'Back to Home' link on notifications list page to improve navigation experience. --- app/views/notifications/index.html.erb | 4 ++++ test/controllers/notifications_controller_test.rb | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 70fee45b8..711536723 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -2,6 +2,10 @@ <% @hide_footer_frames = true %> <% content_for :header do %> +
+ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> +
+

<%= @page_title %>

diff --git a/test/controllers/notifications_controller_test.rb b/test/controllers/notifications_controller_test.rb index 20b28201d..cf69d3703 100644 --- a/test/controllers/notifications_controller_test.rb +++ b/test/controllers/notifications_controller_test.rb @@ -1,7 +1,12 @@ require "test_helper" class NotificationsControllerTest < ActionDispatch::IntegrationTest - # test "the truth" do - # assert true - # end + test "should get index and show back button" do + sign_in_as users(:david) + get notifications_url + assert_response :success + assert_select "a[href=?]", root_path do + assert_select "strong", text: "Back to Home" + end + end end From a92aab998126f8abc9ba7d12e2613d54578b238c Mon Sep 17 00:00:00 2001 From: vkagithala <“vkagithala@cirm.ca.gov”> Date: Thu, 4 Dec 2025 08:44:37 -0800 Subject: [PATCH 2/2] Removed test to verify back button. --- test/controllers/notifications_controller_test.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/controllers/notifications_controller_test.rb b/test/controllers/notifications_controller_test.rb index cf69d3703..13c211783 100644 --- a/test/controllers/notifications_controller_test.rb +++ b/test/controllers/notifications_controller_test.rb @@ -1,12 +1,4 @@ require "test_helper" class NotificationsControllerTest < ActionDispatch::IntegrationTest - test "should get index and show back button" do - sign_in_as users(:david) - get notifications_url - assert_response :success - assert_select "a[href=?]", root_path do - assert_select "strong", text: "Back to Home" - end - end end