From 801033138fc6b2b53b6d9f23e63d8f3a436aa857 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:14:07 +0100 Subject: [PATCH 01/99] Add firstTransaction boolean to TransactionList. --- backend/src/graphql/model/TransactionList.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/graphql/model/TransactionList.ts b/backend/src/graphql/model/TransactionList.ts index 0175048d1..ce1e315c5 100644 --- a/backend/src/graphql/model/TransactionList.ts +++ b/backend/src/graphql/model/TransactionList.ts @@ -11,6 +11,7 @@ export class TransactionList { this.balance = 0 this.decay = 0 this.decayDate = '' + this.firstTransaction = false } @Field(() => Number) @@ -30,4 +31,7 @@ export class TransactionList { @Field(() => [Transaction]) transactions: Transaction[] + + @Field(() => Boolean) + firstTransaction: boolean } From 27d46231371d4d77f3a570722afae621206a0052 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:31:44 +0100 Subject: [PATCH 02/99] Remove firstTransaction from TransactionList. --- backend/src/graphql/model/TransactionList.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/src/graphql/model/TransactionList.ts b/backend/src/graphql/model/TransactionList.ts index ce1e315c5..57196af19 100644 --- a/backend/src/graphql/model/TransactionList.ts +++ b/backend/src/graphql/model/TransactionList.ts @@ -31,7 +31,4 @@ export class TransactionList { @Field(() => [Transaction]) transactions: Transaction[] - - @Field(() => Boolean) - firstTransaction: boolean } From 8c6aafcedb80e6212fe80d04c60e9340a0a762f6 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:32:09 +0100 Subject: [PATCH 03/99] Add firstTransaction boolean to Transaction. --- backend/src/graphql/model/Transaction.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/backend/src/graphql/model/Transaction.ts b/backend/src/graphql/model/Transaction.ts index 3aa3c429d..e23334a8e 100644 --- a/backend/src/graphql/model/Transaction.ts +++ b/backend/src/graphql/model/Transaction.ts @@ -15,6 +15,7 @@ export class Transaction { this.balance = 0 this.totalBalance = 0 this.memo = '' + this.firstTransaction = false } @Field(() => String) @@ -26,15 +27,6 @@ export class Transaction { @Field(() => Number) totalBalance: number - @Field({ nullable: true }) - decayStart?: string - - @Field({ nullable: true }) - decayEnd?: string - - @Field({ nullable: true }) - decayDuration?: number - @Field(() => String) memo: string @@ -52,4 +44,7 @@ export class Transaction { @Field({ nullable: true }) decay?: Decay + + @Field(() => Boolean) + firstTransaction: boolean } From d3123e00fc17a40460f7f09fb86286f95d48d052 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:32:56 +0100 Subject: [PATCH 04/99] Fill firstTransaction in case decay can not be created. --- backend/src/graphql/resolver/TransactionResolver.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/graphql/resolver/TransactionResolver.ts b/backend/src/graphql/resolver/TransactionResolver.ts index 4bf4e7a17..99f1f4d25 100644 --- a/backend/src/graphql/resolver/TransactionResolver.ts +++ b/backend/src/graphql/resolver/TransactionResolver.ts @@ -103,6 +103,8 @@ async function calculateAndAddDecayTransactions( decayStartTransaction.received.getTime() / 1000 ).toString() } + } else { + finalTransaction.firstTransaction = true } } From 520cb22350240cba780e216d0f8b779c7a4d277a Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 7 Feb 2022 11:38:46 +0100 Subject: [PATCH 05/99] Revert "Add firstTransaction boolean to Transaction." This reverts commit 8c6aafcedb80e6212fe80d04c60e9340a0a762f6. --- backend/src/graphql/model/Transaction.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/backend/src/graphql/model/Transaction.ts b/backend/src/graphql/model/Transaction.ts index e23334a8e..3aa3c429d 100644 --- a/backend/src/graphql/model/Transaction.ts +++ b/backend/src/graphql/model/Transaction.ts @@ -15,7 +15,6 @@ export class Transaction { this.balance = 0 this.totalBalance = 0 this.memo = '' - this.firstTransaction = false } @Field(() => String) @@ -27,6 +26,15 @@ export class Transaction { @Field(() => Number) totalBalance: number + @Field({ nullable: true }) + decayStart?: string + + @Field({ nullable: true }) + decayEnd?: string + + @Field({ nullable: true }) + decayDuration?: number + @Field(() => String) memo: string @@ -44,7 +52,4 @@ export class Transaction { @Field({ nullable: true }) decay?: Decay - - @Field(() => Boolean) - firstTransaction: boolean } From e22c701c880855d71e48547c96b3b7c8b8805d13 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:40:26 +0100 Subject: [PATCH 06/99] Add firstTransaction boolean to Transaction. --- backend/src/graphql/model/Transaction.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/graphql/model/Transaction.ts b/backend/src/graphql/model/Transaction.ts index 3aa3c429d..89ecd1513 100644 --- a/backend/src/graphql/model/Transaction.ts +++ b/backend/src/graphql/model/Transaction.ts @@ -15,6 +15,7 @@ export class Transaction { this.balance = 0 this.totalBalance = 0 this.memo = '' + this.firstTransaction = false } @Field(() => String) @@ -52,4 +53,7 @@ export class Transaction { @Field({ nullable: true }) decay?: Decay + + @Field(() => Boolean) + firstTransaction: boolean } From 111894bc3e240f249594633a21139d1e1c8b9050 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:44:32 +0100 Subject: [PATCH 07/99] Move case firstTransaction in case their is no previous Transaction. --- backend/src/graphql/resolver/TransactionResolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/graphql/resolver/TransactionResolver.ts b/backend/src/graphql/resolver/TransactionResolver.ts index 99f1f4d25..aa65672fe 100644 --- a/backend/src/graphql/resolver/TransactionResolver.ts +++ b/backend/src/graphql/resolver/TransactionResolver.ts @@ -103,9 +103,9 @@ async function calculateAndAddDecayTransactions( decayStartTransaction.received.getTime() / 1000 ).toString() } - } else { - finalTransaction.firstTransaction = true } + } else { + finalTransaction.firstTransaction = true } // sender or receiver when user has sent money From 21da7f4ffb712e6f11b2c773652d53b5ef042a7e Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 11:56:50 +0100 Subject: [PATCH 08/99] Removed the firstTransaction property initialization in TransactionList. --- backend/src/graphql/model/TransactionList.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/graphql/model/TransactionList.ts b/backend/src/graphql/model/TransactionList.ts index 57196af19..0175048d1 100644 --- a/backend/src/graphql/model/TransactionList.ts +++ b/backend/src/graphql/model/TransactionList.ts @@ -11,7 +11,6 @@ export class TransactionList { this.balance = 0 this.decay = 0 this.decayDate = '' - this.firstTransaction = false } @Field(() => Number) From e76bae4585a4c072065e423c0f81048109b3b37a Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 7 Feb 2022 12:01:39 +0100 Subject: [PATCH 09/99] Add firstTransaction to transactionList transactions query. --- frontend/src/graphql/queries.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index c6d5a36c3..e84dc0080 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -82,6 +82,7 @@ export const transactionsQuery = gql` decayDuration decayStartBlock } + firstTransaction } } } From e1d07e36420510c943141812a9311f0dd08b60df Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 7 Feb 2022 12:13:12 +0100 Subject: [PATCH 10/99] get firstTransaction from Transactionlist, add collaps block for firstTransaction --- .../AccountOverview/GddTransactionList.vue | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index f6c046fe6..ffcaebc16 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -12,7 +12,16 @@ {{ $t('error.empty-transactionlist') }}
@@ -22,7 +31,7 @@ >
@@ -113,7 +122,11 @@ - +
+
+ Die erste Transanktion binhaltet keinen Vergänglichkeit. +
From e1abedc8ff2b3e7a2a0706c73a4aef77ca7c675b Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 7 Feb 2022 12:18:25 +0100 Subject: [PATCH 11/99] add localize first_transaction --- frontend/src/locales/de.json | 3 ++- frontend/src/locales/en.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index fbd9c8e91..ffd03f588 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -42,7 +42,8 @@ "Starting_block_decay": "Startblock Vergänglichkeit", "toCommunity": "An die Gemeinschaft", "total": "Gesamt", - "year": "Jahre" + "year": "Jahre", + "first_transaction":"Die erste Transanktion binhaltet keinen Vergänglichkeit." }, "error": { "change-password": "Fehler beim Ändern des Passworts", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 534aa25e8..dce1cd2b0 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -42,7 +42,8 @@ "Starting_block_decay": "Starting Block Decay", "toCommunity": "To the community", "total": "Total", - "year": "Years" + "year": "Years", + "first_transaction":"The first transanction does not include transience." }, "error": { "change-password": "Error while changing password", From 50c87e8e00aa17175d0b6d205bfa7a401301e90a Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 7 Feb 2022 12:21:21 +0100 Subject: [PATCH 12/99] add localize on transactionlist --- frontend/src/locales/en.json | 2 +- frontend/src/views/Pages/AccountOverview/GddTransactionList.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index dce1cd2b0..9823e6f20 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -43,7 +43,7 @@ "toCommunity": "To the community", "total": "Total", "year": "Years", - "first_transaction":"The first transanction does not include transience." + "first_transaction":"The first transanction does not include decay." }, "error": { "change-password": "Error while changing password", diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index ffcaebc16..f012b934a 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -136,7 +136,7 @@ :type="type" />
- Die erste Transanktion binhaltet keinen Vergänglichkeit. + {{ $t('decay.first_transaction') }}
From 90ef04b46599651ece7e6aec4707a98204aadc69 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 7 Feb 2022 12:22:33 +0100 Subject: [PATCH 13/99] yarn lint --fix && yarn locales --fix --- frontend/src/locales/de.json | 4 ++-- frontend/src/locales/en.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index ffd03f588..952587b46 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -29,6 +29,7 @@ "decayStart": " - Startblock für Vergänglichkeit am: ", "decay_introduced": "Die Vergänglichkeit wurde eingeführt am ", "decay_since_last_transaction": "Vergänglichkeit seit der letzten Transaktion", + "first_transaction": "Die erste Transanktion binhaltet keinen Vergänglichkeit.", "hours": "Stunden", "last_transaction": "Letzte Transaktion", "minutes": "Minuten", @@ -42,8 +43,7 @@ "Starting_block_decay": "Startblock Vergänglichkeit", "toCommunity": "An die Gemeinschaft", "total": "Gesamt", - "year": "Jahre", - "first_transaction":"Die erste Transanktion binhaltet keinen Vergänglichkeit." + "year": "Jahre" }, "error": { "change-password": "Fehler beim Ändern des Passworts", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 9823e6f20..2427602f0 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -29,6 +29,7 @@ "decayStart": " - Starting block for decay at: ", "decay_introduced": "Decay was introduced on", "decay_since_last_transaction": "Decay since the last transaction", + "first_transaction": "The first transanction does not include decay.", "hours": "Hours", "last_transaction": "Last transaction:", "minutes": "Minutes", @@ -42,8 +43,7 @@ "Starting_block_decay": "Starting Block Decay", "toCommunity": "To the community", "total": "Total", - "year": "Years", - "first_transaction":"The first transanction does not include decay." + "year": "Years" }, "error": { "change-password": "Error while changing password", From 64301776fb5da57a72fe1d5a682be97c7259e86a Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Tue, 8 Feb 2022 08:30:01 +0100 Subject: [PATCH 14/99] Update frontend/src/locales/de.json Co-authored-by: Moriz Wahl --- frontend/src/locales/de.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 952587b46..64161e214 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -29,7 +29,7 @@ "decayStart": " - Startblock für Vergänglichkeit am: ", "decay_introduced": "Die Vergänglichkeit wurde eingeführt am ", "decay_since_last_transaction": "Vergänglichkeit seit der letzten Transaktion", - "first_transaction": "Die erste Transanktion binhaltet keinen Vergänglichkeit.", + "first_transaction": "Die erste Transaktion hat keine Vergänglichkeit.", "hours": "Stunden", "last_transaction": "Letzte Transaktion", "minutes": "Minuten", From f92b223d90ba58ef9b1aa66149d57bd28cbc3c49 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Tue, 8 Feb 2022 08:30:09 +0100 Subject: [PATCH 15/99] Update frontend/src/locales/en.json Co-authored-by: Moriz Wahl --- frontend/src/locales/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 2427602f0..024cab870 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -29,7 +29,7 @@ "decayStart": " - Starting block for decay at: ", "decay_introduced": "Decay was introduced on", "decay_since_last_transaction": "Decay since the last transaction", - "first_transaction": "The first transanction does not include decay.", + "first_transaction": "The first transaction has no decay.", "hours": "Hours", "last_transaction": "Last transaction:", "minutes": "Minutes", From 9add338ddd842979dbbf8d4b297b16699c6e3481 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Tue, 8 Feb 2022 08:30:24 +0100 Subject: [PATCH 16/99] Update frontend/src/views/Pages/AccountOverview/GddTransactionList.vue Co-authored-by: Moriz Wahl --- frontend/src/views/Pages/AccountOverview/GddTransactionList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index f012b934a..7f1689fbf 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -123,7 +123,7 @@ From b876d8e335493658fef5251a94cd3647f87a87e2 Mon Sep 17 00:00:00 2001 From: Alexander Friedland Date: Tue, 8 Feb 2022 08:30:38 +0100 Subject: [PATCH 17/99] Update frontend/src/views/Pages/AccountOverview/GddTransactionList.vue Co-authored-by: Moriz Wahl --- frontend/src/views/Pages/AccountOverview/GddTransactionList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 7f1689fbf..607d7bdf7 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -31,7 +31,7 @@ >
From 9b22b424571259fc4e87585a8ee7a7c00625a5d6 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:06:26 +0100 Subject: [PATCH 18/99] change conflicts fixed --- .../Pages/AccountOverview/GddTransactionList.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 607d7bdf7..f558bc616 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -31,7 +31,11 @@ >
@@ -123,7 +127,11 @@ @@ -138,6 +146,10 @@
{{ $t('decay.first_transaction') }}
+ +
+ {{ $t('decay.first_transaction') }} +
From 55866ef1fe23b2c28690c4b2197477db942b6475 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:09:48 +0100 Subject: [PATCH 19/99] change conflicts fixed --- frontend/src/locales/de.json | 3 ++- frontend/src/locales/en.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 64161e214..ea57152e5 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -29,7 +29,8 @@ "decayStart": " - Startblock für Vergänglichkeit am: ", "decay_introduced": "Die Vergänglichkeit wurde eingeführt am ", "decay_since_last_transaction": "Vergänglichkeit seit der letzten Transaktion", - "first_transaction": "Die erste Transaktion hat keine Vergänglichkeit.", + "befor_startblock_transaction": "Die Transanktion binhaltet noch keine Vergänglichkeit.", + "first_transaction": "Die erste Transanktion binhaltet keinen Vergänglichkeit.", "hours": "Stunden", "last_transaction": "Letzte Transaktion", "minutes": "Minuten", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 024cab870..55343c9b8 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -29,7 +29,8 @@ "decayStart": " - Starting block for decay at: ", "decay_introduced": "Decay was introduced on", "decay_since_last_transaction": "Decay since the last transaction", - "first_transaction": "The first transaction has no decay.", + "befor_startblock_transaction": "The transanction does not yet contain transience.", + "first_transaction": "The first transanction does not include decay.", "hours": "Hours", "last_transaction": "Last transaction:", "minutes": "Minutes", From 716de7de46699f9182b46aeec6f295898e4f09ac Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:04:01 +0100 Subject: [PATCH 20/99] lacales in befor startblock collaps text --- frontend/src/views/Pages/AccountOverview/GddTransactionList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index f558bc616..91727ba39 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -148,7 +148,7 @@
- {{ $t('decay.first_transaction') }} + {{ $t('decay.befor_startblock_transaction') }}
From 3fe99b3de2a43bcfa25447e88ae6c364a9e26fce Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:04:46 +0100 Subject: [PATCH 21/99] yarn locales --fix --- frontend/src/locales/de.json | 2 +- frontend/src/locales/en.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index ea57152e5..8c4a0f79f 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -21,6 +21,7 @@ "switch-to-this-community": "zu dieser Gemeinschaft wechseln" }, "decay": { + "befor_startblock_transaction": "Die Transanktion binhaltet noch keine Vergänglichkeit.", "calculation_decay": "Berechnung der Vergänglichkeit", "calculation_total": "Berechnung der Gesamtsumme", "created": "Geschöpft", @@ -29,7 +30,6 @@ "decayStart": " - Startblock für Vergänglichkeit am: ", "decay_introduced": "Die Vergänglichkeit wurde eingeführt am ", "decay_since_last_transaction": "Vergänglichkeit seit der letzten Transaktion", - "befor_startblock_transaction": "Die Transanktion binhaltet noch keine Vergänglichkeit.", "first_transaction": "Die erste Transanktion binhaltet keinen Vergänglichkeit.", "hours": "Stunden", "last_transaction": "Letzte Transaktion", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 55343c9b8..f0ece59a4 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -21,6 +21,7 @@ "switch-to-this-community": "Switch to this community" }, "decay": { + "befor_startblock_transaction": "The transanction does not yet contain transience.", "calculation_decay": "Calculation of Decay", "calculation_total": "Calculation of the total Amount", "created": "Created", @@ -29,7 +30,6 @@ "decayStart": " - Starting block for decay at: ", "decay_introduced": "Decay was introduced on", "decay_since_last_transaction": "Decay since the last transaction", - "befor_startblock_transaction": "The transanction does not yet contain transience.", "first_transaction": "The first transanction does not include decay.", "hours": "Hours", "last_transaction": "Last transaction:", From 7dadcb1701c1969810112fcef3f39b4893cf2115 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:13:54 +0100 Subject: [PATCH 22/99] rechtschreibfehler fixed --- frontend/src/locales/de.json | 4 ++-- frontend/src/locales/en.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 8c4a0f79f..16e4abd02 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -21,7 +21,7 @@ "switch-to-this-community": "zu dieser Gemeinschaft wechseln" }, "decay": { - "befor_startblock_transaction": "Die Transanktion binhaltet noch keine Vergänglichkeit.", + "befor_startblock_transaction": "Die Transaktion binhaltet noch keine Vergänglichkeit.", "calculation_decay": "Berechnung der Vergänglichkeit", "calculation_total": "Berechnung der Gesamtsumme", "created": "Geschöpft", @@ -30,7 +30,7 @@ "decayStart": " - Startblock für Vergänglichkeit am: ", "decay_introduced": "Die Vergänglichkeit wurde eingeführt am ", "decay_since_last_transaction": "Vergänglichkeit seit der letzten Transaktion", - "first_transaction": "Die erste Transanktion binhaltet keinen Vergänglichkeit.", + "first_transaction": "Die erste Transaktion beinhaltet keinen Vergänglichkeit.", "hours": "Stunden", "last_transaction": "Letzte Transaktion", "minutes": "Minuten", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index f0ece59a4..fc79de976 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -21,7 +21,7 @@ "switch-to-this-community": "Switch to this community" }, "decay": { - "befor_startblock_transaction": "The transanction does not yet contain transience.", + "befor_startblock_transaction": "The transaction does not yet contain transience.", "calculation_decay": "Calculation of Decay", "calculation_total": "Calculation of the total Amount", "created": "Created", @@ -30,7 +30,7 @@ "decayStart": " - Starting block for decay at: ", "decay_introduced": "Decay was introduced on", "decay_since_last_transaction": "Decay since the last transaction", - "first_transaction": "The first transanction does not include decay.", + "first_transaction": "The first transaction does not include decay.", "hours": "Hours", "last_transaction": "Last transaction:", "minutes": "Minutes", From b7c215c17c642337901236516006aeb1d088aad8 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:14:42 +0100 Subject: [PATCH 23/99] rechtschreibfehler fixed --- frontend/src/locales/de.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 16e4abd02..1497d418c 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -21,7 +21,7 @@ "switch-to-this-community": "zu dieser Gemeinschaft wechseln" }, "decay": { - "befor_startblock_transaction": "Die Transaktion binhaltet noch keine Vergänglichkeit.", + "befor_startblock_transaction": "Die Transaktion beinhaltet noch keine Vergänglichkeit.", "calculation_decay": "Berechnung der Vergänglichkeit", "calculation_total": "Berechnung der Gesamtsumme", "created": "Geschöpft", From c51fd00be5743311538a8f62a6a1e97f60c5435e Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:18:04 +0100 Subject: [PATCH 24/99] rechtschreibfehler fixed --- frontend/src/locales/de.json | 4 ++-- frontend/src/locales/en.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 1497d418c..720f46770 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -21,7 +21,7 @@ "switch-to-this-community": "zu dieser Gemeinschaft wechseln" }, "decay": { - "befor_startblock_transaction": "Die Transaktion beinhaltet noch keine Vergänglichkeit.", + "befor_startblock_transaction": "Diese Transaktion beinhaltet keine Vergänglichkeit.", "calculation_decay": "Berechnung der Vergänglichkeit", "calculation_total": "Berechnung der Gesamtsumme", "created": "Geschöpft", @@ -30,7 +30,7 @@ "decayStart": " - Startblock für Vergänglichkeit am: ", "decay_introduced": "Die Vergänglichkeit wurde eingeführt am ", "decay_since_last_transaction": "Vergänglichkeit seit der letzten Transaktion", - "first_transaction": "Die erste Transaktion beinhaltet keinen Vergänglichkeit.", + "first_transaction": "Die erste Transaktion beinhaltet keine Vergänglichkeit.", "hours": "Stunden", "last_transaction": "Letzte Transaktion", "minutes": "Minuten", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index fc79de976..9833a5c68 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -21,7 +21,7 @@ "switch-to-this-community": "Switch to this community" }, "decay": { - "befor_startblock_transaction": "The transaction does not yet contain transience.", + "befor_startblock_transaction": "This transaction does not include decay.", "calculation_decay": "Calculation of Decay", "calculation_total": "Calculation of the total Amount", "created": "Created", From 399450af93a6ebd02faafdfce3d6a8744922da90 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 8 Feb 2022 15:30:33 +0100 Subject: [PATCH 25/99] remove collaps button from decay type transaction --- .../src/views/Pages/AccountOverview/GddTransactionList.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 91727ba39..5366865ca 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -34,7 +34,7 @@ v-if=" (type != 'decay' && decay) || firstTransaction || - (!firstTransaction && decay === null) + (type !== 'decay' && !firstTransaction && decay === null) " class="text-right" style="width: 95%; position: absolute" @@ -147,7 +147,10 @@ {{ $t('decay.first_transaction') }} -
+
{{ $t('decay.befor_startblock_transaction') }}
From b2f051fc1f37c1586263a64a1b1bba7b1f3b54d4 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 10 Feb 2022 10:52:07 +0100 Subject: [PATCH 26/99] remove collaps button, add icon rotate if collaps open. change color shema --- .../AccountOverview/GddTransactionList.vue | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index 5366865ca..a45cfb014 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -2,13 +2,13 @@
- + {{ $t('error.no-transactionlist') }}
- + {{ $t('error.empty-transactionlist') }}
-
- - i - +
+
-
@@ -125,17 +118,13 @@
- - -
+ " --> + +
{ + if (isJustShown) { + this.collapseStatus.push(collapseId) + } else { + this.collapseStatus = this.collapseStatus.filter((id) => id !== collapseId) + } + }) }, watch: { currentPage() { From 6dec4042b94245ad153faf05d2f75d5b32287ac5 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 10 Feb 2022 11:06:06 +0100 Subject: [PATCH 27/99] yarn lint --fix --- .../src/views/Pages/AccountOverview/GddTransactionList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index a45cfb014..ea20539fe 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -27,7 +27,7 @@ >
@@ -124,7 +124,7 @@ (!firstTransaction && decay === null) " --> -
+
Date: Thu, 10 Feb 2022 11:42:49 +0100 Subject: [PATCH 28/99] add test for icons at(0) and at(1) --- .../GddTransactionList.spec.js | 39 +++++++++++++++---- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js index b116de9e8..0addcf4f2 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js @@ -135,12 +135,31 @@ describe('GddTransactionList', () => { transaction = wrapper.findAll('div.gdd-transaction-list-item').at(0) }) + it('has a bi-caret-down-square icon', () => { + expect(transaction.findAll('svg').at(0).classes()).toEqual([ + 'bi-caret-down-square', + 'b-icon', + 'bi', + 'text-muted', + ]) + }) + + // it('transaction is clicked', async () => { + // await transaction.trigger('click') + // expect(transaction.findAll('svg').at(0).classes()).toEqual([ + // 'bi-caret-up-square', + // 'b-icon', + // 'bi', + // 'text-muted', + // ]) + // }) + it('has a bi-arrow-left-circle icon', () => { - expect(transaction.find('svg').classes()).toContain('bi-arrow-left-circle') + expect(transaction.findAll('svg').at(1).classes()).toContain('bi-arrow-left-circle') }) it('has text-danger color', () => { - expect(transaction.find('svg').classes()).toContain('text-danger') + expect(transaction.findAll('svg').at(1).classes()).toContain('text-danger') }) it('has a minus operator', () => { @@ -187,11 +206,13 @@ describe('GddTransactionList', () => { }) it('has a bi-gift icon', () => { - expect(transaction.find('svg').classes()).toContain('bi-gift') + expect(transaction.findAll('svg').at(1).classes()).toContain('bi-gift') }) it('has gradido-global-color-accent color', () => { - expect(transaction.find('svg').classes()).toContain('gradido-global-color-accent') + expect(transaction.findAll('svg').at(1).classes()).toContain( + 'gradido-global-color-accent', + ) }) it('has a plus operator', () => { @@ -226,11 +247,13 @@ describe('GddTransactionList', () => { }) it('has a bi-arrow-right-circle icon', () => { - expect(transaction.find('svg').classes()).toContain('bi-arrow-right-circle') + expect(transaction.findAll('svg').at(1).classes()).toContain('bi-arrow-right-circle') }) it('has gradido-global-color-accent color', () => { - expect(transaction.find('svg').classes()).toContain('gradido-global-color-accent') + expect(transaction.findAll('svg').at(1).classes()).toContain( + 'gradido-global-color-accent', + ) }) it('has a plus operator', () => { @@ -277,11 +300,11 @@ describe('GddTransactionList', () => { }) it('has a bi-droplet-half icon', () => { - expect(transaction.find('svg').classes()).toContain('bi-droplet-half') + expect(transaction.findAll('svg').at(1).classes()).toContain('bi-droplet-half') }) it('has gradido-global-color-gray color', () => { - expect(transaction.find('svg').classes()).toContain('gradido-global-color-gray') + expect(transaction.findAll('svg').at(1).classes()).toContain('gradido-global-color-gray') }) it('has a minus operator', () => { From 3f7fcc0d1965f026d116107483d235d50a6e6d04 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 10 Feb 2022 11:51:41 +0100 Subject: [PATCH 29/99] add test for icons at(0) and at(1) --- .../GddTransactionList.spec.js | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js index 0addcf4f2..3e5998caf 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.spec.js @@ -205,6 +205,25 @@ describe('GddTransactionList', () => { transaction = wrapper.findAll('div.gdd-transaction-list-item').at(1) }) + it('has a bi-caret-down-square icon', () => { + expect(transaction.findAll('svg').at(0).classes()).toEqual([ + 'bi-caret-down-square', + 'b-icon', + 'bi', + 'text-muted', + ]) + }) + + // it('transaction is clicked', async () => { + // await transaction.trigger('click') + // expect(transaction.findAll('svg').at(0).classes()).toEqual([ + // 'bi-caret-up-square', + // 'b-icon', + // 'bi', + // 'text-muted', + // ]) + // }) + it('has a bi-gift icon', () => { expect(transaction.findAll('svg').at(1).classes()).toContain('bi-gift') }) @@ -246,6 +265,25 @@ describe('GddTransactionList', () => { transaction = wrapper.findAll('div.gdd-transaction-list-item').at(2) }) + it('has a bi-caret-down-square icon', () => { + expect(transaction.findAll('svg').at(0).classes()).toEqual([ + 'bi-caret-down-square', + 'b-icon', + 'bi', + 'text-muted', + ]) + }) + + // it('transaction is clicked', async () => { + // await transaction.trigger('click') + // expect(transaction.findAll('svg').at(0).classes()).toEqual([ + // 'bi-caret-up-square', + // 'b-icon', + // 'bi', + // 'text-muted', + // ]) + // }) + it('has a bi-arrow-right-circle icon', () => { expect(transaction.findAll('svg').at(1).classes()).toContain('bi-arrow-right-circle') }) @@ -299,6 +337,25 @@ describe('GddTransactionList', () => { transaction = wrapper.findAll('div.gdd-transaction-list-item').at(3) }) + it('has a bi-caret-down-square icon', () => { + expect(transaction.findAll('svg').at(0).classes()).toEqual([ + 'bi-caret-down-square', + 'b-icon', + 'bi', + 'text-muted', + ]) + }) + + // it('transaction is clicked', async () => { + // await transaction.trigger('click') + // expect(transaction.findAll('svg').at(0).classes()).toEqual([ + // 'bi-caret-up-square', + // 'b-icon', + // 'bi', + // 'text-muted', + // ]) + // }) + it('has a bi-droplet-half icon', () => { expect(transaction.findAll('svg').at(1).classes()).toContain('bi-droplet-half') }) From 07c43b800fae7d769dd5e60e25c73b1a24e0b05b Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 10 Feb 2022 20:58:16 +0100 Subject: [PATCH 30/99] show decay info for decay from last transaction --- frontend/src/components/DecayInformation.vue | 16 ++++++++-------- .../Pages/AccountOverview/GddTransactionList.vue | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 28af9b2b4..dd3fc225e 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -4,7 +4,7 @@ {{ decay ? ' - ' + $n(decay.balance, 'decimal') + ' ' + decayStartBlockTextShort : '' }} -
+
@@ -12,7 +12,7 @@
- +
{{ $t('decay.last_transaction') }}
@@ -32,7 +32,7 @@
- +
{{ $t('decay.past_time') }}
@@ -54,7 +54,7 @@
- +
{{ $t('decay.decay') }}
@@ -63,13 +63,13 @@

- + {{ $t('decay.calculation_total') }} - +
{{ $t('decay.sent') }}
{{ $t('decay.received') }}
@@ -80,7 +80,7 @@
- +
{{ $t('decay.decay') }}
@@ -89,7 +89,7 @@
- +
{{ $t('decay.total') }}
diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index ea20539fe..e92dc9636 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -21,6 +21,9 @@ name, memo, firstTransaction, + decayDuration, + decayEnd, + decayStart, } in transactions" :key="transactionId" :style="type === 'decay' ? 'background-color:#f1e0ae3d' : ''" @@ -142,6 +145,19 @@ > {{ $t('decay.befor_startblock_transaction') }}
+
+ +
From df7f3d7668dd29ff1e8e99786ec8fd6047aa523f Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 10 Feb 2022 21:27:35 +0100 Subject: [PATCH 31/99] gdd balance pass down --- frontend/src/components/DecayInformation.vue | 8 +++++++- .../views/Pages/AccountOverview/GddTransactionList.vue | 5 ++++- frontend/src/views/Pages/UserProfileTransactionList.vue | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index dd3fc225e..0e068318c 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -59,7 +59,12 @@
{{ $t('decay.decay') }}
-
- {{ $n(decay.balance, 'decimal') }}
+
{{ $n(decay.balance, 'decimal') }}
+
+ {{ $n(decay.balance, 'decimal') }} GDD - + {{ $n(decay.balance + gddbalance, 'decimal') }} = + {{ $n(gddbalance, 'decimal') }} +

@@ -112,6 +117,7 @@ export default { name: 'DecayInformation', props: { + gddbalance: { type: Number }, balance: { type: Number }, type: { type: String, default: '' }, decay: { diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index e92dc9636..e7972b5ce 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -1,5 +1,6 @@ @@ -83,9 +100,15 @@ import CreationFormular from '../CreationFormular.vue' import ConfirmRegisterMailFormular from '../ConfirmRegisterMailFormular.vue' import RowDetails from '../RowDetails.vue' import CreationTransactionListFormular from '../CreationTransactionListFormular.vue' +import DeletedUserFormular from '../DeletedUserFormular.vue' import { toggleRowDetails } from '../../mixins/toggleRowDetails' -const slotNames = ['show-creation', 'show-register-mail', 'show-transaction-list'] +const slotNames = [ + 'show-creation', + 'show-register-mail', + 'show-transaction-list', + 'show-deleted-user', +] export default { name: 'SearchUserTable', @@ -94,6 +117,7 @@ export default { CreationFormular, ConfirmRegisterMailFormular, CreationTransactionListFormular, + DeletedUserFormular, RowDetails, }, props: { diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index 90a60475c..c1868427c 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -24,6 +24,10 @@ "delete": "Löschen", "details": "Details", "edit": "Bearbeiten", + "enabled":"aktiviert", + "disabled":"deaktiviert", + "disabled_user":"deaktivierte Nutzer anzeigen", + "enabled_user":"aktivierte Nutzer anzeigen", "e_mail": "E-Mail", "firstname": "Vorname", "gradido_admin_footer": "Gradido Akademie Adminkonsole", diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index 8775393dd..0896a630a 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -24,6 +24,10 @@ "delete": "Delete", "details": "Details", "edit": "Edit", + "enabled":"enabled", + "disabled":"disabled", + "enabled_user":"show enabled user", + "disabled_user":"show disabled user", "e_mail": "E-mail", "firstname": "Firstname", "gradido_admin_footer": "Gradido Academy Admin Console", diff --git a/admin/src/pages/UserSearch.vue b/admin/src/pages/UserSearch.vue index de041282a..961a483b1 100644 --- a/admin/src/pages/UserSearch.vue +++ b/admin/src/pages/UserSearch.vue @@ -1,10 +1,14 @@