Replace portal title with entity name

Store a short entity name instead of the full home
heading so orgs can brand portals for sub-entities.
Restore hero i18n composition and keep the English
document title composed from the entity name.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-07-21 19:06:55 +02:00
parent 0fe814cfe4
commit 0d832508c9
46 changed files with 148 additions and 97 deletions

View File

@@ -77,8 +77,8 @@ export const description: INodeProperties[] = [
description: 'Whether search engines should index the compliance portal',
},
{
displayName: 'Title',
name: 'title',
displayName: 'Entity Name',
name: 'entityName',
type: 'string',
displayOptions: {
show: {
@@ -87,7 +87,7 @@ export const description: INodeProperties[] = [
},
},
default: '',
description: 'The title shown on the public compliance page',
description: 'The entity name shown on the public compliance page',
},
{
displayName: 'Description',
@@ -155,7 +155,7 @@ export async function execute(
const websiteUrl = this.getNodeParameter('websiteUrl', itemIndex, '') as string;
const email = this.getNodeParameter('email', itemIndex, '') as string;
const headquarterAddress = this.getNodeParameter('headquarterAddress', itemIndex, '') as string;
const title = this.getNodeParameter('title', itemIndex, '') as string;
const entityName = this.getNodeParameter('entityName', itemIndex, '') as string;
const query = `
mutation UpdateCompliancePortal($input: UpdateCompliancePortalInput!) {
@@ -164,7 +164,7 @@ export async function execute(
id
active
searchEngineIndexing
title
entityName
description
websiteUrl
email
@@ -178,7 +178,7 @@ export async function execute(
const input: Record<string, unknown> = {
compliancePortalId,
title,
entityName,
description,
websiteUrl,
email,