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

View File

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