Skip to content

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

@melonamin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions