Skip to content

Commit

Permalink
Merge pull request #3 from virtualidentityag/feat/CARITAS-243-rm-live…
Browse files Browse the repository at this point in the history
…-chat

feat(CARITAS-243): remove livechat
  • Loading branch information
koepferd authored Sep 11, 2024
2 parents 3e4f0ce + 8c2a811 commit 28199e6
Show file tree
Hide file tree
Showing 90 changed files with 274 additions and 2,915 deletions.
1 change: 0 additions & 1 deletion cypress/fixtures/registration/agency.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"postcode": "postcode",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 1,
"topicIds": null
Expand Down
8 changes: 0 additions & 8 deletions cypress/fixtures/registration/consultingType.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
Expand Down Expand Up @@ -51,13 +50,6 @@
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/service.agencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"postcode": "postcode",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 1,
"url": "url",
Expand Down
8 changes: 0 additions & 8 deletions cypress/fixtures/service.consultingtypes.addiction.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
Expand Down Expand Up @@ -51,13 +50,6 @@
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
8 changes: 0 additions & 8 deletions cypress/fixtures/service.consultingtypes.emigration.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "rw-auswanderung",
"languageFormal": true,
Expand All @@ -48,13 +47,6 @@
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": false,
"welcomeScreen": {
"anonymous": {
Expand Down
8 changes: 0 additions & 8 deletions cypress/fixtures/service.consultingtypes.pregnancy.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isVideoCallAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
Expand Down Expand Up @@ -52,13 +51,6 @@
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
8 changes: 0 additions & 8 deletions cypress/fixtures/service.consultingtypes.u25.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
}
},
"isSubsequentRegistrationAllowed": false,
"isAnonymousConversationAllowed": false,
"isSetEmailAllowed": false,
"slug": "u25",
"languageFormal": false,
Expand Down Expand Up @@ -55,13 +54,6 @@
"peer": ["consultant", "u25-consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"requiredComponents": {
"age": {
Expand Down
13 changes: 2 additions & 11 deletions cypress/fixtures/service.users.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"postcode": "12345",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 0
}
Expand All @@ -23,11 +22,9 @@
"AUTHORIZATION_VIEW_AGENCY_CONSULTANTS",
"AUTHORIZATION_ASSIGN_CONSULTANT_TO_SESSION"
],
"hasAnonymousConversations": false,
"consultingTypes": null,
"formalLanguage": true,
"absent": false,
"inTeamAgency": true,
"languages": [],
"emailToggles": [
{
Expand All @@ -54,17 +51,14 @@
"postcode": "12345",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 2
}
],
"grantedAuthorities": ["AUTHORIZATION_CONSULTANT_DEFAULT"],
"hasAnonymousConversations": false,
"consultingTypes": null,
"formalLanguage": true,
"absent": false,
"inTeamAgency": true
"absent": false
},
{
"userId": "asker",
Expand All @@ -86,16 +80,13 @@
"postcode": "12345",
"city": "city",
"description": null,
"teamAgency": true,
"offline": false,
"consultingType": 1
}
},
"17": { "sessionData": null, "isRegistered": false, "agency": null }
},
"hasAnonymousConversations": false,
"formalLanguage": true,
"absent": false,
"inTeamAgency": false
"absent": false
}
]
1 change: 0 additions & 1 deletion cypress/fixtures/service.users.sessions.room.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"lastMessage": null,
"messageDate": 0,
"messagesRead": false,
"isTeamSession": false,
"registrationType": "REGISTERED",
"createDate": "2022-06-15T08:09:18Z",
"attachment": null,
Expand Down
8 changes: 1 addition & 7 deletions cypress/support/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { v4 as uuid } from 'uuid';
import { SESSION_LIST_TYPES } from '../../src/components/session/sessionHelpers';
import {
ListItemInterface,
SessionItemInterface,
SessionUserDataInterface
} from '../../src/globalState/interfaces';

