-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/dsa-launch-pad' into reject-reason-backend
- Loading branch information
Showing
126 changed files
with
6,114 additions
and
138 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
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
51 changes: 51 additions & 0 deletions
51
client/src/core/client/admin/routes/Reports/AddReportNoteMutation.tsx
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,51 @@ | ||
import { graphql } from "react-relay"; | ||
import { Environment } from "relay-runtime"; | ||
|
||
import { | ||
commitMutationPromiseNormalized, | ||
createMutation, | ||
MutationInput, | ||
} from "coral-framework/lib/relay"; | ||
|
||
import { AddReportNoteMutation as MutationTypes } from "coral-admin/__generated__/AddReportNoteMutation.graphql"; | ||
|
||
let clientMutationId = 0; | ||
|
||
const AddReportNoteMutation = createMutation( | ||
"addReportNote", | ||
(environment: Environment, input: MutationInput<MutationTypes>) => { | ||
const result = commitMutationPromiseNormalized<MutationTypes>(environment, { | ||
mutation: graphql` | ||
mutation AddReportNoteMutation($input: AddDSAReportNoteInput!) { | ||
addDSAReportNote(input: $input) { | ||
dsaReport { | ||
id | ||
history { | ||
id | ||
createdBy { | ||
username | ||
} | ||
createdAt | ||
body | ||
type | ||
status | ||
} | ||
} | ||
clientMutationId | ||
} | ||
} | ||
`, | ||
variables: { | ||
input: { | ||
userID: input.userID, | ||
body: input.body, | ||
reportID: input.reportID, | ||
clientMutationId: (clientMutationId++).toString(), | ||
}, | ||
}, | ||
}); | ||
return result; | ||
} | ||
); | ||
|
||
export default AddReportNoteMutation; |
50 changes: 50 additions & 0 deletions
50
client/src/core/client/admin/routes/Reports/AddReportShareMutation.tsx
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,50 @@ | ||
import { graphql } from "react-relay"; | ||
import { Environment } from "relay-runtime"; | ||
|
||
import { | ||
commitMutationPromiseNormalized, | ||
createMutation, | ||
MutationInput, | ||
} from "coral-framework/lib/relay"; | ||
|
||
import { AddReportShareMutation as MutationTypes } from "coral-admin/__generated__/AddReportShareMutation.graphql"; | ||
|
||
let clientMutationId = 0; | ||
|
||
const AddReportShareMutation = createMutation( | ||
"addReportShare", | ||
(environment: Environment, input: MutationInput<MutationTypes>) => { | ||
const result = commitMutationPromiseNormalized<MutationTypes>(environment, { | ||
mutation: graphql` | ||
mutation AddReportShareMutation($input: AddDSAReportShareInput!) { | ||
addDSAReportShare(input: $input) { | ||
dsaReport { | ||
id | ||
history { | ||
id | ||
createdBy { | ||
username | ||
} | ||
createdAt | ||
body | ||
type | ||
status | ||
} | ||
} | ||
clientMutationId | ||
} | ||
} | ||
`, | ||
variables: { | ||
input: { | ||
userID: input.userID, | ||
reportID: input.reportID, | ||
clientMutationId: (clientMutationId++).toString(), | ||
}, | ||
}, | ||
}); | ||
return result; | ||
} | ||
); | ||
|
||
export default AddReportShareMutation; |
54 changes: 54 additions & 0 deletions
54
client/src/core/client/admin/routes/Reports/ChangeReportStatusMutation.tsx
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,54 @@ | ||
import { graphql } from "react-relay"; | ||
import { Environment } from "relay-runtime"; | ||
|
||
import { | ||
commitMutationPromiseNormalized, | ||
createMutation, | ||
MutationInput, | ||
} from "coral-framework/lib/relay"; | ||
|
||
import { ChangeReportStatusMutation as MutationTypes } from "coral-admin/__generated__/ChangeReportStatusMutation.graphql"; | ||
|
||
let clientMutationId = 0; | ||
|
||
const ChangeReportStatusMutation = createMutation( | ||
"changeReportStatus", | ||
(environment: Environment, input: MutationInput<MutationTypes>) => { | ||
const result = commitMutationPromiseNormalized<MutationTypes>(environment, { | ||
mutation: graphql` | ||
mutation ChangeReportStatusMutation( | ||
$input: ChangeDSAReportStatusInput! | ||
) { | ||
changeDSAReportStatus(input: $input) { | ||
dsaReport { | ||
id | ||
status | ||
history { | ||
id | ||
createdBy { | ||
username | ||
} | ||
createdAt | ||
body | ||
type | ||
status | ||
} | ||
} | ||
clientMutationId | ||
} | ||
} | ||
`, | ||
variables: { | ||
input: { | ||
userID: input.userID, | ||
reportID: input.reportID, | ||
status: input.status, | ||
clientMutationId: (clientMutationId++).toString(), | ||
}, | ||
}, | ||
}); | ||
return result; | ||
} | ||
); | ||
|
||
export default ChangeReportStatusMutation; |
Oops, something went wrong.