/* Human wording for licence feature keys. * * One place, because there were two and they disagreed: the staff configurator * rendered every key that was not "console" as "Single sign-on", so adding a * third feature silently mislabelled the checkbox that grants it. A map with a * fallback degrades to the raw key, which is ugly but never wrong. * * Keys must match shared/license/license.go. */ export const FEATURE_LABEL: Record = { console: "Browser console", oidc: "Single sign-on", vuln_scanning: "Vulnerability scanning", }; export const FEATURE_DESC: Record = { console: "In-browser SSH, RDP and VNC sessions", oidc: "OIDC sign-in for your whole team", vuln_scanning: "Package inventory matched against distribution security advisories", }; export function featureLabel(key: string): string { return FEATURE_LABEL[key] ?? key; } export function featureDesc(key: string): string { return FEATURE_DESC[key] ?? ""; }