Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Converge settings external links on shared primitives
rcourtmancb53fd6b6071
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex b0783791d9..67fc1862ee 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -374,6 +374,10 @@ payload shape change when the portal presents compact client rows.`frontend-modern/src/utils/apiTokenPresentation.ts` and its shared sourceplatform label, so API-token tables, revoke warnings, and token presets donot reintroduce generic `container runtime` operator-facing labels.+ API-token scope-reference documentation links may compose+ frontend-primitives' `ExternalTextLink`; API contracts own the token scope,+ usage, preset, and revoke semantics, not new-tab anchor safety or link+ chrome.11. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `security-privacy`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.12. `frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/NodeCredentialSlot.tsx` shared with `agent-lifecycle`: the inline node credential slot is both an agent lifecycle control surface and a shared API-backed install/setup contract boundary.13. `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx` shared with `agent-lifecycle`: the pure infrastructure operations inventory/install model is both an agent fleet lifecycle control surface and an API token, lookup, assignment, and reporting/install contract boundary.diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex fcc7f76f40..6632d049bc 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1307,7 +1307,10 @@ That same recovery boundary also owns the linked legal surface:`SelfHostedCommercialRecoverySection.tsx` must route its Terms-of-Service linkthrough the shipped `TERMS.md` docs asset instead of sending operators toGitHub `main`, so the recovery trust surface stays version-matched and-available on restricted installs.+available on restricted installs. The anchor shell, rel policy, and compact+link styling for that legal/docs link belong to frontend-primitives'+`ExternalTextLink`; cloud-paid owns the commercial recovery copy and+destination semantics.Already-issued legacy hosted trial leases are also part of that samecompatibility contract. If such a lease is refreshed, it must carry thecanonical Pro capability set while scrubbing retired monitored-system volumediff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 45b44c35bf..476f344256 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -29,6 +29,7 @@ work extends shared components instead of creating new local variants.4. `frontend-modern/src/components/Settings/SettingsPageShell.tsx`5. `frontend-modern/src/components/Settings/settingsPanelRegistry.ts`6. `frontend-modern/src/components/Settings/APIAccessPanel.tsx`+6a. `frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx`7. `frontend-modern/src/components/Settings/AIChatMaintenanceSection.tsx`8. `frontend-modern/src/components/Settings/AIModelSelectionSection.tsx`9. `frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx`@@ -171,6 +172,8 @@ work extends shared components instead of creating new local variants.139. `frontend-modern/src/components/shared/Button.test.tsx`139a. `frontend-modern/src/components/shared/InlineNotice.tsx`139b. `frontend-modern/src/components/shared/InlineNotice.test.tsx`+139c. `frontend-modern/src/components/shared/ExternalTextLink.tsx`+139d. `frontend-modern/src/components/shared/ExternalTextLink.test.tsx`140. `frontend-modern/src/components/shared/CopyableCodeRow.tsx`141. `frontend-modern/src/components/shared/DetailSectionTable.tsx`142. `frontend-modern/src/components/shared/detailSectionModel.ts`@@ -3347,6 +3350,15 @@ palette and the `scale="compact"` density used by smaller settings notices, andthe `settings-callout-card-shell` shared-template registry rule requires currentsettings consumers to compose it instead of reintroducing local panel shells.+Settings external documentation text links must route through+`ExternalTextLink`, while button-styled external actions route through+`ButtonLink`/`UpgradeButtonLink`. Shared primitives own new-tab safety, rel+policy, link tone, compact action density, and focus styling; settings panels+must not hand-code raw `<a target="_blank">` anchors for documentation links.+The `settings-external-text-link-shell` and+`settings-external-text-link-local-anchor` registry entries enforce that split,+and the Button registry owns the `info` variant for blue documentation CTAs.+Platform inline notices that sit inside platform pages but are not settingscallouts must route through the shared `InlineNotice` primitive. Platform ownersprovide only the affected-resource copy, render predicate, and destination; thediff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex dbc8d5b4b8..343779c14b 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -3079,6 +3079,7 @@"frontend-modern/scripts/settings-diagnostics-boundary-audit.mjs","frontend-modern/scripts/shared-template-audit.mjs","frontend-modern/scripts/shared-template-registry.json",+ "frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx","frontend-modern/src/components/Settings/AIChatMaintenanceSection.tsx","frontend-modern/src/components/Settings/AIModelSelectionSection.tsx","frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx",@@ -3221,6 +3222,7 @@"label": "settings shell framing proof","match_prefixes": [],"match_files": [+ "frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx","frontend-modern/src/components/Settings/AIChatMaintenanceSection.tsx","frontend-modern/src/components/Settings/AIModelSelectionSection.tsx","frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx",diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex b429215616..0aea2ecf90 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -74,18 +74,26 @@ controls as normal product settings.2. `frontend-modern/src/components/Settings/APIAccessPanel.tsx` shared with `frontend-primitives`: the API Access settings intro is both a security/privacy token-management trust surface and a canonical settings-shell presentation boundary.Its Docker / Podman token wording must come from`frontend-modern/src/utils/apiTokenPresentation.ts` rather than page-local- copy.+ copy. The scope-reference action may compose frontend-primitives'+ `ButtonLink` info variant for external docs-link chrome and new-tab safety;+ security-privacy owns the scope trust copy, not the anchor shell.3. `frontend-modern/src/components/Settings/APITokenManager.tsx` shared with `api-contracts`: the API token settings surface is both a security/privacy control surface and a canonical API payload contract boundary.Token-management table rows are security-facing content, but the visualtable frame and scroll shell belong to `frontend-primitives``PulseDataGrid`; do not add token-surface-local overflow, side-border, or- negative-margin wrappers around the inventory grid.+ negative-margin wrappers around the inventory grid. Scope-reference+ documentation links compose `ExternalTextLink` for shared rel/target safety+ and link chrome.4. `frontend-modern/src/components/Settings/apiTokenManagerModel.ts` shared with `api-contracts`: the pure API token settings model is both a security/privacy control surface and a canonical API payload contract boundary.5. `frontend-modern/src/components/Settings/DataHandlingPanel.tsx` shared with `frontend-primitives`: the data-handling settings surface is both a security/privacy trust surface and a canonical settings-shell presentation boundary.6. `frontend-modern/src/components/Settings/dataHandlingPanelModel.ts` shared with `frontend-primitives`: the data-handling settings model is both a security/privacy posture projection and a canonical settings-shell presentation boundary.7. `frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx` shared with `frontend-primitives`: the general settings privacy panel is both a security/privacy control surface and a canonical settings-shell presentation boundary.+ Privacy documentation links compose `ExternalTextLink`; security-privacy+ owns the telemetry/privacy meaning and retention copy.8. `frontend-modern/src/components/Settings/SecurityAuthPanel.tsx` shared with `frontend-primitives`: the authentication settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.9. `frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx` shared with `frontend-primitives`: the security overview settings surface is both a security/privacy control surface and a canonical settings-shell presentation boundary.+ Security guide links compose `ExternalTextLink`; security-privacy owns the+ hardening and proxy-auth guidance semantics.10. `frontend-modern/src/components/Settings/useAPITokenManagerState.ts` shared with `api-contracts`: the API token settings state hook is both a security/privacy control surface and a canonical API payload contract boundary.11. `frontend-modern/src/constants/apiScopes.ts` shared with `api-contracts`: the API token scope catalog is both a security/privacy token-management trust surface and a canonical API token payload boundary.Scope labels and descriptions are visible security controls. Docker /diff --git a/frontend-modern/scripts/shared-template-registry.json b/frontend-modern/scripts/shared-template-registry.jsonindex 3b8256dfe5..399fb1b0c3 100644--- a/frontend-modern/scripts/shared-template-registry.json+++ b/frontend-modern/scripts/shared-template-registry.json@@ -482,6 +482,7 @@{ "path": "src/components/Infrastructure/ResourceDetailDrawer.tsx" },{ "path": "src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx" },{ "path": "src/components/Settings/AgentProfilesPanel.tsx" },+ { "path": "src/components/Settings/APIAccessPanel.tsx" },{ "path": "src/components/Settings/AvailabilitySettingsPanel.tsx" },{ "path": "src/components/Settings/BillingAdminPanel.tsx" },{ "path": "src/components/Settings/ConnectionEditor/AddressProbeStep.tsx" },@@ -522,6 +523,12 @@"w-full sm:w-auto px-3 py-1.5 text-xs font-medium rounded-md border border-border bg-surface hover:bg-surface-hover disabled:opacity-50"]},+ {+ "path": "src/components/Settings/APIAccessPanel.tsx",+ "patterns": [+ "inline-flex min-h-10 sm:min-h-10 w-fit items-center gap-2 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700"+ ]+ },{"path": "src/components/Settings/ResourcePicker.tsx","patterns": [@@ -687,6 +694,64 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "settings-external-text-link-shell",+ "category": "link",+ "summary": "Inline external documentation links in settings must compose ExternalTextLink for shared new-tab safety, text-link tone, compact action variants, and focus styling instead of hand-coding anchor rel/target and Tailwind link shells.",+ "canonical": {+ "path": "src/components/shared/ExternalTextLink.tsx",+ "export": "ExternalTextLink"+ },+ "requiredConsumers": [+ { "path": "src/components/Settings/AIProviderConfigurationSection.tsx" },+ { "path": "src/components/Settings/AIRuntimeControlsSection.tsx" },+ { "path": "src/components/Settings/AISettingsDialogs.tsx" },+ { "path": "src/components/Settings/APITokenManager.tsx" },+ { "path": "src/components/Settings/AgentIntegrationsPanel.tsx" },+ { "path": "src/components/Settings/GeneralSettingsPanel.tsx" },+ { "path": "src/components/Settings/SecurityOverviewPanel.tsx" },+ { "path": "src/components/Settings/SelfHostedCommercialRecoverySection.tsx" }+ ],+ "forbiddenPatterns": [+ {+ "path": "src/components/Settings/AIProviderConfigurationSection.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noopener"]+ },+ {+ "path": "src/components/Settings/AIRuntimeControlsSection.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noopener noreferrer\""]+ },+ {+ "path": "src/components/Settings/AISettingsDialogs.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noopener"]+ },+ {+ "path": "src/components/Settings/APITokenManager.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noreferrer\""]+ },+ {+ "path": "src/components/Settings/AgentIntegrationsPanel.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noreferrer\""]+ },+ {+ "path": "src/components/Settings/GeneralSettingsPanel.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noopener noreferrer\""]+ },+ {+ "path": "src/components/Settings/SecurityOverviewPanel.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noreferrer\""]+ },+ {+ "path": "src/components/Settings/SelfHostedCommercialRecoverySection.tsx",+ "patterns": ["target=\"_blank\"", "rel=\"noopener noreferrer\""]+ }+ ],+ "proof": [+ "src/components/shared/ExternalTextLink.test.tsx",+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "copyable-code-row-shell","category": "copy-action",@@ -2365,6 +2430,28 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "settings-external-text-link-local-anchor",+ "category": "link",+ "summary": "Settings surfaces must not hand-code raw new-tab anchors for external documentation links; compose ExternalTextLink for inline/text links or ButtonLink for button-styled actions.",+ "canonical": {+ "path": "src/components/shared/ExternalTextLink.tsx",+ "export": "ExternalTextLink"+ },+ "scopes": ["src/components/Settings"],+ "extensions": [".tsx"],+ "allPatterns": ["<a", "target=\"_blank\""],+ "allowedPaths": [],+ "ignoredPaths": [+ "src/components/Settings/__tests__/ProLicensePanel.test.tsx",+ "src/components/Settings/__tests__/settingsArchitecture.test.ts"+ ],+ "proof": [+ "src/components/shared/ExternalTextLink.test.tsx",+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "patrol-ai-local-loading-spinner-shell","category": "loading-indicator",@@ -4407,6 +4494,28 @@"scripts/shared-template-audit.mjs"]},+ {+ "id": "button-info-settings-action-local-shell",+ "category": "action-button",+ "summary": "Settings and infrastructure surfaces must not copy the blue documentation action-button shell; use Button or ButtonLink with the info variant and settingsAction size.",+ "canonical": {+ "path": "src/components/shared/buttonModel.ts",+ "export": "getButtonClass"+ },+ "scopes": ["src/components/Settings", "src/features", "src/pages"],+ "extensions": [".tsx"],+ "allPatterns": [+ "rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700"+ ],+ "legacyReason": "Retired migration debt. Blue documentation action links belong to the shared Button primitive family.",+ "allowedPaths": [],+ "ignoredPaths": ["src/components/shared/Button.test.tsx"],+ "proof": [+ "src/components/shared/SharedPrimitives.guardrails.test.ts",+ "src/components/shared/Button.test.tsx",+ "scripts/shared-template-audit.mjs"+ ]+ },{"id": "button-large-reporting-action-local-shell","category": "action-button",diff --git a/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx b/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsxindex 7118ea6a8a..2205d9c172 100644--- a/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx+++ b/frontend-modern/src/components/Settings/AIProviderConfigurationSection.tsx@@ -1,6 +1,7 @@import { For, Show, type Accessor, type Component, type Setter } from 'solid-js';import type { SetStoreFunction } from 'solid-js/store';import { CalloutCard } from '@/components/shared/CalloutCard';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import { HelpIcon } from '@/components/shared/HelpIcon';import { controlClass } from '@/components/shared/Form';import { getAIProviderHealthPresentation } from '@/utils/aiProviderHealthPresentation';@@ -223,14 +224,9 @@ export const AIProviderConfigurationSection: Component<AIProviderConfigurationSe<div class="flex items-center justify-between"><p class="text-xs text-muted">- <a- href={config.actionLinkHref}- target="_blank"- rel="noopener"- class="inline-flex min-h-10 sm:min-h-9 items-center rounded-md px-1 py-1 text-sm text-blue-600 dark:text-blue-400 hover:underline"- >+ <ExternalTextLink href={config.actionLinkHref} variant="compact">{config.actionLinkLabel}- </a>+ </ExternalTextLink><Show when={config.actionLinkSuffix}><span class="text-slate-400">{config.actionLinkSuffix}</span></Show>diff --git a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsxindex 3acfc0ea45..7aea86a882 100644--- a/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx+++ b/frontend-modern/src/components/Settings/AIRuntimeControlsSection.tsx@@ -2,6 +2,7 @@ import { Component, Show } from 'solid-js';import RefreshCwIcon from 'lucide-solid/icons/refresh-cw';import type { AIControlLevel } from '@/utils/aiControlLevelPresentation';import type { AISettingsState } from '@/components/Settings/useAISettingsState';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import { HelpIcon } from '@/components/shared/HelpIcon';import { FormSelect } from '@/components/shared/FormSelect';import { UpgradeLink } from '@/components/shared/UpgradeLink';@@ -288,14 +289,9 @@ export const AIRuntimeControlsSection: Component<AIRuntimeControlsSectionProps><div class="p-2 bg-amber-100 dark:bg-amber-900 rounded border border-amber-200 dark:border-amber-800 text-[10px] text-amber-800 dark:text-amber-200"><strong>Legal Disclaimer:</strong> Model-driven systems can hallucinate. You areresponsible for any damage caused by autonomous actions. See{' '}- <a- href={TERMS_DOC_URL}- target="_blank"- rel="noopener noreferrer"- class="inline-flex min-h-10 sm:min-h-9 items-center rounded px-1 underline"- >+ <ExternalTextLink href={TERMS_DOC_URL} variant="compactInherit">Terms of Service- </a>+ </ExternalTextLink>.</div></Show>diff --git a/frontend-modern/src/components/Settings/AISettingsDialogs.tsx b/frontend-modern/src/components/Settings/AISettingsDialogs.tsxindex a7a4dfe7a9..3886c7406b 100644--- a/frontend-modern/src/components/Settings/AISettingsDialogs.tsx+++ b/frontend-modern/src/components/Settings/AISettingsDialogs.tsx@@ -1,5 +1,6 @@import { Show, type Accessor, type Component, type Setter } from 'solid-js';import { Dialog } from '@/components/shared/Dialog';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import { SelectionCardGroup } from '@/components/shared/SelectionCardGroup';import { getAISettingsSetupDialogPresentation } from '@/utils/aiSettingsPresentation';import type { AIProvider } from '@/types/ai';@@ -64,14 +65,9 @@ export const AISettingsDialogs: Component<AISettingsDialogsProps> = (props) => {class="w-full px-3 py-2 border border-border rounded-md bg-surface focus:ring-2 focus:ring-blue-500 focus:border-transparent"/><p class="text-xs text-muted mt-1.5">- <a- href={setupProviderConfig().actionLinkHref}- target="_blank"- rel="noopener"- class="text-blue-600 hover:underline"- >+ <ExternalTextLink href={setupProviderConfig().actionLinkHref}>Get your API key →- </a>+ </ExternalTextLink></p></div>}@@ -87,9 +83,7 @@ export const AISettingsDialogs: Component<AISettingsDialogsProps> = (props) => {placeholder="http://localhost:11434"class="w-full px-3 py-2 border border-border rounded-md focus:ring-2 focus:ring-blue-500 focus:border-transparent"/>- <p class="text-xs text-muted mt-1.5">- Ollama runs locally - no API key needed- </p>+ <p class="text-xs text-muted mt-1.5">Ollama runs locally - no API key needed</p></div></Show></div>diff --git a/frontend-modern/src/components/Settings/APIAccessPanel.tsx b/frontend-modern/src/components/Settings/APIAccessPanel.tsxindex 69dca44e87..6147d5ff3a 100644--- a/frontend-modern/src/components/Settings/APIAccessPanel.tsx+++ b/frontend-modern/src/components/Settings/APIAccessPanel.tsx@@ -1,5 +1,6 @@import { Component } from 'solid-js';import SettingsPanel from '@/components/shared/SettingsPanel';+import { ButtonLink } from '@/components/shared/Button';import { API_TOKEN_ACCESS_PANEL_DESCRIPTION } from '@/utils/apiTokenPresentation';import { API_TOKEN_SCOPES_DOC_URL } from '@/utils/docsLinks';import APITokenManager from './APITokenManager';@@ -15,20 +16,18 @@ interface APIAccessPanelProps {export const APIAccessPanel: Component<APIAccessPanelProps> = (props) => {return (<div class="space-y-6">- <SettingsPanel- title="API Access"- noPadding- >+ <SettingsPanel title="API Access" noPadding><div class="space-y-3 p-4 sm:p-6 pb-6"><p class="text-sm text-muted">{API_TOKEN_ACCESS_PANEL_DESCRIPTION}</p>- <a+ <ButtonLinkhref={API_TOKEN_SCOPES_DOC_URL}target="_blank"- rel="noreferrer"- class="inline-flex min-h-10 sm:min-h-10 w-fit items-center gap-2 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700 transition-colors hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-200"+ variant="info"+ size="settingsAction"+ class="w-fit gap-2 font-semibold">View scope reference- </a>+ </ButtonLink></div></SettingsPanel>diff --git a/frontend-modern/src/components/Settings/APITokenManager.tsx b/frontend-modern/src/components/Settings/APITokenManager.tsxindex 12f6446d82..65dd77d5ba 100644--- a/frontend-modern/src/components/Settings/APITokenManager.tsx+++ b/frontend-modern/src/components/Settings/APITokenManager.tsx@@ -1,6 +1,7 @@import { Component, For, Show, createSignal } from 'solid-js';import { Card } from '@/components/shared/Card';import { Dialog } from '@/components/shared/Dialog';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import { SectionHeader } from '@/components/shared/SectionHeader';import { PulseDataGrid } from '@/components/shared/PulseDataGrid';import BadgeCheck from 'lucide-solid/icons/badge-check';@@ -551,14 +552,13 @@ export const APITokenManager: Component<APITokenManagerProps> = (props) => {<Card tone="muted" padding="sm" class="text-xs text-muted">Separate tokens per integration • Rotate regularly •{' '}- <a- class="inline-flex min-h-10 sm:min-h-10 items-center rounded-md px-2 py-1.5 text-sm font-medium text-blue-600 underline-offset-2 hover:underline dark:text-blue-400"+ <ExternalTextLinkhref={API_TOKEN_SCOPES_DOC_URL}- target="_blank"- rel="noreferrer"+ variant="compact"+ class="px-2 py-1.5 font-medium">Scope reference- </a>+ </ExternalTextLink></Card>{/* Revoke confirmation modal — token deletion is irreversible@@ -574,8 +574,12 @@ export const APITokenManager: Component<APITokenManagerProps> = (props) => {<div class="w-full p-6"><h3 class="text-lg font-semibold text-base-content mb-2">Revoke API token?</h3><p class="text-sm text-muted mb-4">- This permanently revokes <span class="font-medium text-base-content">{tokenToRevoke()!.name || tokenToRevoke()!.id}</span>. Any- agents, scripts, or integrations using it will stop authenticating until you issue and configure a replacement token.+ This permanently revokes{' '}+ <span class="font-medium text-base-content">+ {tokenToRevoke()!.name || tokenToRevoke()!.id}+ </span>+ . Any agents, scripts, or integrations using it will stop authenticating until you+ issue and configure a replacement token.</p><div class="flex justify-end gap-3"><buttondiff --git a/frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx b/frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsxindex fbbece9c1b..42f6192ab5 100644--- a/frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx+++ b/frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx@@ -1,4 +1,5 @@import { Component, createMemo, createResource, createSignal, For, Show } from 'solid-js';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import SettingsPanel from '@/components/shared/SettingsPanel';import { AGENT_SUBSTRATE_DOC_URL } from '@/utils/docsLinks';import CopyCommandBlock from './CopyCommandBlock';@@ -38,7 +39,8 @@ const CATEGORY_ORDER: ReadonlyArray<{ id: string; label: string; description: st{id: 'operator-state',label: 'Operator state',- description: 'Per-resource intent: intentionally-offline, never-auto-remediate, maintenance windows.',+ description:+ 'Per-resource intent: intentionally-offline, never-auto-remediate, maintenance windows.',},{id: 'finding',@@ -105,11 +107,21 @@ export const AgentIntegrationsPanel: Component = () => {list.push(cap);byCategory.set(cap.category, list);}- const sections: Array<{ id: string; label: string; description?: string; entries: AgentCapability[] }> = [];+ const sections: Array<{+ id: string;+ label: string;+ description?: string;+ entries: AgentCapability[];+ }> = [];for (const known of CATEGORY_ORDER) {const entries = byCategory.get(known.id);if (entries && entries.length > 0) {- sections.push({ id: known.id, label: known.label, description: known.description, entries });+ sections.push({+ id: known.id,+ label: known.label,+ description: known.description,+ entries,+ });byCategory.delete(known.id);}}@@ -143,21 +155,30 @@ export const AgentIntegrationsPanel: Component = () => {<div class="space-y-3"><div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">- <h3 class="text-sm font-semibold text-base-content">Claude Desktop / Claude Code config</h3>+ <h3 class="text-sm font-semibold text-base-content">+ Claude Desktop / Claude Code config+ </h3><Show when={copied() === mcpConfig}>- <span class="text-xs text-emerald-600 dark:text-emerald-400">Copied to clipboard</span>+ <span class="text-xs text-emerald-600 dark:text-emerald-400">+ Copied to clipboard+ </span></Show></div><p class="text-xs text-muted">First, install <code class="font-mono">pulse-mcp</code>. The fastest path:{' '}- <code class="font-mono">curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install-mcp.sh | bash</code>{' '}+ <code class="font-mono">+ curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install-mcp.sh+ | bash+ </code>{' '}(or <code class="font-mono">irm .../install-mcp.ps1 | iex</code> on Windows). Then dropthis block into{' '}- <code class="font-mono">~/Library/Application Support/Claude/claude_desktop_config.json</code>{' '}+ <code class="font-mono">+ ~/Library/Application Support/Claude/claude_desktop_config.json+ </code>{' '}(Claude Desktop) or your project's <code class="font-mono">.mcp.json</code> (ClaudeCode). Mint a token below with <code class="font-mono">monitoring:read</code> (and{' '}- <code class="font-mono">monitoring:write</code> for the operator-state write tools), then- replace <code class="font-mono"><your-api-token></code>.+ <code class="font-mono">monitoring:write</code> for the operator-state write tools),+ then replace <code class="font-mono"><your-api-token></code>.</p><CopyCommandBlockcommand={mcpConfig}@@ -166,13 +187,13 @@ export const AgentIntegrationsPanel: Component = () => {/><p class="text-xs text-muted">See{' '}- <a class="text-blue-600 hover:underline dark:text-blue-300" href={AGENT_SUBSTRATE_DOC_URL} target="_blank" rel="noreferrer">+ <ExternalTextLink href={AGENT_SUBSTRATE_DOC_URL} variant="inlineSubtle">docs/AGENT_SUBSTRATE.md- </a>{' '}- for build instructions on <code class="font-mono">cmd/pulse-mcp</code>{' '}- (including the <code class="font-mono">--emit-notifications</code> flag and known- limitations), the companion HTTP example at <code class="font-mono">cmd/agent-probe</code>,- and the substrate's design notes.+ </ExternalTextLink>{' '}+ for build instructions on <code class="font-mono">cmd/pulse-mcp</code> (including the{' '}+ <code class="font-mono">--emit-notifications</code> flag and known limitations), the+ companion HTTP example at <code class="font-mono">cmd/agent-probe</code>, and the+ substrate's design notes.</p></div>@@ -193,9 +214,7 @@ export const AgentIntegrationsPanel: Component = () => {<h3 class="text-sm font-semibold text-base-content">Declared capabilities (manifest {manifest()?.version})</h3>- <span class="text-xs text-muted">- {manifest()?.capabilities.length ?? 0} total- </span>+ <span class="text-xs text-muted">{manifest()?.capabilities.length ?? 0} total</span></div><For each={grouped()}>{(section) => (@@ -231,7 +250,7 @@ export const AgentIntegrationsPanel: Component = () => {{(code, idx) => (<><code class="font-mono">{code}</code>- {idx() < (cap.errorCodes!.length - 1) ? ', ' : ''}+ {idx() < cap.errorCodes!.length - 1 ? ', ' : ''}</>)}</For>diff --git a/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx b/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsxindex b38a7f7891..bb2bf3e689 100644--- a/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx+++ b/frontend-modern/src/components/Settings/GeneralSettingsPanel.tsx@@ -1,6 +1,7 @@import { Component, Show, Accessor, Setter } from 'solid-js';import SettingsPanel from '@/components/shared/SettingsPanel';import { Button } from '@/components/shared/Button';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import { Toggle } from '@/components/shared/Toggle';import { EnvironmentLockBadge } from '@/components/shared/EnvironmentLockBadge';import { FilterButtonGroup, type FilterOption } from '@/components/shared/FilterButtonGroup';@@ -236,14 +237,9 @@ export const GeneralSettingsPanel: Component<GeneralSettingsPanelProps> = (propsidentifiers, prompts, chat messages, or personal information are sent. Telemetryrows are retained for up to 90 days, and IP addresses are not stored in telemetryrows.{' '}- <a- href={PRIVACY_DOC_URL}- target="_blank"- rel="noopener noreferrer"- class="underline hover:text-base-content"- >+ <ExternalTextLink href={PRIVACY_DOC_URL} variant="muted">Full details- </a>+ </ExternalTextLink></p></div><Togglediff --git a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsxindex c080f8e71b..1d9ec2ccdc 100644--- a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx+++ b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx@@ -1,5 +1,6 @@import { Component, Show, Accessor, For, createMemo } from 'solid-js';import { CalloutCard } from '@/components/shared/CalloutCard';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import SettingsPanel from '@/components/shared/SettingsPanel';import { PROXY_AUTH_DOC_URL, SECURITY_DOC_URL } from '@/utils/docsLinks';import { SecurityPostureSummary } from './SecurityPostureSummary';@@ -45,9 +46,7 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (proconst recommendedHardeningActions = createMemo(() => hardeningActions().filter((action) => action.severity === 'recommended').length,);- const hardeningTone = createMemo(() =>- criticalHardeningActions() > 0 ? 'danger' : 'info',- );+ const hardeningTone = createMemo(() => (criticalHardeningActions() > 0 ? 'danger' : 'info'));const hardeningTitle = createMemo(() =>criticalHardeningActions() > 0 ? 'Hardening priorities' : 'Recommended hardening steps',);@@ -83,10 +82,7 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (pro};return (- <SettingsPanel- title="Security Overview"- bodyClass="space-y-6"- >+ <SettingsPanel title="Security Overview" bodyClass="space-y-6"><Show when={props.securityStatusLoading()}><div class="rounded-md border border-border overflow-hidden"><div class="bg-surface-alt px-6 py-5 animate-pulse">@@ -192,7 +188,8 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (proProxy Authentication Active</p><p class="text-sm text-blue-700 dark:text-blue-300">- Requests are validated by an upstream proxy before Pulse applies its local authorization rules.+ Requests are validated by an upstream proxy before Pulse applies its local+ authorization rules.</p></div></div>@@ -234,14 +231,9 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (proProxy Logout</a></Show>- <a- href={PROXY_AUTH_DOC_URL}- target="_blank"- rel="noreferrer"- class="inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-md text-blue-600 dark:text-blue-300 hover:underline"- >+ <ExternalTextLink href={PROXY_AUTH_DOC_URL} variant="inlineAction">Read proxy auth guide →- </a>+ </ExternalTextLink></div></div></div>diff --git a/frontend-modern/src/components/Settings/SelfHostedCommercialRecoverySection.tsx b/frontend-modern/src/components/Settings/SelfHostedCommercialRecoverySection.tsxindex c84ba95e45..6d3ba7496e 100644--- a/frontend-modern/src/components/Settings/SelfHostedCommercialRecoverySection.tsx+++ b/frontend-modern/src/components/Settings/SelfHostedCommercialRecoverySection.tsx@@ -1,5 +1,6 @@import { Component, Show } from 'solid-js';import { formField, controlClass } from '@/components/shared/Form';+import { ExternalTextLink } from '@/components/shared/ExternalTextLink';import { FormTextarea } from '@/components/shared/FormTextarea';import { SELF_HOSTED_RECOVERY_PRESENTATION } from '@/utils/licensePresentation';import { TERMS_DOC_URL } from '@/utils/docsLinks';@@ -57,14 +58,9 @@ export const SelfHostedCommercialRecoverySection: Component<help={<>{SELF_HOSTED_RECOVERY_PRESENTATION.helpTextBeforeTerms}{' '}- <a- href={TERMS_DOC_URL}- target="_blank"- rel="noopener noreferrer"- class="inline-flex min-h-10 sm:min-h-9 items-center rounded px-1 text-blue-600 hover:underline"- >+ <ExternalTextLink href={TERMS_DOC_URL} variant="compact">{SELF_HOSTED_RECOVERY_PRESENTATION.termsLabel}- </a>+ </ExternalTextLink>{SELF_HOSTED_RECOVERY_PRESENTATION.helpTextAfterTerms}</>}@@ -76,14 +72,13 @@ export const SelfHostedCommercialRecoverySection: Component<<p class="mt-1 text-xs text-amber-700 dark:text-amber-300">{SELF_HOSTED_RECOVERY_PRESENTATION.privateRuntimeNotice.body}</p>- <a+ <ExternalTextLinkhref={SELF_HOSTED_RECOVERY_PRESENTATION.privateRuntimeNotice.actionUrl}- target="_blank"- rel="noopener noreferrer"- class="mt-2 inline-flex min-h-10 sm:min-h-9 items-center rounded px-1 text-xs font-medium text-blue-700 dark:text-blue-300 hover:underline"+ variant="compactAction"+ class="mt-2">{SELF_HOSTED_RECOVERY_PRESENTATION.privateRuntimeNotice.actionLabel}- </a>+ </ExternalTextLink></div><Show when={props.looksLikeLegacyLicenseKey}><div class="mt-3 rounded-md border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900 p-3 text-sm text-amber-800 dark:text-amber-200">diff --git a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsxindex 5c9593fbd2..b9fbdf5c0f 100644--- a/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/ProLicensePanel.test.tsx@@ -1169,6 +1169,9 @@ describe('ProLicensePanel', () => {expect(proLicensePlanSectionSource).toContain('summary().actionUrl');expect(proLicensePlanSectionSource).toContain('ButtonLink');expect(proLicensePlanSectionSource).toContain('UpgradeButtonLink');+ expect(selfHostedCommercialRecoverySectionSource).toContain('ExternalTextLink');+ expect(selfHostedCommercialRecoverySectionSource).not.toContain('target="_blank"');+ expect(selfHostedCommercialRecoverySectionSource).not.toContain('rel="noopener noreferrer"');expect(proLicensePlanSectionSource).not.toContain('inline-flex items-center gap-1 mt-3 min-h-10 sm:min-h-9 rounded-md border border-current/20 px-3 py-2 text-xs font-medium hover:bg-black/5 dark:hover:bg-white/5',);diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex c816cedb94..c458fb61c5 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -23,6 +23,7 @@ import apiAccessPanelSource from '../APIAccessPanel.tsx?raw';import apiTokenManagerSource from '../APITokenManager.tsx?raw';import apiTokenManagerModelSource from '../apiTokenManagerModel.ts?raw';import apiTokenManagerStateSource from '../useAPITokenManagerState.ts?raw';+import agentIntegrationsPanelSource from '../AgentIntegrationsPanel.tsx?raw';import dataHandlingPanelSource from '../DataHandlingPanel.tsx?raw';import auditLogPanelSource from '../AuditLogPanel.tsx?raw';import auditWebhookPanelSource from '../AuditWebhookPanel.tsx?raw';@@ -578,8 +579,16 @@ describe('settings architecture guardrails', () => {it('keeps API token Docker and Podman copy on shared presentation helpers', () => {expect(apiAccessPanelSource).toContain('API_TOKEN_ACCESS_PANEL_DESCRIPTION');+ expect(apiAccessPanelSource).toContain('ButtonLink');+ expect(apiAccessPanelSource).toContain('variant="info"');+ expect(apiAccessPanelSource).not.toContain('rel="noreferrer"');+ expect(apiAccessPanelSource).not.toContain(+ 'inline-flex min-h-10 sm:min-h-10 w-fit items-center gap-2 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700',+ );expect(apiTokenManagerModelSource).toContain('API_TOKEN_DOCKER_REPORT_PRESET_DESCRIPTION');expect(apiTokenManagerModelSource).toContain('API_TOKEN_DOCKER_MANAGE_PRESET_DESCRIPTION');+ expect(apiTokenManagerSource).toContain('ExternalTextLink');+ expect(apiTokenManagerSource).not.toContain('rel="noreferrer"');expect(apiTokenManagerSource).toContain('getAPITokenDockerPodmanUsageSummary');expect(apiTokenManagerSource).toContain('getAPITokenDockerPodmanUsageTitle');expect(apiTokenManagerStateSource).toContain('getAPITokenDockerPodmanUsageCountLabel');@@ -937,6 +946,8 @@ describe('settings architecture guardrails', () => {"import AgentIntegrationsPanel from './AgentIntegrationsPanel';",);expect(apiAccessPanelSource).toContain('<AgentIntegrationsPanel />');+ expect(agentIntegrationsPanelSource).toContain('ExternalTextLink');+ expect(agentIntegrationsPanelSource).not.toContain('rel="noreferrer"');});it('keeps internal analytics off the user diagnostics boundary', () => {diff --git a/frontend-modern/src/components/shared/Button.test.tsx b/frontend-modern/src/components/shared/Button.test.tsxindex bfea079249..611fe9b3de 100644--- a/frontend-modern/src/components/shared/Button.test.tsx+++ b/frontend-modern/src/components/shared/Button.test.tsx@@ -107,6 +107,9 @@ describe('Button', () => {<Button variant="successGhost" size="settingsAction">Dismiss</Button>+ <Button variant="info" size="settingsAction">+ View reference+ </Button><Button variant="secondary" size="settingsActionXs">Preview payload</Button>@@ -135,6 +138,11 @@ describe('Button', () => {expect(dismissButton).toHaveClass('border-transparent');expect(dismissButton).toHaveClass('text-emerald-900');+ const infoButton = screen.getByRole('button', { name: 'View reference' });+ expect(infoButton).toHaveClass('border-blue-200');+ expect(infoButton).toHaveClass('bg-blue-50');+ expect(infoButton).toHaveClass('text-blue-700');+const previewButton = screen.getByRole('button', { name: 'Preview payload' });expect(previewButton).toHaveClass('min-h-10');expect(previewButton).toHaveClass('text-xs');diff --git a/frontend-modern/src/components/shared/ExternalTextLink.test.tsx b/frontend-modern/src/components/shared/ExternalTextLink.test.tsxnew file mode 100644index 0000000000..c5d8a6498e--- /dev/null+++ b/frontend-modern/src/components/shared/ExternalTextLink.test.tsx@@ -0,0 +1,36 @@+import { cleanup, render, screen } from '@solidjs/testing-library';+import { afterEach, describe, expect, it } from 'vitest';+import { ExternalTextLink, getExternalTextLinkRel } from './ExternalTextLink';++describe('ExternalTextLink', () => {+ afterEach(() => {+ cleanup();+ });++ it('opens external text links with canonical new-tab safety', () => {+ render(() => <ExternalTextLink href="https://docs.example.test">Read docs</ExternalTextLink>);++ const link = screen.getByRole('link', { name: 'Read docs' });+ expect(link).toHaveAttribute('href', 'https://docs.example.test');+ expect(link).toHaveAttribute('target', '_blank');+ expect(link).toHaveAttribute('rel', 'noopener noreferrer');+ expect(link.className).toContain('text-blue-600');+ });++ it('supports compact settings action links without local anchor shells', () => {+ render(() => (+ <ExternalTextLink href="https://docs.example.test/key" variant="compact">+ Get your API key+ </ExternalTextLink>+ ));++ const link = screen.getByRole('link', { name: 'Get your API key' });+ expect(link.className).toContain('min-h-10');+ expect(link.className).toContain('sm:min-h-9');+ });++ it('centralizes the preserve-opener exception', () => {+ expect(getExternalTextLinkRel()).toBe('noopener noreferrer');+ expect(getExternalTextLinkRel(true)).toBeUndefined();+ });+});diff --git a/frontend-modern/src/components/shared/ExternalTextLink.tsx b/frontend-modern/src/components/shared/ExternalTextLink.tsxnew file mode 100644index 0000000000..cdfe4429a4--- /dev/null+++ b/frontend-modern/src/components/shared/ExternalTextLink.tsx@@ -0,0 +1,68 @@+import { splitProps, type JSX } from 'solid-js';++export type ExternalTextLinkVariant =+ | 'inline'+ | 'inlineSubtle'+ | 'muted'+ | 'compact'+ | 'compactAction'+ | 'compactInherit'+ | 'inlineAction';++interface ExternalTextLinkProps extends Omit<+ JSX.AnchorHTMLAttributes<HTMLAnchorElement>,+ 'href' | 'rel' | 'target'+> {+ href: string;+ variant?: ExternalTextLinkVariant;+ preserveOpener?: boolean;+ class?: string;+}++export const EXTERNAL_TEXT_LINK_REL = 'noopener noreferrer';++export const EXTERNAL_TEXT_LINK_BASE_CLASS =+ 'underline-offset-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/60';++export const EXTERNAL_TEXT_LINK_VARIANT_CLASSES: Record<ExternalTextLinkVariant, string> = {+ inline: 'text-blue-600 hover:underline dark:text-blue-400',+ inlineSubtle: 'text-blue-600 hover:underline dark:text-blue-300',+ muted: 'text-muted hover:text-base-content hover:underline',+ compact:+ 'inline-flex min-h-10 items-center rounded px-1 py-1 text-sm text-blue-600 hover:underline dark:text-blue-400 sm:min-h-9',+ compactAction:+ 'inline-flex min-h-10 items-center rounded px-1 text-xs font-medium text-blue-700 hover:underline dark:text-blue-300 sm:min-h-9',+ compactInherit: 'inline-flex min-h-10 items-center rounded px-1 underline sm:min-h-9',+ inlineAction:+ 'inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs font-medium text-blue-600 hover:underline dark:text-blue-300',+};++export const getExternalTextLinkRel = (preserveOpener = false) =>+ preserveOpener ? undefined : EXTERNAL_TEXT_LINK_REL;++export function ExternalTextLink(props: ExternalTextLinkProps) {+ const [local, rest] = splitProps(props, [+ 'href',+ 'variant',+ 'preserveOpener',+ 'class',+ 'children',+ ]);+ const variant = () => local.variant ?? 'inline';++ return (+ <a+ {...rest}+ href={local.href}+ target="_blank"+ rel={getExternalTextLinkRel(local.preserveOpener)}+ class={`${EXTERNAL_TEXT_LINK_BASE_CLASS} ${EXTERNAL_TEXT_LINK_VARIANT_CLASSES[variant()]} ${+ local.class ?? ''+ }`.trim()}+ >+ {local.children}+ </a>+ );+}++export default ExternalTextLink;diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 2f43636735..98b7fb88de 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -13,6 +13,7 @@ import buttonModelSource from '@/components/shared/buttonModel.ts?raw';import copyableCodeRowSource from '@/components/shared/CopyableCodeRow.tsx?raw';import detailSectionTableSource from '@/components/shared/DetailSectionTable.tsx?raw';import detailSectionModelSource from '@/components/shared/detailSectionModel.ts?raw';+import externalTextLinkSource from '@/components/shared/ExternalTextLink.tsx?raw';import commandPaletteModalSource from '@/components/shared/CommandPaletteModal.tsx?raw';import commandPaletteModelSource from '@/components/shared/commandPaletteModel.ts?raw';import columnPickerSource from '@/components/shared/ColumnPicker.tsx?raw';@@ -217,6 +218,9 @@ import resourceDetailDrawerTrueNASModelSource from '@/components/Infrastructure/import resourceDetailDrawerVmwareModelSource from '@/components/Infrastructure/resourceDetailDrawerVmwareModel.ts?raw';import aiSettingsDialogsSource from '@/components/Settings/AISettingsDialogs.tsx?raw';import aiProviderConfigurationSectionSource from '@/components/Settings/AIProviderConfigurationSection.tsx?raw';+import aiRuntimeControlsSectionSource from '@/components/Settings/AIRuntimeControlsSection.tsx?raw';+import agentIntegrationsPanelSource from '@/components/Settings/AgentIntegrationsPanel.tsx?raw';+import apiAccessPanelSource from '@/components/Settings/APIAccessPanel.tsx?raw';import agentProfilesPanelSource from '@/components/Settings/AgentProfilesPanel.tsx?raw';import apiTokenManagerSource from '@/components/Settings/APITokenManager.tsx?raw';import auditLogPanelSource from '@/components/Settings/AuditLogPanel.tsx?raw';@@ -1454,6 +1458,89 @@ describe('shared primitive guardrails', () => {);});+ it('routes settings external documentation text links through ExternalTextLink', () => {+ const registry = JSON.parse(sharedTemplateRegistrySource) as {+ rules?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ requiredConsumers?: Array<{ path?: string }>;+ forbiddenPatterns?: Array<{ path?: string; patterns?: string[] }>;+ }>;+ patternGuards?: Array<{+ id: string;+ canonical?: { path?: string; export?: string };+ scopes?: string[];+ allPatterns?: string[];+ allowedPaths?: string[];+ ignoredPaths?: string[];+ }>;+ };+ const registeredRule = registry.rules?.find(+ (rule) => rule.id === 'settings-external-text-link-shell',+ );+ const rawAnchorGuard = registry.patternGuards?.find(+ (guard) => guard.id === 'settings-external-text-link-local-anchor',+ );++ expect(registeredRule?.canonical?.path).toBe('src/components/shared/ExternalTextLink.tsx');+ expect(registeredRule?.canonical?.export).toBe('ExternalTextLink');+ expect(registeredRule?.requiredConsumers?.map((consumer) => consumer.path)).toEqual([+ 'src/components/Settings/AIProviderConfigurationSection.tsx',+ 'src/components/Settings/AIRuntimeControlsSection.tsx',+ 'src/components/Settings/AISettingsDialogs.tsx',+ 'src/components/Settings/APITokenManager.tsx',+ 'src/components/Settings/AgentIntegrationsPanel.tsx',+ 'src/components/Settings/GeneralSettingsPanel.tsx',+ 'src/components/Settings/SecurityOverviewPanel.tsx',+ 'src/components/Settings/SelfHostedCommercialRecoverySection.tsx',+ ]);+ expect(registeredRule?.forbiddenPatterns).toEqual(+ expect.arrayContaining([+ expect.objectContaining({+ path: 'src/components/Settings/AIProviderConfigurationSection.tsx',+ patterns: expect.arrayContaining(['target="_blank"', 'rel="noopener']),+ }),+ expect.objectContaining({+ path: 'src/components/Settings/APITokenManager.tsx',+ patterns: expect.arrayContaining(['target="_blank"', 'rel="noreferrer"']),+ }),+ expect.objectContaining({+ path: 'src/components/Settings/SelfHostedCommercialRecoverySection.tsx',+ patterns: expect.arrayContaining(['target="_blank"', 'rel="noopener noreferrer"']),+ }),+ ]),+ );+ expect(rawAnchorGuard?.canonical?.path).toBe('src/components/shared/ExternalTextLink.tsx');+ expect(rawAnchorGuard?.canonical?.export).toBe('ExternalTextLink');+ expect(rawAnchorGuard?.scopes).toEqual(['src/components/Settings']);+ expect(rawAnchorGuard?.allPatterns).toEqual(['<a', 'target="_blank"']);+ expect(rawAnchorGuard?.allowedPaths ?? []).toHaveLength(0);+ expect(rawAnchorGuard?.ignoredPaths).toEqual([+ 'src/components/Settings/__tests__/ProLicensePanel.test.tsx',+ 'src/components/Settings/__tests__/settingsArchitecture.test.ts',+ ]);+ expect(externalTextLinkSource).toContain('EXTERNAL_TEXT_LINK_REL');+ expect(externalTextLinkSource).toContain('target="_blank"');+ expect(externalTextLinkSource).toContain('rel={getExternalTextLinkRel');+ for (const source of [+ aiProviderConfigurationSectionSource,+ aiRuntimeControlsSectionSource,+ aiSettingsDialogsSource,+ apiTokenManagerSource,+ agentIntegrationsPanelSource,+ generalSettingsPanelSource,+ securityOverviewPanelSource,+ selfHostedCommercialRecoverySectionSource,+ ]) {+ expect(source).toContain('ExternalTextLink');+ expect(source).not.toContain('rel="noopener');+ expect(source).not.toContain('rel="noreferrer"');+ }+ expect(apiAccessPanelSource).toContain('ButtonLink');+ expect(apiAccessPanelSource).toContain('variant="info"');+ expect(apiAccessPanelSource).not.toContain('<a');+ });+it('keeps column picker on shell, runtime, and model owners', () => {const registry = JSON.parse(sharedTemplateRegistrySource) as {rules?: Array<{@@ -2466,6 +2553,9 @@ describe('shared primitive guardrails', () => {const settingsPrimaryActionGuard = registry.patternGuards?.find((guard) => guard.id === 'button-primary-settings-action-local-shell',);+ const settingsInfoActionGuard = registry.patternGuards?.find(+ (guard) => guard.id === 'button-info-settings-action-local-shell',+ );const settingsSuccessActionGuard = registry.patternGuards?.find((guard) => guard.id === 'button-success-settings-action-local-shell',);@@ -2520,6 +2610,7 @@ describe('shared primitive guardrails', () => {'src/components/Infrastructure/ResourceDetailDrawer.tsx','src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx','src/components/Settings/AgentProfilesPanel.tsx',+ 'src/components/Settings/APIAccessPanel.tsx','src/components/Settings/AvailabilitySettingsPanel.tsx','src/components/Settings/BillingAdminPanel.tsx','src/components/Settings/ConnectionEditor/AddressProbeStep.tsx',@@ -2555,6 +2646,12 @@ describe('shared primitive guardrails', () => {'w-full sm:w-auto px-3 py-1.5 text-xs font-medium rounded-md border border-border bg-surface hover:bg-surface-hover disabled:opacity-50',]),}),+ expect.objectContaining({+ path: 'src/components/Settings/APIAccessPanel.tsx',+ patterns: expect.arrayContaining([+ 'inline-flex min-h-10 sm:min-h-10 w-fit items-center gap-2 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700',+ ]),+ }),expect.objectContaining({path: 'src/components/Settings/ResourcePicker.tsx',patterns: expect.arrayContaining([@@ -2660,6 +2757,20 @@ describe('shared primitive guardrails', () => {expect(settingsPrimaryActionGuard?.ignoredPaths).toEqual(['src/components/shared/Button.test.tsx',]);+ expect(settingsInfoActionGuard?.canonical?.path).toBe('src/components/shared/buttonModel.ts');+ expect(settingsInfoActionGuard?.canonical?.export).toBe('getButtonClass');+ expect(settingsInfoActionGuard?.allPatterns).toEqual([+ 'rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700',+ ]);+ expect(settingsInfoActionGuard?.scopes).toEqual([+ 'src/components/Settings',+ 'src/features',+ 'src/pages',+ ]);+ expect(settingsInfoActionGuard?.allowedPaths ?? []).toHaveLength(0);+ expect(settingsInfoActionGuard?.ignoredPaths).toEqual([+ 'src/components/shared/Button.test.tsx',+ ]);expect(settingsSuccessActionGuard?.canonical?.path).toBe('src/components/shared/buttonModel.ts',);@@ -2907,6 +3018,7 @@ describe('shared primitive guardrails', () => {expect(buttonModelSource).toContain('BUTTON_SIZE_CLASSES');expect(buttonModelSource).toContain('primaryFlat:');expect(buttonModelSource).toContain('warning:');+ expect(buttonModelSource).toContain('info:');expect(buttonModelSource).toContain('settingsActionXs:');expect(buttonModelSource).toContain('success:');expect(buttonModelSource).toContain('successOutline:');@@ -2954,6 +3066,12 @@ describe('shared primitive guardrails', () => {expect(agentProfilesPanelSource).not.toContain('rounded-md border border-border bg-surface px-3 py-2 text-sm font-medium text-base-content',);+ expect(apiAccessPanelSource).toContain('@/components/shared/Button');+ expect(apiAccessPanelSource).toContain('ButtonLink');+ expect(apiAccessPanelSource).toContain('variant="info"');+ expect(apiAccessPanelSource).not.toContain(+ 'inline-flex min-h-10 sm:min-h-10 w-fit items-center gap-2 rounded-md border border-blue-200 bg-blue-50 px-3 py-2 text-sm font-semibold text-blue-700',+ );expect(availabilitySettingsPanelSource).toContain('@/components/shared/Button');expect(availabilitySettingsPanelSource).not.toContain('rounded-md border border-border bg-surface px-3 py-2 text-sm font-medium text-base-content',diff --git a/frontend-modern/src/components/shared/buttonModel.ts b/frontend-modern/src/components/shared/buttonModel.tsindex e339175a4b..717de31881 100644--- a/frontend-modern/src/components/shared/buttonModel.ts+++ b/frontend-modern/src/components/shared/buttonModel.ts@@ -2,6 +2,7 @@ export type ButtonVariant =| 'primary'| 'primaryFlat'| 'warning'+ | 'info'| 'success'| 'successOutline'| 'successGhost'@@ -29,6 +30,7 @@ export const BUTTON_VARIANT_CLASSES: Record<ButtonVariant, string> = {primaryFlat: 'border border-transparent bg-blue-600 text-white hover:bg-blue-700',warning:'border border-amber-300 bg-amber-100 text-amber-800 hover:bg-amber-200 dark:border-amber-700 dark:bg-amber-900 dark:text-amber-100 dark:hover:bg-amber-800',+ info: 'border border-blue-200 bg-blue-50 text-blue-700 hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900 dark:text-blue-200',success: 'border border-transparent bg-emerald-600 text-white shadow-sm hover:bg-emerald-700',successOutline:'border border-emerald-300 bg-white text-emerald-900 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-950 dark:text-emerald-100 dark:hover:bg-emerald-800',diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex b567761d87..dc7967b1d7 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -2860,7 +2860,7 @@ class SubsystemLookupTest(unittest.TestCase):{"heading": "## Shared Boundaries","path": "internal/api/access_control_handlers.go",- "line": 461,+ "line": 465,"heading_line": 123,}],