From 6fdf119a4e609281b94c4b33ae1373abf9e76873 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Tue, 25 Jun 2024 09:53:24 -0700 Subject: [PATCH] * Move time formatting to scheduleStore * Lots of small formatting tweaks * Fix bug where a user with no calendars connected can get to the connect calendar screen * Add force param to calendarStore.fetch * Add form elements and hook up the enter key --- .../src/components/FTUE/ConnectCalendars.vue | 6 +- frontend/src/components/FTUE/Finish.vue | 4 +- .../src/components/FTUE/GooglePermissions.vue | 35 ++++++-- frontend/src/components/FTUE/SetupProfile.vue | 6 +- .../src/components/FTUE/SetupSchedule.vue | 80 +++++++++++-------- frontend/src/stores/calendar-store.js | 5 +- frontend/src/stores/schedule-store.js | 35 +++++++- frontend/src/tbpro/elements/BaseButton.vue | 2 +- .../src/views/FirstTimeUserExperienceView.vue | 11 ++- 9 files changed, 131 insertions(+), 53 deletions(-) diff --git a/frontend/src/components/FTUE/ConnectCalendars.vue b/frontend/src/components/FTUE/ConnectCalendars.vue index 859ebb04d..c670eb3c6 100644 --- a/frontend/src/components/FTUE/ConnectCalendars.vue +++ b/frontend/src/components/FTUE/ConnectCalendars.vue @@ -3,6 +3,7 @@ Connect your calendars to manage your availability +
+
calendars.value.filter((item) => item.checked).l const continueTitle = computed(() => (selected.value ? 'Continue' : 'Please enable one calendar to continue')); onMounted(async () => { - await calendarStore.fetch(call); + isLoading.value = true; + await calendarStore.fetch(call, true); calendars.value = calendarStore.calendars.map((calendar) => ({ key: calendar.id, label: calendar.title, checked: calendar.connected, })); + isLoading.value = false; }); const onSubmit = async () => { diff --git a/frontend/src/components/FTUE/Finish.vue b/frontend/src/components/FTUE/Finish.vue index c2883b64b..65802f8b9 100644 --- a/frontend/src/components/FTUE/Finish.vue +++ b/frontend/src/components/FTUE/Finish.vue @@ -21,12 +21,10 @@