Skip to content

[M4] SemanticFrame: cross-document similarity arcs in comparison mode #42

Description

@Korede-TA

Goal

When two documents are pinned for comparison, visualise cross-document chunk similarity as arcs in SemanticFrame, filtered by the similarity threshold (see similarity threshold issue).

What to do

  • Detect comparison mode: view-store has two pinned doc IDs
  • Filter data-store.edges for type === 'similarity' edges where source and target belong to different pinned docs
  • Render as LineLayer (or ArcLayer with slight elevation for visibility) with color encoding by weight:
    • Low similarity: dim gray
    • High similarity: accent indigo (#6366f1) → white at 1.0
  • Line width proportional to weight
  • Only render edges above filter-store.similarityThreshold
  • Toggle button in SemanticFrame toolbar: "Show cross-doc arcs"

Acceptance criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions