Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CARITAS-243): rm legacy code #2

Merged
merged 39 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5b992d1
feat(initializeFeedbackChat): rm initializeFeedbackChat functionality
koepferd Jul 23, 2024
cc3fb8c
feat(NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER): rm NEW_FEEDBACK_MESSAG…
koepferd Jul 23, 2024
9da1eee
feat(ForwardMessage): rm all related ForwardMessage functionality
koepferd Jul 23, 2024
92bd00c
feat(initializeFeedbackChat): rm initializeFeedbackChat functionality
koepferd Jul 23, 2024
8ede5c9
feat(feedbackRead): rm feedbackRead functionality
koepferd Jul 23, 2024
23c3d48
feat(sendFeedback): rm sendFeedback functionality and yellowTheme
koepferd Jul 23, 2024
4c8aba1
feat(session-header,-menu-and-copy-message): rm feedback functionalit…
koepferd Jul 23, 2024
deb69fd
feat(feedback-flow): rm feedback from interfaces, routing, authoritie…
koepferd Jul 23, 2024
12312cd
feat(peer-and-mainconsultant): rm peer and main consultant functional…
koepferd Jul 24, 2024
d61b614
feat(SessionAssign): rm SessionAssign for main/peer consultant functions
koepferd Jul 25, 2024
18b6876
feat(sessionList-filter): removed sessionList filter / feedback filter
koepferd Jul 25, 2024
65fccb2
feat(cypress-fixtures): remove consulting type u25
koepferd Jul 25, 2024
2e6e119
style(removed-feedback-features): prettier fixes
koepferd Jul 25, 2024
a758381
fix(prettier-and-build-error): removed deprecated parameter, prettier…
koepferd Jul 25, 2024
14e25ec
style(devToolbar): prettier fix
koepferd Jul 25, 2024
12f6d74
fix(list-filter): removed deprecated styles
koepferd Jul 25, 2024
2b6361f
fix(remove-feedback-chat-functions): cleanup, removde unused import, …
koepferd Jul 25, 2024
b957eb1
style(EmptyListItem): remove unused import
koepferd Jul 25, 2024
2c625b3
fix(EmptyListItem): missing import
koepferd Jul 25, 2024
3e4f0ce
test(u25-cypress-fixture): revert ct u25 removal
koepferd Aug 7, 2024
c7a0fb7
feat(livechat): rm waiting room/routes/livechat session
koepferd Aug 8, 2024
ee75b2a
feat(livechat): remove livechat related api
koepferd Aug 8, 2024
e305ca6
feat(livechat): remove anonymous session handling
koepferd Aug 8, 2024
368f0a3
feat(livechat): remove related ct and user data functions, cleanup we…
koepferd Aug 8, 2024
3b7c0ae
feat(livechat): removal session tab anonymous and related functions
koepferd Aug 8, 2024
cbc989b
feat(livechat): remove deprecated handler in routing
koepferd Aug 8, 2024
0cb3f01
feat(livechat): cleanup waiting room and style fixes
koepferd Aug 8, 2024
c8ed236
feat(livechat): removal activeSession.isLive
koepferd Aug 8, 2024
d7e428d
feat(livechat): removal anonymous functions/routing/authorization
koepferd Aug 8, 2024
0d79b6a
feat(livechat): removal livechat translations, fix eslint errors
koepferd Aug 8, 2024
48b984c
refactor(live-chat): remove unused state
koepferd Aug 9, 2024
6c7a7ba
fix(sessionList-api): fix url
koepferd Aug 20, 2024
d472edd
fix(livechat-removal): session list rendering
koepferd Aug 28, 2024
b0dbff7
style(remove-livechat): linting fix
koepferd Aug 28, 2024
3f6f8ec
style(remove-livechat): linting fix
koepferd Aug 28, 2024
09b86f3
refactor(removal-livechat): remove unused state
koepferd Aug 29, 2024
95eb102
feat(teamsessions-removal): remove all teamsession functionality
koepferd Aug 30, 2024
8c2a811
Merge pull request #4 from virtualidentityag/feat/CARITAS-243-rm-team…
koepferd Sep 11, 2024
28199e6
Merge pull request #3 from virtualidentityag/feat/CARITAS-243-rm-live…
koepferd Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/dockerImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- 'dockerImage.v.*'
- 'v*'


