From e7a766800d91540fa273d00ebfbc36d50e23acef Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 17 Nov 2022 13:52:59 +0100 Subject: [PATCH] feat: remove edit-task from list view the edit-task component is only used in the listview which doesn't make sense: either all views should have such quick-view mode or none. By removing this component we _do_ remove a bit of functionality. But: if we improve the modal of the taskdetailview it's general usability and add a new sidebar mode (instead of the current float-in-the-center we do have even a better solution --- cypress/e2e/list/list-view-list.spec.ts | 10 +- src/components/tasks/edit-task.vue | 187 ------------------------ src/views/list/ListList.vue | 177 +++++++--------------- 3 files changed, 57 insertions(+), 317 deletions(-) delete mode 100644 src/components/tasks/edit-task.vue diff --git a/cypress/e2e/list/list-view-list.spec.ts b/cypress/e2e/list/list-view-list.spec.ts index c637cc237..d980b3bd3 100644 --- a/cypress/e2e/list/list-view-list.spec.ts +++ b/cypress/e2e/list/list-view-list.spec.ts @@ -78,7 +78,7 @@ describe('List View List', () => { cy.get('.menu-list li .list-menu-link .color-bubble') .should('have.css', 'background-color', 'rgb(0, 219, 96)') - cy.get('.tasks-container .tasks .color-bubble') + cy.get('.tasks .color-bubble') .should('not.exist') }) @@ -90,9 +90,9 @@ describe('List View List', () => { }) cy.visit('/lists/1/list') - cy.get('.tasks-container .tasks') + cy.get('.tasks') .should('contain', tasks[1].title) - cy.get('.tasks-container .tasks') + cy.get('.tasks') .should('not.contain', tasks[99].title) cy.get('.card-content .pagination .pagination-link') @@ -101,9 +101,9 @@ describe('List View List', () => { cy.url() .should('contain', '?page=2') - cy.get('.tasks-container .tasks') + cy.get('.tasks') .should('contain', tasks[99].title) - cy.get('.tasks-container .tasks') + cy.get('.tasks') .should('not.contain', tasks[1].title) }) }) \ No newline at end of file diff --git a/src/components/tasks/edit-task.vue b/src/components/tasks/edit-task.vue deleted file mode 100644 index c233903ed..000000000 --- a/src/components/tasks/edit-task.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/list/ListList.vue b/src/views/list/ListList.vue index 8e03fa83c..6b4816321 100644 --- a/src/views/list/ListList.vue +++ b/src/views/list/ListList.vue @@ -53,15 +53,13 @@ class="loader-container is-max-width-desktop list-view" > - + class="list-view__add-task" + ref="addTaskRef" + :default-position="firstNewPosition" + @taskAdded="updateTaskList" + /> {{ $t('list.list.empty') }} @@ -70,59 +68,42 @@ -
-
- +