Skip to content

Commit

Permalink
Move file nesting to combine all V2 in one folder
Browse files Browse the repository at this point in the history
  • Loading branch information
haworku committed Feb 6, 2024
1 parent 860ea5a commit 6dad58b
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { GridContainer } from '@trussworks/react-uswds'
import { Loading } from '../../../components'
import { GenericErrorPage } from '../../Errors/GenericErrorPage'
import { RateDetailsV2 } from '../../StateSubmission/RateDetails/RateDetailsV2'
import { RateDetailsV2 } from '../../StateSubmission/RateDetails/V2/RateDetailsV2'
import { RouteT, RoutesRecord } from '../../../constants'
import { PageBannerAlerts } from '../../StateSubmission/StateSubmissionForm'
import { useAuth } from '../../../contexts/AuthContext'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Field, FormikErrors, FormikValues, getIn } from 'formik'
import { Fieldset, FormGroup } from '@trussworks/react-uswds'
import { FieldRadio, FieldTextInput } from '../../../components/Form'
import { PoliteErrorMessage } from '../../../components/PoliteErrorMessage'
import { RateCertFormType } from '../RateDetails/SingleRateCert/SingleRateCert'
import { RateCertFormType } from '../RateDetails/SingleRateCert'
import styles from '../StateSubmissionForm.module.scss'
import { ActuaryContact as ActuaryContactGQL } from '../../../gen/gqlClient'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
import React from 'react'

import { useIndexHealthPlanPackagesQuery } from '../../../../gen/gqlClient'
import { recordJSException } from '../../../../otelHelpers'
import { dayjs } from '../../../../common-code/dateHelpers'
import { getCurrentRevisionFromHealthPlanPackage } from '../../../../gqlHelpers'
import type { PackageOptionType } from '../../../../components/Select'
import { useStatePrograms } from '../../../../hooks'
import { packageName } from '../../../../common-code/healthPlanFormDataType'
import { FieldYesNo, PoliteErrorMessage } from '../../../../components'
import { useIndexHealthPlanPackagesQuery } from '../../../gen/gqlClient'
import { recordJSException } from '../../../otelHelpers'
import { dayjs } from '../../../common-code/dateHelpers'
import { getCurrentRevisionFromHealthPlanPackage } from '../../../gqlHelpers'
import type { PackageOptionType } from '../../../components/Select'
import { useStatePrograms } from '../../../hooks'
import { packageName } from '../../../common-code/healthPlanFormDataType'
import { FieldYesNo, PoliteErrorMessage } from '../../../components'
import { FormGroup, Label, Link } from '@trussworks/react-uswds'
import { PackageSelect } from '../../../../components/Select'
import { PackageSelect } from '../../../components/Select'
import { getIn, useFormikContext } from 'formik'
import {
RateCertFormType,
RateInfoArrayType,
} from '../SingleRateCert/SingleRateCert'
import { RateCertFormType, RateInfoArrayType } from './SingleRateCert'

import styles from '../../StateSubmissionForm.module.scss'
import { RoutesRecord } from '../../../../constants'
import styles from '../StateSubmissionForm.module.scss'
import { RoutesRecord } from '../../../constants'

export type PackagesWithSharedRatesProps = {
index: number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ import {
formatDocumentsForForm,
formatForForm,
} from '../../../formHelpers/formatters'
import {
RateCertFormType,
SingleRateCert,
} from './SingleRateCert/SingleRateCert'
import { RateCertFormType, SingleRateCert } from './SingleRateCert'
import { useS3 } from '../../../contexts/S3Context'
import { S3ClientT } from '../../../s3'
import { isLoadingOrHasFileErrors } from '../../../components/FileUpload'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@ import {
ActuaryContact,
RateCapitationType,
RateType,
} from '../../../../common-code/healthPlanFormDataType'
} from '../../../common-code/healthPlanFormDataType'
import {
FieldRadio,
FileItemT,
FileUpload,
PoliteErrorMessage,
ProgramSelect,
SectionCard,
} from '../../../../components'
} from '../../../components'