jobs:
build:
name: Build
Expand Down
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
10 changes: 0 additions & 10 deletions cypress/fixtures/registration/consultingType.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 100
Expand All @@ -46,20 +44,12 @@
"relation": true,
"state": false
},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"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
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.addiction.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 100
Expand All @@ -46,20 +44,12 @@
"relation": true,
"state": false
},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.emigration.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "rw-auswanderung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 1731
Expand All @@ -43,20 +41,12 @@
"sendFurtherStepsMessage": true,
"sendSaveSessionDataMessage": true,
"sessionDataInitializing": {},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": false,
"welcomeScreen": {
"anonymous": {
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.pregnancy.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isVideoCallAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 100
Expand All @@ -47,20 +45,12 @@
"relation": true,
"state": false
},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.u25.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
}
},
"isSubsequentRegistrationAllowed": false,
"isAnonymousConversationAllowed": false,
"isSetEmailAllowed": false,
"slug": "u25",
"languageFormal": false,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": false
},
Expand All @@ -50,20 +48,12 @@
"relation": false,
"state": true
},
"initializeFeedbackChat": true,
"roles": {
"consultant": {
"main": ["consultant", "u25-consultant", "u25-main-consultant"],
"peer": ["consultant", "u25-consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"requiredComponents": {
"age": {
Expand Down
17 changes: 2 additions & 15 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 @@ -37,10 +34,6 @@
{
"name": "NEW_CHAT_MESSAGE_FROM_ADVICE_SEEKER",
"state": true
},
{
"name": "NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER",
"state": true
}
]
},
Expand All @@ -58,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 @@ -90,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
}
]
4 changes: 0 additions & 4 deletions cypress/fixtures/service.users.sessions.room.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
"postcode": "12345",
"language": "de",
"groupId": "someGroupId",
"feedbackGroupId": null,
"isPeerChat": false,
"askerRcId": "askerRcId",
"e2eLastMessage": null,
"lastMessage": null,
"messageDate": 0,
"messagesRead": false,
"feedbackRead": true,
"isTeamSession": false,
"registrationType": "REGISTERED",
"createDate": "2022-06-15T08:09:18Z",
"attachment": null,
Expand Down
4 changes: 0 additions & 4 deletions cypress/support/commands/mockApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ const defaultReturns = {
{
name: 'NEW_CHAT_MESSAGE_FROM_ADVICE_SEEKER',
state: false
},
{
name: 'NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER',
state: false
}
]
},
Expand Down
16 changes: 1 addition & 15 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 @@ -43,15 +42,10 @@ export const generateConsultantSession = ({
status,
postcode: 12345,
groupId: rcGroupId,
feedbackGroupId: null,
askerRcId: 'askerRcId',
lastMessage: 'lastMessage',
messageDate: 1606900238,
messagesRead: messagesRead === undefined ? true : messagesRead,
feedbackRead: true,
isTeamSession: true,
isFeedbackSession: false,
isPeerChat: false,
attachment: null,
registrationType: 'REGISTERED',
e2eLastMessage: {
Expand Down Expand Up @@ -90,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,15 +104,10 @@ export const generateAskerSession = ({
status: 2,
postcode: 12345,
groupId: rcGroupId,
feedbackGroupId: 'feedbackGroupId1',
askerRcId: 'askerRcId1',
lastMessage: null,
messageDate: null,
messagesRead: messagesRead === undefined ? true : messagesRead,
feedbackRead: null,
isTeamSession: isTeamSession === undefined ? true : isTeamSession,
isFeedbackSession: false,
isPeerChat: false,
attachment: null,
registrationType: 'REGISTERED',
e2eLastMessage: {
Expand All @@ -141,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
Loading
Loading