From 1bb76d79503cc5a4b377897debf4c5fc0ff98b81 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sun, 25 Oct 2026 03:44:55 -0400 Subject: [PATCH] fix(a11y): keyboard users can sort the Evaluations feedback list and open a feedback from it (#33162) --- .../admin/Evaluations/Feedbacks.svelte | 80 ++++++++++++++----- 1 file changed, 58 insertions(+), 22 deletions(-) diff --git a/src/lib/components/admin/Evaluations/Feedbacks.svelte b/src/lib/components/admin/Evaluations/Feedbacks.svelte index b63a655499..eeb0ea13b9 100644 --- a/src/lib/components/admin/Evaluations/Feedbacks.svelte +++ b/src/lib/components/admin/Evaluations/Feedbacks.svelte @@ -320,10 +320,18 @@ setSortKey('username')} + class="font-normal select-none w-3" + aria-sort={orderBy === 'username' + ? direction === 'asc' + ? 'ascending' + : 'descending' + : 'none'} > -
+
+ setSortKey('model_id')} + class="font-normal select-none" + aria-sort={orderBy === 'model_id' + ? direction === 'asc' + ? 'ascending' + : 'descending' + : 'none'} > -
+
+ setSortKey('rating')} + class="font-normal text-right select-none w-fit" + aria-sort={orderBy === 'rating' + ? direction === 'asc' + ? 'ascending' + : 'descending' + : 'none'} > -
+
+ setSortKey('updated_at')} + class="font-normal text-right select-none w-0" + aria-sort={orderBy === 'updated_at' + ? direction === 'asc' + ? 'ascending' + : 'descending' + : 'none'} > -
+
+ {#if feedback.data?.sibling_model_ids} -
openFeedbackModal(feedback)} > {feedback.data?.model_id} -
+
@@ -466,11 +500,13 @@ {:else} -
openFeedbackModal(feedback)} > {feedback.data?.model_id} -
+
{/if}