From 9439b166197aa79ac38a3c7de20bb88732307aad Mon Sep 17 00:00:00 2001 From: Tyler <26290074+tylersayshi@users.noreply.github.com> Date: Mon, 30 Mar 2026 17:51:16 -0700 Subject: [PATCH 1/7] fix(ui): arrow key navigation for org page - adding a composable to handle arrows on org page - shared composable back with search results page fixes #2338 --- app/components/BaseCard.vue | 6 +- app/components/Package/Card.vue | 4 +- .../useResultsKeyboardNavigation.ts | 152 ++++++++++++++++++ app/pages/org/[org].vue | 3 + app/pages/search.vue | 84 ++-------- test/e2e/interactions.spec.ts | 90 +++++++++++ 6 files changed, 260 insertions(+), 79 deletions(-) create mode 100644 app/composables/useResultsKeyboardNavigation.ts diff --git a/app/components/BaseCard.vue b/app/components/BaseCard.vue index 2eb7f348bd..fc7794c53d 100644 --- a/app/components/BaseCard.vue +++ b/app/components/BaseCard.vue @@ -3,12 +3,16 @@ defineProps<{ /** Whether this is an exact match for the query */ isExactMatch?: boolean selected?: boolean + /** Index for keyboard navigation */ + index?: number }>()