Skip to content

feat(chat): Ask source citations open their captures (search or timeline)#3913

Merged
louis030195 merged 7 commits into
mainfrom
claude/busy-shtern-563520
Jun 9, 2026
Merged

feat(chat): Ask source citations open their captures (search or timeline)#3913
louis030195 merged 7 commits into
mainfrom
claude/busy-shtern-563520

Conversation

@louis030195

@louis030195 louis030195 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Ask answers list their sources, but only web and file sources (the ones with a URL) were clickable. The screen and audio captures that actually back the answer rendered as dead gray text, so there was no way to get back to what the answer was built on. This makes them clickable.

Ask sources before and after

  • a screen source with a search term opens the search window (the full thumbnail grid of every matching capture), reusing the standalone search window's existing ?q= entry point.
  • a time-only capture (a meeting, an activity summary) keeps the timeline jump to that moment, since there is no term to search.
  • the affordance reads "open in search" (magnifier) or "open in timeline" (clock); web and file sources keep their external-link behavior.
  • lib/source-citations.ts carries the query and timestamp behind each source; lib/timeline-navigation.ts holds the two open helpers; the footer routes the click.

verification

  • source-citations.test.ts: 27/27 pass (20 original + 7 new for query / timestamp).
  • bunx tsc --noEmit: clean.
  • bun run build (next build): green, all routes export.

Frontend only, no Rust or Tauri command changes, so no bindings regen. Worth one live click to confirm the search grid renders, since the Tauri app cannot run in this worktree.

The docs: screenshot is a review aid only; drop that commit before merge if you do not want the png in the repo.

(An earlier revision of this branch also touched the home sidebar; that has been reverted, so the diff is just the Ask sources change.)

Louis Beaumont and others added 4 commits June 8, 2026 14:15
… timeline

Answers already list their sources, but screen and audio captures rendered as
inert text. Only web and file sources (which had an href) were clickable, so
the most useful sources, the actual recorded moments behind the answer, were a
dead end.

Add an optional machine-readable timestamp to SourceCitation, populate it from
the start_time of screenpipe search, activity, and meeting queries (both the
screenpipe_search tool and the bash curl path), and make the footer row jump
into the timeline at that moment using the existing navigate-to-timestamp deep
link. Non-capture sources (memory, db, connector) stay inert.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… merge)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The always-visible rail rendered everything at the smallest sizes: nav
labels at 12px, icons at 14px, and the recording status as three 12px
icons whose state was encoded only in opacity (fading to nearly
invisible). At a glance it was hard to read what to click, which is
exactly the legibility feedback we got.

- recording status: state in words ("recording" / "paused") with a
  filled dot; device icons 12px to 16px with binary on/off contrast
  instead of an opacity gradient.
- nav: icons 14px to 18px, labels 12px to 14px, more padding, and the
  active item is visibly heavier (semibold + border) so it is clear
  where you are.
- same bump applied to the team / referral / settings / help row.

Black and white only, no color added.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…erge)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@louis030195 louis030195 changed the title feat(chat): Ask source citations jump into the timeline feat(ui): more legible home sidebar and clickable Ask sources Jun 8, 2026
Louis Beaumont and others added 3 commits June 8, 2026 17:05
A screen source under an answer is more useful as the full thumbnail grid
of matching captures than as a single timeline moment.

- SourceCitation now carries the search term (query) when the source had one.
- the footer opens a capture that has a search term in the search window
  (showWindow Search with ?q=), and keeps the timeline jump as a fallback
  for time-only captures (meetings, activity summaries) with no term.
- affordance reads "open in search" (magnifier) vs "open in timeline" (clock).

Frontend only; reuses the standalone search window's existing ?q= entry
point. Needs a live click to confirm the grid renders (the Tauri app cannot
run in this worktree).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reverts the sidebar size/contrast pass (app/home/page.tsx) and its review
screenshot, per request. The Ask source-citation work in this PR is kept.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@louis030195 louis030195 changed the title feat(ui): more legible home sidebar and clickable Ask sources feat(chat): Ask source citations open their captures (search or timeline) Jun 9, 2026
@louis030195 louis030195 merged commit e2a28ec into main Jun 9, 2026
18 checks 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.

1 participant