From ee065d92386b323f6ac7ecbc6c86e5665ed9c594 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 12 Feb 2024 17:55:54 +0100 Subject: [PATCH] feat(tasks): make done at column available for selection in table view This change adds the done at column of tasks to the table view. It also ensures it is possible to sort the tasks by that column. https://community.vikunja.io/t/is-it-possible-to-list-done-tasks-with-their-completion-date/1922 --- frontend/src/composables/useTaskList.ts | 1 + frontend/src/i18n/lang/en.json | 3 ++- frontend/src/views/project/ProjectTable.vue | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/src/composables/useTaskList.ts b/frontend/src/composables/useTaskList.ts index 4acefb19b..e1be96460 100644 --- a/frontend/src/composables/useTaskList.ts +++ b/frontend/src/composables/useTaskList.ts @@ -21,6 +21,7 @@ export interface SortBy { percent_done?: Order created?: Order updated?: Order + done_at?: Order, } // FIXME: merge with DEFAULT_PARAMS in filters.vue diff --git a/frontend/src/i18n/lang/en.json b/frontend/src/i18n/lang/en.json index 0398c89ea..a53fc9d55 100644 --- a/frontend/src/i18n/lang/en.json +++ b/frontend/src/i18n/lang/en.json @@ -716,7 +716,8 @@ "repeat": "Repeat", "startDate": "Start Date", "title": "Title", - "updated": "Updated" + "updated": "Updated", + "doneAt": "Done At" }, "subscription": { "subscribedTaskThroughParentProject": "You can't unsubscribe here because you are subscribed to this task through its project.", diff --git a/frontend/src/views/project/ProjectTable.vue b/frontend/src/views/project/ProjectTable.vue index 1be3a5a08..8ed043f8a 100644 --- a/frontend/src/views/project/ProjectTable.vue +++ b/frontend/src/views/project/ProjectTable.vue @@ -52,6 +52,9 @@ {{ $t('task.attributes.percentDone') }} + + {{ $t('task.attributes.doneAt') }} + {{ $t('task.attributes.created') }} @@ -144,6 +147,13 @@ @click="sort('percent_done')" /> + + {{ $t('task.attributes.doneAt') }} + + {{ $t('task.attributes.created') }} {{ t.percentDone * 100 }}% +