Rename GraphQL APIs to compliance portal

Update console, visitor, MCP, and Slack API
surfaces so schemas and resolvers use the
Compliance Portal naming consistently.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-20 18:08:21 +02:00
parent 0f0f6643ad
commit 8773a54396
57 changed files with 1830 additions and 1833 deletions

View File

@@ -29,16 +29,16 @@ import (
type ctxKey struct{ name string }
var (
compliancePageKey = &ctxKey{name: "compliance_page"}
compliancePageBaseURLKey = &ctxKey{name: "compliance_page_base_url"}
compliancePortalKey = &ctxKey{name: "compliance_portal"}
compliancePortalBaseURLKey = &ctxKey{name: "compliance_portal_base_url"}
)
func CompliancePageFromContext(ctx context.Context) *coredata.TrustCenter {
page, _ := ctx.Value(compliancePageKey).(*coredata.TrustCenter)
func CompliancePortalFromContext(ctx context.Context) *coredata.CompliancePortal {
page, _ := ctx.Value(compliancePortalKey).(*coredata.CompliancePortal)
return page
}
func CompliancePageBaseURLFromContext(ctx context.Context) *string {
page, _ := ctx.Value(compliancePageBaseURLKey).(*string)
func CompliancePortalBaseURLFromContext(ctx context.Context) *string {
page, _ := ctx.Value(compliancePortalBaseURLKey).(*string)
return page
}