-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MCR-4664 & 4663: State and CMS see withdrawn rates (#3066)
* Add withdrawn rates to rate details summary. * Add a new shade of gray * Don't show download all docs if no rates exist. * Update tests to not look for download button when no rates exist * Update InfoTag with new color * Add withdrawn rates mock * Show withdrawn rate name with tag on rate details page * Use mockData function for test
- Loading branch information
1 parent
cc0ecdb
commit a09f95f
Showing
7 changed files
with
297 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import { | |
UnlockedContract, | ||
CmsUser, | ||
StateUser, | ||
Rate, | ||
} from '../gen/gqlClient' | ||
import { s3DlUrl } from './documentDataMock' | ||
|
||
|
@@ -2837,6 +2838,95 @@ const mockEmptyDraftContractAndRate = (): Contract => | |
withdrawnRates: [], | ||
}) | ||
|
||
const mockWithdrawnRates = (parentContractID?: string): Rate[] => { | ||
return [ | ||
{ | ||
id: '1234', | ||
webURL: 'https://testmcreview.example/rates/1234', | ||
createdAt: new Date('01/01/2021'), | ||
updatedAt: new Date('01/01/2021'), | ||
status: 'SUBMITTED', | ||
reviewStatus: 'WITHDRAWN', | ||
consolidatedStatus: 'WITHDRAWN', | ||
state: mockMNState(), | ||
stateCode: 'MN', | ||
stateNumber: 5, | ||
parentContractID: parentContractID ?? 'test-abc-123', | ||
revisions: [], | ||
packageSubmissions: [ | ||
{ | ||
cause: 'CONTRACT_SUBMISSION', | ||
submitInfo: { | ||
updatedAt: new Date('01/01/2021'), | ||
updatedBy: { | ||
email: '[email protected]', | ||
familyName: 'Hotman', | ||
givenName: 'Zuko', | ||
role: 'CMS_USER', | ||
}, | ||
updatedReason: 'Withdrawn rate reason', | ||
}, | ||
contractRevisions: [], | ||
rateRevision: { | ||
id: 'test-rate-revision-id', | ||
rateID: '1234', | ||
createdAt: new Date('01/01/2021'), | ||
updatedAt: new Date('01/01/2021'), | ||
formData: { | ||
...mockRateRevision().formData, | ||
rateCertificationName: | ||
'WITHDRAWN-RATE-1-NAME' | ||
}, | ||
}, | ||
submittedRevisions: [], | ||
}, | ||
], | ||
}, | ||
{ | ||
id: '5678', | ||
webURL: 'https://testmcreview.example/rates/5678', | ||
createdAt: new Date('01/01/2021'), | ||
updatedAt: new Date('01/01/2021'), | ||
status: 'SUBMITTED', | ||
reviewStatus: 'WITHDRAWN', | ||
consolidatedStatus: 'WITHDRAWN', | ||
state: mockMNState(), | ||
stateCode: 'MN', | ||
stateNumber: 5, | ||
parentContractID: parentContractID ?? 'test-abc-123', | ||
revisions: [], | ||
packageSubmissions: [ | ||
{ | ||
cause: 'CONTRACT_SUBMISSION', | ||
submitInfo: { | ||
updatedAt: new Date('01/01/2021'), | ||
updatedBy: { | ||
email: '[email protected]', | ||
familyName: 'Hotman', | ||
givenName: 'Zuko', | ||
role: 'CMS_USER', | ||
}, | ||
updatedReason: 'Withdrawn rate reason', | ||
}, | ||
contractRevisions: [], | ||
rateRevision: { | ||
id: 'test-rate-revision-id', | ||
rateID: '5678', | ||
createdAt: new Date('01/01/2021'), | ||
updatedAt: new Date('01/01/2021'), | ||
formData: { | ||
...mockRateRevision().formData, | ||
rateCertificationName: | ||
'WITHDRAWN-RATE-2-NAME' | ||
}, | ||
}, | ||
submittedRevisions: [], | ||
}, | ||
], | ||
}, | ||
] | ||
} | ||
|
||
export { | ||
mockContractRevision, | ||
mockContractPackageDraft, | ||
|
@@ -2852,4 +2942,5 @@ export { | |
mockContractPackageSubmittedWithQuestions, | ||
mockContractPackageApproved, | ||
mockContractPackageApprovedWithQuestions, | ||
mockWithdrawnRates | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.