feat(dashboard): the CSAF draft's TLP label as a coloured badge with its meaning #535

Merged
sharang merged 1 commits from fix/b-tlp-badge into main 2026-10-08 21:45:53 +00:00
Owner

What was wrong

The VEX panel on a Prüfobjekt mentioned the CSAF draft's TLP label only in running text ("Der CSAF-Entwurf ist als TLP:AMBER markiert ..."), with no visual cue and no explanation of what TLP:AMBER means for sharing.

What changed

  • Below "CSAF-Entwurf herunterladen" the panel now reads "Der CSAF-Entwurf ist markiert als [TLP:AMBER]. Prüfen Sie Herausgeber und Aussagen ...", with the label as a badge.
  • Colours reuse the existing badge classes: AMBER badge-medium (the amber --sev-medium/--warning token), RED badge-danger, GREEN badge-success, CLEAR/WHITE badge-neutral. No new CSS.
  • Tooltip (title) per FIRST TLP 2.0, DE + EN: AMBER "Weitergabe nur intern und an Kunden, die es wissen müssen" / "Share only within your organisation and with clients who need to know"; RED "Nur für die einzelnen Empfänger, keine Weitergabe"; GREEN "Weitergabe innerhalb der eigenen Community, nicht öffentlich"; CLEAR/WHITE "Weitergabe ohne Einschränkung, öffentlich".
  • The draft's label stays AMBER (set in compliance_core::csaf_docs); the dashboard mirrors it in one constant next to the badge. Only AMBER is displayed today; the other mappings are there for when the label becomes configurable.
  • docs/guide/vex.md and vex-en.md mention the badge.

Tests

  • New components::vex_panel::tests::each_tlp_label_has_its_colour_and_sharing_rule.
  • cargo fmt --all --check, clippy -D warnings for compliance-dashboard with server and with web.
  • Not looked at in a browser locally (colour in light and dark theme unverified by eye).

Stage re-test

  1. Open a Prüfobjekt with known vulnerabilities and scroll to the VEX card.
  2. Below "CSAF-Entwurf herunterladen": an amber "TLP:AMBER" badge inside the sentence.
  3. Hover the badge: tooltip "Weitergabe nur intern und an Kunden, die es wissen müssen"; switch the UI to EN: "Share only within your organisation and with clients who need to know".
  4. Check the badge in the dark theme too.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

## What was wrong The VEX panel on a Prüfobjekt mentioned the CSAF draft's TLP label only in running text ("Der CSAF-Entwurf ist als TLP:AMBER markiert ..."), with no visual cue and no explanation of what TLP:AMBER means for sharing. ## What changed - Below "CSAF-Entwurf herunterladen" the panel now reads "Der CSAF-Entwurf ist markiert als [TLP:AMBER]. Prüfen Sie Herausgeber und Aussagen ...", with the label as a badge. - Colours reuse the existing badge classes: AMBER `badge-medium` (the amber `--sev-medium`/`--warning` token), RED `badge-danger`, GREEN `badge-success`, CLEAR/WHITE `badge-neutral`. No new CSS. - Tooltip (`title`) per FIRST TLP 2.0, DE + EN: AMBER "Weitergabe nur intern und an Kunden, die es wissen müssen" / "Share only within your organisation and with clients who need to know"; RED "Nur für die einzelnen Empfänger, keine Weitergabe"; GREEN "Weitergabe innerhalb der eigenen Community, nicht öffentlich"; CLEAR/WHITE "Weitergabe ohne Einschränkung, öffentlich". - The draft's label stays AMBER (set in `compliance_core::csaf_docs`); the dashboard mirrors it in one constant next to the badge. Only AMBER is displayed today; the other mappings are there for when the label becomes configurable. - docs/guide/vex.md and vex-en.md mention the badge. ## Tests - New `components::vex_panel::tests::each_tlp_label_has_its_colour_and_sharing_rule`. - `cargo fmt --all --check`, clippy `-D warnings` for compliance-dashboard with `server` and with `web`. - Not looked at in a browser locally (colour in light and dark theme unverified by eye). ## Stage re-test 1. Open a Prüfobjekt with known vulnerabilities and scroll to the VEX card. 2. Below "CSAF-Entwurf herunterladen": an amber "TLP:AMBER" badge inside the sentence. 3. Hover the badge: tooltip "Weitergabe nur intern und an Kunden, die es wissen müssen"; switch the UI to EN: "Share only within your organisation and with clients who need to know". 4. Check the badge in the dark theme too. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-08 21:33:45 +00:00
feat(dashboard): the CSAF draft's TLP label as a coloured badge with its meaning
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 10m36s
8d26845355
The VEX panel said "TLP:AMBER" only inside the hint sentence. It now shows
the label as a badge (AMBER amber, RED red, GREEN green, CLEAR/WHITE
neutral, reusing the existing badge classes) with the FIRST TLP 2.0
sharing rule as its tooltip, in German and English.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 0586f2c639 into main 2026-10-08 21:45:53 +00:00
Sign in to join this conversation.