Skip to content

feat(dashboard): employee data flow graph#3111

Merged
subomi merged 15 commits into
mainfrom
employee-data-flow-graph
Jun 2, 2026
Merged

feat(dashboard): employee data flow graph#3111
subomi merged 15 commits into
mainfrom
employee-data-flow-graph

Conversation

@subomi
Copy link
Copy Markdown
Contributor

@subomi subomi commented May 29, 2026

Summary

  • Adds an employee-level data flow graph to Insights > Employee Detail, showing MCP usage from origin through client, server, and tool nodes.
  • Adds telemetry.getEmployeeDataFlowGraph plus generated SDK and React Query support for typed graph nodes and weighted edges.
  • Aggregates ClickHouse telemetry into the top 100 path tuples, then builds deduped nodes and collision-safe edges in Go with call, success, and failure counts.
  • Captures hook hostname as the gram.hook.hostname attribute and uses it as the graph origin.

Test plan

  • go test ./server/internal/telemetry -run 'Test(BuildEmployeeDataFlowGraph_DoesNotCollideEdgesWhenLabelsContainDelimiter|GetEmployeeDataFlowGraph)' -count=1
  • Click-test Insights > Employee Detail against live telemetry and verify graph counts/layout.
CleanShot.2026-05-29.at.1.49.40.mp4

Fixes AGE-2503.

@subomi subomi requested review from a team as code owners May 29, 2026 14:04
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment Jun 2, 2026 5:48pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

🦋 Changeset detected

Latest commit: 121a260

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
dashboard Patch
server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@subomi subomi marked this pull request as draft May 29, 2026 14:06
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 43 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="server/clickhouse/schema.sql">

<violation number="1" location="server/clickhouse/schema.sql:98">
P2: Missing bloom filter indexes for `endpoint_os` and `endpoint_arch`. Every other materialized column in this table has a corresponding index. If these columns will be used in WHERE clauses, the missing indexes will hurt query performance on large datasets.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread server/clickhouse/schema.sql Outdated
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

AGE-2503

@subomi subomi marked this pull request as ready for review May 29, 2026 18:20
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 56 files

Partial review: This PR has more than 50 files, so cubic reviewed the highest-priority files first. During the trial, paid plans get a higher file limit.
You can try an ultrareview to bypass the file limit, comment @cubic-dev-ai ultrareview. Learn more.

Fix all with cubic | Re-trigger cubic

Comment thread server/internal/telemetry/impl.go Outdated
@github-actions github-actions Bot added the preview Spawn a preview environment label May 29, 2026
@speakeasybot
Copy link
Copy Markdown
Collaborator

speakeasybot commented May 29, 2026

🚀 Preview Environment (PR #3111)

Preview URL: https://pr-3111.dev.getgram.ai

Component Status Details Updated (UTC)
⏳ Database Pending Waiting for db-init job 2026-06-02 17:54:56.
✅ Images Available Container images ready 2026-06-02 17:54:54.

Gram Preview Bot

Copy link
Copy Markdown
Member

@simplesagar simplesagar left a comment

Choose a reason for hiding this comment

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

Could you add a screenshot for the new UX ?

@subomi
Copy link
Copy Markdown
Contributor Author

subomi commented Jun 1, 2026

Could you add a screenshot for the new UX ?

@simplesagar done.

@subomi subomi added this pull request to the merge queue Jun 2, 2026
Merged via the queue into main with commit 91e166d Jun 2, 2026
32 checks passed
@subomi subomi deleted the employee-data-flow-graph branch June 2, 2026 18:01
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

preview Spawn a preview environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants