feat(dashboard): add demo targets, fix MCP status, source-only UI #252

Merged
sharang merged 1 commits from feat/dashboard-demo-ux into main 2026-09-14 08:24:44 +00:00
Owner

Demonstration plan, phase D3 (dashboard side). Pairs with #251, which adds the agent endpoints and the source_only feature flag.

Add demo targets. The Targets page (empty state) and the onboarding wizard now offer a button that lists what the agent would create, seeds it, and reports per target created / already there / failed with the error inline. That replaces "onboard something by hand before you can see anything" for a trial user; the curl script stays for ops.

MCP status. The card never turned running on staging: the health URL was built by appending /health to an endpoint that already ends in /mcp, and the ingress routes /mcp/* to a server that serves /health at its own root. The probe now tries …/mcp/health and then …/health, and MCP_HEALTH_URL overrides it outright for the seeded cards (staging: https://pruefwerk-stage.breakpilot.com/mcp/health). Unit-tested through mcp_health_url_candidates.

Source-only mode. The dashboard reads the agent's features list from the public version handshake (cached, and an older agent without the key degrades to "everything enabled"). With source_only it hides dynamic application testing, pentest, the ICS probe and the PLC runtime behind one short note rather than offering actions that fail at the tool, and a stage the pipeline reports as skipped for that reason renders neutral instead of red.

Control column. The findings table shows the control-mapping column only when at least one finding in view carries control_refs, so an environment without a control catalog does not show a column of em dashes.

Docs: getting-started gains the demo-target entry point and a section on static-analysis-only environments; the MCP feature page documents the status probe and MCP_HEALTH_URL, which is also in .env.example.

Verified locally: cargo fmt --all --check, cargo clippy -p compliance-dashboard --features server --no-default-features, both dashboard test suites (server and web features) green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

Demonstration plan, phase D3 (dashboard side). Pairs with #251, which adds the agent endpoints and the `source_only` feature flag. **Add demo targets.** The Targets page (empty state) and the onboarding wizard now offer a button that lists what the agent would create, seeds it, and reports per target `created` / `already there` / `failed` with the error inline. That replaces "onboard something by hand before you can see anything" for a trial user; the curl script stays for ops. **MCP status.** The card never turned *running* on staging: the health URL was built by appending `/health` to an endpoint that already ends in `/mcp`, and the ingress routes `/mcp/*` to a server that serves `/health` at its own root. The probe now tries `…/mcp/health` and then `…/health`, and `MCP_HEALTH_URL` overrides it outright for the seeded cards (staging: `https://pruefwerk-stage.breakpilot.com/mcp/health`). Unit-tested through `mcp_health_url_candidates`. **Source-only mode.** The dashboard reads the agent's `features` list from the public version handshake (cached, and an older agent without the key degrades to "everything enabled"). With `source_only` it hides dynamic application testing, pentest, the ICS probe and the PLC runtime behind one short note rather than offering actions that fail at the tool, and a stage the pipeline reports as skipped for that reason renders neutral instead of red. **Control column.** The findings table shows the control-mapping column only when at least one finding in view carries `control_refs`, so an environment without a control catalog does not show a column of em dashes. Docs: getting-started gains the demo-target entry point and a section on static-analysis-only environments; the MCP feature page documents the status probe and `MCP_HEALTH_URL`, which is also in `.env.example`. Verified locally: `cargo fmt --all --check`, `cargo clippy -p compliance-dashboard --features server --no-default-features`, both dashboard test suites (`server` and `web` features) green. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-09-14 08:09:07 +00:00
feat(dashboard): add demo targets, fix MCP status, source-only UI
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 6m46s
35fba487f2
Three things a prospect would have hit in the Pruefwerk dashboard:

- An empty workspace had no way in. The Targets page and the onboarding
  wizard now offer "Add demo targets", which calls the agent's demo-seed
  endpoint and reports per target whether it was created, already there
  or failed.
- The MCP server card never turned "running" on staging: the health URL
  was derived by appending /health to an endpoint that already ends in
  /mcp, which the ingress routes to a server serving /health at its root.
  The probe now tries both, and MCP_HEALTH_URL overrides it outright for
  the seeded cards.
- Where the agent reports the source_only feature, dynamic testing,
  pentest, the ICS probe and the PLC runtime are hidden with a short note
  instead of offering actions that cannot work, and stages the pipeline
  reports as skipped for that reason read neutral rather than failed.

The findings table also shows the control-mapping column only when
something in view actually carries control references.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang force-pushed feat/dashboard-demo-ux from 04cf5f007e to 35fba487f2 2026-09-14 08:09:07 +00:00 Compare
sharang merged commit 6557f03d7c into main 2026-09-14 08:24:44 +00:00
Sign in to join this conversation.