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:
Bryan Frimin
2026-07-20 22:48:38 +02:00
parent 75075bcb15
commit 3f6795001a
11 changed files with 679 additions and 681 deletions

View File

@@ -43,11 +43,9 @@ export const subscribeDialogProviderFragment = graphql`
viewer {
email
}
currentTrustCenter @required(action: THROW) {
currentCompliancePortal @required(action: THROW) {
id
organization {
name
}
title
viewerSubscription {
id
}
@@ -73,7 +71,7 @@ export function SubscribeDialogProvider({
const [unsubscribeFromMailingList, isUnsubscribing] = useUnsubscribeFromMailingList();
const viewer = data.viewer;
const { id: trustCenterId, organization, viewerSubscription } = data.currentTrustCenter;
const { id: trustCenterId, title, viewerSubscription } = data.currentCompliancePortal;
const isSubscribed = viewerSubscription != null;
const openSubscribe = useCallback(() => {
@@ -129,7 +127,7 @@ export function SubscribeDialogProvider({
onOpenChange={setDialogOpen}
trustCenterId={trustCenterId}
viewerEmail={viewer.email}
organizationName={organization.name}
organizationName={title}
/>
)}
</SubscribeDialogContextProvider>

View File

@@ -36,8 +36,8 @@ const subscribeToMailingListMutation = graphql`
}
`;
// Subscribes the authenticated viewer to the trust center mailing list and
// links the new subscriber onto currentTrustCenter.viewerSubscription.
// Subscribes the authenticated viewer to the compliance portal mailing list and
// links the new subscriber onto currentCompliancePortal.viewerSubscription.
export function useSubscribeToMailingList(trustCenterId: string) {
const { t } = useTranslation("updates");
const [commit, isSubscribing] = useMutation<useSubscribeToMailingListMutation>(

View File

@@ -23,8 +23,8 @@ import type { PreloadedQuery } from "react-relay";
import { graphql, usePreloadedQuery } from "react-relay";
import { ComplianceFrameworksSection } from "#/components/ComplianceFrameworks/ComplianceFrameworksSection";
import { Hero } from "#/components/Hero/Hero";
import { CompliancePortalContactInfo } from "#/components/Hero/CompliancePortalContactInfo";
import { Hero } from "#/components/Hero/Hero";
import { RecentUpdatesSection } from "#/components/RecentUpdates/RecentUpdatesSection";
import { SecurityCommitmentsSection } from "#/components/SecurityCommitments/SecurityCommitmentsSection";
import { TrustedBySection } from "#/components/TrustedBy/TrustedBySection";

View File

@@ -31,11 +31,11 @@ import type { DocumentsPage_query$key } from "./__generated__/DocumentsPage_quer
import type { DocumentsPageQuery } from "./__generated__/DocumentsPageQuery.graphql";
import type { DocumentsPageRefetchQuery } from "./__generated__/DocumentsPageRefetchQuery.graphql";
import { AuditReportListItem } from "./_components/AuditReportListItem";
import { CompliancePortalFileListItem } from "./_components/CompliancePortalFileListItem";
import { DocumentListItem } from "./_components/DocumentListItem";
import { DocumentSection } from "./_components/DocumentSection";
import { DocumentsEmpty } from "./_components/DocumentsEmpty";
import { DocumentsToolbar } from "./_components/DocumentsToolbar";
import { CompliancePortalFileListItem } from "./_components/CompliancePortalFileListItem";
import { toQueryVariables } from "./_lib/toQueryVariables";
import { useDocumentTab } from "./_lib/useDocumentTab";
import { documentsLayout } from "./variants";

View File

@@ -41,13 +41,13 @@ import { graphql } from "relay-runtime";
import { PDFPreview } from "#/components/PDFPreview";
import type { DocumentPageExportCompliancePortalFileMutation } from "./__generated__/DocumentPageExportCompliancePortalFileMutation.graphql";
import type { DocumentPageExportDocumentMutation } from "./__generated__/DocumentPageExportDocumentMutation.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 { DocumentPageRequestCompliancePortalFileAccessMutation } from "./__generated__/DocumentPageRequestCompliancePortalFileAccessMutation.graphql";
import type { DocumentPageRequestDocumentAccessMutation } from "./__generated__/DocumentPageRequestDocumentAccessMutation.graphql";
import type { DocumentPageRequestReportAccessMutation } from "./__generated__/DocumentPageRequestReportAccessMutation.graphql";
import type { DocumentPageRequestCompliancePortalFileAccessMutation } from "./__generated__/DocumentPageRequestCompliancePortalFileAccessMutation.graphql";
export const documentPageQuery = graphql`
query DocumentPageQuery($alias: String!) {

View File

@@ -23,10 +23,10 @@ import { useTranslate } from "@probo/i18n";
import { Fragment } from "react";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
import { DocumentRow } from "#/components/DocumentRow";
import { RowHeader } from "#/components/RowHeader";
import { Rows } from "#/components/Rows";
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
import { documentTypeLabel } from "#/helpers/documents";
import type { CompliancePortalGraphCurrentDocumentsQuery } from "#/queries/__generated__/CompliancePortalGraphCurrentDocumentsQuery.graphql";
import { currentTrustDocumentsQuery } from "#/queries/CompliancePortalGraph";

View File

@@ -32,11 +32,11 @@ import { Link, useOutletContext } from "react-router";
import { graphql } from "relay-runtime";
import { AuditRow } from "#/components/AuditRow";
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
import { DocumentRow } from "#/components/DocumentRow";
import { RowHeader } from "#/components/RowHeader";
import { Rows } from "#/components/Rows";
import { SubprocessorRow } from "#/components/SubprocessorRow";
import { CompliancePortalFileRow } from "#/components/CompliancePortalFileRow";
import { documentTypeLabel } from "#/helpers/documents";
import type { CompliancePortalGraphCurrentQuery$data } from "#/queries/__generated__/CompliancePortalGraphCurrentQuery.graphql";

View File

@@ -35,8 +35,8 @@ import { OverviewPage } from "#/pages/OverviewPage";
import { SubprocessorsPage } from "#/pages/SubprocessorsPage";
import { currentTrustUpdatesQuery, UpdatesPage } from "#/pages/UpdatesPage";
import {
currentTrustDocumentsQuery,
currentCompliancePortalGraphQuery,
currentTrustDocumentsQuery,
currentTrustSubprocessorsQuery,
} from "#/queries/CompliancePortalGraph";

View File

@@ -97,6 +97,11 @@ export class Probo implements INodeType {
value: 'auditLog',
description: 'View audit log entries',
},
{
name: 'Compliance Portal',
value: 'compliancePortal',
description: 'Manage compliance portal',
},
{
name: 'Control',
value: 'control',
@@ -222,11 +227,6 @@ export class Probo implements INodeType {
value: 'trackerPattern',
description: 'Manage tracker patterns',
},
{
name: 'Compliance Portal',
value: 'compliancePortal',
description: 'Manage compliance portal',
},
{
name: 'User',
value: 'user',

View File

@@ -62,6 +62,18 @@ export const description: INodeProperties[] = [
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.',
},
{
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',
name: 'content',
@@ -104,18 +116,6 @@ export const description: INodeProperties[] = [
default: '',
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