Skip to content

Commit

Permalink
formatting imports, fix tests by adding server deps inline to vite co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
NikolaiMadlener committed Nov 8, 2024
1 parent 82c569e commit ab75f2c
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 37 deletions.
20 changes: 0 additions & 20 deletions .dockerignore

This file was deleted.

10 changes: 5 additions & 5 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ authors:
- family-names: 'Schmiedmayer'
given-names: 'Paul'
orcid: 'https://orcid.org/0000-0002-8607-9148'
- family-names: 'Ravi'
given-names: 'Vishnu'
orcid: 'https://orcid.org/0000-0003-0359-1275'
title: 'NextJSTemplate'
- family-names: 'Madlener'
given-names: 'Nikolai'
orcid: 'https://orcid.org/0009-0006-5059-6617'
title: 'Spezi Web Health Components'
doi: '10.5281/zenodo.10052055'
url: 'https://github.com/StanfordBDHG/NextJSTemplate'
url: 'https://github.com/StanfordSpezi/spezi-web-health-components'
10 changes: 9 additions & 1 deletion src/components/AllergyForm/AllergyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ import {
import { Button, Field } from '@stanfordspezi/spezi-web-design-system';
import { MedicationSelect } from "./MedicationSelect";
import { Medication, AllergyIntolerance} from '@medplum/fhirtypes'
import { ALLERGY_TYPE_OPTIONS, CLINICAL_STATUS_CODING_SYSTEM, CLINICAL_STATUS_OPTIONS, CRITICALITY_OPTIONS, FHIR_ALLERGY_INTOLERANCE_RESOURCE_TYPE, FHIRAllergyClinicalStatus, FHIRAllergyCriticality, FHIRAllergyIntoleranceType, FHIRAllergyIntoleranceValidationSchema, VERIFICATION_STATUS_CODING_SYSTEM} from "@/modules/fhir/allergy-intolerance";
import {
ALLERGY_TYPE_OPTIONS,
CLINICAL_STATUS_CODING_SYSTEM,
CLINICAL_STATUS_OPTIONS,
CRITICALITY_OPTIONS,
FHIR_ALLERGY_INTOLERANCE_RESOURCE_TYPE,
FHIRAllergyIntoleranceValidationSchema,
VERIFICATION_STATUS_CODING_SYSTEM
} from "@/modules/fhir/allergy-intolerance";

export const allergyFormSchema = FHIRAllergyIntoleranceValidationSchema;

Expand Down
11 changes: 6 additions & 5 deletions src/components/ObservationForm/ObservationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import { Button } from '@stanfordspezi/spezi-web-design-system';
import { Field } from '@stanfordspezi/spezi-web-design-system';
import { Observation} from '@medplum/fhirtypes'
import { getObservationTypeUnits, getUnitOfObservationType } from "@/utils/utils";
import { FHIR_OBSERVATION_RESOURCE_TYPE,
FHIRObservationValidationSchema,
OBSERVATION_STATUS_OPTIONS,
OBSERVATION_TYPE_OPTIONS,
UserObservationCollection
import {
FHIR_OBSERVATION_RESOURCE_TYPE,
FHIRObservationValidationSchema,
OBSERVATION_STATUS_OPTIONS,
OBSERVATION_TYPE_OPTIONS,
UserObservationCollection
} from "@/modules/fhir/observation";
import { RXNORM_MEDICATION_CODING_SYSTEM } from "@/modules/fhir/allergy-intolerance";

Expand Down
11 changes: 6 additions & 5 deletions src/components/PatientsTable/PatientMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

import { Link } from '@tanstack/react-router'
import { Pencil, Trash } from 'lucide-react'
import { RowDropdownMenu,
DropdownMenuItem,
ConfirmDeleteDialog,
useOpenState
} from '@stanfordbdhg/spezi-web-design-system'
import {
RowDropdownMenu,
DropdownMenuItem,
ConfirmDeleteDialog
} from '@stanfordspezi/spezi-web-design-system'
import { useOpenState } from '@stanfordspezi/spezi-web-design-system/utils/useOpenState'
import { Patient } from '@medplum/fhirtypes'

interface PatientMenuProps {
Expand Down
5 changes: 4 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { tailwindColors } from './src/utils/tailwind'

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@stanfordspezi/spezi-web-design-system/dist/**/*.js'

Check warning on line 15 in tailwind.config.js

View check run for this annotation

Codecov / codecov/patch

tailwind.config.js#L14-L15

Added lines #L14 - L15 were not covered by tests
],
theme: {
extend: {
colors: tailwindColors,
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
setupFiles: ['./testSetup.ts'],
server: {
deps: {
inline: ['@stanfordspezi/spezi-web-design-system'],
},
},
},
})

0 comments on commit ab75f2c

Please sign in to comment.