From 1882e2d1e5489ee94b3564804f1f47c24a74bf0c Mon Sep 17 00:00:00 2001 From: Mel <97147377+MelissaAutumn@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:21:11 -0700 Subject: [PATCH] Bugs/517 ftue qa (#532) * Don't overwrite app theme, just remove the dark class from html. * * Require one weekday to be selected * Adjust styling of notice bar * Dynamically show warnings on notice bar * Add missing chip --- backend/src/appointment/database/schemas.py | 2 +- frontend/src/assets/styles/colours.css | 1 + .../src/components/FTUE/ConnectCalendars.vue | 12 ++++++++++-- frontend/src/components/FTUE/ConnectVideo.vue | 16 ++++++++++++++++ frontend/src/components/FTUE/SetupSchedule.vue | 1 - frontend/src/locales/en.json | 3 ++- frontend/src/stores/ftue-store.js | 4 +++- frontend/src/stores/schedule-store.ts | 2 ++ frontend/src/tbpro/elements/NoticeBar.vue | 3 +++ .../src/views/FirstTimeUserExperienceView.vue | 7 +++++-- 10 files changed, 43 insertions(+), 8 deletions(-) diff --git a/backend/src/appointment/database/schemas.py b/backend/src/appointment/database/schemas.py index f40b752e8..3abd8fa1f 100644 --- a/backend/src/appointment/database/schemas.py +++ b/backend/src/appointment/database/schemas.py @@ -167,7 +167,7 @@ class ScheduleBase(BaseModel): end_time: time | None = None earliest_booking: int | None = None farthest_booking: int | None = None - weekdays: list[int] | None = [1, 2, 3, 4, 5] + weekdays: list[int] | None = Field(min_length=1, default=[1, 2, 3, 4, 5]) slot_duration: int | None = None meeting_link_provider: MeetingLinkProviderType | None = MeetingLinkProviderType.none diff --git a/frontend/src/assets/styles/colours.css b/frontend/src/assets/styles/colours.css index e61aef32c..4d94cf41d 100644 --- a/frontend/src/assets/styles/colours.css +++ b/frontend/src/assets/styles/colours.css @@ -33,6 +33,7 @@ html { --tbpro-primary-hover: #066769; --tbpro-primary-pressed: #0A5757; + --tbpro-appointment-seconday: #81D4B5; --tbpro-secondary: var(--surface-subtle); --tbpro-secondary-border: var(--surface-border); --tbpro-secondary-pressed: var(--neutral-500); diff --git a/frontend/src/components/FTUE/ConnectCalendars.vue b/frontend/src/components/FTUE/ConnectCalendars.vue index 4c2e43d96..dea9ee46d 100644 --- a/frontend/src/components/FTUE/ConnectCalendars.vue +++ b/frontend/src/components/FTUE/ConnectCalendars.vue @@ -35,7 +35,7 @@