From f338001d320aa433cdb82a671014e58a92757322 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:14:01 +0000 Subject: [PATCH 1/2] Initial plan From ad326c942fc53545efbfbe951f3a14cedc704517 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:37:01 +0000 Subject: [PATCH 2/2] Fix: past activities tab resets to upcoming when changing pagination pages - Change tab buttons to anchor links with URL-based navigation (events_path for upcoming, events_path(tab: 1) for past) - Add data-tabs-index-value from params[:tab] so the Stimulus Tabs controller initializes to the correct tab on page load - Add data-turbo-action="replace" for better browser history behavior - Add role="tab" for accessibility When navigating to /events?tab=1, the server renders with data-tabs-index-value="1" and Pagy includes tab=1 in all pagination links (via request.GET). Clicking a pagination link navigates to /events?tab=1&page=N, which again renders with the past tab selected. Agent-Logs-Url: https://github.com/DispuutHamers/webapp/sessions/ea1ab744-e12e-48cc-a394-f1b410d59536 Co-authored-by: koenjdejong <74268574+koenjdejong@users.noreply.github.com> --- app/views/events/index.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 19544dda..ad6c1fa5 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -7,15 +7,15 @@ <% end %>
-
+