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

Update the invalid link error page to be more generic. #332

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<art-invalid-link class="my-6 h-auto max-w-sm"/>
<div class="text-xl font-semibold text-sky-600">
{{ heading ?? t('info.bookingLinkHasAlreadyBeenUsed') }}
{{ heading ?? t('error.somethingWentWrong') }}
</div>
<div class="text-gray-800 dark:text-gray-300">
{{ body ?? t('info.bookedPleaseCheckEmail') }}
{{ body ?? t('error.generalBookingError') }}
</div>
<primary-button
class="mt-12 p-7"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"actionNeeded": "Aktion erforderlich!",
"authenticationRequired": "Sorry, um diese Seite zu sehen ist eine Anmeldung erforderlich.",
"credentialsIncomplete": "Bitte gib deine Zugangsdaten ein.",
"generalBookingError": "Beim Abrufen des Zeitplans ist ein Problem aufgetreten. Bitte später nochmal versuchen.",
"googleRefreshError": "Es gab ein Problem mit Google, bitte erneut verbinden.",
"loginMethodNotSupported": "Login-Methode wird nicht unterstützt. Bitte nochmal versuchen.",
"minimumValue": "{field} sollte wenigstens {value} sein.",
"noConnectedCalendars": "Kalendereinrichtung zum Fortfahren erforderlich. {0}.",
"noConnectedCalendarsLink": "Zu den Einstellungen wechseln.",
"routeNotFound": "Sorry, diese Seite wurde nicht gefunden.",
"somethingWentWrong": "Etwas ist schiefgelaufen",
"unknownAppointmentError": "Es gab ein Problem beim Erstellen des Termins. Bitte nochmal versuchen.",
"unknownScheduleError": "Es gab ein Problem beim Erstellen des Zeitplans.",
"usernameIsNotAvailable": "Dieser Benutzername ist nicht verfügbar."
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"actionNeeded": "Action needed",
"authenticationRequired": "Sorry, this page requires you to be logged in.",
"credentialsIncomplete": "Please provide login credentials.",
"generalBookingError": "Sorry, there was a problem retrieving the schedule details. Please try again later.",
"googleRefreshError": "Error connecting with Google API, please re-connect.",
"loginMethodNotSupported": "Login method not supported. Please try again.",
"minimumValue": "{field} should be at least {value}.",
"noConnectedCalendars": "Calendar setup required. Connect a calendar to continue. {0}.",
"noConnectedCalendarsLink": "Go to settings",
"routeNotFound": "Sorry, this page could not be found.",
"somethingWentWrong": "Something went wrong",
"unknownAppointmentError": "There was an issue creating your booking. Please try again.",
"unknownScheduleError": "There was an issue creating your schedule. Please try again.",
"usernameIsNotAvailable": "Username not available. Please choose another."
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/BookingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
v-else-if="activeView === views.invalid"
class="flex-center h-screen select-none flex-col gap-8 px-4"
>
<booking-view-invalid-link
<booking-view-error
:heading="errorHeading"
:body="errorBody"
/>
Expand Down Expand Up @@ -69,7 +69,7 @@ import { useBookingViewStore } from '@/stores/booking-view-store';
import { useBookingModalStore } from '@/stores/booking-modal-store';
import BookingViewSlotSelection from '@/components/bookingView/BookingViewSlotSelection.vue';
import BookingViewSuccess from '@/components/bookingView/BookingViewSuccess.vue';
import BookingViewInvalidLink from '@/components/bookingView/BookingViewInvalidLink.vue';
import BookingViewError from '@/components/bookingView/BookingViewError.vue';

// component constants
const route = useRoute();
Expand Down