import styles from '../../StateSubmissionForm.module.scss'
import { formatUserInputDate, isDateRangeEmpty } from '../../../../formHelpers'
import styles from '../StateSubmissionForm.module.scss'
import { formatUserInputDate, isDateRangeEmpty } from '../../../formHelpers'
import {
ACCEPTED_RATE_SUPPORTING_DOCS_FILE_TYPES,
ACCEPTED_RATE_CERTIFICATION_FILE_TYPES,
} from '../../../../components/FileUpload'
import { useS3 } from '../../../../contexts/S3Context'
} from '../../../components/FileUpload'
import { useS3 } from '../../../contexts/S3Context'

import { FormikErrors, getIn, useFormikContext } from 'formik'
import {
ActuaryCommunicationType,
SharedRateCertDisplay,
} from '../../../../common-code/healthPlanFormDataType/UnlockedHealthPlanFormDataType'
import { ActuaryContactFields } from '../../Contacts'
import { PackagesWithSharedRates } from '../PackagesWithSharedRates/PackagesWithSharedRates'
} from '../../../common-code/healthPlanFormDataType/UnlockedHealthPlanFormDataType'
import { ActuaryContactFields } from '../Contacts'
import { PackagesWithSharedRates } from './PackagesWithSharedRates'

const isRateTypeEmpty = (values: RateCertFormType): boolean =>
values.rateType === undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,33 @@ import { Formik, FormikErrors } from 'formik'
import { useNavigate, useParams } from 'react-router-dom'
import { v4 as uuidv4 } from 'uuid'

import styles from '../StateSubmissionForm.module.scss'
import styles from '../../StateSubmissionForm.module.scss'

import { ErrorSummary } from '../../../components'
import { RateDetailsFormSchema } from './RateDetailsSchema'
import { PageActions } from '../PageActions'
import { ErrorSummary } from '../../../../components'
import { RateDetailsFormSchema } from '../RateDetailsSchema'
import { PageActions } from '../../PageActions'

import {
formatActuaryContactsForForm,
formatDocumentsForForm,
formatDocumentsForGQL,
formatForForm,
formatFormDateForGQL,
} from '../../../formHelpers/formatters'
import { useS3 } from '../../../contexts/S3Context'
import { S3ClientT } from '../../../s3'
} from '../../../../formHelpers/formatters'
import { useS3 } from '../../../../contexts/S3Context'
import { S3ClientT } from '../../../../s3'
import {
FileItemT,
isLoadingOrHasFileErrors,
} from '../../../components/FileUpload'
import { RouteT, RoutesRecord } from '../../../constants'
import { Rate, RateFormDataInput, RateRevision } from '../../../gen/gqlClient'
import { SingleRateCertV2 } from './SingleRateCert/SingleRateCertV2'
import type { SubmitOrUpdateRate } from '../../RateSubmission/RateEdit/RateEdit'
} from '../../../../components/FileUpload'
import { RouteT, RoutesRecord } from '../../../../constants'
import {
Rate,
RateFormDataInput,
RateRevision,
} from '../../../../gen/gqlClient'
import { SingleRateCertV2 } from './SingleRateCertV2'
import type { SubmitOrUpdateRate } from '../../../RateSubmission/RateEdit/RateEdit'

export type RateDetailFormValues = {
id: Rate['id']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { useS3 } from '../../../../contexts/S3Context'

import { FormikErrors, getIn, useFormikContext } from 'formik'
import { ActuaryContactFields } from '../../Contacts'
import { RateDetailFormValues, RateDetailFormConfig } from '../RateDetailsV2'
import { RateDetailFormValues, RateDetailFormConfig } from './RateDetailsV2'

const isRateTypeEmpty = (rateForm: RateDetailFormValues): boolean =>
rateForm.rateType === undefined
Expand Down

0 comments on commit 6dad58b

Please sign in to comment.