From 3c669a17cb418c6699d0bb235812e07112388548 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 24 Jan 2023 15:23:34 +0100 Subject: [PATCH 01/26] change open creation-page, add tabs for all state on contributions --- admin/src/components/NavBar.vue | 14 ++++------- admin/src/locales/de.json | 8 ++++++- admin/src/locales/en.json | 8 ++++++- admin/src/pages/CreationConfirm.vue | 37 ++++++++++++++++++++++------- 4 files changed, 47 insertions(+), 20 deletions(-) diff --git a/admin/src/components/NavBar.vue b/admin/src/components/NavBar.vue index 6bed8e6e4..399a7dcac 100644 --- a/admin/src/components/NavBar.vue +++ b/admin/src/components/NavBar.vue @@ -12,12 +12,11 @@ {{ $t('navbar.overview') }} {{ $t('navbar.user_search') }} {{ $t('navbar.multi_creation') }} - - {{ $store.state.openCreations }} {{ $t('navbar.open_creation') }} + + {{ $t('creation') }} + + {{ $store.state.openCreations }} + {{ $t('navbar.automaticContributions') }} @@ -57,7 +56,4 @@ export default { height: 2rem; padding-left: 10px; } -.bg-color-creation { - background-color: #cf1010dc; -} diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index ad7a668e2..74cfffe3b 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -29,6 +29,13 @@ "validFrom": "Startdatum", "validTo": "Enddatum" }, + "contributions": { + "all": "Alle", + "confirmed": "Bestätigte", + "deleted": "Gelöscht", + "denied": "Abgelehnt", + "open": "Offen" + }, "creation": "Schöpfung", "creationList": "Schöpfungsliste", "creation_form": { @@ -101,7 +108,6 @@ "logout": "Abmelden", "multi_creation": "Mehrfachschöpfung", "my-account": "Mein Konto", - "open_creation": "Offene Schöpfungen", "overview": "Übersicht", "statistic": "Statistik", "user_search": "Nutzersuche" diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index 3f8751fa1..c61d3f9b8 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -29,6 +29,13 @@ "validFrom": "Start-date", "validTo": "End-Date" }, + "contributions": { + "all": "All", + "confirmed": "Confirmed", + "deleted": "Deleted", + "denied": "Denied", + "open": "Open" + }, "creation": "Creation", "creationList": "Creation list", "creation_form": { @@ -101,7 +108,6 @@ "logout": "Logout", "multi_creation": "Multiple creation", "my-account": "My Account", - "open_creation": "Open creations", "overview": "Overview", "statistic": "Statistic", "user_search": "User search" diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index 23871635d..956174f4e 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -1,17 +1,36 @@ From bfcef736361174589d85933cc8fd07fecd59a068 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 2 Feb 2023 07:53:29 +0100 Subject: [PATCH 03/26] add badge, count open contribution on tab open --- admin/src/pages/CreationConfirm.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/src/pages/CreationConfirm.vue b/admin/src/pages/CreationConfirm.vue index 69a483943..75356c588 100644 --- a/admin/src/pages/CreationConfirm.vue +++ b/admin/src/pages/CreationConfirm.vue @@ -3,7 +3,13 @@
- + + Date: Thu, 2 Feb 2023 09:29:59 +0100 Subject: [PATCH 04/26] change query listAllContribution add statusFilter --- admin/src/graphql/listAllContributions.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/admin/src/graphql/listAllContributions.js b/admin/src/graphql/listAllContributions.js index 1aacc4824..c9ad60441 100644 --- a/admin/src/graphql/listAllContributions.js +++ b/admin/src/graphql/listAllContributions.js @@ -1,8 +1,18 @@ import gql from 'graphql-tag' export const listAllContributions = gql` - query ($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) { - listAllContributions(currentPage: $currentPage, pageSize: $pageSize, order: $order) { + query ( + $currentPage: Int = 1 + $pageSize: Int = 5 + $order: Order = DESC + $statusFilter: [ContributionStatus!] + ) { + listAllContributions( + currentPage: $currentPage + pageSize: $pageSize + order: $order + statusFilter: $statusFilter + ) { contributionCount contributionList { id From 0298bbd740aa91c74f5481ed17df692e6ffe0480 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 2 Feb 2023 16:26:26 +0100 Subject: [PATCH 05/26] add pagination on contributions lists --- .../components/Tables/OpenCreationsTable.vue | 30 +++- admin/src/graphql/listAllContributions.js | 2 +- admin/src/locales/de.json | 5 + admin/src/locales/en.json | 4 + admin/src/pages/CreationConfirm.vue | 167 ++++++++++++++---- admin/src/pages/Overview.vue | 37 ++-- .../graphql/resolver/ContributionResolver.ts | 1 + 7 files changed, 195 insertions(+), 51 deletions(-) diff --git a/admin/src/components/Tables/OpenCreationsTable.vue b/admin/src/components/Tables/OpenCreationsTable.vue index e4d289c8e..aa5e88dc5 100644 --- a/admin/src/components/Tables/OpenCreationsTable.vue +++ b/admin/src/components/Tables/OpenCreationsTable.vue @@ -1,11 +1,20 @@