From 31a101e352ec48522f4ce0d8123a6059b6d6d311 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Nov 2025 16:06:41 +0000 Subject: [PATCH] refactor: implement review feedback - Change default clickable prop to false (simpler code) - Update Labels.vue to explicitly set clickable=true - Remove clickable=false from QuickActions and FilterCommandsList (now default) - Add {label} placeholder to translation string - Use i18n-t component to render label within translation - Move router.push from ShowTasks to Home via event emission - Add clearLabelFilter event handler in Home.vue Co-authored-by: kolaente <13721712+kolaente@users.noreply.github.com> --- .../input/filter/FilterCommandsList.vue | 1 - .../components/quick-actions/QuickActions.vue | 5 +--- .../src/components/tasks/partials/Label.vue | 2 +- .../src/components/tasks/partials/Labels.vue | 1 + frontend/src/i18n/lang/en.json | 2 +- frontend/src/views/Home.vue | 13 ++++++++- frontend/src/views/tasks/ShowTasks.vue | 28 ++++++++++--------- 7 files changed, 31 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/input/filter/FilterCommandsList.vue b/frontend/src/components/input/filter/FilterCommandsList.vue index 0a30f93b7..fe1348bd4 100644 --- a/frontend/src/components/input/filter/FilterCommandsList.vue +++ b/frontend/src/components/input/filter/FilterCommandsList.vue @@ -12,7 +12,6 @@ diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index 36f0829dd..32422963b 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -808,7 +808,7 @@ "fromuntil": "Tasks from {from} until {until}", "select": "Select a date range", "noTasks": "Nothing to do — Have a nice day!", - "filterByLabel": "Filtering by label" + "filterByLabel": "Filtering by label: {label}" }, "detail": { "chooseDueDate": "Click here to set a due date", diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 530e3dabe..98cd1a1ce 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -41,13 +41,14 @@ :label-ids="labelIds" class="show-tasks" @tasksLoaded="tasksLoaded = true" + @clearLabelFilter="handleClearLabelFilter" />