feat(help): readable assistant answers, German UI, and docs that match the pilot product #424

Merged
sharang merged 2 commits from feat/help-chat-ui into main 2026-09-28 22:39:07 +00:00
Owner

Why

  • The Help Assistant's answers turned into one long code span after the first backtick, and it gave wrong answers about submodules: the docs didn't cover them.
  • A docs audit found many pages still describing the old "Repositories" UI and features that don't exist.

What

  • Assistant UI:
    • markdown rendered with pulldown-cmark; raw HTML escaped; only http(s)/mailto/relative links kept;
    • German/English texts, suggested questions, errors shown apart from answers and never sent back as history;
    • one send path; the panel fits phone screens.
  • Assistant prompt: Prüfwerk naming, answers in the question's language, direct answer first, doc pages named by title.
  • Assistant context: it only reads the published docs (skips docs/design, .vitepress, node_modules).
  • CI: the agent redeploys when docs/ or README.md change, because the image carries the docs.
  • Docs:
    • Git Submodules section; findings statuses including both Fehlalarm kinds;
    • scan statuses, skip and failure reasons, the new-findings e-mail;
    • the Prüfobjekte wizard; embedded library versions; tools, PLC, overview, MCP, README routes.
  • No Firmwerk import yet: the UI texts, scan-matrix reasons and docs no longer point to one.

Tests

  • markdown renderer (closing tags, lists, raw HTML, script links)
  • published-docs filter
  • full core/agent/dashboard test suites (606 tests)
  • clippy with the CI flags on every crate; fmt

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

## Why - The Help Assistant's answers turned into one long code span after the first backtick, and it gave wrong answers about submodules: the docs didn't cover them. - A docs audit found many pages still describing the old "Repositories" UI and features that don't exist. ## What - **Assistant UI:** - markdown rendered with pulldown-cmark; raw HTML escaped; only http(s)/mailto/relative links kept; - German/English texts, suggested questions, errors shown apart from answers and never sent back as history; - one send path; the panel fits phone screens. - **Assistant prompt:** Prüfwerk naming, answers in the question's language, direct answer first, doc pages named by title. - **Assistant context:** it only reads the published docs (skips `docs/design`, `.vitepress`, `node_modules`). - **CI:** the agent redeploys when `docs/` or `README.md` change, because the image carries the docs. - **Docs:** - Git Submodules section; findings statuses including both Fehlalarm kinds; - scan statuses, skip and failure reasons, the new-findings e-mail; - the Prüfobjekte wizard; embedded library versions; tools, PLC, overview, MCP, README routes. - **No Firmwerk import yet:** the UI texts, scan-matrix reasons and docs no longer point to one. ## Tests - markdown renderer (closing tags, lists, raw HTML, script links) - published-docs filter - full core/agent/dashboard test suites (606 tests) - clippy with the CI flags on every crate; fmt 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 2 commits 2026-09-28 22:31:52 +00:00
- The assistant's "markdown" swapped every ** and backtick for an opening
  tag and never closed it, so after the first backtick the whole answer
  turned into one code span; it also inserted model output as raw HTML.
  Answers are now rendered with pulldown-cmark, with raw HTML shown as
  text and only web, mail and relative links kept.
- The panel is in German and English, offers suggested questions, shows
  errors apart from answers, and never sends a failed request back as
  history. One send path serves the button, Enter and suggestions.
- The prompt names Prüfwerk, answers in the question's language, leads
  with a direct answer and names doc pages instead of file paths.
- Docs: a "Git Submodules" section (depth, URL rules, token scope,
  skipped submodules, vendor code) and the sub-steps of "Projekt
  erkennen" and "Controls zuordnen" in the scan phases.
- CI redeploys the agent when docs/ or README.md change: the assistant
  answers from the copy baked into its image.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
docs: match the pilot product; the assistant reads only published docs
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 7m1s
2404d614e6
- findings: every status with its German label, both Fehlalarm kinds,
  Zu prüfen, accepted risk, history, CRA and catalog controls; the
  "AI learns from feedback" claim removed (nothing implements it).
- scanning: Prüfung starten, real statuses (no Queued), the new-findings
  e-mail, tables of failure and "Nicht ausgeführt" reasons, all phases.
- repositories: the Prüfobjekte list and the Neues Prüfobjekt wizard,
  archive rules, API-only issue tracker; getting started (DE/EN), SBOM
  (embedded library versions), tools, PLC, overview, MCP, help, README.
- No Firmwerk bundle import exists yet: the UI, the scan matrix and the
  docs no longer tell customers to import one.
- The help assistant skips docs/design, .vitepress and node_modules, as
  the docs site does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 6d8e63c226 into main 2026-09-28 22:39:07 +00:00
Sign in to join this conversation.