Decouple users from people

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-09-22 15:02:08 +02:00
parent 104330d3fd
commit 533822b60d
35 changed files with 296 additions and 872 deletions

View File

@@ -4,6 +4,7 @@ import {
DialogContent,
DialogFooter,
Field,
Checkbox,
useDialogRef,
} from "@probo/ui";
import type { PropsWithChildren } from "react";
@@ -13,6 +14,7 @@ import { useOrganizationId } from "/hooks/useOrganizationId";
import { useMutationWithToasts } from "/hooks/useMutationWithToasts";
import { z } from "zod";
import { useFormWithSchema } from "/hooks/useFormWithSchema";
import { Controller } from "react-hook-form";
const inviteMutation = graphql`
mutation InviteUserDialogMutation($input: InviteUserInput!) {
@@ -25,6 +27,7 @@ const inviteMutation = graphql`
const schema = z.object({
email: z.string().email(),
fullName: z.string(),
createPeople: z.boolean().default(false),
});
export function InviteUserDialog({ children }: PropsWithChildren) {
@@ -34,9 +37,9 @@ export function InviteUserDialog({ children }: PropsWithChildren) {
successMessage: __("User invited successfully"),
errorMessage: __("Failed to invite user"),
});
const { register, handleSubmit, formState, reset } = useFormWithSchema(
const { register, handleSubmit, formState, reset, control } = useFormWithSchema(
schema,
{},
{ defaultValues: { createPeople: false } },
);
const dialogRef = useDialogRef();
@@ -48,6 +51,7 @@ export function InviteUserDialog({ children }: PropsWithChildren) {
organizationId,
email: data.email,
fullName: data.fullName,
createPeople: data.createPeople,
},
},
onSuccess: () => {
@@ -83,6 +87,31 @@ export function InviteUserDialog({ children }: PropsWithChildren) {
{...register("fullName")}
error={formState.errors.fullName?.message}
/>
<div className="space-y-2">
<div className="flex items-center space-x-3">
<Controller
name="createPeople"
control={control}
render={({ field }) => (
<>
<Checkbox
checked={field.value}
onChange={field.onChange}
/>
<label
className="text-sm font-medium cursor-pointer"
onClick={() => field.onChange(!field.value)}
>
{__("Create people record")}
</label>
</>
)}
/>
</div>
<p className="text-xs text-txt-secondary ml-7">
{__("Creates a people record for this user in addition to the user account")}
</p>
</div>
</DialogContent>
<DialogFooter>
<Button type="submit" disabled={isInviting}>

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<1cf40085b2959d7ebb48ee4a90be41b1>>
* @generated SignedSource<<9ed3f33dde5f6a00c742b8db245ba03b>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -10,6 +10,7 @@
import { ConcreteRequest } from 'relay-runtime';
export type InviteUserInput = {
createPeople: boolean;
email: string;
fullName: string;
organizationId: string;

View File

@@ -128,12 +128,12 @@ export const paginatedVendorsFragment = graphql`
updatedAt
riskAssessments(
first: 1
orderBy: { direction: DESC, field: ASSESSED_AT }
orderBy: { direction: DESC, field: CREATED_AT }
) {
edges {
node {
id
assessedAt
createdAt
expiresAt
dataSensitivity
businessImpact
@@ -165,6 +165,7 @@ export const vendorNodeQuery = graphql`
}
viewer {
user {
id
people(organizationId: $organizationId) {
id
}

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<85c6bcb5e086b05009ccfaf8ac21a23e>>
* @generated SignedSource<<ad33fa2c4266cca92954782c7805effc>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -387,19 +387,6 @@ return {
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "publishedBy",
"plural": false,
"selections": [
(v4/*: any*/),
(v3/*: any*/)
],
"storageKey": null
},
{
"alias": null,
"args": (v11/*: any*/),
@@ -520,12 +507,12 @@ return {
]
},
"params": {
"cacheID": "fbfe2cc393b8fc5349a92f3443f12e0e",
"cacheID": "ef08fbd3755a6ab5eff7786164842da8",
"id": null,
"metadata": {},
"name": "DocumentGraphNodeQuery",
"operationKind": "query",
"text": "query DocumentGraphNodeQuery(\n $documentId: ID!\n) {\n node(id: $documentId) {\n __typename\n ... on Document {\n ...DocumentDetailPageDocumentFragment\n }\n id\n }\n}\n\nfragment DocumentControlsTabFragment on Document {\n id\n controls(first: 20) {\n edges {\n node {\n id\n ...LinkedControlsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment DocumentDetailPageDocumentFragment on Document {\n id\n title\n documentType\n owner {\n id\n fullName\n }\n ...DocumentControlsTabFragment\n controlsInfo: controls(first: 0) {\n totalCount\n }\n versions(first: 20) {\n edges {\n node {\n id\n content\n status\n publishedAt\n version\n updatedAt\n publishedBy {\n fullName\n id\n }\n signatures(first: 100) {\n edges {\n node {\n id\n state\n signedBy {\n id\n }\n ...DocumentSignaturesTab_signature\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment DocumentSignaturesTab_signature on DocumentVersionSignature {\n id\n state\n signedAt\n requestedAt\n signedBy {\n fullName\n primaryEmailAddress\n id\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n"
"text": "query DocumentGraphNodeQuery(\n $documentId: ID!\n) {\n node(id: $documentId) {\n __typename\n ... on Document {\n ...DocumentDetailPageDocumentFragment\n }\n id\n }\n}\n\nfragment DocumentControlsTabFragment on Document {\n id\n controls(first: 20) {\n edges {\n node {\n id\n ...LinkedControlsCardFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment DocumentDetailPageDocumentFragment on Document {\n id\n title\n documentType\n owner {\n id\n fullName\n }\n ...DocumentControlsTabFragment\n controlsInfo: controls(first: 0) {\n totalCount\n }\n versions(first: 20) {\n edges {\n node {\n id\n content\n status\n publishedAt\n version\n updatedAt\n signatures(first: 100) {\n edges {\n node {\n id\n state\n signedBy {\n id\n }\n ...DocumentSignaturesTab_signature\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment DocumentSignaturesTab_signature on DocumentVersionSignature {\n id\n state\n signedAt\n requestedAt\n signedBy {\n fullName\n primaryEmailAddress\n id\n }\n}\n\nfragment LinkedControlsCardFragment on Control {\n id\n name\n sectionTitle\n framework {\n id\n name\n }\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<5b8f324da8c4dc9302cb6f821062757d>>
* @generated SignedSource<<46d46472ea11f58c00df8b8827afab98>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -13,7 +13,6 @@ import { FragmentRefs } from "relay-runtime";
export type DocumentType = "ISMS" | "OTHER" | "POLICY";
export type UpdateDocumentInput = {
content?: string | null | undefined;
createdBy?: string | null | undefined;
documentType?: DocumentType | null | undefined;
id: string;
ownerId?: string | null | undefined;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<8b1614888dac560deff871232f91995d>>
* @generated SignedSource<<554f3a594f825db3f7f7da0c5c1d8b1f>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -198,7 +198,7 @@ return {
"name": "orderBy",
"value": {
"direction": "DESC",
"field": "ASSESSED_AT"
"field": "CREATED_AT"
}
}
],
@@ -228,7 +228,7 @@ return {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"name": "createdAt",
"storageKey": null
},
{
@@ -259,7 +259,7 @@ return {
"storageKey": null
}
],
"storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"ASSESSED_AT\"})"
"storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})"
},
(v4/*: any*/)
],
@@ -350,12 +350,12 @@ return {
]
},
"params": {
"cacheID": "4b19f6f4be47c38d8b68601ec95315a6",
"cacheID": "998ad60d132157090312ac11e318b2e5",
"id": null,
"metadata": {},
"name": "VendorGraphListQuery",
"operationKind": "query",
"text": "query VendorGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n ...VendorGraphPaginatedFragment_3iomuz\n }\n id\n }\n}\n\nfragment VendorGraphPaginatedFragment_3iomuz on Organization {\n vendors(first: 50, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n websiteUrl\n updatedAt\n riskAssessments(first: 1, orderBy: {direction: DESC, field: ASSESSED_AT}) {\n edges {\n node {\n id\n assessedAt\n expiresAt\n dataSensitivity\n businessImpact\n }\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
"text": "query VendorGraphListQuery(\n $organizationId: ID!\n $snapshotId: ID\n) {\n node(id: $organizationId) {\n __typename\n ... on Organization {\n id\n ...VendorGraphPaginatedFragment_3iomuz\n }\n id\n }\n}\n\nfragment VendorGraphPaginatedFragment_3iomuz on Organization {\n vendors(first: 50, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n websiteUrl\n updatedAt\n riskAssessments(first: 1, orderBy: {direction: DESC, field: CREATED_AT}) {\n edges {\n node {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n }\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<15c7796ac43c03708488ba03ef9d76a6>>
* @generated SignedSource<<d72032da6df08b84ce9c7ec87b950d08>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -24,6 +24,7 @@ export type VendorGraphNodeQuery$data = {
};
readonly viewer: {
readonly user: {
readonly id: string;
readonly people: {
readonly id: string;
} | null | undefined;
@@ -86,18 +87,30 @@ v7 = [
],
v8 = {
"alias": null,
"args": [
"args": null,
"concreteType": "User",
"kind": "LinkedField",
"name": "user",
"plural": false,
"selections": [
(v3/*: any*/),
{
"kind": "Variable",
"name": "organizationId",
"variableName": "organizationId"
"alias": null,
"args": [
{
"kind": "Variable",
"name": "organizationId",
"variableName": "organizationId"
}
],
"concreteType": "People",
"kind": "LinkedField",
"name": "people",
"plural": false,
"selections": (v7/*: any*/),
"storageKey": null
}
],
"concreteType": "People",
"kind": "LinkedField",
"name": "people",
"plural": false,
"selections": (v7/*: any*/),
"storageKey": null
},
v9 = {
@@ -204,24 +217,17 @@ v22 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"name": "createdAt",
"storageKey": null
},
v23 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
v24 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "updatedAt",
"storageKey": null
},
v25 = [
v24 = [
(v3/*: any*/),
{
"alias": null,
@@ -239,7 +245,7 @@ v25 = [
"storageKey": null
},
(v12/*: any*/),
(v23/*: any*/)
(v22/*: any*/)
];
return {
"fragment": {
@@ -316,18 +322,7 @@ return {
"name": "viewer",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "User",
"kind": "LinkedField",
"name": "user",
"plural": false,
"selections": [
(v8/*: any*/)
],
"storageKey": null
}
(v8/*: any*/)
],
"storageKey": null
}
@@ -560,7 +555,13 @@ return {
"plural": false,
"selections": [
(v3/*: any*/),
(v22/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -582,8 +583,8 @@ return {
"name": "role",
"storageKey": null
},
(v22/*: any*/),
(v23/*: any*/),
(v24/*: any*/),
(v9/*: any*/)
],
"storageKey": null
@@ -633,8 +634,8 @@ return {
(v3/*: any*/),
(v5/*: any*/),
(v10/*: any*/),
(v22/*: any*/),
(v23/*: any*/),
(v24/*: any*/),
(v9/*: any*/)
],
"storageKey": null
@@ -682,26 +683,7 @@ return {
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "assessedBy",
"plural": false,
"selections": [
(v3/*: any*/),
(v22/*: any*/)
],
"storageKey": null
},
(v22/*: any*/),
{
"alias": null,
"args": null,
@@ -773,7 +755,7 @@ return {
"kind": "LinkedField",
"name": "businessAssociateAgreement",
"plural": false,
"selections": (v25/*: any*/),
"selections": (v24/*: any*/),
"storageKey": null
},
{
@@ -783,7 +765,7 @@ return {
"kind": "LinkedField",
"name": "dataPrivacyAgreement",
"plural": false,
"selections": (v25/*: any*/),
"selections": (v24/*: any*/),
"storageKey": null
}
],
@@ -801,19 +783,7 @@ return {
"name": "viewer",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "User",
"kind": "LinkedField",
"name": "user",
"plural": false,
"selections": [
(v8/*: any*/),
(v3/*: any*/)
],
"storageKey": null
},
(v8/*: any*/),
(v3/*: any*/)
],
"storageKey": null
@@ -821,16 +791,16 @@ return {
]
},
"params": {
"cacheID": "90924936acacd1851e8e81b1d94d6655",
"cacheID": "4a112f861864990f5022d279ba8d43d4",
"id": null,
"metadata": {},
"name": "VendorGraphNodeQuery",
"operationKind": "query",
"text": "query VendorGraphNodeQuery(\n $vendorId: ID!\n $organizationId: ID!\n) {\n node(id: $vendorId) {\n __typename\n ... on Vendor {\n id\n snapshotId\n name\n websiteUrl\n ...useVendorFormFragment\n ...VendorComplianceTabFragment\n ...VendorContactsTabFragment\n ...VendorServicesTabFragment\n ...VendorRiskAssessmentTabFragment\n ...VendorOverviewTabBusinessAssociateAgreementFragment\n ...VendorOverviewTabDataPrivacyAgreementFragment\n }\n id\n }\n viewer {\n user {\n people(organizationId: $organizationId) {\n id\n }\n id\n }\n id\n }\n}\n\nfragment VendorComplianceTabFragment on Vendor {\n complianceReports(first: 50) {\n edges {\n node {\n id\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n fileUrl\n fileSize\n}\n\nfragment VendorContactsTabFragment on Vendor {\n contacts(first: 50) {\n edges {\n node {\n id\n ...VendorContactsTabFragment_contact\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorContactsTabFragment_contact on VendorContact {\n id\n fullName\n email\n phone\n role\n createdAt\n updatedAt\n}\n\nfragment VendorOverviewTabBusinessAssociateAgreementFragment on Vendor {\n businessAssociateAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n}\n\nfragment VendorOverviewTabDataPrivacyAgreementFragment on Vendor {\n dataPrivacyAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n}\n\nfragment VendorRiskAssessmentTabFragment on Vendor {\n id\n riskAssessments(first: 50) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n assessedAt\n assessedBy {\n id\n fullName\n }\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n\nfragment VendorServicesTabFragment on Vendor {\n services(first: 50) {\n edges {\n node {\n id\n ...VendorServicesTabFragment_service\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorServicesTabFragment_service on VendorService {\n id\n name\n description\n createdAt\n updatedAt\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n"
"text": "query VendorGraphNodeQuery(\n $vendorId: ID!\n $organizationId: ID!\n) {\n node(id: $vendorId) {\n __typename\n ... on Vendor {\n id\n snapshotId\n name\n websiteUrl\n ...useVendorFormFragment\n ...VendorComplianceTabFragment\n ...VendorContactsTabFragment\n ...VendorServicesTabFragment\n ...VendorRiskAssessmentTabFragment\n ...VendorOverviewTabBusinessAssociateAgreementFragment\n ...VendorOverviewTabDataPrivacyAgreementFragment\n }\n id\n }\n viewer {\n user {\n id\n people(organizationId: $organizationId) {\n id\n }\n }\n id\n }\n}\n\nfragment VendorComplianceTabFragment on Vendor {\n complianceReports(first: 50) {\n edges {\n node {\n id\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n fileUrl\n fileSize\n}\n\nfragment VendorContactsTabFragment on Vendor {\n contacts(first: 50) {\n edges {\n node {\n id\n ...VendorContactsTabFragment_contact\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorContactsTabFragment_contact on VendorContact {\n id\n fullName\n email\n phone\n role\n createdAt\n updatedAt\n}\n\nfragment VendorOverviewTabBusinessAssociateAgreementFragment on Vendor {\n businessAssociateAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n}\n\nfragment VendorOverviewTabDataPrivacyAgreementFragment on Vendor {\n dataPrivacyAgreement {\n id\n fileName\n fileUrl\n validFrom\n validUntil\n createdAt\n }\n}\n\nfragment VendorRiskAssessmentTabFragment on Vendor {\n id\n riskAssessments(first: 50) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n\nfragment VendorServicesTabFragment on Vendor {\n services(first: 50) {\n edges {\n node {\n id\n ...VendorServicesTabFragment_service\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorServicesTabFragment_service on VendorService {\n id\n name\n description\n createdAt\n updatedAt\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n"
}
};
})();
(node as any).hash = "4af64d92bd85441554a2c6ad8d2ccd77";
(node as any).hash = "5b907e5cc3446745ff2414ee06839aed";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<b6975a3a740bdf7e2c9914fc64770638>>
* @generated SignedSource<<1bb16039861951cb1726b506ce33f0ff>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -23,8 +23,8 @@ export type VendorGraphPaginatedFragment$data = {
readonly riskAssessments: {
readonly edges: ReadonlyArray<{
readonly node: {
readonly assessedAt: any;
readonly businessImpact: BusinessImpact;
readonly createdAt: any;
readonly dataSensitivity: DataSensitivity;
readonly expiresAt: any;
readonly id: string;
@@ -202,7 +202,7 @@ return {
"name": "orderBy",
"value": {
"direction": "DESC",
"field": "ASSESSED_AT"
"field": "CREATED_AT"
}
}
],
@@ -232,7 +232,7 @@ return {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"name": "createdAt",
"storageKey": null
},
{
@@ -263,7 +263,7 @@ return {
"storageKey": null
}
],
"storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"ASSESSED_AT\"})"
"storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})"
},
{
"alias": null,
@@ -346,6 +346,6 @@ return {
};
})();
(node as any).hash = "578772ed7c83ae174d43b0be95a02fd2";
(node as any).hash = "bf222e31d20ebe7c9dfdedff7d5a9c68";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<f98b10bd4f5fb03b55b46e2554480590>>
* @generated SignedSource<<f55e24dc95c48a67d7908bdd7f037272>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -274,7 +274,7 @@ return {
"name": "orderBy",
"value": {
"direction": "DESC",
"field": "ASSESSED_AT"
"field": "CREATED_AT"
}
}
],
@@ -304,7 +304,7 @@ return {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"name": "createdAt",
"storageKey": null
},
{
@@ -335,7 +335,7 @@ return {
"storageKey": null
}
],
"storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"ASSESSED_AT\"})"
"storageKey": "riskAssessments(first:1,orderBy:{\"direction\":\"DESC\",\"field\":\"CREATED_AT\"})"
},
(v13/*: any*/)
],
@@ -426,16 +426,16 @@ return {
]
},
"params": {
"cacheID": "6570f4601f6dea5b7fe738d851a7f1ba",
"cacheID": "bf14bba14dba4fb544d431600ea31317",
"id": null,
"metadata": {},
"name": "VendorsListQuery",
"operationKind": "query",
"text": "query VendorsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorOrder = null\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorGraphPaginatedFragment_25MC8O\n id\n }\n}\n\nfragment VendorGraphPaginatedFragment_25MC8O on Organization {\n vendors(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n websiteUrl\n updatedAt\n riskAssessments(first: 1, orderBy: {direction: DESC, field: ASSESSED_AT}) {\n edges {\n node {\n id\n assessedAt\n expiresAt\n dataSensitivity\n businessImpact\n }\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
"text": "query VendorsListQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorOrder = null\n $snapshotId: ID = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorGraphPaginatedFragment_25MC8O\n id\n }\n}\n\nfragment VendorGraphPaginatedFragment_25MC8O on Organization {\n vendors(first: $first, after: $after, last: $last, before: $before, orderBy: $order, filter: {snapshotId: $snapshotId}) {\n edges {\n node {\n id\n snapshotId\n name\n websiteUrl\n updatedAt\n riskAssessments(first: 1, orderBy: {direction: DESC, field: CREATED_AT}) {\n edges {\n node {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n }\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n"
}
};
})();
(node as any).hash = "578772ed7c83ae174d43b0be95a02fd2";
(node as any).hash = "bf222e31d20ebe7c9dfdedff7d5a9c68";
export default node;

