Move trust center profile onto the page

Store website, email, and headquarters on the trust center so
public and admin surfaces read branding from one place. Drop the
trust API organization type and wire console, MCP, CLI, and apps
through the updated schema.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-13 14:17:22 +02:00
parent ec80798243
commit ba53c94bdc
36 changed files with 167 additions and 155 deletions

View File

@@ -44,9 +44,7 @@ const topBarFragment = graphql`
} }
currentTrustCenter @required(action: THROW) { currentTrustCenter @required(action: THROW) {
themedLogoUrl themedLogoUrl
organization { title
name
}
} }
} }
`; `;
@@ -66,7 +64,7 @@ export function TopBar({ queryKey }: TopBarProps) {
const { openSignIn } = useSignInDialog(); const { openSignIn } = useSignInDialog();
const { currentTrustCenter } = data; const { currentTrustCenter } = data;
const organizationName = currentTrustCenter.organization.name; const title = currentTrustCenter.title;
const logoUrl = currentTrustCenter.themedLogoUrl ?? undefined; const logoUrl = currentTrustCenter.themedLogoUrl ?? undefined;
const slots = topBar(); const slots = topBar();
@@ -81,11 +79,11 @@ export function TopBar({ queryKey }: TopBarProps) {
color="neutral" color="neutral"
radius="small" radius="small"
src={logoUrl} src={logoUrl}
fallback={organizationName.charAt(0) || "?"} fallback={title.charAt(0) || "?"}
className={slots.logo()} className={slots.logo()}
/> />
<Text size={2} weight="medium" color="neutral" highContrast className={slots.brandName()}> <Text size={2} weight="medium" color="neutral" highContrast className={slots.brandName()}>
{organizationName} {title}
</Text> </Text>
<Text size={2} color="neutral" className={slots.tagline()}> <Text size={2} color="neutral" className={slots.tagline()}>
{t("topBar.tagline")} {t("topBar.tagline")}

View File

@@ -34,9 +34,7 @@ import type { HomePageQuery } from "./__generated__/HomePageQuery.graphql";
export const homePageQuery = graphql` export const homePageQuery = graphql`
query HomePageQuery @throwOnFieldError { query HomePageQuery @throwOnFieldError {
currentTrustCenter @required(action: THROW) { currentTrustCenter @required(action: THROW) {
organization { title
name
}
...TrustCenterContactInfo_trustCenter ...TrustCenterContactInfo_trustCenter
...ComplianceFrameworksSection_trustCenter ...ComplianceFrameworksSection_trustCenter
...SecurityCommitmentsSection_trustCenter ...SecurityCommitmentsSection_trustCenter
@@ -54,12 +52,12 @@ export function HomePage({ queryRef }: HomePageProps) {
const { t } = useTranslation(); const { t } = useTranslation();
const data = usePreloadedQuery<HomePageQuery>(homePageQuery, queryRef); const data = usePreloadedQuery<HomePageQuery>(homePageQuery, queryRef);
const { currentTrustCenter } = data; const { currentTrustCenter } = data;
const { organization } = currentTrustCenter; const { title } = currentTrustCenter;
return ( return (
<> <>
<Hero <Hero
title={t("home.heroTitle", { name: organization.name })} title={t("home.heroTitle", { name: title })}
description={t("home.heroDescription")} description={t("home.heroDescription")}
> >
<TrustCenterContactInfo trustCenterKey={currentTrustCenter} /> <TrustCenterContactInfo trustCenterKey={currentTrustCenter} />

View File

@@ -32,6 +32,7 @@ const updateCompliancePageMutation = graphql`
id id
active active
searchEngineIndexing searchEngineIndexing
title
description description
websiteUrl websiteUrl
email email

View File

