Skip to content

Node metadata: description + rich-info popup (HTML with sanitizer) #25

Closed

Description

@melonamin

Split out from #17.

Proposal

  • Add description?: string (plain-text technical comments) and info?: string (rich HTML) to Node.
  • Render two optional node icons:
    • speech-bubble glyph when description is set → plain-text tooltip.
    • info glyph when info is set → sanitized HTML popup.
  • Sanitize info via an allowlist renderer (DOMPurify or equivalent). No raw innerHTML.

Needs product decisions before implementation

  • Who populates description / info? Parser? Schema import? Manual annotation?
  • HTML tag / attribute allowlist (FlowScope is privacy-first and browser-based; XSS risk is real).

Acceptance

  • Both icons conditional on field presence.
  • XSS test (<script>, onerror, javascript: URIs) proves sanitizer blocks them.

⚠️ Hold implementation until the two decisions above are settled.

Activity

  1. added
    enhancement
    question
    on Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions