diff --git a/apps/console/src/hooks/graph/TrustCenterGraph.ts b/apps/console/src/hooks/graph/TrustCenterGraph.ts index 0ed1c7e43..70c0031d6 100644 --- a/apps/console/src/hooks/graph/TrustCenterGraph.ts +++ b/apps/console/src/hooks/graph/TrustCenterGraph.ts @@ -19,8 +19,8 @@ export function useUpdateTrustCenterMutation() { return useMutationWithToasts( updateTrustCenterMutation, { - successMessage: "Trust center updated successfully", - errorMessage: "Failed to update trust center", + successMessage: "Compliance Page updated successfully", + errorMessage: "Failed to update compliance page", }, ); } diff --git a/apps/console/src/layouts/PublicTrustCenterLayout.tsx b/apps/console/src/layouts/PublicTrustCenterLayout.tsx deleted file mode 100644 index 8a824794d..000000000 --- a/apps/console/src/layouts/PublicTrustCenterLayout.tsx +++ /dev/null @@ -1,105 +0,0 @@ -import { useTranslate } from "@probo/i18n"; -import { Button, IconArrowBoxLeft, Logo, useToast } from "@probo/ui"; -import type { ReactNode } from "react"; -import { Outlet } from "react-router"; - -type Props = { - organizationName: string; - organizationLogo?: string | null; - children?: ReactNode; - isAuthenticated?: boolean; -}; - -export function PublicTrustCenterLayout({ - organizationName, - organizationLogo, - children, - isAuthenticated, -}: Props) { - const { __ } = useTranslate(); - const { toast } = useToast(); - - const handleLogout = async () => { - try { - const response = await fetch("/api/trust/v1/auth/logout", { - method: "DELETE", - headers: { - "Content-Type": "application/json", - }, - credentials: "include", - }); - - if (!response.ok) { - throw new Error("Logout failed"); - } - - window.location.reload(); - } catch { - toast({ - title: __("Error"), - description: __("Logout failed"), - variant: "error", - }); - } - }; - - return ( -
-
-
-
-
- {organizationLogo - ? ( - {organizationName} - ) - : ( - - )} -
-

- {organizationName} -

-

Trust Center

-
-
-
- - {isAuthenticated && ( -
-
-
-
- -
- {children || } -
-
- ); -} diff --git a/apps/console/src/pages/organizations/compliance-page/access/CompliancePageAccessPage.tsx b/apps/console/src/pages/organizations/compliance-page/access/CompliancePageAccessPage.tsx index 73200d53d..0825631e5 100644 --- a/apps/console/src/pages/organizations/compliance-page/access/CompliancePageAccessPage.tsx +++ b/apps/console/src/pages/organizations/compliance-page/access/CompliancePageAccessPage.tsx @@ -49,7 +49,7 @@ export function CompliancePageAccessPage(props: { queryRef: PreloadedQuery{__("External Access")}

{__( - "Manage who can access your trust center with time-limited tokens", + "Manage who can access your compliance page", )}

diff --git a/apps/console/src/pages/organizations/compliance-page/access/_components/NewCompliancePageAccessDialog.tsx b/apps/console/src/pages/organizations/compliance-page/access/_components/NewCompliancePageAccessDialog.tsx index 48d1bfc62..79d778091 100644 --- a/apps/console/src/pages/organizations/compliance-page/access/_components/NewCompliancePageAccessDialog.tsx +++ b/apps/console/src/pages/organizations/compliance-page/access/_components/NewCompliancePageAccessDialog.tsx @@ -92,7 +92,7 @@ export function NewCompliancePageAccessDialog(props: {

- {__("Give a person access to your trust center")} + {__("Give a person access to your compliance page")}

{__("Files")}

- {__("Upload and manage files for your trust center")} + {__("Upload and manage files for your compliance page")}

{organization.canCreateTrustCenterFile && ( diff --git a/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageNDASection.tsx b/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageNDASection.tsx index 288677c01..d7462116d 100644 --- a/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageNDASection.tsx +++ b/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageNDASection.tsx @@ -34,7 +34,7 @@ export function CompliancePageNDASection(props: { fragmentRef: CompliancePageNDA if (!organization.compliancePage?.id) { toast({ title: __("Error"), - description: __("Trust center not found"), + description: __("Compliance page not found"), variant: "error", }); return; @@ -62,7 +62,7 @@ export function CompliancePageNDASection(props: { fragmentRef: CompliancePageNDA if (!organization.compliancePage?.id) { toast({ title: __("Error"), - description: __("Trust center not found"), + description: __("Compliance page not found"), variant: "error", }); return; @@ -96,7 +96,7 @@ export function CompliancePageNDASection(props: { fragmentRef: CompliancePageNDA ? (

{__( - "Upload a Non-Disclosure Agreement that visitors must accept before accessing your trust center", + "Upload a Non-Disclosure Agreement that visitors must accept before accessing your compliance page", )}

) @@ -116,7 +116,7 @@ export function CompliancePageNDASection(props: { fragmentRef: CompliancePageNDA

{__( - "Visitors will need to accept this NDA before accessing your trust center", + "Visitors will need to accept this NDA before accessing your compliance page", )}

diff --git a/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageSlackSection.tsx b/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageSlackSection.tsx index 25d8c9359..9acae58ce 100644 --- a/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageSlackSection.tsx +++ b/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageSlackSection.tsx @@ -64,7 +64,7 @@ export function CompliancePageSlackSection(props: { fragmentRef: CompliancePageS )} ) - : __("Manage your trust center access with slack")} + : __("Manage your compliance page access with slack")}

{slackConnection.createdAt diff --git a/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageStatusSection.tsx b/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageStatusSection.tsx index 0c49e1a2e..911b5d4b9 100644 --- a/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageStatusSection.tsx +++ b/apps/console/src/pages/organizations/compliance-page/overview/_components/CompliancePageStatusSection.tsx @@ -44,7 +44,7 @@ export function CompliancePageStatusSection(props: { if (!organization.compliancePage?.id) { toast({ title: __("Error"), - description: __("Trust center not found"), + description: __("Compliance page not found"), variant: "error", }); return; @@ -63,7 +63,7 @@ export function CompliancePageStatusSection(props: { return (
-

{__("Trust Center Status")}

+

{__("Compliance Page Status")}

{isUpdating && }
@@ -72,7 +72,7 @@ export function CompliancePageStatusSection(props: {

{__("Activate Compliance Page")}

{__( - "Make your Compliance Page publicly accessible to build customer confidence", + "Make your compliance page publicly accessible to build customer confidence", )}

@@ -88,7 +88,7 @@ export function CompliancePageStatusSection(props: {

- {__("Your Compliance Page is live!")} + {__("Your compliance page is live!")}

{__("Your customers can now access your compliance page at:")} @@ -116,11 +116,11 @@ export function CompliancePageStatusSection(props: { {!organization.compliancePage?.active && (

- {__("Compliance Page is inactive")} + {__("Compliance page is inactive")}

{__( - "Your Compliance Page is currently not accessible to the public. Enable it to start sharing your compliance status.", + "Your compliance page is currently not accessible to the public. Enable it to start sharing your compliance status.", )}

diff --git a/apps/console/src/pages/organizations/settings/DomainSettingsPage.tsx b/apps/console/src/pages/organizations/settings/DomainSettingsPage.tsx index 068234683..47c997f00 100644 --- a/apps/console/src/pages/organizations/settings/DomainSettingsPage.tsx +++ b/apps/console/src/pages/organizations/settings/DomainSettingsPage.tsx @@ -54,7 +54,7 @@ export function DomainSettingsPage(props: {

{__( - "Add your own domain to make your trust center more professional", + "Add your own domain to make your compliance page more professional", )}

diff --git a/apps/trust/index.html b/apps/trust/index.html index d39ba7dd9..0a1c5e715 100644 --- a/apps/trust/index.html +++ b/apps/trust/index.html @@ -26,7 +26,7 @@ - Trust Center + Compliance Page diff --git a/apps/trust/src/components/NDADialog.tsx b/apps/trust/src/components/NDADialog.tsx index db107c4d2..7c7d68106 100644 --- a/apps/trust/src/components/NDADialog.tsx +++ b/apps/trust/src/components/NDADialog.tsx @@ -85,7 +85,7 @@ export function NDADialog({

{sprintf( __( - "Access to %s Trust Center documents requires signing a Non-Disclosure Agreement (NDA). Please review the agreement below. Once signed, you’ll receive immediate access to the requested documents.", + "Access to %s compliance page documents requires signing a Non-Disclosure Agreement (NDA). Please review the agreement below. Once signed, you’ll receive immediate access to the requested documents.", ), organizationName, )} diff --git a/apps/trust/src/components/PageError.tsx b/apps/trust/src/components/PageError.tsx index 6952143c7..6328624f9 100644 --- a/apps/trust/src/components/PageError.tsx +++ b/apps/trust/src/components/PageError.tsx @@ -57,7 +57,7 @@ export function PageError({ resetErrorBoundary, error: propsError }: Props) { : __("Invalid Access Link"); const description = isExpiredToken ? __( - "This access link has expired. Trust center access links are valid for 7 days for security reasons.", + "This access link has expired. Compliance page access links are valid for 7 days for security reasons.", ) : __( "This access link is not valid. It may have been revoked or the link might be incorrect.", diff --git a/packages/emails/emails.go b/packages/emails/emails.go index 57dc59275..4db50d8db 100644 --- a/packages/emails/emails.go +++ b/packages/emails/emails.go @@ -35,8 +35,8 @@ const ( subjectDocumentSigning = "Action Required – Please review and sign %s compliance documents" subjectDocumentExport = "Your document export is ready" subjectFrameworkExport = "Your framework export is ready" - subjectTrustCenterAccess = "Trust Center Access Invitation - %s" - subjectTrustCenterDocumentAccessRejected = "Trust Center Document Access Rejected - %s" + subjectTrustCenterAccess = "Compliance Page Access Invitation - %s" + subjectTrustCenterDocumentAccessRejected = "Compliance Page Document Access Rejected - %s" subjectMagicLink = "Connect to Probo" ) diff --git a/packages/emails/src/TrustCenterAccess.tsx b/packages/emails/src/TrustCenterAccess.tsx index a60c4a01b..09d65fe90 100644 --- a/packages/emails/src/TrustCenterAccess.tsx +++ b/packages/emails/src/TrustCenterAccess.tsx @@ -10,17 +10,17 @@ import EmailLayout, { export const TrustCenterAccess = () => { return ( You have been granted access to{" "} - {"{{.OrganizationName}}"}'s Trust Center! Click the + {"{{.OrganizationName}}"}'s compliance page! Click the button below to access it:

diff --git a/packages/emails/src/TrustCenterDocumentAccessRejected.tsx b/packages/emails/src/TrustCenterDocumentAccessRejected.tsx index e12811af5..a911879c0 100644 --- a/packages/emails/src/TrustCenterDocumentAccessRejected.tsx +++ b/packages/emails/src/TrustCenterDocumentAccessRejected.tsx @@ -4,9 +4,9 @@ import EmailLayout, { bodyText } from './components/EmailLayout'; export const TrustCenterDocumentAccessRejected = () => { return ( - + - Your access request to the following files in {'{{.OrganizationName}}'}'s Trust Center has been rejected: + Your access request to the following files in {'{{.OrganizationName}}'}'s compliance page has been rejected: diff --git a/packages/emails/templates/trust-center-access.txt b/packages/emails/templates/trust-center-access.txt index 71ebab3d1..3beb6deb3 100644 --- a/packages/emails/templates/trust-center-access.txt +++ b/packages/emails/templates/trust-center-access.txt @@ -2,7 +2,7 @@ Probo Hi {{.FullName}}, -You have been granted access to {{.OrganizationName}}'s Trust Center! Click the link below to access it: +You have been granted access to {{.OrganizationName}}'s compliance page! Click the link below to access it: {{.AccessUrl}} diff --git a/packages/emails/templates/trust-center-document-access-rejected.txt b/packages/emails/templates/trust-center-document-access-rejected.txt index a4082b6e1..3d5ca94bd 100644 --- a/packages/emails/templates/trust-center-document-access-rejected.txt +++ b/packages/emails/templates/trust-center-document-access-rejected.txt @@ -2,7 +2,7 @@ Probo Hi {{.FullName}}, -Your access request to the following files in {{.OrganizationName}}'s Trust Center has been rejected: +Your access request to the following files in {{.OrganizationName}}'s compliance page has been rejected: {{range .FileNames}} - {{.}}