Finish compliance portal rename leftovers across portal, trust, and n8n.
Update mailing list queries to currentCompliancePortal, and include regenerated console resolvers plus sorted n8n/frontend imports from the rename. Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -43,11 +43,9 @@ export const subscribeDialogProviderFragment = graphql`
|
|||||||
viewer {
|
viewer {
|
||||||
email
|
email
|
||||||
}
|
}
|
||||||
currentTrustCenter @required(action: THROW) {
|
currentCompliancePortal @required(action: THROW) {
|
||||||
id
|
id
|
||||||
organization {
|
title
|
||||||
name
|
|
||||||
}
|
|
||||||
viewerSubscription {
|
viewerSubscription {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
@@ -73,7 +71,7 @@ export function SubscribeDialogProvider({
|
|||||||
const [unsubscribeFromMailingList, isUnsubscribing] = useUnsubscribeFromMailingList();
|
const [unsubscribeFromMailingList, isUnsubscribing] = useUnsubscribeFromMailingList();
|
||||||
|
|
||||||
const viewer = data.viewer;
|
const viewer = data.viewer;
|
||||||
const { id: trustCenterId, organization, viewerSubscription } = data.currentTrustCenter;
|
const { id: trustCenterId, title, viewerSubscription } = data.currentCompliancePortal;
|
||||||
const isSubscribed = viewerSubscription != null;
|
const isSubscribed = viewerSubscription != null;
|
||||||
|
|
||||||
const openSubscribe = useCallback(() => {
|
const openSubscribe = useCallback(() => {
|
||||||
@@ -129,7 +127,7 @@ export function SubscribeDialogProvider({
|
|||||||
onOpenChange={setDialogOpen}
|
onOpenChange={setDialogOpen}
|
||||||
trustCenterId={trustCenterId}
|
trustCenterId={trustCenterId}
|
||||||
viewerEmail={viewer.email}
|
viewerEmail={viewer.email}
|
||||||
organizationName={organization.name}
|
organizationName={title}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</SubscribeDialogContextProvider>
|
</SubscribeDialogContextProvider>
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ const subscribeToMailingListMutation = graphql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// Subscribes the authenticated viewer to the trust center mailing list and
|
// Subscribes the authenticated viewer to the compliance portal mailing list and
|
||||||
// links the new subscriber onto currentTrustCenter.viewerSubscription.
|
// links the new subscriber onto currentCompliancePortal.viewerSubscription.
|
||||||
export function useSubscribeToMailingList(trustCenterId: string) {
|
export function useSubscribeToMailingList(trustCenterId: string) {
|
||||||
const { t } = useTranslation("updates");
|
const { t } = useTranslation("updates");
|
||||||
const [commit, isSubscribing] = useMutation<useSubscribeToMailingListMutation>(
|
const [commit, isSubscribing] = useMutation<useSubscribeToMailingListMutation>(
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ import type { PreloadedQuery } from "react-relay";
|
|||||||
import { graphql, usePreloadedQuery } from "react-relay";
|
import { graphql, usePreloadedQuery } from "react-relay";
|
||||||
|
|
||||||
import { ComplianceFrameworksSection } from "#/components/ComplianceFrameworks/ComplianceFrameworksSection";
|
import { ComplianceFrameworksSection } from "#/components/ComplianceFrameworks/ComplianceFrameworksSection";
|
||||||
import { Hero } from "#/components/Hero/Hero";
|
|
||||||
import { CompliancePortalContactInfo } from "#/components/Hero/CompliancePortalContactInfo";
|
import { CompliancePortalContactInfo } from "#/components/Hero/CompliancePortalContactInfo";
|
||||||
|
import { Hero } from "#/components/Hero/Hero";
|
||||||
import { RecentUpdatesSection } from "#/components/RecentUpdates/RecentUpdatesSection";
|
import { RecentUpdatesSection } from "#/components/RecentUpdates/RecentUpdatesSection";
|
||||||
import { SecurityCommitmentsSection } from "#/components/SecurityCommitments/SecurityCommitmentsSection";
|
import { SecurityCommitmentsSection } from "#/components/SecurityCommitments/SecurityCommitmentsSection";
|
||||||
import { TrustedBySection } from "#/components/TrustedBy/TrustedBySection";
|
import { TrustedBySection } from "#/components/TrustedBy/TrustedBySection";
|
||||||
|
|||||||
@@ -31,11 +31,11 @@ import type { DocumentsPage_query$key } from "./__generated__/DocumentsPage_quer
|
|||||||
import type { DocumentsPageQuery } from "./__generated__/DocumentsPageQuery.graphql";
|
import type { DocumentsPageQuery } from "./__generated__/DocumentsPageQuery.graphql";
|
||||||
import type { DocumentsPageRefetchQuery } from "./__generated__/DocumentsPageRefetchQuery.graphql";
|
import type { DocumentsPageRefetchQuery } from "./__generated__/DocumentsPageRefetchQuery.graphql";
|
||||||
import { AuditReportListItem } from "./_components/AuditReportListItem";
|
import { AuditReportListItem } from "./_components/AuditReportListItem";
|
||||||
|
import { CompliancePortalFileListItem } from "./_components/CompliancePortalFileListItem";
|
||||||
import { DocumentListItem } from "./_components/DocumentListItem";
|
import { DocumentListItem } from "./_components/DocumentListItem";
|
||||||
import { DocumentSection } from "./_components/DocumentSection";
|
import { DocumentSection } from "./_components/DocumentSection";
|
||||||
import { DocumentsEmpty } from "./_components/DocumentsEmpty";
|
import { DocumentsEmpty } from "./_components/DocumentsEmpty";
|
||||||
import { DocumentsToolbar } from "./_components/DocumentsToolbar";
|
import { DocumentsToolbar } from "./_components/DocumentsToolbar";
|
||||||
import { CompliancePortalFileListItem } from "./_components/CompliancePortalFileListItem";
|
|
||||||
import { toQueryVariables } from "./_lib/toQueryVariables";
|
import { toQueryVariables } from "./_lib/toQueryVariables";
|
||||||
import { useDocumentTab } from "./_lib/useDocumentTab";
|
import { useDocumentTab } from "./_lib/useDocumentTab";
|
||||||
import { documentsLayout } from "./variants";
|
import { documentsLayout } from "./variants";
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ import { graphql } from "relay-runtime";
|
|||||||
|
|
||||||
import { PDFPreview } from "#/components/PDFPreview";
|
import { PDFPreview } from "#/components/PDFPreview";
|
||||||
|
|
||||||
|
import type { DocumentPageExportCompliancePortalFileMutation } from "./__generated__/DocumentPageExportCompliancePortalFileMutation.graphql";
|
||||||
import type { DocumentPageExportDocumentMutation } from "./__generated__/DocumentPageExportDocumentMutation.graphql";
|
import type { DocumentPageExportDocumentMutation } from "./__generated__/DocumentPageExportDocumentMutation.graphql";
|
||||||
import type { DocumentPageExportReportMutation } from "./__generated__/DocumentPageExportReportMutation.graphql";
|
import type { DocumentPageExportReportMutation } from "./__generated__/DocumentPageExportReportMutation.graphql";
|
||||||
import type { DocumentPageExportCompliancePortalFileMutation } from "./__generated__/DocumentPageExportCompliancePortalFileMutation.graphql";
|
|
||||||
import type { DocumentPageQuery as DocumentPageQueryType } from "./__generated__/DocumentPageQuery.graphql";
|
import type { DocumentPageQuery as DocumentPageQueryType } from "./__generated__/DocumentPageQuery.graphql";
|
||||||
|
import type { DocumentPageRequestCompliancePortalFileAccessMutation } from "./__generated__/DocumentPageRequestCompliancePortalFileAccessMutation.graphql";
|
||||||
import type { DocumentPageRequestDocumentAccessMutation } from "./__generated__/DocumentPageRequestDocumentAccessMutation.graphql";
|
import type { DocumentPageRequestDocumentAccessMutation } from "./__generated__/DocumentPageRequestDocumentAccessMutation.graphql";
|
||||||
import type { DocumentPageRequestReportAccessMutation } from "./__generated__/DocumentPageRequestReportAccessMutation.graphql";
|
import type { DocumentPageRequestReportAccessMutation } from "./__generated__/DocumentPageRequestReportAccessMutation.graphql";
|
||||||
import type { DocumentPageRequestCompliancePortalFileAccessMutation } from "./__generated__/DocumentPageRequestCompliancePortalFileAccessMutation.graphql";
|
|
||||||
|
|
||||||
export const documentPageQuery = graphql`
|
export const documentPageQuery = graphql`
|
||||||
query DocumentPageQuery($alias: String!) {
|
query DocumentPageQuery($alias: String!) {
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ import { useTranslate } from "@probo/i18n";
|
|||||||
import { Fragment } from "react";
|
import { Fragment } from "react";
|
||||||
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
|
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
|
||||||
|
|
||||||
|
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
|
||||||
import { DocumentRow } from "#/components/DocumentRow";
|
import { DocumentRow } from "#/components/DocumentRow";
|
||||||
import { RowHeader } from "#/components/RowHeader";
|
import { RowHeader } from "#/components/RowHeader";
|
||||||
import { Rows } from "#/components/Rows";
|
import { Rows } from "#/components/Rows";
|
||||||
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
|
|
||||||
import { documentTypeLabel } from "#/helpers/documents";
|
import { documentTypeLabel } from "#/helpers/documents";
|
||||||
import type { CompliancePortalGraphCurrentDocumentsQuery } from "#/queries/__generated__/CompliancePortalGraphCurrentDocumentsQuery.graphql";
|
import type { CompliancePortalGraphCurrentDocumentsQuery } from "#/queries/__generated__/CompliancePortalGraphCurrentDocumentsQuery.graphql";
|
||||||
import { currentTrustDocumentsQuery } from "#/queries/CompliancePortalGraph";
|
import { currentTrustDocumentsQuery } from "#/queries/CompliancePortalGraph";
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ import { Link, useOutletContext } from "react-router";
|
|||||||
import { graphql } from "relay-runtime";
|
import { graphql } from "relay-runtime";
|
||||||
|
|
||||||
import { AuditRow } from "#/components/AuditRow";
|
import { AuditRow } from "#/components/AuditRow";
|
||||||
|
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
|
||||||
import { DocumentRow } from "#/components/DocumentRow";
|
import { DocumentRow } from "#/components/DocumentRow";
|
||||||
import { RowHeader } from "#/components/RowHeader";
|
import { RowHeader } from "#/components/RowHeader";
|
||||||
import { Rows } from "#/components/Rows";
|
import { Rows } from "#/components/Rows";
|
||||||
import { SubprocessorRow } from "#/components/SubprocessorRow";
|
import { SubprocessorRow } from "#/components/SubprocessorRow";
|
||||||
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
|
|
||||||
import { documentTypeLabel } from "#/helpers/documents";
|
import { documentTypeLabel } from "#/helpers/documents";
|
||||||
import type { CompliancePortalGraphCurrentQuery$data } from "#/queries/__generated__/CompliancePortalGraphCurrentQuery.graphql";
|
import type { CompliancePortalGraphCurrentQuery$data } from "#/queries/__generated__/CompliancePortalGraphCurrentQuery.graphql";
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ import { OverviewPage } from "#/pages/OverviewPage";
|
|||||||
import { SubprocessorsPage } from "#/pages/SubprocessorsPage";
|
import { SubprocessorsPage } from "#/pages/SubprocessorsPage";
|
||||||
import { currentTrustUpdatesQuery, UpdatesPage } from "#/pages/UpdatesPage";
|
import { currentTrustUpdatesQuery, UpdatesPage } from "#/pages/UpdatesPage";
|
||||||
import {
|
import {
|
||||||
currentTrustDocumentsQuery,
|
|
||||||
currentCompliancePortalGraphQuery,
|
currentCompliancePortalGraphQuery,
|
||||||
|
currentTrustDocumentsQuery,
|
||||||
currentTrustSubprocessorsQuery,
|
currentTrustSubprocessorsQuery,
|
||||||
} from "#/queries/CompliancePortalGraph";
|
} from "#/queries/CompliancePortalGraph";
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,11 @@ export class Probo implements INodeType {
|
|||||||
value: 'auditLog',
|
value: 'auditLog',
|
||||||
description: 'View audit log entries',
|
description: 'View audit log entries',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Compliance Portal',
|
||||||
|
value: 'compliancePortal',
|
||||||
|
description: 'Manage compliance portal',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Control',
|
name: 'Control',
|
||||||
value: 'control',
|
value: 'control',
|
||||||
@@ -222,11 +227,6 @@ export class Probo implements INodeType {
|
|||||||
value: 'trackerPattern',
|
value: 'trackerPattern',
|
||||||
description: 'Manage tracker patterns',
|
description: 'Manage tracker patterns',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Compliance Portal',
|
|
||||||
value: 'compliancePortal',
|
|
||||||
description: 'Manage compliance portal',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'User',
|
name: 'User',
|
||||||
value: 'user',
|
value: 'user',
|
||||||
|
|||||||
@@ -62,6 +62,18 @@ export const description: INodeProperties[] = [
|
|||||||
default: 'INTERNAL',
|
default: 'INTERNAL',
|
||||||
description: 'The classification of the document. Updating it edits the current draft version, creating one from the latest published version if none exists.',
|
description: 'The classification of the document. Updating it edits the current draft version, creating one from the latest published version if none exists.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Compliance Portal Visibility',
|
||||||
|
name: 'compliancePortalVisibility',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{ name: 'None', value: 'NONE' },
|
||||||
|
{ name: 'Private', value: 'PRIVATE' },
|
||||||
|
{ name: 'Public', value: 'PUBLIC' },
|
||||||
|
],
|
||||||
|
default: 'NONE',
|
||||||
|
description: 'The compliance portal visibility of the document',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Content',
|
displayName: 'Content',
|
||||||
name: 'content',
|
name: 'content',
|
||||||
@@ -104,18 +116,6 @@ export const description: INodeProperties[] = [
|
|||||||
default: '',
|
default: '',
|
||||||
description: 'The title of the document. Updating it edits the current draft version, creating one from the latest published version if none exists.',
|
description: 'The title of the document. Updating it edits the current draft version, creating one from the latest published version if none exists.',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
displayName: 'Compliance Portal Visibility',
|
|
||||||
name: 'compliancePortalVisibility',
|
|
||||||
type: 'options',
|
|
||||||
options: [
|
|
||||||
{ name: 'None', value: 'NONE' },
|
|
||||||
{ name: 'Private', value: 'PRIVATE' },
|
|
||||||
{ name: 'Public', value: 'PUBLIC' },
|
|
||||||
],
|
|
||||||
default: 'NONE',
|
|
||||||
description: 'The compliance portal visibility of the document',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user