-
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-4477: States can navigate to rate Q&A via sidebar (#2841)
* Move graphql fragments into fragments directory and only define them once. * Setup routes for rate Q&A page * typo * Clean up * Move helpers to common directory. * Add dynamic rate Q&A links * State Q&A by rate page * Fix import * Use Division from gqlClient * Keep sidenav width static. * Add fragments directory to readme * Rename Q&A link to Contract questions
- Loading branch information
1 parent
ff4b090
commit 0cb8a35
Showing
55 changed files
with
815 additions
and
871 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
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
15 changes: 15 additions & 0 deletions
15
services/app-graphql/src/fragments/questionResponseFragment.graphql
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
fragment questionResponseFragment on QuestionResponse { | ||
id | ||
questionID | ||
createdAt | ||
addedBy { | ||
... on StateUser { | ||
...stateUserFragment | ||
} | ||
} | ||
documents { | ||
name | ||
s3URL | ||
downloadURL | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
services/app-graphql/src/fragments/questionsEdgeFragment.graphql
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
fragment questionEdgeFragment on ContractQuestionEdge { | ||
node { | ||
id | ||
contractID | ||
createdAt | ||
addedBy { | ||
... on CMSUser { | ||
...cmsUserFragment | ||
} | ||
... on CMSApproverUser { | ||
...cmsApproverUserFragment | ||
} | ||
} | ||
division | ||
documents { | ||
s3URL | ||
name | ||
downloadURL | ||
} | ||
responses { | ||
...questionResponseFragment | ||
} | ||
} | ||
} | ||
|
||
fragment rateQuestionEdgeFragment on RateQuestionEdge { | ||
node { | ||
id | ||
rateID | ||
createdAt | ||
addedBy { | ||
... on CMSUser { | ||
...cmsUserFragment | ||
} | ||
... on CMSApproverUser { | ||
...cmsApproverUserFragment | ||
} | ||
} | ||
division | ||
documents { | ||
s3URL | ||
name | ||
downloadURL | ||
} | ||
responses { | ||
...questionResponseFragment | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
services/app-graphql/src/fragments/updateInformationFragment.graphql
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
fragment updateInformationFields on UpdateInformation { | ||
updatedAt | ||
updatedBy { | ||
role | ||
familyName | ||
givenName | ||
} | ||
updatedReason | ||
} |
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
fragment cmsUserFragment on CMSUser { | ||
id | ||
role | ||
familyName | ||
givenName | ||
stateAssignments { | ||
code | ||
name | ||
programs { | ||
id | ||
name | ||
fullName | ||
isRateProgram | ||
} | ||
} | ||
divisionAssignment | ||
} | ||
|
||
fragment cmsApproverUserFragment on CMSApproverUser { | ||
id | ||
role | ||
familyName | ||
givenName | ||
stateAssignments { | ||
code | ||
name | ||
programs { | ||
id | ||
name | ||
fullName | ||
isRateProgram | ||
} | ||
} | ||
divisionAssignment | ||
} | ||
|
||
fragment stateUserFragment on StateUser { | ||
id | ||
role | ||
familyName | ||
givenName | ||
state { | ||
code | ||
name | ||
programs { | ||
id | ||
name | ||
fullName | ||
isRateProgram | ||
} | ||
} | ||
} | ||
|
||
fragment adminUserFragment on AdminUser { | ||
id | ||
role | ||
familyName | ||
givenName | ||
} | ||
|
||
fragment helpdeskUserFragment on HelpdeskUser { | ||
id | ||
role | ||
familyName | ||
givenName | ||
} | ||
|
||
fragment businessUserFragment on BusinessOwnerUser { | ||
id | ||
role | ||
familyName | ||
givenName | ||
} |
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
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
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.