Skip to content

feat(insights): add organization activity dashboards - #7884

Merged
waleedlatif1 merged 4 commits into
stagingfrom
codex/organization-insights
Sep 16, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
codex/organization-insights

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add organization activity charts and scoped workflow, workspace, member, and trigger breakdowns.
  • Move charts into EMCN with stable loading frames, interactive legends, accessible values, and compact settings tables.
  • Aggregate before resolving names and add a concurrent chat/date index.

Type of Change

  • New feature

Testing

  • 199 focused tests passed, covering PostgreSQL aggregation, timezones, continuations, and authorization.
  • Full lint, type checks, 46 audits, and migration safety checks passed.
  • Verified light/dark and narrow layouts, fixed loading geometry, legend interactions, pagination, drill-downs, and empty/error states in the app.
  • Fresh PostgreSQL migration and replay passed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 16, 2026 7:19pm UTC

Request Review

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 58 files

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

Fix all with cubic | Re-trigger cubic

Comment thread packages/emcn/src/components/charts/chart-data-table.tsx Outdated
Comment thread packages/emcn/src/components/charts/dashboard-metric.tsx Outdated
Comment thread apps/sim/ee/organization-usage/components/usage-summary.tsx Outdated
Comment thread packages/emcn/src/components/charts/use-chart-theme.ts
@greptile-apps

greptile-apps Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with a non-blocking UI/documentation terminology mismatch remaining.

Findings

  1. P2 Action labels contradict documentation

Summary

This PR adds organization-level activity and performance insights alongside the existing credit-usage views.

  • Introduces authorized activity summary and paginated breakdown APIs for workflows, chats, members, workspaces, and triggers.
  • Adds activity dashboards, drill-down controls, shared EMCN chart components, and accessible chart/table presentations.
  • Adds PostgreSQL aggregation coverage and an activity-oriented database index.
  • Renames the enterprise usage surface to Insights and expands its documentation.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  UI[Organization Insights UI] --> SQ[Activity summary query]
  UI --> BQ[Activity breakdown query]
  SQ --> SR[Organization activity summary API]
  BQ --> BR[Organization activity breakdown API]
  SR --> AUTH[Session authorization and organization usage operations]
  BR --> AUTH
  AUTH --> AGG[PostgreSQL activity aggregation]
  AGG --> LOGS[Workflow execution records]
  AGG --> CHATS[Recorded chat activity]
  SQ --> CHARTS[EMCN charts and metrics]
  BQ --> TABLE[Paginated activity table]
Loading

Reviews (4) · Last reviewed commit: "fix(insights): restore original header a..."

Comment thread apps/sim/ee/organization-usage/components/activity-panel.tsx Outdated
@waleedlatif1
waleedlatif1 force-pushed the codex/organization-insights branch from 990fd0d to 380f7a0 Compare September 16, 2026 18:50
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 60 files

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

Fix all with cubic | Re-trigger cubic

Comment thread packages/emcn/src/components/charts/chart-data-table.tsx Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 60 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1
waleedlatif1 merged commit 2ee0708 into staging Sep 16, 2026
28 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/organization-insights branch September 16, 2026 19:20
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 60 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

This branch was previously deployed

1 inactive deployment
Preview 1293950f Deployed Sep 16, 2026 by vercel[bot]
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