Skip to content

Commit

Permalink
feat(livechat): removal livechat translations, fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koepferd committed Aug 8, 2024
1 parent d7e428d commit 0d79b6a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 126 deletions.
2 changes: 1 addition & 1 deletion src/components/app/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const NavigationBar = ({

const handleLogout = useCallback(() => {
onLogout();
}, [onLogout, sessionId, userData]);
}, [onLogout]);

const location = useLocation();
const [animateNavIcon, setAnimateNavIcon] = useState(false);
Expand Down
4 changes: 2 additions & 2 deletions src/components/session/SessionStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const SessionStream = ({
const [loading, setLoading] = useState(true);
const [overlayItem, setOverlayItem] = useState(null);

const { activeSession, readActiveSession, reloadActiveSession } =
const { activeSession, readActiveSession } =
useContext(ActiveSessionContext);

const { addNewUsersToEncryptedRoom } = useE2EE(activeSession?.rid);
Expand Down Expand Up @@ -133,7 +133,7 @@ export const SessionStream = ({
}

readActiveSession();
}, [activeSession, readActiveSession, readonly, userData]);
}, [readActiveSession, readonly]);

/**
* ToDo: roomMessageBounce is just a temporary fix because currently
Expand Down
1 change: 0 additions & 1 deletion src/components/sessionMenu/sessionMenuHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { OverlayItem, OVERLAY_FUNCTIONS } from '../overlay/Overlay';
import { BUTTON_TYPES } from '../button/Button';
import { ReactComponent as CheckIllustration } from '../../resources/img/illustrations/check.svg';
import { ReactComponent as XIllustration } from '../../resources/img/illustrations/x.svg';
import { ReactComponent as WavingIllustration } from '../../resources/img/illustrations/waving.svg';
import { ReactComponent as ErrorBubbleIllustration } from '../../resources/img/illustrations/error-bubble.svg';

export const stopGroupChatSecurityOverlayItem: OverlayItem = {
Expand Down
63 changes: 1 addition & 62 deletions src/resources/i18n/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,6 @@
"reassign_consultant_reset_last_message": "neu zugewiesen"
}
},
"anonymous": {
"listItem": {
"activeLabel": "Aktiv"
},
"overlay": {
"chatWasFinished": {
"button": "Zu Diakonie.de",
"copy": "Sie haben nun keinen Zugriff mehr auf Ihren Chat-Verlauf.",
"headline": "Ihre Beraterin oder Ihr Berater hat den Chat beendet."
},
"finishChat": {
"asker": {
"copy": "Wenn Sie diesen Chat beenden, haben Sie keinen Zugriff mehr auf Ihren Chat-Verlauf."
},
"button1": "Chat beenden",
"button2": "Abbrechen",
"consultant": {
"copy": "Der Ratsuchende wird darüber informiert und kann danach nicht mehr auf den Chat-Verlauf zugreifen."
},
"headline": "Möchten Sie diesen Chat beenden?",
"success": {
"button": "Zu Diakonie.de",
"headline": "Der Chat wurde erfolgreich beendet."
}
}
},
"session": {
"finishChat": "Chat beenden",
"infoMessage": {
"chatFinished": "Die Nachrichten werden 48h nach dem Beenden des Chats gelöscht."
},
"systemMessage": {
"chatFinished": "Der Chat wurde beendet."
}
}
},
"app": {
"back": "Zurück",
"claim": "Online. Anonym. Sicher.",
Expand Down Expand Up @@ -1217,7 +1181,6 @@
"isMyMessage": {
"name": "Ich"
},
"liveChat": "Live Chat",
"newEnquiry": "Neue Anfrage",
"note": {
"title": "Notiz"
Expand Down Expand Up @@ -1270,9 +1233,6 @@
"tools": "Meine Tools"
},
"notifications": {
"enquiry": {
"new": "Sie haben eine neue Livechat Anfrage!"
},
"error": "Fehlgeschlagen",
"info": "Information",
"initialRequest": {
Expand Down Expand Up @@ -1497,11 +1457,6 @@
"header": {
"title": "Profil"
},
"liveChat": {
"subtitle": "Aktivieren Sie Ihre Verfügbarkeit und sehen Sie in den Erstanfragen unter „Live-Chat Anfragen“ die wartenden anoymen Ratsuchenden.",
"title": "Meine Live-Chat Verfügbarkeit",
"toggleLabel": "Bin verfügbar"
},
"noContent": "Keine Angabe",
"notifications": {
"appointmentNotificationEnabled": {
Expand Down Expand Up @@ -1573,7 +1528,6 @@
"routes": {
"activities": {
"absence": "Meine Abwesenheit",
"availability": "Meine Verfügbarkeit",
"statistics": "Meine Statistik",
"title": "Meine Aktivitäten"
},
Expand Down Expand Up @@ -2141,20 +2095,13 @@
"buttonTitle": "Chat anlegen"
},
"empty": {
"anonymous": "Aktuell warten keine anonymen Ratsuchenden auf einen Live-Chat",
"archived": "Es sind noch keine Beratungen archiviert",
"known": "Aktuell liegen keine Erstanfragen vor",
"mySessions": "Sie haben zurzeit keine aktiven Beratungen",
"teamSessions": "Ihr Team hat keine aktiven Beratungen"
},
"preview": {
"anonymous": {
"tab": "Live-Chat Anfragen"
},
"headline": "Erstanfragen",
"registered": {
"tab": "Erstanfragen"
}
"headline": "Erstanfragen"
},
"reloadButton": {
"label": "Erneut laden"
Expand All @@ -2165,10 +2112,6 @@
"postfix": "Uhr"
}
},
"unavailable": {
"buttonLabel": "Verfügbarkeit aktivieren",
"description": "Aktivieren Sie Ihre Verfügbarkeit und erhalten Sie hier die Live-Chat Anfragen von anonymen Ratsuchenden"
},
"user": {
"consultantUnknown": "Beraterinnen- oder Berater-Suche läuft",
"headline": "Meine Beratungen",
Expand Down Expand Up @@ -2677,10 +2620,6 @@
"intro": "Hier finden Sie eine Übersicht über alle offenen Anfragen, die noch keinem Berater zugeordnet sind. Ihr gesamtes Team hat Zugriff auf diese Übersicht.\n<br /><br /> Die ältesten Anfragen stehen oben, die neuesten ganz unten, damit Sie die zuerst eingegangenen leichter finden können.\n<br /><br /> In dem Moment, in dem Sie auf 'Anfrage annehmen' klicken, wird die Anfrage sofort in Ihren Bereich 'Meine Beratungen' verschoben und die anderen Berater_innen sehen sie nicht mehr.",
"title": "Erstanfragen"
},
"2": {
"intro": "Von hier aus können Sie einen Chat mit einem/einer Ratsuchenden beginnen, der/die sich gerade im Warteraum befindet. <br /><br /> Die Ratsuchenden werden mit einem anonymen Namen gekennzeichnet, wie zum Beispiel \"Ratsuchende_r 11\". <br /><br /> Wenn Sie den Chat starten möchten, klicken Sie auf \"Chat starten\" und Sie können das Gespräch unter der Rubrik \"Meine Beratungen\" fortsetzen.",
"title": "Live-Chat Anfragen"
},
"3": {
"intro": "In diesem Bereich finden Sie alle Anfragen, die Sie angenommen haben. \n<br /><br /> Der Nachrichtenverlauf, der zuletzt bearbeitet wurde, steht ganz oben.\nFalls der/die Ratsuchende gerade im Warteraum online ist, sehen Sie das Label \"Aktiv\" direkt neben dem Namen.",
"title": "Meine Beratungen"
Expand Down
11 changes: 0 additions & 11 deletions src/resources/i18n/de@informal/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,6 @@
"saveError": "Beim Speichern ist ein Problem aufgetaucht. Bitte versuche es erneut."
}
},
"liveChat": {
"subtitle": "Aktiviere Deine Verfügbarkeit und sehe in den Erstanfragen unter „Live-Chat Anfragen“ die wartenden anonymen Ratsuchenden.",
"title": "Meine Live-Chat Verfügbarkeit",
"toggleLabel": "Bin verfügbar"
},
"notifications": {
"description": "Wir informieren Dich per E-Mail, wenn Du eine neue Nachricht erhalten hast.",
"error": {
Expand Down Expand Up @@ -800,9 +795,6 @@
"empty": {
"mySessions": "Du hast zurzeit keine aktiven Beratungen",
"teamSessions": "Dein Team hat keine aktiven Beratungen"
},
"unavailable": {
"description": "Aktiviere Deine Verfügbarkeit und erhalte hier die Live-Chat Anfragen von anonymen Ratsuchenden"
}
},
"statusOverlay": {
Expand Down Expand Up @@ -993,9 +985,6 @@
"1": {
"intro": "Hier findest Du eine Übersicht über alle offenen Anfragen, die noch keinem Berater zugeordnet sind. Dein gesamtes Team hat Zugriff auf diese Übersicht.\nDie ältesten Anfragen stehen oben, die neuesten ganz unten, damit Du die zuerst eingegangenen leichter finden kannst.\nIn dem Moment, in dem Du auf 'Anfrage annehmen' klicken, wird die Anfrage sofort in Deinen Bereich 'Meine Beratungen' verschoben und die anderen Berater_innen sehen sie nicht mehr."
},
"2": {
"intro": "Von hier aus kannst Du einen Chat mit einem/einer Ratsuchenden beginnen, der/die sich gerade im Warteraum befindet. Die Ratsuchenden werden mit einem anonymen Namen gekennzeichnet, wie zum Beispiel \"Ratsuchende_r 11\". Wenn Du den Chat starten möchtest, klicke auf \"Chat starten\" und Du kannst das Gespräch unter der Rubrik \"Meine Beratungen\" fortsetzen."
},
"3": {
"intro": "In diesem Bereich findest Du alle Anfragen, die Du angenommen hast. \nDer Nachrichtenverlauf, der zuletzt bearbeitet wurde, steht ganz oben.\nFalls der/die Ratsuchende gerade im Warteraum online ist, siehst Du das Label \"Aktiv\" direkt neben dem Namen."
},
Expand Down
49 changes: 0 additions & 49 deletions src/resources/i18n/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,6 @@
"reassign_consultant_reset_last_message": "reassigned"
}
},
"anonymous": {
"listItem": {
"activeLabel": "Active"
},
"overlay": {
"chatWasFinished": {
"button": "Go to Caritas.de",
"copy": "You will no longer have access to your chat history.",
"headline": "Your consultant has ended the chat."
},
"finishChat": {
"asker": {
"copy": "When you exit this chat, you will no longer have access to your chat history."
},
"button1": "End chat",
"button2": "Cancel",
"consultant": {
"copy": "The advice seeker will be informed about this and will not be able to access the chat history afterwards."
},
"headline": "Do you want to end this chat?",
"success": {
"button": "Go to Caritas.de",
"headline": "The chat has ended successfully."
}
}
},
"session": {
"finishChat": "End chat",
"infoMessage": {
"chatFinished": "The messages are deleted 48h after the chat ends."
},
"systemMessage": {
"chatFinished": "The chat has been closed."
}
}
},
"app": {
"back": "back",
"claim": "Online. Anonymous. Secure.",
Expand Down Expand Up @@ -1202,7 +1166,6 @@
"isMyMessage": {
"name": "Me"
},
"liveChat": "Live chat",
"newEnquiry": "New enquiry",
"note": {
"title": "Note"
Expand Down Expand Up @@ -1248,9 +1211,6 @@
"tools": "My tools"
},
"notifications": {
"enquiry": {
"new": "You have a new live chat request!"
},
"error": "failed",
"info": "info",
"initialRequest": {
Expand Down Expand Up @@ -1537,7 +1497,6 @@
"routes": {
"activities": {
"absence": "My absence",
"availability": "My availability",
"statistics": "My statistics",
"title": "My activities"
},
Expand Down Expand Up @@ -2037,10 +1996,6 @@
"postfix": "Clock"
}
},
"unavailable": {
"buttonLabel": "Activate availability",
"description": "Activate your availability to receive initial inquiries from advice seekers"
},
"user": {
"consultantUnknown": "Search for consultants underway",
"headline": "My consultations",
Expand Down Expand Up @@ -2548,10 +2503,6 @@
"intro": "Here you will find an overview of all open requests that are not yet assigned to a consultant. Your entire team has access to this overview.\n<br /><br /> The oldest requests are at the top, the newest at the bottom, to make it easier for you to find the ones you received first.\n<br /><br /> The moment you click on \"Accept request\", the request will be immediately moved to your \"My consultations\" section and the other consultants will not see it anymore.",
"title": "Initial inquiries"
},
"2": {
"intro": "From here you can start a chat with a person seeking advice who is currently in the waiting room. <br /><br /> Those seeking advice are identified by an anonymous name, such as \"Advice Seeker 11\". <br /><br /> If you want to start the chat, click on \"Start chat\" and you will be able to continue the conversation under the \"My consultations\" section.",
"title": "Live chat requests"
},
"3": {
"intro": "In this section you will find all the requests that you have accepted. \n<br /><br /> The message history that was last edited is at the top.\nIf the person seeking advice is currently online in the waiting room, you will see the label \"Active\" right next to the name.",
"title": "My consultations"
Expand Down

0 comments on commit 0d79b6a

Please sign in to comment.