Expand Down Expand Up @@ -47,7 +46,6 @@ export const generateConsultantSession = ({
lastMessage: 'lastMessage',
messageDate: 1606900238,
messagesRead: messagesRead === undefined ? true : messagesRead,
isTeamSession: true,
attachment: null,
registrationType: 'REGISTERED',
e2eLastMessage: {
Expand Down Expand Up @@ -86,11 +84,9 @@ export const generateMultipleConsultantSessions = (amount: number): void => {
};

export const generateAskerSession = ({
messagesRead,
isTeamSession
messagesRead
}: {
messagesRead?: boolean;
isTeamSession?: boolean;
} = {}): ListItemInterface => {
const sessionId = Math.random();
const rcGroupId = uuid();
Expand All @@ -112,7 +108,6 @@ export const generateAskerSession = ({
lastMessage: null,
messageDate: null,
messagesRead: messagesRead === undefined ? true : messagesRead,
isTeamSession: isTeamSession === undefined ? true : isTeamSession,
attachment: null,
registrationType: 'REGISTERED',
e2eLastMessage: {
Expand All @@ -133,7 +128,6 @@ export const generateAskerSession = ({
postcode: '12345',
city: 'city',
description: null,
teamAgency: true,
offline: false,
consultingType: 1
},
Expand Down
19 changes: 0 additions & 19 deletions src/api/apiAnonymousConversationAvailability.ts

This file was deleted.

9 changes: 2 additions & 7 deletions src/api/apiEnquiryAcceptance.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { endpoints } from '../resources/scripts/endpoints';
import { fetchData, FETCH_ERRORS, FETCH_METHODS } from './fetchData';

export const apiEnquiryAcceptance = async (
sessionId: number,
isAnonymousEnquiry: boolean = false
): Promise<any> => {
const url = isAnonymousEnquiry
? `${endpoints.anonymousAskerBase}${sessionId}/accept`
: `${endpoints.sessionBase}/new/${sessionId}`;
export const apiEnquiryAcceptance = async (sessionId: number): Promise<any> => {
const url = `${endpoints.sessionBase}/new/${sessionId}`;

return fetchData({
url: url,
Expand Down
14 changes: 0 additions & 14 deletions src/api/apiFinishAnonymousConversation.ts

This file was deleted.

16 changes: 2 additions & 14 deletions src/api/apiGetConsultantSessionList.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { endpoints } from '../resources/scripts/endpoints';
import {
SESSION_LIST_TAB_ANONYMOUS,
SESSION_LIST_TAB_ARCHIVE,
SESSION_LIST_TYPES
} from '../components/session/sessionHelpers';
Expand All @@ -26,26 +25,15 @@ export const apiGetConsultantSessionList = async ({
count = SESSION_COUNT,
signal
}: ApiGetConsultantSessionListInterface): Promise<ListItemsResponseInterface> => {
const isTeamSession: boolean = type === SESSION_LIST_TYPES.TEAMSESSION;
let url: string;
if (isTeamSession) {
url = `${
sessionListTab === SESSION_LIST_TAB_ARCHIVE
? `${endpoints.teamSessionsBase}${SESSION_LIST_TAB_ARCHIVE}?`
: `${endpoints.consultantTeamSessions}`
}`;
} else if (type === SESSION_LIST_TYPES.MY_SESSION) {
if (type === SESSION_LIST_TYPES.MY_SESSION) {
url = `${
sessionListTab === SESSION_LIST_TAB_ARCHIVE
? `${endpoints.myMessagesBase}${SESSION_LIST_TAB_ARCHIVE}?`
: `${endpoints.consultantSessions}`
}`;
} else {
url = `${endpoints.consultantEnquiriesBase}${
sessionListTab && sessionListTab === SESSION_LIST_TAB_ANONYMOUS
? `${SESSION_LIST_TAB_ANONYMOUS}`
: 'registered'
}?`;
url = `${endpoints.consultantEnquiriesBase}registered?`;
}
url = url + `count=${count}&filter=all&offset=${offset}`;

Expand Down
39 changes: 0 additions & 39 deletions src/api/apiPostAnonymousRegistration.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/api/apiSendAliasMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { fetchData, FETCH_METHODS } from './fetchData';

export enum ALIAS_MESSAGE_TYPES {
E2EE_ACTIVATED = 'E2EE_ACTIVATED',
FINISHED_CONVERSATION = 'FINISHED_CONVERSATION',
FURTHER_STEPS = 'FURTHER_STEPS',
UPDATE_SESSION_DATA = 'UPDATE_SESSION_DATA',
VIDEOCALL = 'VIDEOCALL',
Expand Down
3 changes: 0 additions & 3 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ export * from './apiAgencySelection';
export * from './apiDeleteAskerAccount';
export * from './apiDraftMessages';
export * from './apiEnquiryAcceptance';
export * from './apiFinishAnonymousConversation';
export * from './apiAnonymousConversationAvailability';
export * from './apiGetAgencyConsultantList';
export * from './apiGetAgencyId';
export * from './apiGetAskerSessionList';
Expand All @@ -20,7 +18,6 @@ export * from './apiGetUserData';
export * from './apiGroupChatSettings';
export * from './apiLogoutKeycloak';
export * from './apiLogoutRocketchat';
export * from './apiPostAnonymousRegistration';
export * from './apiPostRegistration';
export * from './apiPutArchive';
export * from './apiPutDearchive';
Expand Down
1 change: 0 additions & 1 deletion src/components/agencyRadioSelect/AgencyRadioSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const AgencyRadioSelect = ({
prefix: 'agency'
}}
info={agency}
showTeamAgencyInfo={agency.teamAgency}
isProfileView={showTooltipAbove}
/>
</div>
Expand Down
Loading

0 comments on commit 28199e6

Please sign in to comment.