From f06369ad7cd6d85a8276e978430dbf36101ba600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 27 Jun 2023 12:52:18 +0200 Subject: [PATCH 01/39] =?UTF-8?q?Setup=20displaying=20events=20on=20map=20?= =?UTF-8?q?=E2=80=93=20first=20step?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/pages/map.vue | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/webapp/pages/map.vue b/webapp/pages/map.vue index 1a34cbda1..e6c0950a6 100644 --- a/webapp/pages/map.vue +++ b/webapp/pages/map.vue @@ -66,6 +66,7 @@ import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css' import { mapGetters } from 'vuex' import { profileUserQuery, mapUserQuery } from '~/graphql/User' import { groupQuery } from '~/graphql/groups' +import { filterPosts } from '~/graphql/PostQuery.js' import mobile from '~/mixins/mobile' import Empty from '~/components/Empty/Empty' import MapStylesButtons from '~/components/Map/MapStylesButtons' @@ -95,6 +96,7 @@ export default { currentUserCoordinates: null, users: null, groups: null, + posts: null, markers: { icons: [ { @@ -483,6 +485,29 @@ export default { }, fetchPolicy: 'cache-and-network', }, + Post: { + query() { + return filterPosts(this.$i18n) + }, + variables() { + return { + // Wolle: postType: 'Event', + filter: { + postType_in: ['Event'], + eventLocation: true, + eventStart_gte: new Date(), + }, + // Wolle first: this.pageSize, + // Wolle orderBy: ['pinned_asc', this.orderBy], + // Wolle offset: 0, + } + }, + update({ Post }) { + this.posts = Post + console.log('this.posts: ', this.posts) + }, + fetchPolicy: 'cache-and-network', + }, }, } From f247e6bd7b7554442493b799780186b916890043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 27 Jun 2023 12:53:47 +0200 Subject: [PATCH 02/39] Try to filter only for events with location --- backend/src/schema/resolvers/posts.ts | 9 +++++++-- backend/src/schema/types/type/Location.gql | 8 +++++++- backend/src/schema/types/type/Post.gql | 6 ++++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/backend/src/schema/resolvers/posts.ts b/backend/src/schema/resolvers/posts.ts index 0bd4507b5..c4d695e88 100644 --- a/backend/src/schema/resolvers/posts.ts +++ b/backend/src/schema/resolvers/posts.ts @@ -1,6 +1,6 @@ import { v4 as uuid } from 'uuid' import { neo4jgraphql } from 'neo4j-graphql-js' -import { isEmpty } from 'lodash' +import { isEmpty, cloneDeep } from 'lodash' import { UserInputError } from 'apollo-server' import { mergeImage, deleteImage } from './images/images' import Resolver from './helpers/Resolver' @@ -12,12 +12,15 @@ import { createOrUpdateLocations } from './users/location' import CONFIG from '../../config' const maintainPinnedPosts = (params) => { + const filter = cloneDeep(params.filter) const pinnedPostFilter = { pinned: true } if (isEmpty(params.filter)) { params.filter = { OR: [pinnedPostFilter, {}] } } else { - params.filter = { OR: [pinnedPostFilter, { ...params.filter }] } + console.log('maintainPinnedPosts before: ', {...filter}) + params.filter = { OR: [pinnedPostFilter, { ...filter }] } } + console.log('maintainPinnedPosts after: ', {...filter}) return params } @@ -38,6 +41,8 @@ export default { params = await filterForMutedUsers(params, context) params = filterEventDates(params) params = await maintainPinnedPosts(params) + console.log('maintainPinnedPosts filter.OR[1].eventLocation: ', params.filter.OR[1].eventLocation) + console.log('maintainPinnedPosts filter: ', params.filter) return neo4jgraphql(object, params, context, resolveInfo) }, profilePagePosts: async (object, params, context, resolveInfo) => { diff --git a/backend/src/schema/types/type/Location.gql b/backend/src/schema/types/type/Location.gql index fad24cc26..96e2479d2 100644 --- a/backend/src/schema/types/type/Location.gql +++ b/backend/src/schema/types/type/Location.gql @@ -1,3 +1,10 @@ +input _LocationFilter { + NOT: _LocationFilter + id: ID + id_not: ID + name: String +} + type Location { id: ID! name: String! @@ -25,4 +32,3 @@ type LocationMapBox { type Query { queryLocations(place: String!, lang: String!): [LocationMapBox]! } - diff --git a/backend/src/schema/types/type/Post.gql b/backend/src/schema/types/type/Post.gql index 0a7277515..41525f47e 100644 --- a/backend/src/schema/types/type/Post.gql +++ b/backend/src/schema/types/type/Post.gql @@ -84,8 +84,10 @@ input _PostFilter { group: _GroupFilter postsInMyGroups: Boolean postType_in: [PostType] - eventStart_gte: String - eventEnd_gte: String + eventLocation_not: _LocationFilter + eventLocation: _LocationFilter + eventStart_gte: String + eventEnd_gte: String } enum _PostOrdering { From ee359309d9e04f7bade9bde24cc57314aa9a90ef Mon Sep 17 00:00:00 2001 From: Markus Date: Sat, 8 Jul 2023 16:12:16 +0200 Subject: [PATCH 03/39] [feature] added i18n for chat component --- webapp/components/Chat/Chat.vue | 24 ++++++++++++------------ webapp/locales/de.json | 14 ++++++++++++++ webapp/locales/en.json | 14 ++++++++++++++ 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index c2b02c0af..5bdac4768 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -79,18 +79,18 @@ export default { }, ], textMessages: { - ROOMS_EMPTY: 'Aucune conversation', - ROOM_EMPTY: 'Aucune conversation sélectionnée', - NEW_MESSAGES: 'Nouveaux messages', - MESSAGE_DELETED: 'Ce message a été supprimé', - MESSAGES_EMPTY: 'Aucun message', - CONVERSATION_STARTED: 'La conversation a commencée le :', - TYPE_MESSAGE: 'Tapez votre message', - SEARCH: 'Rechercher', - IS_ONLINE: 'est en ligne', - LAST_SEEN: 'dernière connexion ', - IS_TYPING: 'est en train de taper...', - CANCEL_SELECT_MESSAGE: 'Annuler Sélection', + ROOMS_EMPTY: this.$t('chat.roomsEmpty'), + ROOM_EMPTY: this.$t('chat.roomEmpty'), + NEW_MESSAGES: this.$t('chat.newMessages'), + MESSAGE_DELETED: this.$t('chat.messageDeleted'), + MESSAGES_EMPTY: this.$t('chat.messagesEmpty'), + CONVERSATION_STARTED: this.$t('chat.conversationStarted'), + TYPE_MESSAGE: this.$t('chat.typeMessage'), + SEARCH: this.$t('chat.search'), + IS_ONLINE: this.$t('chat.isOnline'), + LAST_SEEN: this.$t('chat.lastSeen'), + IS_TYPING: this.$t('chat.isTyping'), + CANCEL_SELECT_MESSAGE: this.$t('chat.cancelSelectMessage') }, roomActions: [ { diff --git a/webapp/locales/de.json b/webapp/locales/de.json index febb8898c..c482cfff9 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -77,6 +77,20 @@ } } }, + "chat": { + "roomsEmpty" : "Keine Räume", + "roomEmpty" : "Keinen Raum selektiert", + "newMessages" : "Neue Nachrichten", + "messageDeleted": "Diese Nachricht wuerde gelöscht", + "messagesEmpty": "Keine Nachrichten", + "conversationStarted": "Unterhaltung startete am:", + "typeMessage": "Nachricht schreiben", + "search": "Suche", + "isOnline": "online", + "lastSeen": "zuletzt gesehen ", + "isTyping": "tippt...", + "cancelSelectMessage": "Abbrechen" + }, "client-only": { "loading": "Lade …" }, diff --git a/webapp/locales/en.json b/webapp/locales/en.json index c0fb5c2f6..0e71a2f4f 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -77,6 +77,20 @@ } } }, + "chat": { + "roomsEmpty" : "No rooms", + "roomEmpty" : "No room selected", + "newMessages" : "New Messages", + "messageDeleted": "This message was deleted", + "messagesEmpty": "No messages", + "conversationStarted": "Conversation started on:", + "typeMessage": "Type message", + "search": "Search", + "isOnline": "is online", + "lastSeen": "last seen ", + "isTyping": "is writing...", + "cancelSelectMessage": "Cancel" + }, "client-only": { "loading": "Loading …" }, From 59828c25d26bd9d9bcdd9d057a970ea81439a70a Mon Sep 17 00:00:00 2001 From: Markus Date: Sat, 8 Jul 2023 16:29:22 +0200 Subject: [PATCH 04/39] [feature] added basic custom styling for chat --- webapp/assets/_new/styles/tokens.scss | 7 +- webapp/components/Chat/Chat.vue | 8 + webapp/constants/chat.js | 302 ++++++++++++++++++++++++++ 3 files changed, 316 insertions(+), 1 deletion(-) create mode 100644 webapp/constants/chat.js diff --git a/webapp/assets/_new/styles/tokens.scss b/webapp/assets/_new/styles/tokens.scss index 22e0214ff..4fd8fd055 100644 --- a/webapp/assets/_new/styles/tokens.scss +++ b/webapp/assets/_new/styles/tokens.scss @@ -406,4 +406,9 @@ $color-toast-green: $color-success; $color-ribbon-event: $background-color-third; $color-ribbon-event-active: $background-color-third-active; $color-ribbon-article: $background-color-secondary; -$color-ribbon-article-active: $background-color-secondary-active; \ No newline at end of file +$color-ribbon-article-active: $background-color-secondary-active; + + +:export { + colorYellow: $color-yellow; +} \ No newline at end of file diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index 5bdac4768..cb5922660 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -15,6 +15,7 @@ :rooms-loaded="true" show-files="false" show-audio="false" + :styles="JSON.stringify(computedChatStyle)" :show-footer="true" @send-message="sendMessage($event.detail[0])" @fetch-messages="fetchMessages($event.detail[0])" @@ -29,6 +30,7 @@ From f44dda41279e23d90b316652c1f6fbc059281119 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 11 Jul 2023 10:30:20 +0200 Subject: [PATCH 12/39] fix file path --- .../I_should_be_able_to_change_my_profile_picture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js b/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js index d01939cc6..da8eb2e54 100644 --- a/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js +++ b/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js @@ -5,7 +5,7 @@ Then("I should be able to change my profile picture", () => { cy.fixture(avatarUpload, "base64").then(fileContent => { cy.get("#customdropzone").selectFile( - { contents: `../../../fixtures/${avatarUpload}`, fileName: avatarUpload, mimeType: "image/png" }, + { contents: `cypress/fixtures/${avatarUpload}`, fileName: avatarUpload, mimeType: "image/png" }, { action: "drag-drop" } ); }); From 242619d21ba25e3b439d49f2a6d6c23acf3bd952 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 11 Jul 2023 11:19:47 +0200 Subject: [PATCH 13/39] remove unnecessary cypress code from step definitions --- ...ould_be_able_to_{string}_a_teaser_image.js | 24 +++++++++---------- ...ld_be_able_to_change_my_profile_picture.js | 12 ++++------ 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js index 55a728482..b57335554 100644 --- a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js +++ b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js @@ -1,24 +1,24 @@ import { Then } from "@badeball/cypress-cucumber-preprocessor"; Then("I should be able to {string} a teaser image", condition => { + let postTeaserImage = "" + switch(condition){ case "change": + postTeaserImage = "humanconnection.png" cy.get(".delete-image-button") .click() - cy.fixture("humanconnection.png").as("postTeaserImage").then(function() { - cy.get("#postdropzone").selectFile( - { contents: this.postTeaserImage, fileName: "humanconnection.png", mimeType: "image/png" }, - { action: "drag-drop" } - ).wait(750); - }) + cy.get("#postdropzone").selectFile( + { contents: `cypress/fixtures/${postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, + { action: "drag-drop" } + ).wait(750); break; case "add": - cy.fixture("onourjourney.png").as("postTeaserImage").then(function() { - cy.get("#postdropzone").selectFile( - { contents: this.postTeaserImage, fileName: "onourjourney.png", mimeType: "image/png" }, - { action: "drag-drop" } - ).wait(750); - }) + postTeaserImage = "onourjourney.png" + cy.get("#postdropzone").selectFile( + { contents: `cypress/fixtures/${this.postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, + { action: "drag-drop" } + ).wait(750); break; case "remove": cy.get(".delete-image-button") diff --git a/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js b/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js index da8eb2e54..b1b2401e2 100644 --- a/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js +++ b/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js @@ -2,13 +2,11 @@ import { Then } from "@badeball/cypress-cucumber-preprocessor"; Then("I should be able to change my profile picture", () => { const avatarUpload = "onourjourney.png"; - - cy.fixture(avatarUpload, "base64").then(fileContent => { - cy.get("#customdropzone").selectFile( - { contents: `cypress/fixtures/${avatarUpload}`, fileName: avatarUpload, mimeType: "image/png" }, - { action: "drag-drop" } - ); - }); + + cy.get("#customdropzone").selectFile( + { contents: `cypress/fixtures/${avatarUpload}`, fileName: avatarUpload, mimeType: "image/png" }, + { action: "drag-drop" } + ); cy.get(".profile-page-avatar img") .should("have.attr", "src") .and("contains", "onourjourney"); From 91b2961562a780fcf7dc24231de3246cb427e64a Mon Sep 17 00:00:00 2001 From: Markus Date: Tue, 11 Jul 2023 11:31:00 +0200 Subject: [PATCH 14/39] [feature] adjusted avatar style for chat if no image is available --- webapp/components/Chat/Chat.vue | 51 +++++++++++++++++++++++++++++++++ webapp/layouts/default.vue | 1 - 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index ce4d869ee..2f39afd07 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -28,6 +28,28 @@ + +
+
+
+ {{ getInitialsName(selectedRoom.roomName) }} +
+
+ +
+
+
+ {{ getInitialsName(room.roomName) }} +
+
@@ -122,6 +144,7 @@ export default { showDemoOptions: true, responsiveBreakpoint: 600, singleRoom: !!this.singleRoomId || false, + selectedRoom: null, } }, mounted() { @@ -174,6 +197,8 @@ export default { this.$toast.error(error.message) } this.messagesLoaded = true + + this.selectedRoom = room }) }, @@ -195,6 +220,11 @@ export default { } this.refetchMessage(message.roomId) }, + + getInitialsName(fullname){ + if(!fullname) return + return fullname.match(/\b\w/g).join('').substring(0, 3).toUpperCase() + } }, apollo: { Rooms: { @@ -235,4 +265,25 @@ export default { body { font-family: 'Quicksand', sans-serif; } +.vac-avatar { + background-size: cover; + background-position: center center; + background-repeat: no-repeat; + background-color: $color-primary-dark; + color: $text-color-primary-inverse; + height: 42px; + width: 42px; + min-height: 42px; + min-width: 42px; + margin-right: 15px; + border-radius: 50%; + position: relative; + + > .initials{ + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } +} diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index 39a84bf14..0e7420956 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -19,7 +19,6 @@
- > From 11afa1f6d54e98b600cd864d3011c8035f0c490e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 11 Jul 2023 12:14:21 +0200 Subject: [PATCH 18/39] Simplify the map legend --- webapp/pages/map.vue | 85 ++++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/webapp/pages/map.vue b/webapp/pages/map.vue index 5bb800ba8..8fffad1cf 100644 --- a/webapp/pages/map.vue +++ b/webapp/pages/map.vue @@ -5,33 +5,15 @@ {{ $t('map.pageTitle') }}
- - {{ $t('map.legend.theUser') }} -    - - {{ $t('map.legend.user') }} -    - - {{ $t('map.legend.group') }} -    - - {{ $t('map.legend.event') }} + + + {{ $t('map.legend.' + type.id) }} +    +
@@ -115,22 +97,38 @@ export default { groups: null, posts: null, markers: { - icons: [ + types: [ { - id: 'marker-blue', - name: 'mapbox-marker-icon-20px-blue.png', + id: 'theUser', + icon: { + id: 'marker-orange', + legendName: 'mapbox-marker-icon-orange.svg', + mapName: 'mapbox-marker-icon-20px-orange.png', + }, }, { - id: 'marker-green', - name: 'mapbox-marker-icon-20px-green.png', + id: 'user', + icon: { + id: 'marker-green', + legendName: 'mapbox-marker-icon-green.svg', + mapName: 'mapbox-marker-icon-20px-green.png', + }, }, { - id: 'marker-orange', - name: 'mapbox-marker-icon-20px-orange.png', + id: 'group', + icon: { + id: 'marker-blue', + legendName: 'mapbox-marker-icon-blue.svg', + mapName: 'mapbox-marker-icon-20px-blue.png', + }, }, { - id: 'marker-purple', - name: 'mapbox-marker-icon-20px-purple.png', + id: 'event', + icon: { + id: 'marker-purple', + legendName: 'mapbox-marker-icon-purple.svg', + mapName: 'mapbox-marker-icon-20px-purple.png', + }, }, ], isImagesLoaded: false, @@ -339,15 +337,18 @@ export default { }, loadMarkersIconsAndAddMarkers() { Promise.all( - this.markers.icons.map( + this.markers.types.map( (marker) => new Promise((resolve, reject) => { // our images have to be in the 'static/img/*' folder otherwise they are not reachable via URL - this.map.loadImage('img/mapbox/marker-icons/' + marker.name, (error, image) => { - if (error) throw error - this.map.addImage(marker.id, image) - resolve() - }) + this.map.loadImage( + 'img/mapbox/marker-icons/' + marker.icon.mapName, + (error, image) => { + if (error) throw error + this.map.addImage(marker.icon.id, image) + resolve() + }, + ) }), ), ).then(() => { From f217c1d63c2eb10f6f77ac71f9f5f7c9b8397235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 11 Jul 2023 12:22:07 +0200 Subject: [PATCH 19/39] Replace `properties.about` by `properties.description` on map --- webapp/pages/map.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/pages/map.vue b/webapp/pages/map.vue index 8fffad1cf..1db2b189a 100644 --- a/webapp/pages/map.vue +++ b/webapp/pages/map.vue @@ -290,11 +290,11 @@ export default { ` description += - e.features[0].properties.about && e.features[0].properties.about.length > 0 + e.features[0].properties.description && e.features[0].properties.description.length > 0 ? `
- ${e.features[0].properties.about} + ${e.features[0].properties.description}
` : '' @@ -372,7 +372,7 @@ export default { id: user.id, slug: user.slug, name: user.name, - about: user.about ? user.about : undefined, + description: user.about ? user.about : undefined, }, geometry: { type: 'Point', @@ -392,7 +392,7 @@ export default { id: this.currentUser.id, slug: this.currentUser.slug, name: this.currentUser.name, - about: this.currentUser.about ? this.currentUser.about : undefined, + description: this.currentUser.about ? this.currentUser.about : undefined, }, geometry: { type: 'Point', @@ -412,7 +412,7 @@ export default { id: group.id, slug: group.slug, name: group.name, - about: group.about ? group.about : undefined, + description: group.about ? group.about : undefined, }, geometry: { type: 'Point', @@ -433,7 +433,7 @@ export default { id: post.id, slug: post.slug, name: post.title, - about: post.contentExcerpt, + description: post.contentExcerpt, }, geometry: { type: 'Point', From 5b73dc8e5849a340e8df740ba2308cfc2b1cdbf3 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 11 Jul 2023 12:33:54 +0200 Subject: [PATCH 20/39] fix typo --- .../Post.Images/I_should_be_able_to_{string}_a_teaser_image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js index b57335554..75d1e352d 100644 --- a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js +++ b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js @@ -16,7 +16,7 @@ Then("I should be able to {string} a teaser image", condition => { case "add": postTeaserImage = "onourjourney.png" cy.get("#postdropzone").selectFile( - { contents: `cypress/fixtures/${this.postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, + { contents: `cypress/fixtures/${postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, { action: "drag-drop" } ).wait(750); break; From a427b21948a68a25d43044b4bfc5ab1911d464dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 11 Jul 2023 13:19:35 +0200 Subject: [PATCH 21/39] Renew submodule 'stage.ocelot.social' --- deployment/configurations/stage.ocelot.social | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/configurations/stage.ocelot.social b/deployment/configurations/stage.ocelot.social index 350237c62..fdc2e52fa 160000 --- a/deployment/configurations/stage.ocelot.social +++ b/deployment/configurations/stage.ocelot.social @@ -1 +1 @@ -Subproject commit 350237c62dcff1a5c34f1e8d718f89b05ce3d33f +Subproject commit fdc2e52fa444b300e1c4736600bc0e9ae3314222 From 737a8f4380c92cf089efc0dc943d05640dd513d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 11 Jul 2023 13:20:38 +0200 Subject: [PATCH 22/39] Revert "Try to filter only for events with location" This reverts commit f247e6bd7b7554442493b799780186b916890043. --- backend/src/schema/resolvers/posts.ts | 9 ++------- backend/src/schema/types/type/Location.gql | 8 +------- backend/src/schema/types/type/Post.gql | 6 ++---- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/backend/src/schema/resolvers/posts.ts b/backend/src/schema/resolvers/posts.ts index c4d695e88..0bd4507b5 100644 --- a/backend/src/schema/resolvers/posts.ts +++ b/backend/src/schema/resolvers/posts.ts @@ -1,6 +1,6 @@ import { v4 as uuid } from 'uuid' import { neo4jgraphql } from 'neo4j-graphql-js' -import { isEmpty, cloneDeep } from 'lodash' +import { isEmpty } from 'lodash' import { UserInputError } from 'apollo-server' import { mergeImage, deleteImage } from './images/images' import Resolver from './helpers/Resolver' @@ -12,15 +12,12 @@ import { createOrUpdateLocations } from './users/location' import CONFIG from '../../config' const maintainPinnedPosts = (params) => { - const filter = cloneDeep(params.filter) const pinnedPostFilter = { pinned: true } if (isEmpty(params.filter)) { params.filter = { OR: [pinnedPostFilter, {}] } } else { - console.log('maintainPinnedPosts before: ', {...filter}) - params.filter = { OR: [pinnedPostFilter, { ...filter }] } + params.filter = { OR: [pinnedPostFilter, { ...params.filter }] } } - console.log('maintainPinnedPosts after: ', {...filter}) return params } @@ -41,8 +38,6 @@ export default { params = await filterForMutedUsers(params, context) params = filterEventDates(params) params = await maintainPinnedPosts(params) - console.log('maintainPinnedPosts filter.OR[1].eventLocation: ', params.filter.OR[1].eventLocation) - console.log('maintainPinnedPosts filter: ', params.filter) return neo4jgraphql(object, params, context, resolveInfo) }, profilePagePosts: async (object, params, context, resolveInfo) => { diff --git a/backend/src/schema/types/type/Location.gql b/backend/src/schema/types/type/Location.gql index 96e2479d2..fad24cc26 100644 --- a/backend/src/schema/types/type/Location.gql +++ b/backend/src/schema/types/type/Location.gql @@ -1,10 +1,3 @@ -input _LocationFilter { - NOT: _LocationFilter - id: ID - id_not: ID - name: String -} - type Location { id: ID! name: String! @@ -32,3 +25,4 @@ type LocationMapBox { type Query { queryLocations(place: String!, lang: String!): [LocationMapBox]! } + diff --git a/backend/src/schema/types/type/Post.gql b/backend/src/schema/types/type/Post.gql index 41525f47e..0a7277515 100644 --- a/backend/src/schema/types/type/Post.gql +++ b/backend/src/schema/types/type/Post.gql @@ -84,10 +84,8 @@ input _PostFilter { group: _GroupFilter postsInMyGroups: Boolean postType_in: [PostType] - eventLocation_not: _LocationFilter - eventLocation: _LocationFilter - eventStart_gte: String - eventEnd_gte: String + eventStart_gte: String + eventEnd_gte: String } enum _PostOrdering { From 1a3f11ac1fbc8bac33043a18e64884f62a49e8f6 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 11 Jul 2023 13:23:32 +0200 Subject: [PATCH 23/39] lint locales --- webapp/locales/de.json | 20 ++++++++++---------- webapp/locales/en.json | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/webapp/locales/de.json b/webapp/locales/de.json index c482cfff9..09a03a84c 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -77,19 +77,19 @@ } } }, - "chat": { - "roomsEmpty" : "Keine Räume", - "roomEmpty" : "Keinen Raum selektiert", - "newMessages" : "Neue Nachrichten", + "chat": { + "cancelSelectMessage": "Abbrechen", + "conversationStarted": "Unterhaltung startete am:", + "isOnline": "online", + "isTyping": "tippt...", + "lastSeen": "zuletzt gesehen ", "messageDeleted": "Diese Nachricht wuerde gelöscht", "messagesEmpty": "Keine Nachrichten", - "conversationStarted": "Unterhaltung startete am:", - "typeMessage": "Nachricht schreiben", + "newMessages": "Neue Nachrichten", + "roomEmpty": "Keinen Raum selektiert", + "roomsEmpty": "Keine Räume", "search": "Suche", - "isOnline": "online", - "lastSeen": "zuletzt gesehen ", - "isTyping": "tippt...", - "cancelSelectMessage": "Abbrechen" + "typeMessage": "Nachricht schreiben" }, "client-only": { "loading": "Lade …" diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 0e71a2f4f..1c1136faf 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -77,19 +77,19 @@ } } }, - "chat": { - "roomsEmpty" : "No rooms", - "roomEmpty" : "No room selected", - "newMessages" : "New Messages", + "chat": { + "cancelSelectMessage": "Cancel", + "conversationStarted": "Conversation started on:", + "isOnline": "is online", + "isTyping": "is writing...", + "lastSeen": "last seen ", "messageDeleted": "This message was deleted", "messagesEmpty": "No messages", - "conversationStarted": "Conversation started on:", - "typeMessage": "Type message", + "newMessages": "New Messages", + "roomEmpty": "No room selected", + "roomsEmpty": "No rooms", "search": "Search", - "isOnline": "is online", - "lastSeen": "last seen ", - "isTyping": "is writing...", - "cancelSelectMessage": "Cancel" + "typeMessage": "Type message" }, "client-only": { "loading": "Loading …" From c3912304f480efbb7ccac64044de5db008ca69ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 11 Jul 2023 13:24:55 +0200 Subject: [PATCH 24/39] Fix formating --- backend/src/schema/types/type/Location.gql | 1 - backend/src/schema/types/type/Post.gql | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/schema/types/type/Location.gql b/backend/src/schema/types/type/Location.gql index fad24cc26..9cb5c970a 100644 --- a/backend/src/schema/types/type/Location.gql +++ b/backend/src/schema/types/type/Location.gql @@ -25,4 +25,3 @@ type LocationMapBox { type Query { queryLocations(place: String!, lang: String!): [LocationMapBox]! } - diff --git a/backend/src/schema/types/type/Post.gql b/backend/src/schema/types/type/Post.gql index 0a7277515..7e6d1d0e7 100644 --- a/backend/src/schema/types/type/Post.gql +++ b/backend/src/schema/types/type/Post.gql @@ -84,8 +84,8 @@ input _PostFilter { group: _GroupFilter postsInMyGroups: Boolean postType_in: [PostType] - eventStart_gte: String - eventEnd_gte: String + eventStart_gte: String + eventEnd_gte: String } enum _PostOrdering { From 82999d377dda05d15b48c958edf1d6b5cc8c3940 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 11 Jul 2023 15:00:16 +0200 Subject: [PATCH 25/39] disable waiting for actionability at post creation image dropzone --- .../I_should_be_able_to_{string}_a_teaser_image.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js index 75d1e352d..478851f92 100644 --- a/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js +++ b/cypress/support/step_definitions/Post.Images/I_should_be_able_to_{string}_a_teaser_image.js @@ -10,14 +10,14 @@ Then("I should be able to {string} a teaser image", condition => { .click() cy.get("#postdropzone").selectFile( { contents: `cypress/fixtures/${postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, - { action: "drag-drop" } + { action: "drag-drop", force: true } ).wait(750); break; case "add": postTeaserImage = "onourjourney.png" cy.get("#postdropzone").selectFile( { contents: `cypress/fixtures/${postTeaserImage}`, fileName: postTeaserImage, mimeType: "image/png" }, - { action: "drag-drop" } + { action: "drag-drop", force: true } ).wait(750); break; case "remove": From a7260e87148936b6c10af8fa64c95faa9c56b8b7 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 11 Jul 2023 15:02:51 +0200 Subject: [PATCH 26/39] update cypress run scripts in package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ad07c21d4..ded743cd5 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "scripts": { "db:seed": "cd backend && yarn run db:seed", "db:reset": "cd backend && yarn run db:reset", - "cypress:run": "cypress run --browser electron --config-file ./cypress/cypress.config.js", - "cypress:open": "cypress open --browser electron --config-file ./cypress/cypress.config.js", + "cypress:run": "cypress run --e2e --browser electron --config-file ./cypress/cypress.config.js", + "cypress:open": "cypress open --e2e --browser electron --config-file ./cypress/cypress.config.js", "cucumber:setup": "cd backend && yarn run dev", "cucumber": "wait-on tcp:4000 && cucumber-js --require-module @babel/register --exit", "release": "yarn version --no-git-tag-version --no-commit-hooks --no-commit && auto-changelog --latest-version $(node -p -e \"require('./package.json').version\") && cd backend && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../package.json').version\") && cd ../webapp && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../package.json').version\") && cd ../webapp/maintenance/source && yarn version --no-git-tag-version --no-commit-hooks --no-commit --new-version $(node -p -e \"require('./../../../package.json').version\")" From 86bd4bad5b6921e55bb3cb1dd13029719d2ae10e Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 12 Jul 2023 09:38:31 +0200 Subject: [PATCH 27/39] fixed intends for token style file --- webapp/assets/_new/styles/tokens.scss | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/webapp/assets/_new/styles/tokens.scss b/webapp/assets/_new/styles/tokens.scss index 28ebb2abd..d84b92ac9 100644 --- a/webapp/assets/_new/styles/tokens.scss +++ b/webapp/assets/_new/styles/tokens.scss @@ -410,24 +410,24 @@ $color-ribbon-article-active: $background-color-secondary-active; :export { - colorPrimary: $color-primary; - colorPrimaryActive: $color-primary-active; - colorPrimaryLight: $color-primary-light; + colorPrimary: $color-primary; + colorPrimaryActive: $color-primary-active; + colorPrimaryLight: $color-primary-light; - borderColorSoft: $border-color-soft; + borderColorSoft: $border-color-soft; - borderRadiusBase: $border-radius-base; + borderRadiusBase: $border-radius-base; - textColorBase: $text-color-base; - textColorSoft: $text-color-soft; - textColorInverse: $text-color-inverse; + textColorBase: $text-color-base; + textColorSoft: $text-color-soft; + textColorInverse: $text-color-inverse; - boxShadowBase: $box-shadow-base; + boxShadowBase: $box-shadow-base; - backgroundColorBase: $background-color-base; - backgroundColorSoft: $background-color-soft; - backgroundColorSoftest: $background-color-softest; - backgroundColorPrimary: $background-color-primary; + backgroundColorBase: $background-color-base; + backgroundColorSoft: $background-color-soft; + backgroundColorSoftest: $background-color-softest; + backgroundColorPrimary: $background-color-primary; - colorNeutral30: $color-neutral-30; + colorNeutral30: $color-neutral-30; } \ No newline at end of file From c51f7afd9a7f612ba72c7f3cfca2346316c412d1 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 12 Jul 2023 10:15:25 +0200 Subject: [PATCH 28/39] fixed syntax error in default layout --- webapp/layouts/default.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index ab8abcbee..bd518b976 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -39,9 +39,9 @@ export default { mixins: [seo, mobile()], methods: { closeSingleRoom() { - this.$store.commit('chat/SET_OPEN_CHAT', { showChat: false, roomID: 'u0' }) + this.$store.commit('chat/SET_OPEN_CHAT', { showChat: false, roomID: null }) }, - } + }, beforeCreate() { this.$store.commit('chat/SET_OPEN_CHAT', { showChat: false, roomID: null }) }, From a5cb81ceacf1ff4974a26fabf93fa1631ff44efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 12 Jul 2023 11:24:12 +0200 Subject: [PATCH 29/39] Change group marker from blue to red on map --- webapp/pages/map.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/pages/map.vue b/webapp/pages/map.vue index 1db2b189a..2bf1817f7 100644 --- a/webapp/pages/map.vue +++ b/webapp/pages/map.vue @@ -117,9 +117,9 @@ export default { { id: 'group', icon: { - id: 'marker-blue', - legendName: 'mapbox-marker-icon-blue.svg', - mapName: 'mapbox-marker-icon-20px-blue.png', + id: 'marker-red', + legendName: 'mapbox-marker-icon-red.svg', + mapName: 'mapbox-marker-icon-20px-red.png', }, }, { @@ -407,7 +407,7 @@ export default { type: 'Feature', properties: { type: 'group', - iconName: 'marker-blue', + iconName: 'marker-red', iconRotate: 0.0, id: group.id, slug: group.slug, From b2976f06eb41568844ed0cc1cac04d559621a5b0 Mon Sep 17 00:00:00 2001 From: Markus Date: Wed, 12 Jul 2023 12:34:12 +0200 Subject: [PATCH 30/39] updated style for chat component --- webapp/assets/_new/styles/tokens.scss | 16 ++++++++++++++++ webapp/constants/chat.js | 8 ++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/webapp/assets/_new/styles/tokens.scss b/webapp/assets/_new/styles/tokens.scss index d84b92ac9..372dab0c8 100644 --- a/webapp/assets/_new/styles/tokens.scss +++ b/webapp/assets/_new/styles/tokens.scss @@ -408,6 +408,15 @@ $color-ribbon-event-active: $background-color-third-active; $color-ribbon-article: $background-color-secondary; $color-ribbon-article-active: $background-color-secondary-active; +/** + * @tokens Chat Color + */ + +$chat-message-bg-me: $color-primary-light; +$chat-message-color: $text-color-base; +$chat-message-bg-others: $color-neutral-80; +$chat-sidemenu-bg: $color-secondary-active; +$chat-new-message-color: $color-secondary-active; :export { colorPrimary: $color-primary; @@ -430,4 +439,11 @@ $color-ribbon-article-active: $background-color-secondary-active; backgroundColorPrimary: $background-color-primary; colorNeutral30: $color-neutral-30; + + chatMessageColor: $chat-message-color; + + chatMessageBgMe: $chat-message-bg-me; + chatMessageBgOthers: $chat-message-bg-others; + + chatNewMessageColor: $chat-new-message-color; } \ No newline at end of file diff --git a/webapp/constants/chat.js b/webapp/constants/chat.js index 79d8f0cd7..a183a3922 100644 --- a/webapp/constants/chat.js +++ b/webapp/constants/chat.js @@ -57,9 +57,9 @@ const STYLE = { }, message: { - background: styleData.backgroundColorBase, - backgroundMe: styleData.colorPrimaryLight, - color: styleData.textColorBase, + background: styleData.chatMessageBgOthers, + backgroundMe: styleData.chatMessageBgMe, + color: styleData.chatMessageColor, colorStarted: '#9ca6af', backgroundDeleted: '#dadfe2', backgroundSelected: '#c2dcf2', @@ -76,7 +76,7 @@ const STYLE = { colorReply: '#6e6e6e', colorTag: '#0d579c', backgroundImage: '#ddd', - colorNewMessages: '#1976d2', + colorNewMessages: styleData.chatNewMessageColor, backgroundScrollCounter: '#0696c7', colorScrollCounter: '#fff', backgroundReaction: '#eee', From 181207a90b924f237fe620289761492417f9c25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 12 Jul 2023 14:28:04 +0200 Subject: [PATCH 31/39] Move chat notification button in header to position between language and system notification - Add this button to mobile as well. --- webapp/components/HeaderMenu/HeaderMenu.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/webapp/components/HeaderMenu/HeaderMenu.vue b/webapp/components/HeaderMenu/HeaderMenu.vue index bef73186b..a08bec882 100644 --- a/webapp/components/HeaderMenu/HeaderMenu.vue +++ b/webapp/components/HeaderMenu/HeaderMenu.vue @@ -74,6 +74,10 @@