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:
@@ -4954,8 +4954,8 @@ func (r *Resolver) UpdateCompliancePortalTool(ctx context.Context, req *mcp.Call
|
||||
updateReq.Email = UnwrapOmittable(input.Email)
|
||||
updateReq.HeadquarterAddress = UnwrapOmittable(input.HeadquarterAddress)
|
||||
|
||||
if title := UnwrapOmittable(input.Title); title != nil {
|
||||
updateReq.Title = *title
|
||||
if entityName := UnwrapOmittable(input.EntityName); entityName != nil {
|
||||
updateReq.EntityName = *entityName
|
||||
}
|
||||
|
||||
compliancePortal, _, err := prb.Update(ctx, scope, updateReq)
|
||||
|
||||
@@ -8832,7 +8832,7 @@ components:
|
||||
- organization_id
|
||||
- active
|
||||
- search_engine_indexing
|
||||
- title
|
||||
- entity_name
|
||||
- created_at
|
||||
- updated_at
|
||||
properties:
|
||||
@@ -8870,9 +8870,9 @@ components:
|
||||
- string
|
||||
- "null"
|
||||
description: Compliance page headquarter address
|
||||
title:
|
||||
entity_name:
|
||||
type: string
|
||||
description: Public compliance page title
|
||||
description: Entity name shown on the public compliance page
|
||||
created_at:
|
||||
type: string
|
||||
format: date-time
|
||||
@@ -9079,11 +9079,11 @@ components:
|
||||
- "null"
|
||||
description: Compliance page headquarter address
|
||||
go.probo.inc/mcpgen/omittable: true
|
||||
title:
|
||||
entity_name:
|
||||
type:
|
||||
- string
|
||||
- "null"
|
||||
description: Public compliance page title
|
||||
description: Entity name shown on the public compliance page
|
||||
go.probo.inc/mcpgen/omittable: true
|
||||
|
||||
UpdateCompliancePortalOutput:
|
||||
|
||||
@@ -31,7 +31,7 @@ func NewCompliancePortal(tc *coredata.CompliancePortal) *CompliancePortal {
|
||||
OrganizationID: tc.OrganizationID,
|
||||
Active: tc.Active,
|
||||
SearchEngineIndexing: tc.SearchEngineIndexing,
|
||||
Title: tc.Title,
|
||||
EntityName: tc.EntityName,
|
||||
Description: tc.Description,
|
||||
WebsiteURL: tc.WebsiteURL,
|
||||
Email: tc.Email,
|
||||
|
||||
Reference in New Issue
Block a user