diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e9762b4bb..18d1143db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -438,7 +438,7 @@ jobs: report_name: Coverage Frontend type: lcov result_path: ./coverage/lcov.info - min_coverage: 94 + min_coverage: 95 token: ${{ github.token }} ############################################################################## diff --git a/admin/src/components/CreationTransactionListFormular.spec.js b/admin/src/components/CreationTransactionListFormular.spec.js index 5acff8ab7..fb137e516 100644 --- a/admin/src/components/CreationTransactionListFormular.spec.js +++ b/admin/src/components/CreationTransactionListFormular.spec.js @@ -6,32 +6,30 @@ const localVue = global.localVue const apolloQueryMock = jest.fn().mockResolvedValue({ data: { - transactionList: { - transactions: [ - { - id: 1, - amount: 100, - balanceDate: 0, - creationDate: new Date(), - memo: 'Testing', - linkedUser: { - firstName: 'Gradido', - lastName: 'Akademie', - }, + creationTransactionList: [ + { + id: 1, + amount: 100, + balanceDate: 0, + creationDate: new Date(), + memo: 'Testing', + linkedUser: { + firstName: 'Gradido', + lastName: 'Akademie', }, - { - id: 2, - amount: 200, - balanceDate: 0, - creationDate: new Date(), - memo: 'Testing 2', - linkedUser: { - firstName: 'Gradido', - lastName: 'Akademie', - }, + }, + { + id: 2, + amount: 200, + balanceDate: 0, + creationDate: new Date(), + memo: 'Testing 2', + linkedUser: { + firstName: 'Gradido', + lastName: 'Akademie', }, - ], - }, + }, + ], }, }) @@ -67,7 +65,6 @@ describe('CreationTransactionListFormular', () => { currentPage: 1, pageSize: 25, order: 'DESC', - onlyCreations: true, userId: 1, }, }), diff --git a/admin/src/components/CreationTransactionListFormular.vue b/admin/src/components/CreationTransactionListFormular.vue index 0b78ca4b8..ce2b136a4 100644 --- a/admin/src/components/CreationTransactionListFormular.vue +++ b/admin/src/components/CreationTransactionListFormular.vue @@ -5,7 +5,7 @@ diff --git a/frontend/src/components/LinkInformations/RedeemLoggedOut.vue b/frontend/src/components/LinkInformations/RedeemLoggedOut.vue new file mode 100644 index 000000000..20b75869a --- /dev/null +++ b/frontend/src/components/LinkInformations/RedeemLoggedOut.vue @@ -0,0 +1,47 @@ + + + + + + + {{ $t('gdd_per_link.redeem') }} + + + + + {{ $t('gdd_per_link.no-account') }} + + {{ $t('gdd_per_link.to-register') }} + + + + {{ $t('gdd_per_link.has-account') }} + {{ $t('gdd_per_link.to-login') }} + + + + + + diff --git a/frontend/src/components/LinkInformations/RedeemSelfCreator.vue b/frontend/src/components/LinkInformations/RedeemSelfCreator.vue new file mode 100644 index 000000000..5a4928690 --- /dev/null +++ b/frontend/src/components/LinkInformations/RedeemSelfCreator.vue @@ -0,0 +1,31 @@ + + + + + + + + {{ $t('gdd_per_link.no-redeem') }} + + {{ $t('gdd_per_link.link-overview') }} + + + + + + + diff --git a/frontend/src/components/LinkInformations/RedeemValid.vue b/frontend/src/components/LinkInformations/RedeemValid.vue new file mode 100644 index 000000000..301afad69 --- /dev/null +++ b/frontend/src/components/LinkInformations/RedeemValid.vue @@ -0,0 +1,27 @@ + + + + + + + {{ $t('gdd_per_link.redeem') }} + + + + + + diff --git a/frontend/src/components/LinkInformations/RedeemedTextBox.vue b/frontend/src/components/LinkInformations/RedeemedTextBox.vue new file mode 100644 index 000000000..4a33668af --- /dev/null +++ b/frontend/src/components/LinkInformations/RedeemedTextBox.vue @@ -0,0 +1,21 @@ + + + + + {{ text }} + + + + + {{ $t('back') }} + + + + diff --git a/frontend/src/components/TransactionLinkItem.vue b/frontend/src/components/TransactionLinkItem.vue new file mode 100644 index 000000000..bea893724 --- /dev/null +++ b/frontend/src/components/TransactionLinkItem.vue @@ -0,0 +1,16 @@ + + + + + + diff --git a/frontend/src/components/TransactionListItem.vue b/frontend/src/components/TransactionListItem.vue index f2f7f3e90..e39345d5e 100644 --- a/frontend/src/components/TransactionListItem.vue +++ b/frontend/src/components/TransactionListItem.vue @@ -5,7 +5,7 @@
{{ $t('gdd_per_link.no-account') }}
{{ $t('gdd_per_link.has-account') }}