diff --git a/.github/workflows/lint_pr.yml b/.github/workflows/lint_pr.yml index defaa7b08..f57b3a1f0 100644 --- a/.github/workflows/lint_pr.yml +++ b/.github/workflows/lint_pr.yml @@ -29,6 +29,7 @@ jobs: database release federation + dht workflow docker other diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e04d4c21..668a9f028 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,64 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [1.22.0](https://github.com/gradido/gradido/compare/1.21.0...1.22.0) + +- fix(backend): yarn.lock after typeorm update [`#3097`](https://github.com/gradido/gradido/pull/3097) +- feat(frontend): new style for settings page [`#3040`](https://github.com/gradido/gradido/pull/3040) +- feat(admin): query users on contributions [`#3094`](https://github.com/gradido/gradido/pull/3094) +- feat(backend): user query on find contributions [`#3091`](https://github.com/gradido/gradido/pull/3091) +- fix(backend): double redeem transaction link [`#3093`](https://github.com/gradido/gradido/pull/3093) +- feat(admin): message type admin frontend [`#3073`](https://github.com/gradido/gradido/pull/3073) +- feat(other): end-to-end test scenarios for deleted and not registered user [`#3077`](https://github.com/gradido/gradido/pull/3077) +- feat(database): update typeorm [`#3078`](https://github.com/gradido/gradido/pull/3078) +- refactor(other): disable cypress test retries [`#3092`](https://github.com/gradido/gradido/pull/3092) +- test(other): update cypress [`#3056`](https://github.com/gradido/gradido/pull/3056) +- feat(other): add definition of cron-job for klicktipp export. [`#3051`](https://github.com/gradido/gradido/pull/3051) +- fix(backend): forget password not for deleted users [`#3090`](https://github.com/gradido/gradido/pull/3090) +- fix(backend): gdt server error & gdt refetch policy [`#3086`](https://github.com/gradido/gradido/pull/3086) +- feat(backend): contribution message type moderator [`#3072`](https://github.com/gradido/gradido/pull/3072) +- fix(other): linting in e2e tests directory does not work [`#3089`](https://github.com/gradido/gradido/pull/3089) +- feat(other): end-to-end test feature send coins [`#3070`](https://github.com/gradido/gradido/pull/3070) +- refactor(dht): move typescript related packages in dev Dependencies [`#3085`](https://github.com/gradido/gradido/pull/3085) +- fix(backend): jest environment [`#3084`](https://github.com/gradido/gradido/pull/3084) +- feat(frontend): transaction list page change style for small device [`#3081`](https://github.com/gradido/gradido/pull/3081) +- refactor(other): refactor state to status [`#3082`](https://github.com/gradido/gradido/pull/3082) +- feat(admin): change deny contribution btn-warning color and background-color to #e1a908 [`#3080`](https://github.com/gradido/gradido/pull/3080) +- feat(backend): bootstrap and Hello World Test [`#3041`](https://github.com/gradido/gradido/pull/3041) +- feat(frontend): change the info text on the start page [`#3049`](https://github.com/gradido/gradido/pull/3049) +- refactor(dht): eslint dht n [`#3045`](https://github.com/gradido/gradido/pull/3045) +- refactor(dht): eslint dht comments [`#3046`](https://github.com/gradido/gradido/pull/3046) +- fix(frontend): auto logout messages autohide time 5000 [`#2959`](https://github.com/gradido/gradido/pull/2959) +- feat(federation): introduce private key in community table [`#3024`](https://github.com/gradido/gradido/pull/3024) +- refactor(backend): removed klicktipp middleware and replace it with a function [`#3035`](https://github.com/gradido/gradido/pull/3035) +- feat(admin): order user search desc, fix pagination [`#3059`](https://github.com/gradido/gradido/pull/3059) +- refactor(database): eslint database eslint comments [`#3039`](https://github.com/gradido/gradido/pull/3039) +- refactor(database): eslint database import [`#3038`](https://github.com/gradido/gradido/pull/3038) +- feat(backend): apply design template to HTML e-mails [`#2938`](https://github.com/gradido/gradido/pull/2938) +- refactor(database): eslint database n [`#3037`](https://github.com/gradido/gradido/pull/3037) +- refactor(backend): sodium native with types [`#3032`](https://github.com/gradido/gradido/pull/3032) +- refactor(federation): expose private key to write home community [`#3023`](https://github.com/gradido/gradido/pull/3023) +- refactor(dht): eslint dht base configuration [`#3042`](https://github.com/gradido/gradido/pull/3042) +- refactor(federation): eslint federation base configuration [`#3047`](https://github.com/gradido/gradido/pull/3047) +- refactor(database): eslint database base configuration [`#3036`](https://github.com/gradido/gradido/pull/3036) +- feat(workflow): dht as package for lint pr workflow [`#3043`](https://github.com/gradido/gradido/pull/3043) +- refactor(federation): removed (potential) duplicate db query [`#3019`](https://github.com/gradido/gradido/pull/3019) +- refactor(federation): remove function getSeed [`#3022`](https://github.com/gradido/gradido/pull/3022) +- refactor(federation): refactor federation to use inheritance [`#2992`](https://github.com/gradido/gradido/pull/2992) +- refactor(backend): random-bigint types [`#3033`](https://github.com/gradido/gradido/pull/3033) +- fix(frontend): incorrect errormessage for wrong contribution link [`#2958`](https://github.com/gradido/gradido/pull/2958) +- refactor(federation): remove export from CommunityApi [`#3021`](https://github.com/gradido/gradido/pull/3021) +- refactor(federation): simplify newCommunityUuid [`#3020`](https://github.com/gradido/gradido/pull/3020) +- refactor(database): remove duplicate comments [`#3025`](https://github.com/gradido/gradido/pull/3025) +- feat(federation): x com 3 introduce business communities [`#2955`](https://github.com/gradido/gradido/pull/2955) +- refactor(backend): remove to do after creating issue [`#3000`](https://github.com/gradido/gradido/pull/3000) +- refactor(backend): camelcase exception for FederationClient_XX_X [`#3016`](https://github.com/gradido/gradido/pull/3016) + #### [1.21.0](https://github.com/gradido/gradido/compare/1.20.0...1.21.0) +> 19 May 2023 + +- chore(release): v1.21.0 [`#2998`](https://github.com/gradido/gradido/pull/2998) - feat(frontend): preserve email after login [`#2994`](https://github.com/gradido/gradido/pull/2994) - feat(frontend): send coins via identifier [`#2989`](https://github.com/gradido/gradido/pull/2989) - feat(backend): export user events to klicktipp [`#2916`](https://github.com/gradido/gradido/pull/2916) diff --git a/admin/package.json b/admin/package.json index 823201b7d..12cf55ddb 100644 --- a/admin/package.json +++ b/admin/package.json @@ -3,7 +3,7 @@ "description": "Administraion Interface for Gradido", "main": "index.js", "author": "Moriz Wahl", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "private": false, "scripts": { diff --git a/admin/src/components/ContributionMessages/ContributionMessagesFormular.spec.js b/admin/src/components/ContributionMessages/ContributionMessagesFormular.spec.js index a81009c09..b7f01f8b8 100644 --- a/admin/src/components/ContributionMessages/ContributionMessagesFormular.spec.js +++ b/admin/src/components/ContributionMessages/ContributionMessagesFormular.spec.js @@ -1,6 +1,7 @@ import { mount } from '@vue/test-utils' import ContributionMessagesFormular from './ContributionMessagesFormular' import { toastErrorSpy, toastSuccessSpy } from '../../../test/testSetup' +import { adminCreateContributionMessage } from '@/graphql/adminCreateContributionMessage' const localVue = global.localVue @@ -34,6 +35,7 @@ describe('ContributionMessagesFormular', () => { describe('mount', () => { beforeEach(() => { wrapper = Wrapper() + jest.clearAllMocks() }) it('has a DIV .contribution-messages-formular', () => { @@ -73,13 +75,65 @@ describe('ContributionMessagesFormular', () => { ) }) - it('emitted "update-state" with data', async () => { - expect(wrapper.emitted('update-state')).toEqual( + it('emitted "update-status" with data', async () => { + expect(wrapper.emitted('update-status')).toEqual( expect.arrayContaining([expect.arrayContaining([42])]), ) }) }) + describe('send DIALOG contribution message with success', () => { + beforeEach(async () => { + await wrapper.setData({ + form: { + text: 'text form message', + }, + }) + await wrapper.find('button[data-test="submit-dialog"]').trigger('click') + }) + + it('moderatorMesage has `DIALOG`', () => { + expect(apolloMutateMock).toBeCalledWith({ + mutation: adminCreateContributionMessage, + variables: { + contributionId: 42, + message: 'text form message', + messageType: 'DIALOG', + }, + }) + }) + + it('toasts an success message', () => { + expect(toastSuccessSpy).toBeCalledWith('message.request') + }) + }) + + describe('send MODERATOR contribution message with success', () => { + beforeEach(async () => { + await wrapper.setData({ + form: { + text: 'text form message', + }, + }) + await wrapper.find('button[data-test="submit-moderator"]').trigger('click') + }) + + it('moderatorMesage has `MODERATOR`', () => { + expect(apolloMutateMock).toBeCalledWith({ + mutation: adminCreateContributionMessage, + variables: { + contributionId: 42, + message: 'text form message', + messageType: 'MODERATOR', + }, + }) + }) + + it('toasts an success message', () => { + expect(toastSuccessSpy).toBeCalledWith('message.request') + }) + }) + describe('send contribution message with error', () => { beforeEach(async () => { apolloMutateMock.mockRejectedValue({ message: 'OUCH!' }) @@ -91,21 +145,5 @@ describe('ContributionMessagesFormular', () => { expect(toastErrorSpy).toBeCalledWith('OUCH!') }) }) - - describe('send contribution message with success', () => { - beforeEach(async () => { - wrapper.setData({ - form: { - text: 'text form message', - }, - }) - wrapper = Wrapper() - await wrapper.find('form').trigger('submit') - }) - - it('toasts an success message', () => { - expect(toastSuccessSpy).toBeCalledWith('message.request') - }) - }) }) }) diff --git a/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue b/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue index 3a5d6e0b8..1286104a4 100644 --- a/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue +++ b/admin/src/components/ContributionMessages/ContributionMessagesFormular.vue @@ -1,7 +1,7 @@