{{- /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial */ -}} {{- /* SPDX-FileCopyrightText: 2025-2026 Christian Galo */ -}} {{/* discourse_operator.html Discourse integration operator page body: group-mapping management and link/sync visibility, below the Integrations trail with the Settings action in the header slot. Swap target for the mutation forms is #operator-body (this whole partial re-renders on mutations). Built from the page-anatomy parts: the unconfigured integration is the blocked empty-state branch, sections are titled by sectionHeader (the sweep explainer rides the Sync health tooltip), and the map-group form precedes the mappings table the way every catalog create form does. */}} {{ template "pageHeader" .Header }} {{ if not .Configured }} {{ template "emptyState" .NotConfigured }} {{ else }} {{ if .Error }} {{ end }} {{ template "sectionHeader" .SweepHeader }}
Last sweep
{{ .SweepStatus }}{{ if .SweepTime }} ({{ .SweepTime }}){{ end }}
{{ template "sectionHeader" .MapGroupHeader }}
{{ template "form" .Form }}
{{ template "sectionHeader" .MappingsHeader }} {{ if eq (len .Mappings) 0 }} {{ template "emptyState" .NoMappings }} {{ else }}
{{/* list-scale exempt: curated configuration list, one row per entitlement-to-group mapping an operator creates */}} {{ range .Mappings }} {{ end }}
Entitlement Discourse group Group ID Mapped Actions
{{ if .DisplayName }}{{ .DisplayName }} ({{ .ResourceKey }}){{ else }}{{ .ResourceKey }}{{ end }} {{ .GroupName }} {{ .GroupID }} {{ .CreatedAt }}
{{ end }} {{ template "sectionHeader" .UnlinkedHeader }} {{ if eq (len .Unlinked) 0 }}

Every entitled member has a linked forum account.

{{ else }}

These members hold forum access but have no linked Discourse account yet. In oidc mode they link automatically on their first forum login; this is a normal state, not a sync failure.

{{ end }} {{ if gt (len .Conflicts) 0 }} {{ template "sectionHeader" .ConflictsHeader }}

These links resolved to a forum account that another person's identity also claims. They are excluded from group convergence until resolved; the console never reassigns a forum identity on its own.

{{ end }} {{ end }}