Skip to content

Render normalised data - #35

Merged
the-krafty-koder merged 3 commits into
mainfrom
render-normalised-data
May 15, 2026
Merged

the-krafty-koder merged 3 commits into
mainfrom
render-normalised-data

Conversation

@the-krafty-koder

Copy link
Copy Markdown
Contributor

Render normalised data

@Varagos
Varagos requested a review from Copilot May 15, 2026 14:22

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.

Pull request overview

This PR migrates dashboard transcript rendering toward canonical normalized transcript entries returned by the backend, replacing several legacy JSONL parsing paths in transcript, turns, checkpoint, and tool-use views.

Changes:

  • Adds transcript entry GraphQL types, query fields, DTO mapping, and adapter utilities.
  • Updates dashboard transcript/turn/tool-use rendering to consume canonical transcript messages.
  • Updates unit/e2e fixtures and tests for the normalized transcript shape.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/features/dashboard/api-types.ts Adds canonical transcript DTO types and fields.
src/features/dashboard/graphql/types.ts Adds transcript GraphQL node types and optional fields.
src/features/dashboard/graphql/operations.ts Queries transcript entries for checkpoint and interaction details.
src/features/dashboard/graphql/mappers.ts Maps transcript GraphQL nodes to DTOs.
src/features/dashboard/graphql/mappers.test.ts Updates checkpoint detail mapper expectations.
src/features/dashboard/graphql/fetch-dashboard-data.test.ts Updates checkpoint fetch expectations.
src/features/dashboard/utils/transcript-entries.ts Adds canonical-to-renderer transcript adapter helpers.
src/features/dashboard/utils/transcript-entries.test.ts Adds sorting tests for transcript entry conversion.
src/features/dashboard/utils/turn-transcript.ts Reworks turn/session transcript section building around canonical entries.
src/features/dashboard/utils/turn-transcript.test.ts Replaces legacy fragment tests with canonical entry tests.
src/features/dashboard/utils/session-tool-use-display.ts Requires precomputed transcript messages for tool-use display.
src/features/dashboard/utils/session-tool-use-display.test.ts Updates tool-use display tests to pass transcript messages directly.
src/features/dashboard/components/checkpoint-sheet-utils.ts Removes legacy JSONL parser and updates transcript message docs.
src/features/dashboard/components/checkpoint-sheet-utils.test.ts Removes parser tests.
src/features/dashboard/components/checkpoint-sheet.tsx Renders checkpoint/session/turn transcripts from canonical entries.
src/features/dashboard/components/checkpoint-sheet.test.tsx Updates checkpoint transcript rendering test data.
src/features/dashboard/components/turns-timeline.tsx Drops raw event prop and uses canonical transcript sections.
src/features/dashboard/components/session-tool-use-list.tsx Requires transcript entries prop for tool-use rendering.
src/features/dashboard/components/session-detail-sidebar.tsx Uses canonical transcript analysis and hides Cursor token data.
src/features/dashboard/components/session-detail-sidebar.test.tsx Updates interaction detail fixture shape.
src/features/dashboard/use-dashboard-data.test.ts Updates interaction detail fixture shape.
e2e/dashboard.spec.ts Adds canonical transcript fields to session detail e2e fixtures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/features/dashboard/utils/turn-transcript.ts
Comment thread src/features/dashboard/components/checkpoint-sheet.tsx
Comment thread src/features/dashboard/graphql/operations.ts
Comment thread src/features/dashboard/utils/transcript-entries.ts Outdated
Comment thread src/features/dashboard/graphql/operations.ts
Comment thread src/features/dashboard/graphql/mappers.ts
Comment thread src/features/dashboard/components/session-detail-sidebar.tsx
Comment thread src/features/dashboard/utils/transcript-entries.ts
@the-krafty-koder
the-krafty-koder merged commit 9345c6f into main May 15, 2026
6 checks passed
@the-krafty-koder
the-krafty-koder deleted the render-normalised-data branch May 15, 2026 15:47
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.

3 participants