From c7845bb9c1f2e284d924e919fb9f8d84dcadcb98 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 25 Apr 2020 23:11:34 +0000 Subject: [PATCH] Kanban (#118) Add error message when trying to create an invalid new task in a bucket Prevent creation of new buckets if the bucket title is empty Disable deleting a bucket if it's the last one Disable dragging tasks when they are being updated Fix transition when opening tasks Send the user to list view by default Show loading spinner when updating multiple tasks Add loading spinner when moving tasks Add loading animation when bucket is loading / updating etc Add bucket title edit Fix creating new buckets Add loading animation Add removing buckets Fix creating a new bucket after tasks were moved Fix warning about labels on tasks Fix labels on tasks not updating after retrieval from api Fix property width Add closing and mobile design Make the task detail popup look good Move list views Move task detail view in a popup Add link to tasks Add saving the new task position after it was moved Fix creating new bucket Fix creating a new task Cleanup Disable user selection for task cards Fix drag placeholder Add dragging style to task Add placeholder + change animation duration More cleanup Cleanup / docs Working of dragging and dropping tasks Adjust markup and styling for new library Change kanban library to something that works Add basic calculation of new positions Don't try to create empty tasks Add indicator if a task is done Add moving tasks between buckets Make empty buckets a little smaller Add gimmick for button description Fix color Fix scrolling bucket layout Add creating a new bucket Add hiding the task input field Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/118 --- package.json | 3 +- src/App.vue | 4 +- src/components/global/notification.vue | 5 + src/components/global/user.vue | 1 + src/components/lists/NewList.vue | 2 +- src/components/lists/ShowList.vue | 60 +-- .../{tasks => lists/views}/Gantt.vue | 19 +- src/components/lists/views/Kanban.vue | 447 ++++++++++++++++++ .../views/List.vue} | 30 +- .../TableView.vue => lists/views/Table.vue} | 33 +- src/components/modal/Modal.vue | 55 --- src/components/sharing/linkSharingAuth.vue | 2 +- src/components/tasks/TaskDetailView.vue | 36 +- src/components/tasks/TaskDetailViewModal.vue | 39 ++ src/components/tasks/gantt-component.vue | 11 +- src/components/tasks/helpers/taskList.js | 14 +- src/components/tasks/reusable/labels.vue | 1 - .../tasks/reusable/relatedTasks.vue | 2 +- .../tasks/reusable/singleTaskInList.vue | 2 +- src/helpers/applyDrag.js | 19 + src/helpers/case.js | 15 + src/helpers/filterObject.js | 11 + src/main.js | 2 + src/models/bucket.js | 28 ++ src/models/task.js | 6 +- src/router/index.js | 83 +++- src/services/bucket.js | 17 + src/services/label.js | 15 +- src/services/task.js | 8 + src/styles/components/_all.scss | 2 + src/styles/components/kanban.scss | 226 +++++++++ src/styles/components/modal.scss | 73 +++ src/styles/components/task.scss | 31 +- src/styles/theme/form.scss | 25 +- src/styles/theme/theme.scss | 10 +- src/styles/theme/variables.scss | 4 +- yarn.lock | 12 + 37 files changed, 1140 insertions(+), 213 deletions(-) rename src/components/{tasks => lists/views}/Gantt.vue (85%) create mode 100644 src/components/lists/views/Kanban.vue rename src/components/{tasks/ShowListTasks.vue => lists/views/List.vue} (92%) rename src/components/{tasks/TableView.vue => lists/views/Table.vue} (90%) create mode 100644 src/components/tasks/TaskDetailViewModal.vue create mode 100644 src/helpers/applyDrag.js create mode 100644 src/helpers/filterObject.js create mode 100644 src/models/bucket.js create mode 100644 src/services/bucket.js create mode 100644 src/styles/components/kanban.scss create mode 100644 src/styles/components/modal.scss diff --git a/package.json b/package.json index 8f2dd982..1ac02606 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "verte": "0.0.12", "vue": "2.6.11", "vue-drag-resize": "1.3.2", - "vue-easymde": "1.2.0" + "vue-easymde": "1.2.0", + "vue-smooth-dnd": "^0.8.1" }, "devDependencies": { "@fortawesome/fontawesome-svg-core": "1.2.28", diff --git a/src/App.vue b/src/App.vue index 321eccce..a88b178a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -141,7 +141,7 @@
-
- {{ namespace.name }} > - - {{ list.title }} - -
+ + + + + + + +
@@ -218,7 +220,7 @@
-
+