From c16ca20db5d80f2631d827e74f7e8b19a9b5759c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Nov 2025 15:36:23 +0000 Subject: [PATCH] feat: add clickable labels with filtering support - Made labels clickable in Label.vue component - Added label filtering to ShowTasks component via query parameters - Updated Home.vue to pass label query parameters to ShowTasks - Added visual indicator showing active label filter with clear button - Added translation for "Filtering by label" message Co-authored-by: kolaente <13721712+kolaente@users.noreply.github.com> --- .../src/components/tasks/partials/Label.vue | 27 ++++++- frontend/src/i18n/lang/en.json | 3 +- frontend/src/views/Home.vue | 12 ++++ frontend/src/views/tasks/ShowTasks.vue | 72 +++++++++++++++++++ 4 files changed, 111 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/tasks/partials/Label.vue b/frontend/src/components/tasks/partials/Label.vue index aa1dd0214..75be536e7 100644 --- a/frontend/src/components/tasks/partials/Label.vue +++ b/frontend/src/components/tasks/partials/Label.vue @@ -2,15 +2,29 @@ import type {ILabel} from '@/modelTypes/ILabel' import {useLabelStyles} from '@/composables/useLabelStyles' -defineProps<{ +const props = withDefaults(defineProps<{ label: ILabel -}>() + clickable?: boolean +}>(), { + clickable: true, +}) const {getLabelStyles} = useLabelStyles()