View File

@@ -90,9 +90,6 @@ const documentFragment = graphql`
publishedAt
version
updatedAt
publishedBy {
fullName
}
signatures(first: 100)
@connection(key: "DocumentDetailPage_signatures") {
__id
@@ -707,9 +704,6 @@ function VersionItem({
</div>
<div className="flex-1 space-y-[2px] overflow-hidden">
<div className="flex items-center gap-2 overflow-hidden">
<div className="text-sm text-txt-secondary whitespace-nowrap overflow-hidden text-ellipsis">
{version.publishedBy?.fullName ?? document.owner.fullName}
</div>
{version.status === "DRAFT" && (
<Badge variant="neutral" size="sm">
{__("Draft")}

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<8db0c7dcd7ff31c01ec5facd5a3b598a>>
* @generated SignedSource<<9bec5530e7a90ab3fb9f21c5c2d92286>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -31,9 +31,6 @@ export type DocumentDetailPageDocumentFragment$data = {
readonly content: string;
readonly id: string;
readonly publishedAt: any | null | undefined;
readonly publishedBy: {
readonly fullName: string;
} | null | undefined;
readonly signatures: {
readonly __id: string;
readonly edges: ReadonlyArray<{
@@ -73,24 +70,17 @@ v1 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"name": "__typename",
"storageKey": null
},
v2 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cursor",
"storageKey": null
},
v4 = {
v3 = {
"alias": null,
"args": null,
"concreteType": "PageInfo",
@@ -115,7 +105,7 @@ v4 = {
],
"storageKey": null
},
v5 = {
v4 = {
"kind": "ClientExtension",
"selections": [
{
@@ -174,7 +164,13 @@ return {
"plural": false,
"selections": [
(v0/*: any*/),
(v1/*: any*/)
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"storageKey": null
},
@@ -267,18 +263,6 @@ return {
"name": "updatedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "publishedBy",
"plural": false,
"selections": [
(v1/*: any*/)
],
"storageKey": null
},
{
"alias": "signatures",
"args": null,
@@ -328,29 +312,29 @@ return {
"kind": "FragmentSpread",
"name": "DocumentSignaturesTab_signature"
},
(v2/*: any*/)
(v1/*: any*/)
],
"storageKey": null
},
(v3/*: any*/)
(v2/*: any*/)
],
"storageKey": null
},
(v4/*: any*/),
(v5/*: any*/)
(v3/*: any*/),
(v4/*: any*/)
],
"storageKey": null
},
(v2/*: any*/)
(v1/*: any*/)
],
"storageKey": null
},
(v3/*: any*/)
(v2/*: any*/)
],
"storageKey": null
},
(v4/*: any*/),
(v5/*: any*/)
(v3/*: any*/),
(v4/*: any*/)
],
"storageKey": null
}
@@ -360,6 +344,6 @@ return {
};
})();
(node as any).hash = "1523ddad229ae2d6bf94d30de5579ae6";
(node as any).hash = "1d06e505efa74bb0b564fcbfc57ce8c9";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<e02cdda6c1c24ac700a79ed236c6dfdc>>
* @generated SignedSource<<aa94f8d2cc4c6a5c29de3029d5e6d2ca>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -12,7 +12,6 @@ import { ConcreteRequest } from 'relay-runtime';
export type DocumentType = "ISMS" | "OTHER" | "POLICY";
export type UpdateDocumentInput = {
content?: string | null | undefined;
createdBy?: string | null | undefined;
documentType?: DocumentType | null | undefined;
id: string;
ownerId?: string | null | undefined;

View File

@@ -132,7 +132,7 @@ export default function VendorDetailPage(props: Props) {
</TabLink>
</Tabs>
<Outlet context={{ vendor, peopleId: data.viewer.user.people!.id }} />
<Outlet context={{ vendor }} />
</div>
);
}

View File

@@ -134,8 +134,8 @@ function VendorRow({
</div>
</Td>
<Td>
{latestAssessment?.assessedAt
? formatDate(latestAssessment.assessedAt)
{latestAssessment?.createdAt
? formatDate(latestAssessment.createdAt)
: __("Not assessed")}
</Td>
<Td>

View File

@@ -21,7 +21,6 @@ type Props = {
children: ReactNode;
connection: string;
vendorId: string;
peopleId: string;
};
const createRiskAssessmentMutation = graphql`
@@ -52,7 +51,6 @@ export function CreateRiskAssessmentDialog({
children,
connection,
vendorId,
peopleId,
}: Props) {
const { __ } = useTranslate();
@@ -79,7 +77,6 @@ export function CreateRiskAssessmentDialog({
input: {
...data,
vendorId,
assessedBy: peopleId,
expiresAt: nextYear.toISOString(),
},
connections: [connection!],

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<f877423fd1b767f837337e1b8a917e51>>
* @generated SignedSource<<2cd3f372cc571cec881b9762e381f1d5>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -13,7 +13,6 @@ import { FragmentRefs } from "relay-runtime";
export type BusinessImpact = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM";
export type DataSensitivity = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM" | "NONE";
export type CreateVendorRiskAssessmentInput = {
assessedBy: string;
businessImpact: BusinessImpact;
dataSensitivity: DataSensitivity;
expiresAt: any;
@@ -55,14 +54,7 @@ v2 = [
"name": "input",
"variableName": "input"
}
],
v3 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
};
];
return {
"fragment": {
"argumentDefinitions": [
@@ -148,31 +140,18 @@ return {
"name": "node",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"name": "id",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "assessedBy",
"plural": false,
"selections": [
(v3/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
@@ -231,12 +210,12 @@ return {
]
},
"params": {
"cacheID": "c55703ef9adb6c6aabf79aafe6cbeb89",
"cacheID": "1bd928ac46edc24d7b7cda3e5d7e2cb2",
"id": null,
"metadata": {},
"name": "CreateRiskAssessmentDialogMutation",
"operationKind": "mutation",
"text": "mutation CreateRiskAssessmentDialogMutation(\n $input: CreateVendorRiskAssessmentInput!\n) {\n createVendorRiskAssessment(input: $input) {\n vendorRiskAssessmentEdge {\n node {\n ...VendorRiskAssessmentTabFragment_assessment\n id\n }\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n assessedAt\n assessedBy {\n id\n fullName\n }\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n"
"text": "mutation CreateRiskAssessmentDialogMutation(\n $input: CreateVendorRiskAssessmentInput!\n) {\n createVendorRiskAssessment(input: $input) {\n vendorRiskAssessmentEdge {\n node {\n ...VendorRiskAssessmentTabFragment_assessment\n id\n }\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<6db92ed13cdca3a852d1b7b9c113840e>>
* @generated SignedSource<<22e7411298e2df9b5f5eae17bb0a510f>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -447,26 +447,7 @@ return {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "assessedBy",
"plural": false,
"selections": [
(v2/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"name": "createdAt",
"storageKey": null
},
{
@@ -542,12 +523,12 @@ return {
]
},
"params": {
"cacheID": "025f271f1dca46c6f052f0d59a4315cc",
"cacheID": "0cb0f301c3022d933fd9ee0d6319d3e4",
"id": null,
"metadata": {},
"name": "ImportAssessmentDialogMutation",
"operationKind": "mutation",
"text": "mutation ImportAssessmentDialogMutation(\n $input: AssessVendorInput!\n) {\n assessVendor(input: $input) {\n vendor {\n id\n name\n websiteUrl\n ...useVendorFormFragment\n ...VendorComplianceTabFragment\n ...VendorRiskAssessmentTabFragment\n }\n }\n}\n\nfragment VendorComplianceTabFragment on Vendor {\n complianceReports(first: 50) {\n edges {\n node {\n id\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n fileUrl\n fileSize\n}\n\nfragment VendorRiskAssessmentTabFragment on Vendor {\n id\n riskAssessments(first: 50) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n assessedAt\n assessedBy {\n id\n fullName\n }\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n"
"text": "mutation ImportAssessmentDialogMutation(\n $input: AssessVendorInput!\n) {\n assessVendor(input: $input) {\n vendor {\n id\n name\n websiteUrl\n ...useVendorFormFragment\n ...VendorComplianceTabFragment\n ...VendorRiskAssessmentTabFragment\n }\n }\n}\n\nfragment VendorComplianceTabFragment on Vendor {\n complianceReports(first: 50) {\n edges {\n node {\n id\n ...VendorComplianceTabFragment_report\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment VendorComplianceTabFragment_report on VendorComplianceReport {\n id\n reportDate\n validUntil\n reportName\n fileUrl\n fileSize\n}\n\nfragment VendorRiskAssessmentTabFragment on Vendor {\n id\n riskAssessments(first: 50) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n\nfragment useVendorFormFragment on Vendor {\n id\n name\n description\n category\n statusPageUrl\n termsOfServiceUrl\n privacyPolicyUrl\n serviceLevelAgreementUrl\n dataProcessingAgreementUrl\n websiteUrl\n legalName\n headquarterAddress\n certifications\n countries\n securityPageUrl\n trustPageUrl\n businessOwner {\n id\n }\n securityOwner {\n id\n }\n}\n"
}
};
})();

View File

@@ -15,6 +15,7 @@ import {
Badge,
TrButton,
} from "@probo/ui";
import { formatDate } from "@probo/helpers";
import { useFragment, useRefetchableFragment } from "react-relay";
import type { VendorRiskAssessmentTabFragment_assessment$key } from "./__generated__/VendorRiskAssessmentTabFragment_assessment.graphql";
import { SortableTable, SortableTh } from "/components/SortableTable";
@@ -59,11 +60,7 @@ const riskAssessmentsFragment = graphql`
const riskAssessmentFragment = graphql`
fragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {
id
assessedAt
assessedBy {
id
fullName
}
createdAt
expiresAt
dataSensitivity
businessImpact
@@ -72,9 +69,8 @@ const riskAssessmentFragment = graphql`
`;
export default function VendorRiskAssessmentTab() {
const { vendor, peopleId } = useOutletContext<{
const { vendor } = useOutletContext<{
vendor: VendorRiskAssessmentTabFragment$key & { name: string; id: string };
peopleId: string;
}>();
const [data, refetch] = useRefetchableFragment(
riskAssessmentsFragment,
@@ -96,7 +92,6 @@ export default function VendorRiskAssessmentTab() {
<CreateRiskAssessmentDialog
vendorId={vendor.id}
connection={data.riskAssessments.__id}
peopleId={peopleId}
>
<Button icon={IconPlusLarge} variant="secondary">
{__("Add Risk Assessment")}
@@ -114,7 +109,7 @@ export default function VendorRiskAssessmentTab() {
<SortableTable refetch={refetch}>
<Thead>
<Tr>
<SortableTh field="ASSESSED_AT">{__("Assessed By")}</SortableTh>
<SortableTh field="CREATED_AT">{__("Created At")}</SortableTh>
<SortableTh field="EXPIRES_AT">{__("Expires")}</SortableTh>
<Th>{__("Data sensitivity")}</Th>
<Th>{__("Business impact")}</Th>
@@ -125,7 +120,6 @@ export default function VendorRiskAssessmentTab() {
<CreateRiskAssessmentDialog
vendorId={vendor.id}
connection={data.riskAssessments.__id}
peopleId={peopleId}
>
<TrButton colspan={5} onClick={() => {}}>
{__("Add Risk Assessment")}
@@ -178,9 +172,8 @@ function AssessmentRow(props: AssessmentRowProps) {
onClick={() => props.onClick(assessment.id)}
>
<Td>
{assessment.assessedBy?.fullName}
<span className="text-xs text-txt-secondary ml-1">
({relativeDateFormat(assessment.assessedAt)})
{formatDate(assessment.createdAt)}
</span>
</Td>
<Td>

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<68ddff15cd65f5367f7e9ae6b3c38f34>>
* @generated SignedSource<<b6963cdf0e4c8a5c6bb293cb53f8d404>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -13,12 +13,8 @@ export type BusinessImpact = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM";
export type DataSensitivity = "CRITICAL" | "HIGH" | "LOW" | "MEDIUM" | "NONE";
import { FragmentRefs } from "relay-runtime";
export type VendorRiskAssessmentTabFragment_assessment$data = {
readonly assessedAt: any;
readonly assessedBy: {
readonly fullName: string;
readonly id: string;
};
readonly businessImpact: BusinessImpact;
readonly createdAt: any;
readonly dataSensitivity: DataSensitivity;
readonly expiresAt: any;
readonly id: string;
@@ -30,45 +26,24 @@ export type VendorRiskAssessmentTabFragment_assessment$key = {
readonly " $fragmentSpreads": FragmentRefs<"VendorRiskAssessmentTabFragment_assessment">;
};
const node: ReaderFragment = (function(){
var v0 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
};
return {
const node: ReaderFragment = {
"argumentDefinitions": [],
"kind": "Fragment",
"metadata": null,
"name": "VendorRiskAssessmentTabFragment_assessment",
"selections": [
(v0/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"name": "id",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "assessedBy",
"plural": false,
"selections": [
(v0/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"kind": "ScalarField",
"name": "createdAt",
"storageKey": null
},
{
@@ -103,8 +78,7 @@ return {
"type": "VendorRiskAssessment",
"abstractKey": null
};
})();
(node as any).hash = "08d6de198077f9b5985258466bbc33c0";
(node as any).hash = "533771f5fac9e732556929fa2b1d0dc5";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<0bca6db2c1a834fd326761b3544d00ae>>
* @generated SignedSource<<121b4497478f4b5ff67fb8a9daab3774>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -11,7 +11,7 @@
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type OrderDirection = "ASC" | "DESC";
export type VendorRiskAssessmentOrderField = "ASSESSED_AT" | "CREATED_AT" | "EXPIRES_AT";
export type VendorRiskAssessmentOrderField = "CREATED_AT" | "EXPIRES_AT";
export type VendorRiskAssessmentOrder = {
direction: OrderDirection;
field: VendorRiskAssessmentOrderField;
@@ -216,26 +216,7 @@ return {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "assessedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "People",
"kind": "LinkedField",
"name": "assessedBy",
"plural": false,
"selections": [
(v12/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fullName",
"storageKey": null
}
],
"name": "createdAt",
"storageKey": null
},
{
@@ -355,12 +336,12 @@ return {
]
},
"params": {
"cacheID": "26ab0b864c4e22a21c078f70ed7caf93",
"cacheID": "5bf6eff01e3ca53e8da78cba59316a0c",
"id": null,
"metadata": {},
"name": "VendorRiskAssessmentTabQuery",
"operationKind": "query",
"text": "query VendorRiskAssessmentTabQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorRiskAssessmentOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorRiskAssessmentTabFragment_16fISc\n id\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_16fISc on Vendor {\n id\n riskAssessments(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n assessedAt\n assessedBy {\n id\n fullName\n }\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n"
"text": "query VendorRiskAssessmentTabQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 50\n $last: Int = null\n $order: VendorRiskAssessmentOrder = null\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...VendorRiskAssessmentTabFragment_16fISc\n id\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_16fISc on Vendor {\n id\n riskAssessments(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...VendorRiskAssessmentTabFragment_assessment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n}\n\nfragment VendorRiskAssessmentTabFragment_assessment on VendorRiskAssessment {\n id\n createdAt\n expiresAt\n dataSensitivity\n businessImpact\n notes\n}\n"
}
};
})();