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 {
|
||||
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>
|
||||
|
||||
@@ -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>(
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user