diff --git a/Dockerfile b/Dockerfile index d0997129..4d265aa1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ # SPDX-License-Identifier: MIT # - FROM node:latest AS build RUN mkdir /app diff --git a/apphosting.yaml b/apphosting.yaml index ab320c49..963f5b55 100644 --- a/apphosting.yaml +++ b/apphosting.yaml @@ -5,6 +5,7 @@ # # SPDX-License-Identifier: MIT # + env: - variable: VITE_PUBLIC_FIREBASE_API_KEY secret: webFrontend_VITE_PUBLIC_FIREBASE_API_KEY diff --git a/components/AsideEngageLayout/index.tsx b/components/AsideEngageLayout/index.tsx index 25067863..e0081b5b 100644 --- a/components/AsideEngageLayout/index.tsx +++ b/components/AsideEngageLayout/index.tsx @@ -5,4 +5,5 @@ // // SPDX-License-Identifier: MIT // + export * from './AsideEngageLayout' diff --git a/components/icons/LogoType.tsx b/components/icons/LogoType.tsx index a0b7aab7..8ca71832 100644 --- a/components/icons/LogoType.tsx +++ b/components/icons/LogoType.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import type { SVGProps } from 'react' type LogoTypeProps = SVGProps & { diff --git a/env.ts b/env.ts index bc81c42f..f33f8047 100644 --- a/env.ts +++ b/env.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { createEnv } from '@t3-oss/env-core' import { z } from 'zod' diff --git a/global.d.ts b/global.d.ts index 60f40581..56285feb 100644 --- a/global.d.ts +++ b/global.d.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import type en from './modules/messages/translations/en.json' /// diff --git a/index.html b/index.html index 15c68508..31f2b889 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ SPDX-License-Identifier: MIT --> + diff --git a/main.tsx b/main.tsx index 933e547c..4e53fc93 100644 --- a/main.tsx +++ b/main.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { RouterProvider, createRouter } from '@tanstack/react-router' import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' diff --git a/modules/firebase/AuthProvider.ts b/modules/firebase/AuthProvider.ts index 61a0b445..62715be8 100644 --- a/modules/firebase/AuthProvider.ts +++ b/modules/firebase/AuthProvider.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { useAuthUser } from '@stanfordspezi/spezi-web-design-system/modules/auth' import { useNavigate } from '@tanstack/react-router' import { type ReactNode, useEffect } from 'react' diff --git a/modules/firebase/UserProvider.tsx b/modules/firebase/UserProvider.tsx index ccd08d90..c93bd87e 100644 --- a/modules/firebase/UserProvider.tsx +++ b/modules/firebase/UserProvider.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { getUserInfo } from '@stanfordspezi/spezi-web-design-system/modules/auth' import { queryOptions, useSuspenseQuery } from '@tanstack/react-query' import { getCurrentUser } from '@/modules/firebase/app' diff --git a/modules/firebase/allergy.ts b/modules/firebase/allergy.ts index 7a86e75f..c14ddf94 100644 --- a/modules/firebase/allergy.ts +++ b/modules/firebase/allergy.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { startCase } from 'es-toolkit' export enum AllergyType { diff --git a/modules/firebase/app.ts b/modules/firebase/app.ts index 8e55593e..fa1f5104 100644 --- a/modules/firebase/app.ts +++ b/modules/firebase/app.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { initializeApp } from '@firebase/app' import { connectFunctionsEmulator, getFunctions } from '@firebase/functions' import { type UserType } from '@stanfordbdhg/engagehf-models' diff --git a/modules/firebase/appointment.ts b/modules/firebase/appointment.ts index 2b90e88c..414e4bf3 100644 --- a/modules/firebase/appointment.ts +++ b/modules/firebase/appointment.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { FHIRExtensionUrl } from '@stanfordbdhg/engagehf-models' import { queryOptions } from '@tanstack/react-query' import { orderBy, query } from 'firebase/firestore' diff --git a/modules/firebase/config.ts b/modules/firebase/config.ts index c3372e58..a4bab939 100644 --- a/modules/firebase/config.ts +++ b/modules/firebase/config.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { env } from '../../env' export const firebaseConfig = { diff --git a/modules/firebase/localizedText.test.ts b/modules/firebase/localizedText.test.ts index d82fcf03..a89ba813 100644 --- a/modules/firebase/localizedText.test.ts +++ b/modules/firebase/localizedText.test.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { createLocalizationHelpers } from '@/modules/firebase/localizedText' const { parseLocalizedText, parseNilLocalizedText } = diff --git a/modules/firebase/localizedText.ts b/modules/firebase/localizedText.ts index 7af53a73..e7c05ca8 100644 --- a/modules/firebase/localizedText.ts +++ b/modules/firebase/localizedText.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { type Nil, isObject, diff --git a/modules/firebase/models.ts b/modules/firebase/models.ts index a02eb75b..8ebeb6b3 100644 --- a/modules/firebase/models.ts +++ b/modules/firebase/models.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { type fhirAllergyIntoleranceConverter, type fhirAppointmentConverter, diff --git a/modules/firebase/role.ts b/modules/firebase/role.ts index 626c42f1..265a92f2 100644 --- a/modules/firebase/role.ts +++ b/modules/firebase/role.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { type UserType } from '@stanfordbdhg/engagehf-models' import { upperFirst } from '@stanfordspezi/spezi-web-design-system/utils/misc' diff --git a/modules/firebase/user.ts b/modules/firebase/user.ts index 6dac989f..49c1970f 100644 --- a/modules/firebase/user.ts +++ b/modules/firebase/user.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { type GetUsersInformationInput, type UserInformation, diff --git a/modules/firebase/utils.ts b/modules/firebase/utils.ts index e4acc5af..6be207eb 100644 --- a/modules/firebase/utils.ts +++ b/modules/firebase/utils.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { type Functions, httpsCallable } from '@firebase/functions' import { type CreateInvitationInput, diff --git a/modules/globals.css b/modules/globals.css index 7c2d4cf7..1e6a6f07 100644 --- a/modules/globals.css +++ b/modules/globals.css @@ -7,6 +7,7 @@ SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CO SPDX-License-Identifier: MIT */ + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/modules/notifications/Notification.tsx b/modules/notifications/Notification.tsx index 2346e298..878c9f67 100644 --- a/modules/notifications/Notification.tsx +++ b/modules/notifications/Notification.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Notification as NotificationBase, diff --git a/modules/notifications/NotificationsTable/MarkAllAsReadButton.tsx b/modules/notifications/NotificationsTable/MarkAllAsReadButton.tsx index d7f530d1..776952aa 100644 --- a/modules/notifications/NotificationsTable/MarkAllAsReadButton.tsx +++ b/modules/notifications/NotificationsTable/MarkAllAsReadButton.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Tooltip } from '@stanfordspezi/spezi-web-design-system/components/Tooltip' import { useMutation } from '@tanstack/react-query' diff --git a/modules/notifications/NotificationsTable/ShowUnreadOnlySwitch.tsx b/modules/notifications/NotificationsTable/ShowUnreadOnlySwitch.tsx index 1cfaff14..ca0a6032 100644 --- a/modules/notifications/NotificationsTable/ShowUnreadOnlySwitch.tsx +++ b/modules/notifications/NotificationsTable/ShowUnreadOnlySwitch.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { SideLabel } from '@stanfordspezi/spezi-web-design-system/components/SideLabel' import { Switch } from '@stanfordspezi/spezi-web-design-system/components/Switch' import { type Table } from '@tanstack/table-core' diff --git a/modules/notifications/NotificationsTable/helpers.tsx b/modules/notifications/NotificationsTable/helpers.tsx index 54cb3246..9286526b 100644 --- a/modules/notifications/NotificationsTable/helpers.tsx +++ b/modules/notifications/NotificationsTable/helpers.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { createColumnHelper } from '@tanstack/table-core' import { type UserMessage } from '@/modules/firebase/models' diff --git a/modules/notifications/NotificationsTable/index.tsx b/modules/notifications/NotificationsTable/index.tsx index 1cc70d44..678eca1e 100644 --- a/modules/notifications/NotificationsTable/index.tsx +++ b/modules/notifications/NotificationsTable/index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { DataTable, DataTableBasicView, diff --git a/modules/notifications/helpers.ts b/modules/notifications/helpers.ts index b12e81bc..2d8637e6 100644 --- a/modules/notifications/helpers.ts +++ b/modules/notifications/helpers.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { type UserMessage } from '@/modules/firebase/models' import { routes } from '@/modules/routes' import { type PatientPageTab } from '@/routes/~_dashboard/~patients/~$id/~index' diff --git a/modules/notifications/queries.tsx b/modules/notifications/queries.tsx index 8315d123..2ac9ddc1 100644 --- a/modules/notifications/queries.tsx +++ b/modules/notifications/queries.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { queryOptions, useQuery } from '@tanstack/react-query' import { query, orderBy } from 'firebase/firestore' import { refs } from '@/modules/firebase/app' diff --git a/modules/query/ReactQueryClientProvider.tsx b/modules/query/ReactQueryClientProvider.tsx index b921b89c..278ee452 100644 --- a/modules/query/ReactQueryClientProvider.tsx +++ b/modules/query/ReactQueryClientProvider.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { QueryClientProvider } from '@tanstack/react-query' import { type ReactNode } from 'react' import { queryClient } from '@/modules/query/queryClient' diff --git a/modules/query/queryClient.ts b/modules/query/queryClient.ts index 98e679c4..a3f98a16 100644 --- a/modules/query/queryClient.ts +++ b/modules/query/queryClient.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { QueryClient } from '@tanstack/react-query' export const queryClient = new QueryClient({ diff --git a/modules/tests/helpers.tsx b/modules/tests/helpers.tsx index 4e543240..5c9302e7 100644 --- a/modules/tests/helpers.tsx +++ b/modules/tests/helpers.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { createRootRoute, createRoute, diff --git a/modules/user/patients.ts b/modules/user/patients.ts index 4b81a07c..f8be0ed0 100644 --- a/modules/user/patients.ts +++ b/modules/user/patients.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { queryOptions } from '@tanstack/react-query' import { type Query, query, where } from 'firebase/firestore' diff --git a/modules/user/queries.tsx b/modules/user/queries.tsx index 8167ab35..b4c139dc 100644 --- a/modules/user/queries.tsx +++ b/modules/user/queries.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { queryOptions } from '@tanstack/react-query' import { notFound } from '@tanstack/react-router' diff --git a/modules/user/table.tsx b/modules/user/table.tsx index 17d9c626..95e32660 100644 --- a/modules/user/table.tsx +++ b/modules/user/table.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { CopyText } from '@stanfordspezi/spezi-web-design-system/components/CopyText' import { Tooltip } from '@stanfordspezi/spezi-web-design-system/components/Tooltip' import { type Nil } from '@stanfordspezi/spezi-web-design-system/utils/misc' diff --git a/routes/~__root.tsx b/routes/~__root.tsx index 99c76901..3b4ecc58 100644 --- a/routes/~__root.tsx +++ b/routes/~__root.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Toaster } from '@stanfordspezi/spezi-web-design-system/components/Toaster' import { SpeziProvider } from '@stanfordspezi/spezi-web-design-system/SpeziProvider' import { createRootRoute, Outlet, redirect } from '@tanstack/react-router' diff --git a/routes/~_dashboard.tsx b/routes/~_dashboard.tsx index 08a18258..7e722704 100644 --- a/routes/~_dashboard.tsx +++ b/routes/~_dashboard.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { createFileRoute } from '@tanstack/react-router' import { currentUserQueryOptions } from '@/modules/firebase/UserProvider' import { queryClient } from '@/modules/query/queryClient' diff --git a/routes/~_dashboard/DashboardLayout.tsx b/routes/~_dashboard/DashboardLayout.tsx index c30d680d..702e6eb0 100644 --- a/routes/~_dashboard/DashboardLayout.tsx +++ b/routes/~_dashboard/DashboardLayout.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { getUserInfo } from '@stanfordspezi/spezi-web-design-system/modules/auth' import { DashboardLayout as DashboardLayoutBase, diff --git a/routes/~_dashboard/MenuLinks.tsx b/routes/~_dashboard/MenuLinks.tsx index 1244b784..a09a907e 100644 --- a/routes/~_dashboard/MenuLinks.tsx +++ b/routes/~_dashboard/MenuLinks.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { MenuItem } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' import { useLocation } from '@tanstack/react-router' diff --git a/routes/~_dashboard/NotificationsCard.tsx b/routes/~_dashboard/NotificationsCard.tsx index 9a3a1ce7..b786df4a 100644 --- a/routes/~_dashboard/NotificationsCard.tsx +++ b/routes/~_dashboard/NotificationsCard.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Card, diff --git a/routes/~_dashboard/UpcomingAppointmentsCard.tsx b/routes/~_dashboard/UpcomingAppointmentsCard.tsx index 7609d6b5..43f6468f 100644 --- a/routes/~_dashboard/UpcomingAppointmentsCard.tsx +++ b/routes/~_dashboard/UpcomingAppointmentsCard.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Card, CardHeader, diff --git a/routes/~_dashboard/User.tsx b/routes/~_dashboard/User.tsx index 29b36a1e..f05bb534 100644 --- a/routes/~_dashboard/User.tsx +++ b/routes/~_dashboard/User.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { DropdownMenu, DropdownMenuTrigger, diff --git a/routes/~_dashboard/YourPatientsCard.tsx b/routes/~_dashboard/YourPatientsCard.tsx index a82239aa..92052251 100644 --- a/routes/~_dashboard/YourPatientsCard.tsx +++ b/routes/~_dashboard/YourPatientsCard.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Card, diff --git a/routes/~_dashboard/~index.tsx b/routes/~_dashboard/~index.tsx index d6750c18..8b867037 100644 --- a/routes/~_dashboard/~index.tsx +++ b/routes/~_dashboard/~index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { PageTitle } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' import { createFileRoute } from '@tanstack/react-router' import { Home } from 'lucide-react' diff --git a/routes/~_dashboard/~notifications/~index.tsx b/routes/~_dashboard/~notifications/~index.tsx index 3483a798..b39dd609 100644 --- a/routes/~_dashboard/~notifications/~index.tsx +++ b/routes/~_dashboard/~notifications/~index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { PageTitle } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' import { useQuery } from '@tanstack/react-query' import { createFileRoute } from '@tanstack/react-router' diff --git a/routes/~_dashboard/~patients/MedicationSelect.tsx b/routes/~_dashboard/~patients/MedicationSelect.tsx index f155b625..4fe4a36f 100644 --- a/routes/~_dashboard/~patients/MedicationSelect.tsx +++ b/routes/~_dashboard/~patients/MedicationSelect.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Select, SelectContent, diff --git a/routes/~_dashboard/~patients/Medications.tsx b/routes/~_dashboard/~patients/Medications.tsx index d436892a..7e0c63b3 100644 --- a/routes/~_dashboard/~patients/Medications.tsx +++ b/routes/~_dashboard/~patients/Medications.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Card } from '@stanfordspezi/spezi-web-design-system/components/Card' import { diff --git a/routes/~_dashboard/~patients/PatientForm.tsx b/routes/~_dashboard/~patients/PatientForm.tsx index 77686027..6e7f27e9 100644 --- a/routes/~_dashboard/~patients/PatientForm.tsx +++ b/routes/~_dashboard/~patients/PatientForm.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { DatePicker } from '@stanfordspezi/spezi-web-design-system/components/DatePicker' import { Input } from '@stanfordspezi/spezi-web-design-system/components/Input' diff --git a/routes/~_dashboard/~patients/PatientMenu.tsx b/routes/~_dashboard/~patients/PatientMenu.tsx index 9feb457a..72381514 100644 --- a/routes/~_dashboard/~patients/PatientMenu.tsx +++ b/routes/~_dashboard/~patients/PatientMenu.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { deleteDoc } from '@firebase/firestore' import { RowDropdownMenu } from '@stanfordspezi/spezi-web-design-system/components/DataTable' import { DropdownMenuItem } from '@stanfordspezi/spezi-web-design-system/components/DropdownMenu' diff --git a/routes/~_dashboard/~patients/PatientsTable.tsx b/routes/~_dashboard/~patients/PatientsTable.tsx index 0d2b1e79..3aeb9235 100644 --- a/routes/~_dashboard/~patients/PatientsTable.tsx +++ b/routes/~_dashboard/~patients/PatientsTable.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { DataTable, diff --git a/routes/~_dashboard/~patients/actions.tsx b/routes/~_dashboard/~patients/actions.tsx index 6ec4cc61..d8d094f7 100644 --- a/routes/~_dashboard/~patients/actions.tsx +++ b/routes/~_dashboard/~patients/actions.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { addDoc, setDoc } from '@firebase/firestore' import { FHIRAllergyIntoleranceCriticality, diff --git a/routes/~_dashboard/~patients/clientUtils.ts b/routes/~_dashboard/~patients/clientUtils.ts index 6994b08b..836f3b6c 100644 --- a/routes/~_dashboard/~patients/clientUtils.ts +++ b/routes/~_dashboard/~patients/clientUtils.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { useMemo } from 'react' import { basicFhirCoding } from '@/modules/firebase/models' import { UserObservationCollection } from '@/modules/firebase/utils' diff --git a/routes/~_dashboard/~patients/utils.ts b/routes/~_dashboard/~patients/utils.ts index 168a08a3..475d1e50 100644 --- a/routes/~_dashboard/~patients/utils.ts +++ b/routes/~_dashboard/~patients/utils.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { FHIRAllergyIntoleranceCriticality, FHIRAllergyIntoleranceType, diff --git a/routes/~_dashboard/~patients/~$id/Allergies.tsx b/routes/~_dashboard/~patients/~$id/Allergies.tsx index 1e74d65a..31d3cd7a 100644 --- a/routes/~_dashboard/~patients/~$id/Allergies.tsx +++ b/routes/~_dashboard/~patients/~$id/Allergies.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { deleteDoc } from '@firebase/firestore' import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { diff --git a/routes/~_dashboard/~patients/~$id/AllergyForm.tsx b/routes/~_dashboard/~patients/~$id/AllergyForm.tsx index 34170cc3..cb9e369c 100644 --- a/routes/~_dashboard/~patients/~$id/AllergyForm.tsx +++ b/routes/~_dashboard/~patients/~$id/AllergyForm.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Dialog, diff --git a/routes/~_dashboard/~patients/~$id/AppointmentForm.tsx b/routes/~_dashboard/~patients/~$id/AppointmentForm.tsx index 4020a7f8..bb55fe90 100644 --- a/routes/~_dashboard/~patients/~$id/AppointmentForm.tsx +++ b/routes/~_dashboard/~patients/~$id/AppointmentForm.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { DatePicker } from '@stanfordspezi/spezi-web-design-system/components/DatePicker' import { diff --git a/routes/~_dashboard/~patients/~$id/Appointments.tsx b/routes/~_dashboard/~patients/~$id/Appointments.tsx index 8edf0afd..6a161aca 100644 --- a/routes/~_dashboard/~patients/~$id/Appointments.tsx +++ b/routes/~_dashboard/~patients/~$id/Appointments.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { deleteDoc } from '@firebase/firestore' import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { diff --git a/routes/~_dashboard/~patients/~$id/GenerateHealthSummary.tsx b/routes/~_dashboard/~patients/~$id/GenerateHealthSummary.tsx index 2ee75d43..5b960870 100644 --- a/routes/~_dashboard/~patients/~$id/GenerateHealthSummary.tsx +++ b/routes/~_dashboard/~patients/~$id/GenerateHealthSummary.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { toast } from '@stanfordspezi/spezi-web-design-system/components/Toaster' import { Tooltip } from '@stanfordspezi/spezi-web-design-system/components/Tooltip' diff --git a/routes/~_dashboard/~patients/~$id/LabForm.tsx b/routes/~_dashboard/~patients/~$id/LabForm.tsx index a8178092..2e5aa260 100644 --- a/routes/~_dashboard/~patients/~$id/LabForm.tsx +++ b/routes/~_dashboard/~patients/~$id/LabForm.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { DatePicker } from '@stanfordspezi/spezi-web-design-system/components/DatePicker' import { diff --git a/routes/~_dashboard/~patients/~$id/Labs.tsx b/routes/~_dashboard/~patients/~$id/Labs.tsx index dbe1dad0..955fabda 100644 --- a/routes/~_dashboard/~patients/~$id/Labs.tsx +++ b/routes/~_dashboard/~patients/~$id/Labs.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { deleteDoc } from '@firebase/firestore' import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { diff --git a/routes/~_dashboard/~patients/~$id/Notifications.tsx b/routes/~_dashboard/~patients/~$id/Notifications.tsx index 0c126b31..bcd2165e 100644 --- a/routes/~_dashboard/~patients/~$id/Notifications.tsx +++ b/routes/~_dashboard/~patients/~$id/Notifications.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { useQuery } from '@tanstack/react-query' import { useUser } from '@/modules/firebase/UserProvider' import { getNotificationPatientId } from '@/modules/notifications/helpers' diff --git a/routes/~_dashboard/~patients/~$id/UserActivity.tsx b/routes/~_dashboard/~patients/~$id/UserActivity.tsx index ce436f5d..e18bb727 100644 --- a/routes/~_dashboard/~patients/~$id/UserActivity.tsx +++ b/routes/~_dashboard/~patients/~$id/UserActivity.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { Card, CardHeader, diff --git a/routes/~_dashboard/~patients/~$id/~index.tsx b/routes/~_dashboard/~patients/~$id/~index.tsx index 943ad351..099f38da 100644 --- a/routes/~_dashboard/~patients/~$id/~index.tsx +++ b/routes/~_dashboard/~patients/~$id/~index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { runTransaction, updateDoc } from '@firebase/firestore' import { UserType } from '@stanfordbdhg/engagehf-models' import { diff --git a/routes/~_dashboard/~patients/~index.tsx b/routes/~_dashboard/~patients/~index.tsx index 93eeb7b6..be963c87 100644 --- a/routes/~_dashboard/~patients/~index.tsx +++ b/routes/~_dashboard/~patients/~index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { PageTitle } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' diff --git a/routes/~_dashboard/~patients/~invite.tsx b/routes/~_dashboard/~patients/~invite.tsx index 39eec233..12dbd0cf 100644 --- a/routes/~_dashboard/~patients/~invite.tsx +++ b/routes/~_dashboard/~patients/~invite.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { PageTitle } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' import { createFileRoute, useNavigate } from '@tanstack/react-router' diff --git a/routes/~_dashboard/~users/UserForm.tsx b/routes/~_dashboard/~users/UserForm.tsx index d41db319..a28dcf6c 100644 --- a/routes/~_dashboard/~users/UserForm.tsx +++ b/routes/~_dashboard/~users/UserForm.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { Input } from '@stanfordspezi/spezi-web-design-system/components/Input' diff --git a/routes/~_dashboard/~users/UserMenu.tsx b/routes/~_dashboard/~users/UserMenu.tsx index 012ac0bc..c8eb91d7 100644 --- a/routes/~_dashboard/~users/UserMenu.tsx +++ b/routes/~_dashboard/~users/UserMenu.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { deleteDoc } from '@firebase/firestore' import { RowDropdownMenu } from '@stanfordspezi/spezi-web-design-system/components/DataTable' import { DropdownMenuItem } from '@stanfordspezi/spezi-web-design-system/components/DropdownMenu' diff --git a/routes/~_dashboard/~users/UsersTable.tsx b/routes/~_dashboard/~users/UsersTable.tsx index 54d4d420..1d91311f 100644 --- a/routes/~_dashboard/~users/UsersTable.tsx +++ b/routes/~_dashboard/~users/UsersTable.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { DataTable } from '@stanfordspezi/spezi-web-design-system/components/DataTable' import { useNavigate } from '@tanstack/react-router' diff --git a/routes/~_dashboard/~users/~$id.tsx b/routes/~_dashboard/~users/~$id.tsx index 7f4fbbc1..922f01e1 100644 --- a/routes/~_dashboard/~users/~$id.tsx +++ b/routes/~_dashboard/~users/~$id.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { updateDoc } from '@firebase/firestore' import { UserType } from '@stanfordbdhg/engagehf-models' import { getUserName } from '@stanfordspezi/spezi-web-design-system/modules/auth' diff --git a/routes/~_dashboard/~users/~index.tsx b/routes/~_dashboard/~users/~index.tsx index a9268269..0192832d 100644 --- a/routes/~_dashboard/~users/~index.tsx +++ b/routes/~_dashboard/~users/~index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { Button } from '@stanfordspezi/spezi-web-design-system/components/Button' import { PageTitle } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' diff --git a/routes/~_dashboard/~users/~invite.tsx b/routes/~_dashboard/~users/~invite.tsx index 11b50249..833e42d4 100644 --- a/routes/~_dashboard/~users/~invite.tsx +++ b/routes/~_dashboard/~users/~invite.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { UserType } from '@stanfordbdhg/engagehf-models' import { PageTitle } from '@stanfordspezi/spezi-web-design-system/molecules/DashboardLayout' import { createFileRoute, useNavigate } from '@tanstack/react-router' diff --git a/routes/~sign-in/~index.tsx b/routes/~sign-in/~index.tsx index 4a9a7a40..83aa55d2 100644 --- a/routes/~sign-in/~index.tsx +++ b/routes/~sign-in/~index.tsx @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { SignInForm as AuthSignInForm } from '@stanfordspezi/spezi-web-design-system/modules/auth' import { createFileRoute } from '@tanstack/react-router' import { signInWithEmailAndPassword, signInWithPopup } from 'firebase/auth' diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 099167af..c63d41e1 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + /* eslint-disable */ type ImportMetaEnv = { // Auto-generated by `npx vite-envs update-types` and hot-reloaded by the `vite-env` plugin diff --git a/tailwind.config.ts b/tailwind.config.ts index d44d3b95..e578fdfd 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -5,6 +5,7 @@ // // SPDX-License-Identifier: MIT // + import { tailwindColors } from '@stanfordspezi/spezi-web-design-system' import tailwindCssAnimate from 'tailwindcss-animate' diff --git a/testSetup.ts b/testSetup.ts index f17a9a1b..b7330886 100644 --- a/testSetup.ts +++ b/testSetup.ts @@ -5,4 +5,5 @@ // // SPDX-License-Identifier: MIT // + import '@testing-library/jest-dom'