diff --git a/docs/src/content/docs/reference/helm-chart-config.mdx b/docs/src/content/docs/reference/helm-chart-config.mdx index 8fcb7f5774..1165ae9e22 100644 --- a/docs/src/content/docs/reference/helm-chart-config.mdx +++ b/docs/src/content/docs/reference/helm-chart-config.mdx @@ -705,6 +705,24 @@ Each organism object has the following fields: Whether the field is required by backend + + `desired` + Boolean + + Whether the field is a desired input field for submitters + + + `definition` + Boolean + + Definition of input field for submitters + + + `guidance` + Boolean + + Guidance for submitters on filling in input field + `noInput` Boolean diff --git a/website/src/components/MetadataTable.astro b/website/src/components/MetadataTable.astro index 2b5dfa3d20..071bf03c3e 100644 --- a/website/src/components/MetadataTable.astro +++ b/website/src/components/MetadataTable.astro @@ -1,7 +1,7 @@ --- import { getConfiguredOrganisms, getSchema } from '../config'; -import OrganismTableSelector from './OrganismTableSelector'; -import type { OrganismMetadata } from './OrganismTableSelector'; +import OrganismTableSelector from './OrganismMetadataTableSelector'; +import type { OrganismMetadata } from './OrganismMetadataTableSelector'; const configuredOrganisms = getConfiguredOrganisms(); const organisms: OrganismMetadata[] = configuredOrganisms.map((organism) => { diff --git a/website/src/components/OrganismTableSelector.tsx b/website/src/components/OrganismMetadataTableSelector.tsx similarity index 96% rename from website/src/components/OrganismTableSelector.tsx rename to website/src/components/OrganismMetadataTableSelector.tsx index 2b4bf30615..59eb42c5a1 100644 --- a/website/src/components/OrganismTableSelector.tsx +++ b/website/src/components/OrganismMetadataTableSelector.tsx @@ -2,8 +2,8 @@ import React, { useState, useEffect } from 'react'; import type { FC } from 'react'; import { routes } from '../routes/routes.ts'; -import type { Metadata, InputField } from '../types/config'; -import { groupFieldsByHeader } from '../utils/groupFieldsByHeader'; +import type { Metadata, InputField } from '../types/config.ts'; +import { groupFieldsByHeader } from '../utils/groupFieldsByHeader.ts'; import IwwaArrowDown from '~icons/iwwa/arrow-down'; export type OrganismMetadata = { @@ -17,7 +17,7 @@ type Props = { organisms: OrganismMetadata[]; }; -const OrganismTableSelector: FC = ({ organisms }) => { +const OrganismMetadataTableSelector: FC = ({ organisms }) => { const [selectedOrganism, setSelectedOrganism] = useState(null); const [groupedFields, setGroupedFields] = useState>(new Map()); const [expandedHeaders, setExpandedHeaders] = useState>(new Set(['Required fields', 'Desired fields'])); @@ -94,7 +94,7 @@ const OrganismTableSelector: FC = ({ organisms }) => { ); }; -export default OrganismTableSelector; +export default OrganismMetadataTableSelector; type TableProps = { fields: InputField[];