@@ -25,6 +25,7 @@ import { useFormWithSchema } from "#/hooks/useFormWithSchema";
const compliancePageFragment = graphql` const compliancePageFragment = graphql`
fragment CompliancePageProfileSection_compliancePageFragment on TrustCenter { fragment CompliancePageProfileSection_compliancePageFragment on TrustCenter {
id id
title
description description
websiteUrl websiteUrl
email email
@@ -34,6 +35,7 @@ const compliancePageFragment = graphql`
`; `;
const profileSchema = z.object({ const profileSchema = z.object({
title: z.string().min(1),
description: z.string().optional(), description: z.string().optional(),
websiteUrl: z.string().optional(), websiteUrl: z.string().optional(),
email: z.string().optional(), email: z.string().optional(),
@@ -56,6 +58,7 @@ export function CompliancePageProfileSection(props: {
const { formState, handleSubmit, register } = useFormWithSchema(profileSchema, { const { formState, handleSubmit, register } = useFormWithSchema(profileSchema, {
defaultValues: { defaultValues: {
title: compliancePage.title,
description: compliancePage.description || "", description: compliancePage.description || "",
websiteUrl: compliancePage.websiteUrl || "", websiteUrl: compliancePage.websiteUrl || "",
email: compliancePage.email || "", email: compliancePage.email || "",
@@ -70,6 +73,7 @@ export function CompliancePageProfileSection(props: {
variables: { variables: {
input: { input: {
trustCenterId: compliancePage.id, trustCenterId: compliancePage.id,
title: data.title,
description: data.description || null, description: data.description || null,
websiteUrl: data.websiteUrl || null, websiteUrl: data.websiteUrl || null,
email: data.email || null, email: data.email || null,
@@ -91,6 +95,13 @@ export function CompliancePageProfileSection(props: {
{formState.isSubmitting && <Spinner />} {formState.isSubmitting && <Spinner />}
</div> </div>
<Card padded className="space-y-4"> <Card padded className="space-y-4">
<Field
{...register("title")}
readOnly={readOnly}
name="title"
label={__("Title")}
placeholder={__("Your company or product name")}
/>
<div> <div>
<Label>{__("Description")}</Label> <Label>{__("Description")}</Label>
<Textarea <Textarea

View File

@@ -185,7 +185,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
<div> <div>
<h2 className="text-base font-medium">{__("Visual identity")}</h2> <h2 className="text-base font-medium">{__("Visual identity")}</h2>
<p className="text-sm text-txt-tertiary"> <p className="text-sm text-txt-tertiary">
{__("Logos displayed on your public compliance page.")} {__("Square logos displayed on your public compliance page.")}
</p> </p>
</div> </div>
{isUpdating && <Spinner />} {isUpdating && <Spinner />}
@@ -196,7 +196,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
<div className="flex-1"> <div className="flex-1">
<Label>{__("Logo")}</Label> <Label>{__("Logo")}</Label>
<p className="text-sm text-txt-tertiary mb-3"> <p className="text-sm text-txt-tertiary mb-3">
{__("This logo will be displayed on your public compliance page.")} {__("Upload a square logo for your public compliance page.")}
</p> </p>
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
@@ -211,7 +211,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
</div> </div>
) )
: ( : (
<div className="flex h-16 w-28 shrink-0 items-center justify-center rounded-md border border-dashed border-border-solid bg-surface-secondary text-xs text-txt-tertiary"> <div className="flex size-16 shrink-0 items-center justify-center rounded-md border border-dashed border-border-solid bg-surface-secondary text-xs text-txt-tertiary">
{__("No logo")} {__("No logo")}
</div> </div>
)} )}
@@ -230,7 +230,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
</FileButton> </FileButton>
{!currentLogoUrl && ( {!currentLogoUrl && (
<p className="text-xs text-txt-tertiary"> <p className="text-xs text-txt-tertiary">
{__("PNG, JPG, SVG, or WEBP up to 5MB")} {__("Square format. PNG, JPG, SVG, or WEBP up to 5MB")}
</p> </p>
)} )}
</div> </div>
@@ -250,7 +250,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
<div className="flex-1"> <div className="flex-1">
<Label>{__("Dark mode logo")}</Label> <Label>{__("Dark mode logo")}</Label>
<p className="text-sm text-txt-tertiary mb-3"> <p className="text-sm text-txt-tertiary mb-3">
{__("This logo will be used when dark mode is enabled.")} {__("Upload a square logo for use when dark mode is enabled.")}
</p> </p>
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
@@ -265,7 +265,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
</div> </div>
) )
: ( : (
<div className="flex h-16 w-28 shrink-0 items-center justify-center rounded-md border border-dashed border-border-solid bg-gray-900 text-xs text-txt-tertiary"> <div className="flex size-16 shrink-0 items-center justify-center rounded-md border border-dashed border-border-solid bg-gray-900 text-xs text-txt-tertiary">
{__("No logo")} {__("No logo")}
</div> </div>
)} )}
@@ -284,7 +284,7 @@ export function CompliancePageVisualIdentitySection(props: CompliancePageVisualI
</FileButton> </FileButton>
{!currentDarkLogoUrl && ( {!currentDarkLogoUrl && (
<p className="text-xs text-txt-tertiary"> <p className="text-xs text-txt-tertiary">
{__("PNG, JPG, SVG, or WEBP up to 5MB")} {__("Square format. PNG, JPG, SVG, or WEBP up to 5MB")}
</p> </p>
)} )}
</div> </div>

View File

@@ -42,6 +42,9 @@ const compliancePageFragment = graphql`
edges { edges {
node { node {
id id
framework {
id
}
...CompliancePageFrameworkListItem_complianceFramework ...CompliancePageFrameworkListItem_complianceFramework
} }
} }
@@ -82,7 +85,7 @@ export function CompliancePageFrameworkList(props: CompliancePageFrameworkListPr
<div className="grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4"> <div className="grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4">
{edges.map(edge => ( {edges.map(edge => (
<CompliancePageFrameworkListItem <CompliancePageFrameworkListItem
key={edge.node.id} key={edge.node.framework.id}
complianceFrameworkKey={edge.node} complianceFrameworkKey={edge.node}
compliancePageKey={compliancePage} compliancePageKey={compliancePage}
onRefetch={handleRefetch} onRefetch={handleRefetch}

View File

@@ -233,7 +233,7 @@ export function OrganizationSidebar({
: ( : (
<div className="size-24 rounded-2xl border border-border-mid shadow-mid bg-level-1" /> <div className="size-24 rounded-2xl border border-border-mid shadow-mid bg-level-1" />
)} )}
<h1 className="text-2xl mt-6">{trustCenter.organization.name}</h1> <h1 className="text-2xl mt-6">{trustCenter.title}</h1>
<p className="text-sm text-txt-secondary mt-1"> <p className="text-sm text-txt-secondary mt-1">
{trustCenter.description} {trustCenter.description}
</p> </p>

View File

@@ -24,7 +24,7 @@ import { TrustCenterContext } from "#/providers/TrustCenterProvider";
export function useTrustCenter(): { export function useTrustCenter(): {
id: string; id: string;
organization: { name: string }; title: string;
} { } {
const context = useContext(TrustCenterContext); const context = useContext(TrustCenterContext);
if (!context) { if (!context) {

View File

@@ -47,9 +47,7 @@ export const ndaPageQuery = graphql`
id id
} }
currentTrustCenter @required(action: THROW) { currentTrustCenter @required(action: THROW) {
organization { title
name
}
nonDisclosureAgreement { nonDisclosureAgreement {
fileName fileName
fileUrl fileUrl
@@ -246,7 +244,7 @@ export function NDAPage(props: {
__( __(
"%s requires you to sign an NDA before accessing compliance documents.", "%s requires you to sign an NDA before accessing compliance documents.",
), ),
trustCenter.organization.name, trustCenter.title,
)} )}
</p> </p>
{isMobile && nda?.fileUrl && ( {isMobile && nda?.fileUrl && (

View File

@@ -107,7 +107,7 @@ export function OverviewPage() {
url={getTrustCenterUrl("documents")} url={getTrustCenterUrl("documents")}
/> />
<Subprocessors <Subprocessors
organizationName={trustCenter.organization.name} title={trustCenter.title}
subprocessors={fragment.subprocessors.edges} subprocessors={fragment.subprocessors.edges}
url={getTrustCenterUrl("subprocessors")} url={getTrustCenterUrl("subprocessors")}
/> />
@@ -187,11 +187,11 @@ function Documents({
function Subprocessors({ function Subprocessors({
subprocessors, subprocessors,
url, url,
organizationName, title,
}: { }: {
subprocessors: OverviewPageFragment$data["subprocessors"]["edges"]; subprocessors: OverviewPageFragment$data["subprocessors"]["edges"];
url: string; url: string;
organizationName: string; title: string;
}) { }) {
const { __ } = useTranslate(); const { __ } = useTranslate();
if (subprocessors.length === 0) { if (subprocessors.length === 0) {
@@ -209,7 +209,7 @@ function Subprocessors({
<p className="text-sm text-txt-secondary mb-4"> <p className="text-sm text-txt-secondary mb-4">
{sprintf( {sprintf(
__("Third-party subprocessors %s work with:"), __("Third-party subprocessors %s work with:"),
organizationName, title,
)} )}
</p> </p>
<Rows className="mb-8 *:py-5"> <Rows className="mb-8 *:py-5">

View File

@@ -45,7 +45,7 @@ export function SubprocessorsPage({ queryRef }: Props) {
<p className="text-sm text-txt-secondary mb-4"> <p className="text-sm text-txt-secondary mb-4">
{sprintf( {sprintf(
__("Third-party subprocessors %s work with:"), __("Third-party subprocessors %s work with:"),
data.currentTrustCenter?.organization.name ?? "", data.currentTrustCenter?.title ?? "",
)} )}
</p> </p>
<Rows> <Rows>

View File

@@ -38,9 +38,7 @@ import { OIDCButton } from "./_components/OIDCButton";
export const connectPageQuery = graphql` export const connectPageQuery = graphql`
query ConnectPageQuery { query ConnectPageQuery {
currentTrustCenter @required(action: THROW) { currentTrustCenter @required(action: THROW) {
organization @required(action: THROW) { title
name
}
} }
oidcProviders { oidcProviders {
...OIDCButtonFragment ...OIDCButtonFragment
@@ -77,7 +75,7 @@ export function ConnectPage(props: {
const safeContinueUrl = useSafeContinueUrl(); const safeContinueUrl = useSafeContinueUrl();
const { const {
currentTrustCenter: { organization }, currentTrustCenter: { title },
oidcProviders, oidcProviders,
} = usePreloadedQuery<ConnectPageQuery>(connectPageQuery, queryRef); } = usePreloadedQuery<ConnectPageQuery>(connectPageQuery, queryRef);
@@ -98,7 +96,7 @@ export function ConnectPage(props: {
}; };
}, [magicLinkSent]); }, [magicLinkSent]);
usePageTitle(__(`Connect to ${organization.name}'s Compliance Page`)); usePageTitle(__(`Connect to ${title}'s Compliance Page`));
const { const {
handleSubmit: handleSubmitWrapper, handleSubmit: handleSubmitWrapper,
@@ -164,7 +162,7 @@ export function ConnectPage(props: {
<div className="space-y-6 w-full max-w-md mx-auto pt-8"> <div className="space-y-6 w-full max-w-md mx-auto pt-8">
<div className="space-y-2 text-center"> <div className="space-y-2 text-center">
<h1 className="text-3xl font-bold"> <h1 className="text-3xl font-bold">
{__(`Connect to ${organization.name}'s Compliance Page`)} {__(`Connect to ${title}'s Compliance Page`)}
</h1> </h1>
<p className="text-txt-tertiary"> <p className="text-txt-tertiary">
{__( {__(

View File

@@ -31,6 +31,7 @@ export const currentTrustGraphQuery = graphql`
currentTrustCenter @required(action: THROW) { currentTrustCenter @required(action: THROW) {
id id
slug slug
title
description description
websiteUrl websiteUrl
email email
@@ -54,9 +55,6 @@ export const currentTrustGraphQuery = graphql`
status status
} }
} }
organization {
name
}
customLinks(first: 20) { customLinks(first: 20) {
edges { edges {
node { node {
@@ -96,9 +94,7 @@ export const currentTrustDocumentsQuery = graphql`
query TrustGraphCurrentDocumentsQuery { query TrustGraphCurrentDocumentsQuery {
currentTrustCenter { currentTrustCenter {
id id
organization { title
name
}
documents(first: 50) { documents(first: 50) {
edges { edges {
node { node {
@@ -125,9 +121,7 @@ export const currentTrustSubprocessorsQuery = graphql`
query TrustGraphCurrentSubprocessorsQuery { query TrustGraphCurrentSubprocessorsQuery {
currentTrustCenter { currentTrustCenter {
id id
organization { title
name
}
subprocessors(first: 50) { subprocessors(first: 50) {
edges { edges {
node { node {

View File

@@ -61,6 +61,7 @@ func TestTrustCenter_UpdateProfile(t *testing.T) {
updateTrustCenter(input: $input) { updateTrustCenter(input: $input) {
trustCenter { trustCenter {
id id
title
description description
websiteUrl websiteUrl
email email
@@ -74,6 +75,7 @@ func TestTrustCenter_UpdateProfile(t *testing.T) {
UpdateTrustCenter struct { UpdateTrustCenter struct {
TrustCenter struct { TrustCenter struct {
ID string `json:"id"` ID string `json:"id"`
Title string `json:"title"`
Description *string `json:"description"` Description *string `json:"description"`
WebsiteURL *string `json:"websiteUrl"` WebsiteURL *string `json:"websiteUrl"`
Email *string `json:"email"` Email *string `json:"email"`
@@ -85,6 +87,7 @@ func TestTrustCenter_UpdateProfile(t *testing.T) {
err = owner.Execute(updateMutation, map[string]any{ err = owner.Execute(updateMutation, map[string]any{
"input": map[string]any{ "input": map[string]any{
"trustCenterId": trustCenterID, "trustCenterId": trustCenterID,
"title": "Acme Security",
"description": "We keep your data safe.", "description": "We keep your data safe.",
"websiteUrl": "https://example.com", "websiteUrl": "https://example.com",
"email": "security@example.com", "email": "security@example.com",
@@ -95,6 +98,7 @@ func TestTrustCenter_UpdateProfile(t *testing.T) {
tc := result.UpdateTrustCenter.TrustCenter tc := result.UpdateTrustCenter.TrustCenter
assert.Equal(t, trustCenterID, tc.ID) assert.Equal(t, trustCenterID, tc.ID)
assert.Equal(t, "Acme Security", tc.Title)
require.NotNil(t, tc.Description) require.NotNil(t, tc.Description)
assert.Equal(t, "We keep your data safe.", *tc.Description) assert.Equal(t, "We keep your data safe.", *tc.Description)
require.NotNil(t, tc.WebsiteURL) require.NotNil(t, tc.WebsiteURL)

View File

@@ -36,8 +36,7 @@ type mcpFile struct {
type trustCenter struct { type trustCenter struct {
ID string `json:"id"` ID string `json:"id"`
CompanyName string `json:"companyName"` Title string `json:"title"`
PageTitle string `json:"pageTitle"`
TrustCenterVisible bool `json:"trustCenterVisible"` TrustCenterVisible bool `json:"trustCenterVisible"`
Logo *mcpFile `json:"logo,omitempty"` Logo *mcpFile `json:"logo,omitempty"`
} }
@@ -176,6 +175,7 @@ func TestMCP_UpdateTrustCenter(t *testing.T) {
var updateResult struct { var updateResult struct {
TrustCenter struct { TrustCenter struct {
ID string `json:"id"` ID string `json:"id"`
Title string `json:"title"`
Description *string `json:"description"` Description *string `json:"description"`
WebsiteURL *string `json:"website_url"` WebsiteURL *string `json:"website_url"`
Email *string `json:"email"` Email *string `json:"email"`
@@ -184,6 +184,7 @@ func TestMCP_UpdateTrustCenter(t *testing.T) {
} }
mc.CallToolInto("updateTrustCenter", map[string]any{ mc.CallToolInto("updateTrustCenter", map[string]any{
"trust_center_id": getResult.TrustCenter.ID, "trust_center_id": getResult.TrustCenter.ID,
"title": "Acme Security",
"description": "We keep your data safe.", "description": "We keep your data safe.",
"website_url": "https://example.com", "website_url": "https://example.com",
"email": "security@example.com", "email": "security@example.com",
@@ -191,6 +192,7 @@ func TestMCP_UpdateTrustCenter(t *testing.T) {
}, &updateResult) }, &updateResult)
assert.Equal(t, getResult.TrustCenter.ID, updateResult.TrustCenter.ID) assert.Equal(t, getResult.TrustCenter.ID, updateResult.TrustCenter.ID)
assert.Equal(t, "Acme Security", updateResult.TrustCenter.Title)
require.NotNil(t, updateResult.TrustCenter.Description) require.NotNil(t, updateResult.TrustCenter.Description)
assert.Equal(t, "We keep your data safe.", *updateResult.TrustCenter.Description) assert.Equal(t, "We keep your data safe.", *updateResult.TrustCenter.Description)
require.NotNil(t, updateResult.TrustCenter.WebsiteURL) require.NotNil(t, updateResult.TrustCenter.WebsiteURL)

View File

@@ -76,6 +76,19 @@ export const description: INodeProperties[] = [
default: '', default: '',
description: 'Whether search engines should index the trust center', description: 'Whether search engines should index the trust center',
}, },
{
displayName: 'Title',
name: 'title',
type: 'string',
displayOptions: {
show: {
resource: ['trustCenter'],
operation: ['update'],
},
},
default: '',
description: 'The title shown on the public compliance page',
},
{ {
displayName: 'Description', displayName: 'Description',
name: 'description', name: 'description',
@@ -142,6 +155,7 @@ export async function execute(
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string; const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
const email = this.getNodeParameter('email', itemIndex, '') as string; const email = this.getNodeParameter('email', itemIndex, '') as string;
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string; const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
const title = this.getNodeParameter('title', itemIndex, '') as string;
const query = ` const query = `
mutation UpdateTrustCenter($input: UpdateTrustCenterInput!) { mutation UpdateTrustCenter($input: UpdateTrustCenterInput!) {
@@ -150,6 +164,7 @@ export async function execute(
id id
active active
searchEngineIndexing searchEngineIndexing
title
description description
websiteUrl websiteUrl
email email
@@ -168,6 +183,7 @@ export async function execute(
if (websiteUrl) input.websiteUrl = websiteUrl; if (websiteUrl) input.websiteUrl = websiteUrl;
if (email) input.email = email; if (email) input.email = email;
if (headquarterAddress) input.headquarterAddress = headquarterAddress; if (headquarterAddress) input.headquarterAddress = headquarterAddress;
if (title) input.title = title;
const responseData = await proboApiRequest.call(this, query, { input }); const responseData = await proboApiRequest.call(this, query, { input });

View File

@@ -49,6 +49,7 @@ mutation($input: UpdateTrustCenterInput!) {
id id
active active
searchEngineIndexing searchEngineIndexing
title
description description
websiteUrl websiteUrl
email email
@@ -73,6 +74,7 @@ type updateResponse struct {
ID string `json:"id"` ID string `json:"id"`
Active bool `json:"active"` Active bool `json:"active"`
SearchEngineIndexing string `json:"searchEngineIndexing"` SearchEngineIndexing string `json:"searchEngineIndexing"`
Title string `json:"title"`
Description *string `json:"description"` Description *string `json:"description"`
WebsiteURL *string `json:"websiteUrl"` WebsiteURL *string `json:"websiteUrl"`
Email *string `json:"email"` Email *string `json:"email"`
@@ -90,6 +92,7 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
flagWebsiteURL string flagWebsiteURL string
flagEmail string flagEmail string
flagHeadquarterAddress string flagHeadquarterAddress string
flagTitle string
) )
cmd := &cobra.Command{ cmd := &cobra.Command{
@@ -186,6 +189,10 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
input["headquarterAddress"] = flagHeadquarterAddress input["headquarterAddress"] = flagHeadquarterAddress
} }
if cmd.Flags().Changed("title") {
input["title"] = flagTitle
}
if len(input) == 1 { if len(input) == 1 {
return fmt.Errorf("at least one field must be specified for update") return fmt.Errorf("at least one field must be specified for update")
} }
@@ -221,6 +228,7 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
cmd.Flags().StringVar(&flagWebsiteURL, "website-url", "", "Compliance page website URL") cmd.Flags().StringVar(&flagWebsiteURL, "website-url", "", "Compliance page website URL")
cmd.Flags().StringVar(&flagEmail, "email", "", "Compliance page contact email") cmd.Flags().StringVar(&flagEmail, "email", "", "Compliance page contact email")
cmd.Flags().StringVar(&flagHeadquarterAddress, "headquarter-address", "", "Compliance page headquarter address") cmd.Flags().StringVar(&flagHeadquarterAddress, "headquarter-address", "", "Compliance page headquarter address")
cmd.Flags().StringVar(&flagTitle, "title", "", "Public compliance page title")
return cmd return cmd
} }

View File

@@ -47,6 +47,7 @@ type (
Slug *string Slug *string
SearchEngineIndexing *coredata.SearchEngineIndexing SearchEngineIndexing *coredata.SearchEngineIndexing
NonDisclosureAgreementFileID *gid.GID NonDisclosureAgreementFileID *gid.GID
Title *string
Description **string Description **string
WebsiteURL **string WebsiteURL **string
Email **string Email **string
@@ -75,6 +76,10 @@ func (utcr *UpdateRequest) Validate() error {
v.Check(utcr.Slug, "slug", validator.SafeText(NameMaxLength)) v.Check(utcr.Slug, "slug", validator.SafeText(NameMaxLength))
v.Check(utcr.NonDisclosureAgreementFileID, "non_disclosure_agreement_file_id", validator.GID(coredata.FileEntityType)) v.Check(utcr.NonDisclosureAgreementFileID, "non_disclosure_agreement_file_id", validator.GID(coredata.FileEntityType))
if utcr.Title != nil {
v.Check(*utcr.Title, "title", validator.Required(), validator.SafeTextNoNewLine(NameMaxLength))
}
if utcr.Description != nil { if utcr.Description != nil {
v.Check(*utcr.Description, "description", validator.SafeText(ContentMaxLength)) v.Check(*utcr.Description, "description", validator.SafeText(ContentMaxLength))
} }
@@ -210,6 +215,10 @@ func (s *Service) Update(
trustCenter.SearchEngineIndexing = *req.SearchEngineIndexing trustCenter.SearchEngineIndexing = *req.SearchEngineIndexing
} }
if req.Title != nil {
trustCenter.Title = *req.Title
}
if req.Description != nil { if req.Description != nil {
trustCenter.Description = *req.Description trustCenter.Description = *req.Description
} }

View File

@@ -389,10 +389,7 @@ WITH combined AS (
COALESCE(cf.organization_id, tc.organization_id) AS organization_id, COALESCE(cf.organization_id, tc.organization_id) AS organization_id,
COALESCE(cf.trust_center_id, tc.id) AS trust_center_id, COALESCE(cf.trust_center_id, tc.id) AS trust_center_id,
f.id AS framework_id, f.id AS framework_id,
CASE ROW_NUMBER() OVER (ORDER BY f.created_at, f.id) AS rank,
WHEN cf.id IS NOT NULL THEN cf.rank
ELSE COALESCE(MAX(cf.rank) OVER (), 0) + ROW_NUMBER() OVER (PARTITION BY (cf.id IS NULL) ORDER BY f.created_at)
END AS rank,
CASE WHEN cf.id IS NULL THEN 'NONE' ELSE 'PUBLIC' END AS visibility, CASE WHEN cf.id IS NULL THEN 'NONE' ELSE 'PUBLIC' END AS visibility,
COALESCE(cf.created_at, f.created_at) AS created_at, COALESCE(cf.created_at, f.created_at) AS created_at,
COALESCE(cf.updated_at, f.updated_at) AS updated_at COALESCE(cf.updated_at, f.updated_at) AS updated_at

View File

@@ -0,0 +1,24 @@
-- Copyright (c) 2026 Probo Inc <hello@probo.com>.
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
ALTER TABLE trust_centers
ADD COLUMN page_title TEXT;
UPDATE trust_centers tc
SET page_title = o.name
FROM organizations o
WHERE tc.organization_id = o.id;
ALTER TABLE trust_centers
ALTER COLUMN page_title SET NOT NULL;

View File

@@ -0,0 +1,16 @@
-- Copyright (c) 2026 Probo Inc <hello@probo.com>.
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
ALTER TABLE trust_centers
RENAME COLUMN page_title TO title;

View File

@@ -49,6 +49,7 @@ type (
NonDisclosureAgreementFileID *gid.GID `db:"non_disclosure_agreement_file_id"` NonDisclosureAgreementFileID *gid.GID `db:"non_disclosure_agreement_file_id"`
DefaultDomainID *gid.GID `db:"default_domain_id"` DefaultDomainID *gid.GID `db:"default_domain_id"`
CustomDomainID *gid.GID `db:"custom_domain_id"` CustomDomainID *gid.GID `db:"custom_domain_id"`
Title string `db:"title"`
Description *string `db:"description"` Description *string `db:"description"`
WebsiteURL *string `db:"website_url"` WebsiteURL *string `db:"website_url"`
Email *string `db:"email"` Email *string `db:"email"`
@@ -128,6 +129,7 @@ SELECT
non_disclosure_agreement_file_id, non_disclosure_agreement_file_id,
default_domain_id, default_domain_id,
custom_domain_id, custom_domain_id,
title,
description, description,
website_url, website_url,
email, email,
@@ -186,6 +188,7 @@ SELECT
non_disclosure_agreement_file_id, non_disclosure_agreement_file_id,
default_domain_id, default_domain_id,
custom_domain_id, custom_domain_id,
title,
description, description,
website_url, website_url,
email, email,
@@ -244,6 +247,7 @@ SELECT
non_disclosure_agreement_file_id, non_disclosure_agreement_file_id,
default_domain_id, default_domain_id,
custom_domain_id, custom_domain_id,
title,
description, description,
website_url, website_url,
email, email,
@@ -302,6 +306,7 @@ SELECT
non_disclosure_agreement_file_id, non_disclosure_agreement_file_id,
default_domain_id, default_domain_id,
custom_domain_id, custom_domain_id,
title,
description, description,
website_url, website_url,
email, email,
@@ -360,6 +365,7 @@ SELECT
non_disclosure_agreement_file_id, non_disclosure_agreement_file_id,
default_domain_id, default_domain_id,
custom_domain_id, custom_domain_id,
title,
description, description,
website_url, website_url,
email, email,
@@ -414,6 +420,7 @@ INSERT INTO trust_centers (
non_disclosure_agreement_file_id, non_disclosure_agreement_file_id,
default_domain_id, default_domain_id,
custom_domain_id, custom_domain_id,
title,
description, description,
website_url, website_url,
email, email,
@@ -433,6 +440,7 @@ INSERT INTO trust_centers (
@non_disclosure_agreement_file_id, @non_disclosure_agreement_file_id,
@default_domain_id, @default_domain_id,
@custom_domain_id, @custom_domain_id,
@title,
@description, @description,
@website_url, @website_url,
@email, @email,
@@ -455,6 +463,7 @@ INSERT INTO trust_centers (
"non_disclosure_agreement_file_id": tc.NonDisclosureAgreementFileID, "non_disclosure_agreement_file_id": tc.NonDisclosureAgreementFileID,
"default_domain_id": tc.DefaultDomainID, "default_domain_id": tc.DefaultDomainID,
"custom_domain_id": tc.CustomDomainID, "custom_domain_id": tc.CustomDomainID,
"title": tc.Title,
"description": tc.Description, "description": tc.Description,
"website_url": tc.WebsiteURL, "website_url": tc.WebsiteURL,
"email": tc.Email, "email": tc.Email,
@@ -493,6 +502,7 @@ SET
non_disclosure_agreement_file_id = @non_disclosure_agreement_file_id, non_disclosure_agreement_file_id = @non_disclosure_agreement_file_id,
default_domain_id = @default_domain_id, default_domain_id = @default_domain_id,
custom_domain_id = @custom_domain_id, custom_domain_id = @custom_domain_id,
title = @title,
description = @description, description = @description,
website_url = @website_url, website_url = @website_url,
email = @email, email = @email,
@@ -515,6 +525,7 @@ WHERE
"non_disclosure_agreement_file_id": tc.NonDisclosureAgreementFileID, "non_disclosure_agreement_file_id": tc.NonDisclosureAgreementFileID,
"default_domain_id": tc.DefaultDomainID, "default_domain_id": tc.DefaultDomainID,
"custom_domain_id": tc.CustomDomainID, "custom_domain_id": tc.CustomDomainID,
"title": tc.Title,
"description": tc.Description, "description": tc.Description,
"website_url": tc.WebsiteURL, "website_url": tc.WebsiteURL,
"email": tc.Email, "email": tc.Email,

View File

@@ -614,6 +614,7 @@ func (s *OrganizationService) CreateOrganization(
TenantID: organization.TenantID, TenantID: organization.TenantID,
Active: false, Active: false,
Slug: slug.Make(organization.Name), Slug: slug.Make(organization.Name),
Title: organization.Name,
SearchEngineIndexing: coredata.SearchEngineIndexingNotIndexable, SearchEngineIndexing: coredata.SearchEngineIndexingNotIndexable,
MailingListID: &mailingList.ID, MailingListID: &mailingList.ID,
CreatedAt: now, CreatedAt: now,

View File

@@ -256,6 +256,7 @@ type TrustCenter implements Node
websiteUrl: String websiteUrl: String
email: String email: String
headquarterAddress: String headquarterAddress: String
title: String!
createdAt: Datetime! createdAt: Datetime!
updatedAt: Datetime! updatedAt: Datetime!
organization: Organization! @goField(forceResolver: true) organization: Organization! @goField(forceResolver: true)
@@ -567,6 +568,7 @@ input UpdateTrustCenterInput {
trustCenterId: ID! trustCenterId: ID!
active: Boolean active: Boolean
searchEngineIndexing: SearchEngineIndexing searchEngineIndexing: SearchEngineIndexing
title: String
description: String @goField(omittable: true) description: String @goField(omittable: true)
websiteUrl: String @goField(omittable: true) websiteUrl: String @goField(omittable: true)
email: String @goField(omittable: true) email: String @goField(omittable: true)

View File

@@ -75,6 +75,7 @@ func (r *mutationResolver) UpdateTrustCenter(ctx context.Context, input types.Up
WebsiteURL: gqlutils.UnwrapOmittable(input.WebsiteURL), WebsiteURL: gqlutils.UnwrapOmittable(input.WebsiteURL),
Email: gqlutils.UnwrapOmittable(input.Email), Email: gqlutils.UnwrapOmittable(input.Email),
HeadquarterAddress: gqlutils.UnwrapOmittable(input.HeadquarterAddress), HeadquarterAddress: gqlutils.UnwrapOmittable(input.HeadquarterAddress),
Title: input.Title,
}, },
) )
if err != nil { if err != nil {

View File

@@ -38,6 +38,7 @@ type TrustCenter struct {
WebsiteURL *string `json:"websiteUrl,omitempty"` WebsiteURL *string `json:"websiteUrl,omitempty"`
Email *string `json:"email,omitempty"` Email *string `json:"email,omitempty"`
HeadquarterAddress *string `json:"headquarterAddress,omitempty"` HeadquarterAddress *string `json:"headquarterAddress,omitempty"`
Title string `json:"title"`
CreatedAt time.Time `json:"createdAt"` CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"` UpdatedAt time.Time `json:"updatedAt"`
Organization *Organization `json:"organization"` Organization *Organization `json:"organization"`
@@ -64,6 +65,7 @@ func NewTrustCenter(tc *coredata.TrustCenter) *TrustCenter {
WebsiteURL: tc.WebsiteURL, WebsiteURL: tc.WebsiteURL,
Email: tc.Email, Email: tc.Email,
HeadquarterAddress: tc.HeadquarterAddress, HeadquarterAddress: tc.HeadquarterAddress,
Title: tc.Title,
CreatedAt: tc.CreatedAt, CreatedAt: tc.CreatedAt,
UpdatedAt: tc.UpdatedAt, UpdatedAt: tc.UpdatedAt,
} }

View File

@@ -4954,6 +4954,9 @@ func (r *Resolver) UpdateTrustCenterTool(ctx context.Context, req *mcp.CallToolR
updateReq.WebsiteURL = UnwrapOmittable(input.WebsiteURL) updateReq.WebsiteURL = UnwrapOmittable(input.WebsiteURL)
updateReq.Email = UnwrapOmittable(input.Email) updateReq.Email = UnwrapOmittable(input.Email)
updateReq.HeadquarterAddress = UnwrapOmittable(input.HeadquarterAddress) updateReq.HeadquarterAddress = UnwrapOmittable(input.HeadquarterAddress)
if title := UnwrapOmittable(input.Title); title != nil {
updateReq.Title = *title
}
trustCenter, _, err := prb.Update(ctx, scope, updateReq) trustCenter, _, err := prb.Update(ctx, scope, updateReq)
if err != nil { if err != nil {

View File

@@ -8832,6 +8832,7 @@ components:
- organization_id - organization_id
- active - active
- search_engine_indexing - search_engine_indexing
- title
- created_at - created_at
- updated_at - updated_at
properties: properties:
@@ -8869,6 +8870,9 @@ components:
- string - string
- "null" - "null"
description: Compliance page headquarter address description: Compliance page headquarter address
title:
type: string
description: Public compliance page title
created_at: created_at:
type: string type: string
format: date-time format: date-time
@@ -9059,6 +9063,12 @@ components:
- "null" - "null"
description: Compliance page headquarter address description: Compliance page headquarter address
go.probo.inc/mcpgen/omittable: true go.probo.inc/mcpgen/omittable: true
title:
type:
- string
- "null"
description: Public compliance page title
go.probo.inc/mcpgen/omittable: true
UpdateTrustCenterOutput: UpdateTrustCenterOutput:
type: object type: object

View File

@@ -31,6 +31,7 @@ func NewTrustCenter(tc *coredata.TrustCenter) *TrustCenter {
OrganizationID: tc.OrganizationID, OrganizationID: tc.OrganizationID,
Active: tc.Active, Active: tc.Active,
SearchEngineIndexing: tc.SearchEngineIndexing, SearchEngineIndexing: tc.SearchEngineIndexing,
Title: tc.Title,
Description: tc.Description, Description: tc.Description,
WebsiteURL: tc.WebsiteURL, WebsiteURL: tc.WebsiteURL,
Email: tc.Email, Email: tc.Email,

View File

@@ -46,15 +46,6 @@ func (r *queryResolver) Node(ctx context.Context, id gid.GID) (types.Node, error
trustService := r.trust trustService := r.trust
switch id.EntityType() { switch id.EntityType() {
case coredata.OrganizationEntityType:
organization, err := trustService.GetOrganization(ctx, scope, id)
if err != nil {
r.logger.ErrorCtx(ctx, "cannot get organization", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
return types.NewOrganization(organization), nil
case coredata.DocumentEntityType: case coredata.DocumentEntityType:
trustCenter := complianceportal.CompliancePageFromContext(ctx) trustCenter := complianceportal.CompliancePageFromContext(ctx)
@@ -190,11 +181,7 @@ func (r *queryResolver) CurrentTrustCenter(ctx context.Context) (*types.TrustCen
scope := coredata.NewScopeFromObjectID(trustCenter.ID) scope := coredata.NewScopeFromObjectID(trustCenter.ID)
trustService := r.trust trustService := r.trust
org, err := trustService.GetOrganization(ctx, scope, trustCenter.OrganizationID) var err error
if err != nil {
r.logger.ErrorCtx(ctx, "cannot get organization", log.Error(err))
return nil, gqlutils.Internal(ctx)
}
trustCenter, err = trustService.GetPortal(ctx, scope, trustCenter.ID) trustCenter, err = trustService.GetPortal(ctx, scope, trustCenter.ID)
if err != nil { if err != nil {
@@ -202,10 +189,7 @@ func (r *queryResolver) CurrentTrustCenter(ctx context.Context) (*types.TrustCen
return nil, gqlutils.Internal(ctx) return nil, gqlutils.Internal(ctx)
} }
response := types.NewTrustCenter(trustCenter) return types.NewTrustCenter(trustCenter), nil
response.Organization = types.NewOrganization(org)
return response, nil
} }
// OidcProviders is the resolver for the oidcProviders field. // OidcProviders is the resolver for the oidcProviders field.

View File

@@ -1,5 +0,0 @@
type Organization implements Node {
id: ID!
name: String!
logo: File @goField(forceResolver: true)
}

View File

@@ -9,13 +9,12 @@ type TrustCenter implements Node {
websiteUrl: String websiteUrl: String
email: String email: String
headquarterAddress: String headquarterAddress: String
title: String!
nonDisclosureAgreement: NonDisclosureAgreement @goField(forceResolver: true) nonDisclosureAgreement: NonDisclosureAgreement @goField(forceResolver: true)
viewerSubscription: MailingListSubscriber @goField(forceResolver: true) viewerSubscription: MailingListSubscriber @goField(forceResolver: true)
organization: Organization! @goField(forceResolver: true)
documents( documents(
first: Int first: Int
after: CursorKey after: CursorKey

View File

@@ -1,38 +0,0 @@
package trust_v1
// This file will be automatically regenerated based on the schema, any resolver
// implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.93
import (
"context"
"go.probo.inc/probo/pkg/coredata"
"go.probo.inc/probo/pkg/server/api/compliancepage"
"go.probo.inc/probo/pkg/server/api/trust/v1/schema"
"go.probo.inc/probo/pkg/server/api/trust/v1/types"
"go.probo.inc/probo/pkg/server/gqlutils"
)
// Logo is the resolver for the logo field.
func (r *organizationResolver) Logo(ctx context.Context, obj *types.Organization) (*types.File, error) {
compliancePage := compliancepage.CompliancePageFromContext(ctx)
scope := coredata.NewScopeFromObjectID(compliancePage.OrganizationID)
organization, err := r.trust.GetOrganization(ctx, scope, obj.ID)
if err != nil {
return nil, gqlutils.NotFoundf(ctx, "organization %q not found", obj.ID)
}
if organization.LogoFileID == nil {
return nil, nil
}
return r.loadPublicFile(ctx, *organization.LogoFileID)
}
// Organization returns schema.OrganizationResolver implementation.
func (r *Resolver) Organization() schema.OrganizationResolver { return &organizationResolver{r} }
type organizationResolver struct{ *Resolver }

View File

@@ -1,32 +0,0 @@
// Copyright (c) 2025-2026 Probo Inc <hello@probo.com>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
package types
import (
"go.probo.inc/probo/pkg/coredata"
)
func NewOrganization(o *coredata.Organization) *Organization {
return &Organization{
ID: o.ID,
Name: o.Name,
}
}

View File

@@ -29,6 +29,7 @@ func NewTrustCenter(tc *coredata.TrustCenter) *TrustCenter {
ID: tc.ID, ID: tc.ID,
Active: tc.Active, Active: tc.Active,
Slug: tc.Slug, Slug: tc.Slug,
Title: tc.Title,
Description: tc.Description, Description: tc.Description,
WebsiteURL: tc.WebsiteURL, WebsiteURL: tc.WebsiteURL,
Email: tc.Email, Email: tc.Email,

View File

@@ -137,7 +137,7 @@ func NewServer(cfg Config) (*Server, error) {
return nil, err return nil, err
} }
trustWebServer, err := trust_web.NewServer(compliancePageHeadData(cfg.BaseURL, cfg.Trust)) trustWebServer, err := trust_web.NewServer(compliancePageHeadData(cfg.BaseURL))
if err != nil { if err != nil {
return nil, err return nil, err
} }
@@ -252,27 +252,22 @@ func (s *Server) TrustCenterHandler() http.Handler {
return r return r
} }
func compliancePageHeadData(baseURL *baseurl.BaseURL, trustService *trust.Service) trust_web.HeadDataFunc { func compliancePageHeadData(baseURL *baseurl.BaseURL) trust_web.HeadDataFunc {
return func(r *http.Request) trust_web.HeadData { return func(r *http.Request) trust_web.HeadData {
tc := complianceportal.CompliancePageFromContext(r.Context()) tc := complianceportal.CompliancePageFromContext(r.Context())
if tc == nil { if tc == nil {
return trust_web.HeadData{Title: "Compliance Page"} return trust_web.HeadData{Title: "Compliance Page"}
} }
org, err := trustService.GetPortalOrganization(r.Context(), tc.ID)
if err != nil || org == nil {
return trust_web.HeadData{Title: "Compliance Page"}
}
compliancePageBaseURL := complianceportal.CompliancePageBaseURLFromContext(r.Context()) compliancePageBaseURL := complianceportal.CompliancePageBaseURLFromContext(r.Context())
description := org.Name + " Compliance Page" description := tc.Title + " Compliance Page"
if tc.Description != nil && *tc.Description != "" { if tc.Description != nil && *tc.Description != "" {
description = *tc.Description description = *tc.Description
} }
headData := trust_web.HeadData{ headData := trust_web.HeadData{
Title: org.Name + " — Compliance", Title: tc.Title,
Description: description, Description: description,
OGURL: ref.UnrefOrZero(compliancePageBaseURL), OGURL: ref.UnrefOrZero(compliancePageBaseURL),
} }