What it says
Source: KB/src/components/LegalDisclaimer.tsx:38–41.
Informational content only — not legal advice. This knowledgebase provides informational content only and does not constitute legal advice. Consult a licensed Swedish attorney for specific legal decisions.
Rendered as an amber banner at the top of the main content area (between sidebar and article viewer). Inline warning triangle icon, dismiss “X” button on the right.
Why it exists
Two reasons:
- System prompt parity — the chat persona is also instructed: “IMPORTANT: This is informational content only, not legal advice. Always recommend consulting a licensed Swedish attorney for specific legal decisions.” (
KB/server.ts:24–25). The visible banner mirrors what the assistant tells users in chat replies. - Liability hygiene — the KB ingests articles asserting legal positions, IMY decision summaries, and template Art. 14 notices. Without the disclaimer, displaying these in a polished UI could be misread as legal advice from EnrichNode.
Persistence
Dismissed state lives in localStorage["kb_disclaimer_dismissed"]. Once dismissed, the banner does not return for that browser. There is no “show again” toggle in settings.
Gotchas
- Per-browser dismissal means a regulator or auditor opening the app on a fresh browser sees the disclaimer; a returning user does not. Consider a session-scoped variant if the audience changes.
- The dismissed state is checked synchronously in the
useStateinitializer (LegalDisclaimer.tsx:6–8), which throws iflocalStorageis unavailable (private mode in some browsers historically). Not currently guarded.
See also
KB Overview, KB Settings, KB Chat Flow.