diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 733258372..2be4b51dd 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,3 +1,5 @@ + + -## :bug: Bug Report +## 🐛 Bugreport diff --git a/.github/ISSUE_TEMPLATE/devops_ticket.md b/.github/ISSUE_TEMPLATE/devops_ticket.md index 17533cd54..981d0fdd6 100644 --- a/.github/ISSUE_TEMPLATE/devops_ticket.md +++ b/.github/ISSUE_TEMPLATE/devops_ticket.md @@ -1,11 +1,10 @@ --- -name: "\U0001F4A5 DevOps Ticket" -about: Help us manage our deployed app. -title: "\U0001F4A5 [DevOps] XXX" +name: 💥 DevOps ticket +about: Help us manage our deployed Software. labels: devops -assignees: '' - +title: 💥 [DevOps] --- + -## 💥 DevOps Ticket +## 💥 DevOps ticket diff --git a/.github/ISSUE_TEMPLATE/epic.md b/.github/ISSUE_TEMPLATE/epic.md index 57eca6dfe..af511e6e2 100644 --- a/.github/ISSUE_TEMPLATE/epic.md +++ b/.github/ISSUE_TEMPLATE/epic.md @@ -1,15 +1,13 @@ --- -name: "\U0001F31F Epic" -about: Define a big development step. -title: "\U0001F31F [EPIC] XXX" +name: 🌟 Epic +about: Define a big development Step labels: epic -assignees: '' - +title: 🌟 [EPIC] --- + - + ## 🌟 EPIC diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 22cd5045e..f313740a5 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,11 +1,10 @@ --- -name: "\U0001F680 Feature Request" -about: Suggest an idea for this project. -title: "\U0001F680 [Feature] XXX" +name: 🚀 Feature request +about: Suggest an idea for this project labels: feature -assignees: '' - +title: 🚀 [Feature] --- + -## :rocket: Feature Request +## 🚀 Feature diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index f2328dcc7..b57adcd06 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -1,15 +1,13 @@ --- -name: "\U0001F4AC Question" -about: If you need help understanding ocelot.social. -title: "\U0001F4AC [Question] XXX" +name: 💬 Question +about: If you need help understanding our Software. labels: question -assignees: '' - +title: 💬 [Question] --- + - - + + ## 💬 Question diff --git a/.github/ISSUE_TEMPLATE/refactor_tickets.md b/.github/ISSUE_TEMPLATE/refactor_ticket.md similarity index 58% rename from .github/ISSUE_TEMPLATE/refactor_tickets.md rename to .github/ISSUE_TEMPLATE/refactor_ticket.md index 867c809ae..b75f7b5fc 100644 --- a/.github/ISSUE_TEMPLATE/refactor_tickets.md +++ b/.github/ISSUE_TEMPLATE/refactor_ticket.md @@ -1,11 +1,10 @@ --- -name: "\U0001F527 Refactor" +name: 🔧 Refactor ticket about: Help us improve our code by refactoring it. -title: "\U0001F527 [Refactor] XXX" labels: refactor -assignees: '' - +title: 🔧 [Refactor] --- + -## 🔧 Refactor +## 🔧 Refactor ticket diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md new file mode 100644 index 000000000..c9f4b787d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/release.md @@ -0,0 +1,13 @@ +--- +name: 🎂 Release +about: Define a Release +labels: release +title: 🎂 [RELEASE] +--- + + + + + +## 🎂 RELEASE + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 655c5cc93..d40a2770a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,15 +1,15 @@ -## 🍰 Pull Request + + +## 🍰 Pullrequest -XXX - ### Issues - - + +- None ### Todo - -- [ ] XXX list here … +- [X] None diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9564aa2f7..de171cc61 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -267,7 +267,7 @@ jobs: report_name: Coverage Webapp type: lcov result_path: ./coverage/lcov.info - min_coverage: 65 + min_coverage: 64 token: ${{ github.token }} ############################################################################## diff --git a/backend/src/db/seed.js b/backend/src/db/seed.js index 242b3a856..dd8bb59cb 100644 --- a/backend/src/db/seed.js +++ b/backend/src/db/seed.js @@ -360,6 +360,33 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] }), ]) + // post into group + await Promise.all([ + mutate({ + mutation: createPostMutation(), + variables: { + id: 'p0-g0', + groupId: 'g0', + title: `What happend in Shanghai?`, + content: 'A sack of rise dropped in Shanghai. Should we further investigate?', + categoryIds: ['cat6'], + }, + }), + ]) + authenticatedUser = await bobDerBaumeister.toJson() + await Promise.all([ + mutate({ + mutation: createPostMutation(), + variables: { + id: 'p1-g0', + groupId: 'g0', + title: `The man on the moon`, + content: 'We have to further investigate about the stories of a man living on the moon.', + categoryIds: ['cat12', 'cat16'], + }, + }), + ]) + authenticatedUser = await jennyRostock.toJson() await Promise.all([ mutate({ @@ -439,6 +466,32 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] }, }), ]) + // post into group + await Promise.all([ + mutate({ + mutation: createPostMutation(), + variables: { + id: 'p0-g1', + groupId: 'g1', + title: `Can we use ocelot for education?`, + content: 'I like the concept of this school. Can we use our software in this?', + categoryIds: ['cat8'], + }, + }), + ]) + authenticatedUser = await peterLustig.toJson() + await Promise.all([ + mutate({ + mutation: createPostMutation(), + variables: { + id: 'p1-g1', + groupId: 'g1', + title: `Can we push this idea out of France?`, + content: 'This idea is too inportant to have the scope only on France.', + categoryIds: ['cat14'], + }, + }), + ]) authenticatedUser = await bobDerBaumeister.toJson() await Promise.all([ @@ -527,6 +580,20 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] }), ]) + authenticatedUser = await louie.toJson() + await Promise.all([ + mutate({ + mutation: createPostMutation(), + variables: { + id: 'p0-g2', + groupId: 'g2', + title: `I am a Noob`, + content: 'I am new to Yoga and did not join this group so far.', + categoryIds: ['cat4'], + }, + }), + ]) + // Create Posts const [p0, p1, p3, p4, p5, p6, p9, p10, p11, p13, p14, p15] = await Promise.all([ diff --git a/webapp/components/ContributionForm/ContributionForm.spec.js b/webapp/components/ContributionForm/ContributionForm.spec.js index 0e14841d1..1ef1777fe 100644 --- a/webapp/components/ContributionForm/ContributionForm.spec.js +++ b/webapp/components/ContributionForm/ContributionForm.spec.js @@ -138,6 +138,7 @@ describe('ContributionForm.vue', () => { categoryIds: [], id: null, image: null, + groupId: null, }, } postTitleInput = wrapper.find('.ds-input') @@ -260,6 +261,7 @@ describe('ContributionForm.vue', () => { content: propsData.contribution.content, categoryIds: [], id: propsData.contribution.id, + groupId: null, image: { sensitive: false, }, diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 6eb1ebbbc..0428b2e23 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -99,6 +99,10 @@ export default { type: Object, default: () => ({}), }, + groupId: { + type: String, + default: () => null, + }, }, data() { const { title, content, image, categories } = this.contribution @@ -173,6 +177,7 @@ export default { categoryIds, id: this.contribution.id || null, image, + groupId: this.groupId, }, }) .then(({ data }) => { diff --git a/webapp/components/FilterMenu/FilterMenu.vue b/webapp/components/FilterMenu/FilterMenu.vue index 9e211ccf9..74265803b 100644 --- a/webapp/components/FilterMenu/FilterMenu.vue +++ b/webapp/components/FilterMenu/FilterMenu.vue @@ -14,6 +14,7 @@

{{ $t('filter-menu.filter-by') }}

+

{{ $t('filter-menu.order-by') }}

@@ -28,12 +29,19 @@ import Dropdown from '~/components/Dropdown' import { mapGetters } from 'vuex' import FollowingFilter from './FollowingFilter' import OrderByFilter from './OrderByFilter' +import CategoriesFilter from './CategoriesFilter' export default { components: { Dropdown, FollowingFilter, OrderByFilter, + CategoriesFilter, + }, + data() { + return { + categoriesActive: this.$env.CATEGORIES_ACTIVE, + } }, props: { placement: { type: String }, diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue index f3d67278b..e0166bb45 100644 --- a/webapp/components/Group/GroupForm.vue +++ b/webapp/components/Group/GroupForm.vue @@ -11,13 +11,13 @@