diff --git a/cypress/integration/list/list.spec.js b/cypress/integration/list/list.spec.js index ce7f6f551..00f5b4f5e 100644 --- a/cypress/integration/list/list.spec.js +++ b/cypress/integration/list/list.spec.js @@ -72,7 +72,7 @@ describe('Lists', () => { .should('contain', newListName) .should('not.contain', lists[0].title) cy.visit('/') - cy.get('.card-content .tasks') + cy.get('.card-content') .should('contain', newListName) .should('not.contain', lists[0].title) }) diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue new file mode 100644 index 000000000..0ff3c4951 --- /dev/null +++ b/src/components/date/datepickerWithRange.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index da4cabf61..1121d91b8 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -482,7 +482,8 @@ "showMenu": "Show the menu", "hideMenu": "Hide the menu", "forExample": "For example:", - "welcomeBack": "Welcome Back!" + "welcomeBack": "Welcome Back!", + "custom": "Custom" }, "input": { "resetColor": "Reset Color", @@ -538,12 +539,16 @@ "titleCurrent": "Current Tasks", "titleDates": "Tasks from {from} until {to}", "noDates": "Show tasks without dates", - "current": "Current tasks", - "from": "Tasks from", - "until": "until", + "overdue": "Show overdue tasks", + "fromuntil": "Tasks from {from} until {until}", + "select": "Select a date range", "today": "Today", + "thisWeek": "This Week", "nextWeek": "Next Week", + "next7Days": "Next 7 Days", + "thisMonth": "This Month", "nextMonth": "Next Month", + "next30Days": "Next 30 Days", "noTasks": "Nothing to do — Have a nice day!" }, "detail": { diff --git a/src/router/index.ts b/src/router/index.ts index 6e4ccce26..ddcb7d2cf 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,7 +13,7 @@ import RegisterComponent from '../views/user/Register.vue' import OpenIdAuth from '../views/user/OpenIdAuth.vue' import DataExportDownload from '../views/user/DataExportDownload.vue' // Tasks -import ShowTasksInRangeComponent from '../views/tasks/ShowTasksInRange.vue' +import UpcomingTasksComponent from '../views/tasks/ShowTasks.vue' import LinkShareAuthComponent from '../views/sharing/LinkSharingAuth.vue' import ListNamespaces from '../views/namespaces/ListNamespaces.vue' import TaskDetailView from '../views/tasks/TaskDetailView.vue' @@ -248,7 +248,7 @@ const router = createRouter({ { path: '/tasks/by/upcoming', name: 'tasks.range', - component: ShowTasksInRangeComponent, + component: UpcomingTasksComponent, }, { path: '/lists/new/:namespaceId/', diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index 9b1399840..d0e2ee6cb 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -1,99 +1,74 @@ \ No newline at end of file diff --git a/src/views/tasks/ShowTasksInRange.vue b/src/views/tasks/ShowTasksInRange.vue deleted file mode 100644 index 02498cc11..000000000 --- a/src/views/tasks/ShowTasksInRange.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - \ No newline at end of file