-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* GRB reviewers query * useAuth hook to check job codes / roles * GRB reviewer view * Fix unit tests * Summary unit test * RequestOverview unit test * useAuth unit test * Move IsGrbViewContext to separate file * Documentation and cleanup * Moved nav item filtering to file Moved filtering of navigation links to src/views/GovernanceReviewTeam/subNavItems.ts so that it always returns correct items * Remove useAuth hook
- Loading branch information
1 parent
52cf9fd
commit f038c86
Showing
16 changed files
with
548 additions
and
302 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 was deleted.
Oops, something went wrong.
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,23 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const SystemIntakeGrbReviewer = gql` | ||
fragment SystemIntakeGrbReviewer on SystemIntakeGRBReviewer { | ||
id | ||
userAccount { | ||
id | ||
username | ||
} | ||
} | ||
`; | ||
|
||
export default gql` | ||
${SystemIntakeGrbReviewer} | ||
query GetSystemIntakeGrbReviewers($id: UUID!) { | ||
systemIntake(id: $id) { | ||
id | ||
grbReviewers { | ||
...SystemIntakeGrbReviewer | ||
} | ||
} | ||
} | ||
`; |
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,37 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
// ==================================================== | ||
// GraphQL query operation: GetSystemIntakeGrbReviewers | ||
// ==================================================== | ||
|
||
export interface GetSystemIntakeGrbReviewers_systemIntake_grbReviewers_userAccount { | ||
__typename: "UserAccount"; | ||
id: UUID; | ||
/** | ||
* The unique username of this user account | ||
*/ | ||
username: string; | ||
} | ||
|
||
export interface GetSystemIntakeGrbReviewers_systemIntake_grbReviewers { | ||
__typename: "SystemIntakeGRBReviewer"; | ||
id: UUID; | ||
userAccount: GetSystemIntakeGrbReviewers_systemIntake_grbReviewers_userAccount; | ||
} | ||
|
||
export interface GetSystemIntakeGrbReviewers_systemIntake { | ||
__typename: "SystemIntake"; | ||
id: UUID; | ||
grbReviewers: GetSystemIntakeGrbReviewers_systemIntake_grbReviewers[]; | ||
} | ||
|
||
export interface GetSystemIntakeGrbReviewers { | ||
systemIntake: GetSystemIntakeGrbReviewers_systemIntake | null; | ||
} | ||
|
||
export interface GetSystemIntakeGrbReviewersVariables { | ||
id: UUID; | ||
} |
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,23 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
// @generated | ||
// This file was automatically generated and should not be edited. | ||
|
||
// ==================================================== | ||
// GraphQL fragment: SystemIntakeGrbReviewer | ||
// ==================================================== | ||
|
||
export interface SystemIntakeGrbReviewer_userAccount { | ||
__typename: "UserAccount"; | ||
id: UUID; | ||
/** | ||
* The unique username of this user account | ||
*/ | ||
username: string; | ||
} | ||
|
||
export interface SystemIntakeGrbReviewer { | ||
__typename: "SystemIntakeGRBReviewer"; | ||
id: UUID; | ||
userAccount: SystemIntakeGrbReviewer_userAccount; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { createContext } from 'react'; | ||
|
||
/** | ||
* Context for rendering GRB reviewer views | ||
* | ||
* Set to `true` if user is GRB reviewer and does not have GOVTEAM job code | ||
*/ | ||
const IsGrbViewContext = createContext<boolean>(false); | ||
|
||
export default IsGrbViewContext; |
Oops, something went wrong.