Skip to content

feat(timeline): compact, clickable knowledge-source chips - #90

Merged
SushantGautam merged 2 commits into
mainfrom
feat/kb-source-chips
Nov 9, 2026
Merged

SushantGautam merged 2 commits into
mainfrom
feat/kb-source-chips

Conversation

@SushantGautam

Copy link
Copy Markdown
Collaborator

Retrieval steps in the trajectory timeline listed every source as a comma-joined line of full URLs. Each source is now a compact chip:

  • Label: the document title when present, otherwise a readable label derived from any source shape (deep URL + anchor, query id, opaque id, generic filename, s3/file paths, DOI, plain text).
  • Only http(s) links are clickable (new tab, noopener); redacted URLs are not linked and shown in amber.
  • Three chips per step with a "+N more" toggle; sources already returned by an earlier step are dimmed.
  • Hover shows title, score, document id, full URL and the earlier step that returned it.

Tests: infra/tests/test_source_chips.py.

Retrieval steps listed every source as one comma-joined line of full URLs.
Each source is now a chip: the document title when the retriever gives one,
otherwise a readable label derived from any URL shape (deep path + anchor,
query id, opaque id, generic filename, s3/file paths, DOI, plain text).
Only safe http(s) links are clickable; redacted URLs are not linked.
Three chips show per step with a '+N more' toggle; hover shows title,
score, id, full URL, and which earlier step already returned the source.
Copilot AI balanced review requested due to automatic review settings November 9, 2026 13:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@SushantGautam
SushantGautam merged commit d434fa5 into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants