Align Audit, History, Reverse Proxy, Reporting, and Plans Help with UI

Match docs/AUDIT_LOGGING.md to the shipped Audit Log panel filters
(User, Event, Outcome, and page-local Verification), note that date-range
filters and other event types use the API, point to Settings -> Security ->
Audit Webhooks, and align verification badge labels with Check failed and
Check error. Remove the stale pre-v6.9.0 HTTP 402 range-entitlement
contradiction in docs/METRICS_HISTORY.md so Troubleshooting matches the
free-on-every-plan handler (HTTP 400 for invalid or >365d ranges). Point
docs/REVERSE_PROXY.md at Settings -> Security -> Security Overview and
Settings -> System -> Network -> CORS Allowed Origins, and include the
parent Settings groups in docs/AI.md, docs/MSP.md, and docs/PULSE_PRO.md
for Settings -> Support -> Data & Reports and Settings -> System ->
Plans & Billing.

Sync all six shipped frontend-modern/public/docs mirrors and add
source-bound regression tests in scripts/tests/.

Contract-Neutral: Aligns in-app Help prose and doc tests with existing shipped UI routes, settings navigation, audit verification labels, and free metrics-history behavior with no runtime, API, or permission contract delta.
Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-11-26 23:33:23 +00:00
parent ac07eff751
commit 7cbb774059
17 changed files with 134 additions and 35 deletions

View File

@@ -59,6 +59,26 @@ class ServerHttpsDocsTest(unittest.TestCase):
self.assertEqual(result.returncode, 0, result.stderr)
self.assertEqual(result.stderr, "", result.stderr)
def test_reverse_proxy_help_matches_security_overview_and_cors_labels(self):
canonical = ROOT / "docs/REVERSE_PROXY.md"
shipped = ROOT / "frontend-modern/public/docs/REVERSE_PROXY.md"
self.assertEqual(canonical.read_bytes(), shipped.read_bytes())
text = " ".join(canonical.read_text(encoding="utf-8").split())
self.assertIn(
"**Security Posture** card under **Settings → Security → Security Overview** (`/settings/security-overview`) shows **HTTPS** as **HTTP only**",
text,
)
self.assertIn(
"**Settings → System → Network → CORS Allowed Origins** (`/settings/system-network`)",
text,
)
self.assertNotIn("Settings → System → Network → Allowed Origins", text)
posture = (ROOT / "frontend-modern/src/utils/securityScorePresentation.ts").read_text(encoding="utf-8")
self.assertIn("label: 'HTTPS'", posture)
self.assertIn("'HTTP only'", posture)
network = (ROOT / "frontend-modern/src/components/Settings/NetworkBoundarySettingsSection.tsx").read_text(encoding="utf-8")
self.assertIn("CORS Allowed Origins", network)
if __name__ == "__main__":
unittest.main()