Skip to content

feat: analytics transcript matches session page style#28

Merged
softberries merged 6 commits intomainfrom
feat/analytics-transcript-style
Mar 26, 2026
Merged

feat: analytics transcript matches session page style#28
softberries merged 6 commits intomainfrom
feat/analytics-transcript-style

Conversation

@softberries
Copy link
Copy Markdown
Member

Summary

Rewrite the analytics session transcript (SessionTranscript.svelte) to use the same chat-bubble style as the session detail page instead of the log-style expandable rows.

Changes

  • User messages: left-aligned pink bubbles
  • Assistant messages: right-aligned muted bubbles
  • Tool uses: colored expandable blocks with tool name badge + summary (same colors as session page)
  • Keeps the type filter badges (user/assistant/progress/system)
  • Shows token usage inline on assistant messages and tool blocks
  • Filters out empty/whitespace-only records
  • Collapses excessive newlines

Test plan

  • Manual: compare analytics transcript with session page transcript for the same session
  • Manual: verify type filter badges still work
  • Manual: verify tool blocks expand/collapse

@softberries softberries force-pushed the feat/analytics-transcript-style branch from 475b3b0 to 99b542a Compare March 26, 2026 09:35
input_tokens from Anthropic API includes cache_read and cache_write tokens.
Subtract them to get fresh (non-cached) input before calculating cost,
otherwise cached tokens are charged at both input rate and cache rate.
@softberries softberries merged commit 51949d9 into main Mar 26, 2026
7 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