Skip to content

Commit

Permalink
Merge branch 'MINT-3106/pre-launch-cleanup' of github.com:CMS-Enterpr…
Browse files Browse the repository at this point in the history
…ise/mint-app into MINT-3106/pre-launch-cleanup
  • Loading branch information
garyjzhao committed Oct 21, 2024
2 parents eede462 + ae9064b commit c4b18ac
Show file tree
Hide file tree
Showing 47 changed files with 666 additions and 804 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
github.com/vektah/gqlparser/v2 v2.5.17
github.com/vektah/gqlparser/v2 v2.5.18
go.uber.org/zap v1.27.0
golang.org/x/sync v0.8.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208 h1:PM5hJF7HVfNWmCjM
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208/go.mod h1:BzWtXXrXzZUvMacR0oF/fbDDgUPO8L36tDMmRAf14ns=
github.com/urfave/cli/v2 v2.25.5 h1:d0NIAyhh5shGscroL7ek/Ya9QYQE0KNabJgiUinIQkc=
github.com/urfave/cli/v2 v2.25.5/go.mod h1:GHupkWPMM0M/sj1a2b4wUrWBPzazNrIjouW6fmdJLxc=
github.com/vektah/gqlparser/v2 v2.5.17 h1:9At7WblLV7/36nulgekUgIaqHZWn5hxqluxrxGUhOmI=
github.com/vektah/gqlparser/v2 v2.5.17/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww=
github.com/vektah/gqlparser/v2 v2.5.18 h1:zSND3GtutylAQ1JpWnTHcqtaRZjl+y3NROeW8vuNo6Y=
github.com/vektah/gqlparser/v2 v2.5.18/go.mod h1:6HLzf7JKv9Fi3APymudztFQNmLXR5qJeEo6BOFcXVfc=
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0 h1:3UeQBvD0TFrlVjOeLOBz+CPAI8dnbqNSVwUwRrkp7vQ=
github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0/go.mod h1:IXCdmsXIht47RaVFLEdVnh1t+pgYtTAhQGj73kz+2DM=
github.com/xhit/go-simple-mail/v2 v2.16.0 h1:ouGy/Ww4kuaqu2E2UrDw7SvLaziWTB60ICLkIkNVccA=
Expand Down
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@json2csv/transforms": "^7.0.6",
"@okta/okta-auth-js": "^6.1.0",
"@okta/okta-react": "^6.9.0",
"@okta/okta-signin-widget": "^7.24.1",
"@okta/okta-signin-widget": "^7.24.2",
"@tiptap/core": "^2.8.0",
"@tiptap/extension-character-count": "^2.8.0",
"@tiptap/extension-document": "^2.8.0",
Expand All @@ -25,13 +25,13 @@
"@trussworks/react-uswds": "^6.0.0",
"@types/apollo-upload-client": "^17.0.5",
"@types/jest": "26.0.23",
"@types/lodash": "^4.17.10",
"@types/lodash": "^4.17.12",
"@types/luxon": "^3.4.2",
"@types/no-scroll": "^2.1.2",
"@types/node": "15.12.5",
"@types/react": "17.0.11",
"@types/react-autosuggest": "^10.1.11",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^18.3.1",
"@types/react-modal": "^3.16.3",
"@types/react-redux": "^7.1.33",
"@types/react-router-dom": "^5.1.0",
Expand All @@ -51,10 +51,10 @@
"font-awesome": "^4.7.0",
"formik": "^2.4.6",
"graphql": "^15.8.0",
"i18next": "^23.15.2",
"i18next": "^23.16.2",
"i18next-browser-languagedetector": "^5.0.0",
"istanbul-lib-coverage": "^3.2.2",
"launchdarkly-react-client-sdk": "^3.4.0",
"launchdarkly-react-client-sdk": "^3.5.0",
"lodash": "^4.17.21",
"luxon": "^3.5.0",
"no-scroll": "^2.1.1",
Expand All @@ -77,12 +77,12 @@
"redux-devtools-extension": "^2.13.9",
"redux-saga": "^1.3.0",
"redux-saga-routines": "^3.2.2",
"sass": "^1.79.4",
"sass": "^1.80.3",
"storybook": "^7.6.16",
"subscriptions-transport-ws": "^0.11.0",
"tippy.js": "^6.3.7",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript": "^5.6.3",
"wait-on": "^7.2.0",
"yup": "^1.4.0"
},
Expand Down Expand Up @@ -126,14 +126,14 @@
]
},
"devDependencies": {
"@babel/core": "^7.25.7",
"@babel/preset-env": "^7.25.7",
"@babel/core": "^7.25.8",
"@babel/preset-env": "^7.25.8",
"@cypress/code-coverage": "^3.13.4",
"@cypress/webpack-preprocessor": "^6.0.1",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/client-preset": "^4.3.3",
"@graphql-codegen/introspection": "^4.0.3",
"@graphql-codegen/typed-document-node": "^5.0.6",
"@graphql-codegen/typed-document-node": "^5.0.10",
"@graphql-codegen/typescript-react-apollo": "^4.3.2",
"@storybook/addon-actions": "^7.6.16",
"@storybook/addon-controls": "^7.6.16",
Expand All @@ -142,11 +142,11 @@
"@storybook/node-logger": "^7.6.16",
"@storybook/react": "^7.6.16",
"@storybook/react-vite": "^7.6.16",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/jest-dom": "^6.6.2",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/json2csv": "^5.0.7",
"@vitejs/plugin-react": "^4.3.2",
"@vitejs/plugin-react": "^4.3.3",
"@vitest/coverage-v8": "^0.34.3",
"apollo-link": "^1.2.14",
"apollo-link-error": "^1.1.13",
Expand All @@ -165,7 +165,7 @@
"glob": "^10.3.10",
"graphql-schema-linter": "^3.0.1",
"jest-launchdarkly-mock": "^2.1.0",
"jsdom": "^22.1.0",
"jsdom": "^25.0.1",
"markdown-spellcheck": "^1.3.1",
"prettier": "^3.3.3",
"react-select-event": "^5.5.1",
Expand All @@ -179,10 +179,10 @@
"storybook-addon-apollo-client": "^5.0.0",
"text-encoding": "^0.7.0",
"ts-loader": "^7.0.5",
"vite": "^5.4.8",
"vite": "^5.4.9",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^2.1.2",
"vitest": "^2.1.3",
"webpack": "^5.95.0"
},
"resolutions": {
Expand All @@ -196,7 +196,8 @@
"node-fetch": "2.6.1",
"graphql": "15.8.0",
"@graphql-typed-document-node/core": "3.2.0",
"prosemirror-model": "1.9.1"
"prosemirror-model": "1.9.1",
"@types/react-dom": "17.0.2"
},
"comments": {
"on_resolutions": {
Expand Down
39 changes: 13 additions & 26 deletions pkg/graph/resolvers/model_plan_phase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,32 +171,19 @@ func (suite *ResolverSuite) TestEvaluateSuggestedPhaseForClearance() {
planBasics, err := suite.testConfigs.Store.PlanBasicsGetByModelPlanID(plan.ID)
suite.NoError(err)

completeIcipTime := time.Date(2024, 8, 10, 5, 0, 0, 0, time.UTC)
planBasics.CompleteICIP = &completeIcipTime

clearanceStarts := time.Date(2024, 8, 14, 5, 0, 0, 0, time.UTC)
planBasics.ClearanceStarts = &clearanceStarts

clearanceEnds := time.Date(2025, 10, 16, 5, 0, 0, 0, time.UTC)
planBasics.ClearanceEnds = &clearanceEnds

announceModel := time.Date(2024, 10, 19, 5, 0, 0, 0, time.UTC)
planBasics.Announced = &announceModel

applicationStarts := time.Date(2024, 12, 1, 6, 0, 0, 0, time.UTC)
planBasics.ApplicationsStart = &applicationStarts

applicationEnds := time.Date(2025, 2, 28, 6, 0, 0, 0, time.UTC)
planBasics.ApplicationsEnd = &applicationEnds

performanceStarts := time.Date(2025, 4, 1, 5, 0, 0, 0, time.UTC)
planBasics.PerformancePeriodStarts = &performanceStarts

performanceEnds := time.Date(2029, 4, 1, 5, 0, 0, 0, time.UTC)
planBasics.PerformancePeriodEnds = &performanceEnds

wrapUpEnds := time.Date(2030, 7, 1, 5, 0, 0, 0, time.UTC)
planBasics.WrapUpEnds = &wrapUpEnds
yesterday := time.Now().Add(time.Hour * -24)
tomorrow := time.Now().Add(time.Hour * 24)

// Set Plan Basics dates
planBasics.CompleteICIP = &tomorrow
planBasics.ClearanceStarts = &yesterday // This is the important date for this test! (Clearance Start has passed)
planBasics.ClearanceEnds = &tomorrow
planBasics.Announced = &tomorrow
planBasics.ApplicationsStart = &tomorrow
planBasics.ApplicationsEnd = &tomorrow
planBasics.PerformancePeriodStarts = &tomorrow
planBasics.PerformancePeriodEnds = &tomorrow
planBasics.WrapUpEnds = &tomorrow

phaseSuggestion, err := EvaluateSuggestedStatus(plan.Status, planBasics)
suite.NoError(err)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`The Alert component > matches snapshot 1`] = `
<DocumentFragment>
<div
class="usa-alert usa-alert--info icon-padding mint-alert-text flex"
class="usa-alert usa-alert--info mint-alert-text flex"
data-testid="alert"
>
<div
Expand Down
6 changes: 0 additions & 6 deletions src/components/Alert/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,3 @@
padding-right: 1rem !important;
}
}

.icon-padding {
.usa-alert__body {
padding-left: 3.25rem !important;
}
}
1 change: 0 additions & 1 deletion src/components/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const Alert = ({
}: AlertProps & React.HTMLAttributes<HTMLDivElement>): React.ReactElement => {
const classes = classnames(
{
'icon-padding': !noIcon,
'mint-inline-alert': inline,
'mint-alert-text': isClosable,
'mint-alert-slim': lessPadding,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`The ITSolutionsWarning component > matches snapshot 1`] = `
<DocumentFragment>
<div
class="usa-alert usa-alert--warning icon-padding flex it-solutions-warning"
class="usa-alert usa-alert--warning flex it-solutions-warning"
data-testid="alert"
>
<div
Expand Down
4 changes: 2 additions & 2 deletions src/components/ShareExport/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ exports[`ShareExportModal > matches the snapshot 1`] = `
data-testid="gridContainer"
>
<div
class="usa-alert usa-alert--warning icon-padding flex margin-top-2 margin-bottom-5 desktop:margin-y-3"
class="usa-alert usa-alert--warning flex margin-top-2 margin-bottom-5 desktop:margin-y-3"
data-testid="alert"
>
<div
Expand Down Expand Up @@ -10279,7 +10279,7 @@ exports[`ShareExportModal > matches the snapshot 1`] = `
This will email a link to view this Model Plan within MINT.
</p>
<div
class="usa-alert usa-alert--info icon-padding flex margin-top-0 margin-bottom-3 text-base line-height-sans-2"
class="usa-alert usa-alert--info flex margin-top-0 margin-bottom-3 text-base line-height-sans-2"
data-testid="alert"
>
<div
Expand Down
2 changes: 1 addition & 1 deletion src/components/TaskListBannerAlert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TaskListBannerAlert = () => {
if (isTaskList && taskListRoute) {
setBanner(
<div className="task-list-alert" data-testid="task-list-alert">
<GridContainer className="padding-left-0">
<GridContainer>
<Alert type="info" slim className="margin-top-0 border-0">
{t('taskListLockBanner')}
</Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ exports[`The AllArticles component > matches snapshot 1`] = `
</span>
</a>
<div
class="usa-card__body padding-x-0 article__body padding-top-2"
class="usa-card__body padding-x-0 padding-top-2"
data-testid="CardBody"
>
<div>
Expand Down Expand Up @@ -457,7 +457,7 @@ exports[`The AllArticles component > matches snapshot 1`] = `
</span>
</a>
<div
class="usa-card__body padding-x-0 article__body padding-top-2"
class="usa-card__body padding-x-0 padding-top-2"
data-testid="CardBody"
>
<div>
Expand Down Expand Up @@ -640,7 +640,7 @@ exports[`The AllArticles component > matches snapshot 1`] = `
</span>
</a>
<div
class="usa-card__body padding-x-0 article__body padding-top-2"
class="usa-card__body padding-x-0 padding-top-2"
data-testid="CardBody"
>
<div>
Expand Down Expand Up @@ -823,7 +823,7 @@ exports[`The AllArticles component > matches snapshot 1`] = `
</span>
</a>
<div
class="usa-card__body padding-x-0 article__body padding-top-2"
class="usa-card__body padding-x-0 padding-top-2"
data-testid="CardBody"
>
<div>
Expand Down Expand Up @@ -955,7 +955,7 @@ exports[`The AllArticles component > matches snapshot 1`] = `
</span>
</a>
<div
class="usa-card__body padding-x-0 article__body padding-top-2"
class="usa-card__body padding-x-0 padding-top-2"
data-testid="CardBody"
>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ exports[`Get Access Article > matches snapshot 1`] = `
id="questions-or-issues"
>
<div
class="usa-alert usa-alert--info icon-padding flex margin-bottom-2"
class="usa-alert usa-alert--info flex margin-bottom-2"
data-testid="alert"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ exports[`SixPagerMeeting > matches the snapshot 1`] = `
</li>
</ul>
<div
class="usa-alert usa-alert--info icon-padding mint-alert-slim-right flex margin-y-3"
class="usa-alert usa-alert--info mint-alert-slim-right flex margin-y-3"
data-testid="alert"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ exports[`TwoPagerMeeting > matches the snapshot 1`] = `
A 2-page concept paper is an overview of an early development model concept, and may or may not include all of the elements listed below. Teams can focus on the most relevant and impactful information to help CMMI decide if a model concept should move to the next development phase. As teams are considering a 2-page concept paper, they may consult with their group leadership and the CMMI FO for early guidance and to support efficient use of staff and other resources.
</p>
<div
class="usa-alert usa-alert--info icon-padding flex margin-y-3"
class="usa-alert usa-alert--info flex margin-y-3"
data-testid="alert"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
overflow: hidden;
margin-bottom: .75rem;
}

&-card--isLink {
cursor: pointer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const ArticleCard = ({
<CardBody className="padding-x-0 article__body padding-top-2">
<p>{t('description')}</p>
</CardBody>

<CardFooter className="padding-x-0 padding-top-2 padding-bottom-0">
<button
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports[`ExternalResourceCard > matches the snapshot 1`] = `
</span>
</a>
<div
class="usa-card__body padding-x-0 article__body padding-top-2"
class="usa-card__body padding-x-0 padding-top-2"
data-testid="CardBody"
>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ExternalResourceCard = ({

{tag && <HelpCategoryTag type={type} />}

<CardBody className="padding-x-0 article__body padding-top-2">
<CardBody className="padding-x-0 padding-top-2">
<TruncatedText
charLimit={110}
id={translation}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ exports[`Operational Solutions About Components > matches the snapshot > 4innova
</ul>
</div>
<div
class="margin-top-4 padding-y-2 padding-x-2 bg-base-lightest"
class="margin-top-4 padding-y-2 padding-x-2 bg-base-lightest mint-body-normal"
>
<h4
class="margin-top-0 margin-bottom-1"
Expand Down Expand Up @@ -363,7 +363,7 @@ exports[`Operational Solutions About Components > matches the snapshot > Account
</ul>
</div>
<div
class="margin-top-4 padding-y-2 padding-x-2 bg-base-lightest"
class="margin-top-4 padding-y-2 padding-x-2 bg-base-lightest mint-body-normal"
>
<h4
class="margin-top-0 margin-bottom-1"
Expand Down Expand Up @@ -3599,7 +3599,7 @@ exports[`Operational Solutions About Components > matches the snapshot > Salesfo
</ul>
</div>
<div
class="margin-top-4 padding-y-2 padding-x-2 bg-base-lightest"
class="margin-top-4 padding-y-2 padding-x-2 bg-base-lightest mint-body-normal"
>
<h4
class="margin-top-0 margin-bottom-1"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@use 'viewports' as *;

.operational-solution-modal__body > .grid-row {
gap: 2rem;
@media screen and (min-width: $desktop) {
gap: 1rem;
}
}
Loading

0 comments on commit c4b18ac

Please sign in to comment.