Skip to content

feat: add pagination, and compliance token fix to employees tab#2699

Merged
subomi merged 4 commits into
mainfrom
ai-insights-employees
May 8, 2026
Merged

feat: add pagination, and compliance token fix to employees tab#2699
subomi merged 4 commits into
mainfrom
ai-insights-employees

Conversation

@subomi
Copy link
Copy Markdown
Contributor

@subomi subomi commented May 8, 2026

Summary

  • Add client-side pagination (25 per page) to the employees compliance table
  • Add email matching disclaimer tooltip on the Employee column header explaining how usage is attributed
  • Fix compliance token count to sum input_tokens + output_tokens instead of total_tokens — Cursor hook events never populate total_tokens, only the individual fields, causing all Cursor users to show as not compliant despite having activity

Test plan

  • Verify employees table paginates correctly at 25 rows per page with working prev/next controls and range indicator
  • Verify hovering the info icon on the Employee column shows the disclaimer tooltip
  • Verify users with Cursor activity now show correct token counts and compliant status

🤖 Generated with Claude Code

…ees tab

- Add client-side pagination (25 per page) to the employees compliance table
- Add email matching disclaimer tooltip on the Employee column header
- Fix compliance token count to use input+output tokens instead of total_tokens
  (Cursor events never set total_tokens, only input/output separately)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@subomi subomi requested review from a team as code owners May 8, 2026 20:07
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 8, 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 May 8, 2026 8:19pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: e2f8969

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

This PR includes changesets to release 1 package
Name Type
dashboard Minor

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

@github-actions github-actions Bot added the preview Spawn a preview environment label May 8, 2026
@speakeasybot
Copy link
Copy Markdown
Collaborator

speakeasybot commented May 8, 2026

🚀 Preview Environment (PR #2699)

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

Component Status Details Updated (UTC)
✅ Database Ready Created and validated 2026-05-08 21:11:54.
✅ Images Available Container images ready 2026-05-08 21:11:37.

Gram Preview Bot

@subomi subomi changed the title feat: add pagination and compliance token fix to employees tab feat: add pagination, email disclaimer, and compliance token fix to employees tab May 8, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Token fields are not reliably populated for all hook sources (e.g. Claude Code
events carry hook activity but tokens are attributed separately). Using the
presence of a user summary as the compliance signal is more accurate.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@subomi subomi changed the title feat: add pagination, email disclaimer, and compliance token fix to employees tab feat: add pagination, and compliance token fix to employees tab May 8, 2026
Missing event_source = "hook" caused metrics events to be excluded from
SearchUsers queries that filter by event_source, resulting in zero token
counts for all Claude Code users.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@subomi subomi added this pull request to the merge queue May 8, 2026
Merged via the queue into main with commit 5b1da59 May 8, 2026
28 checks passed
@subomi subomi deleted the ai-insights-employees branch May 8, 2026 22:05
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 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