Repository navigation
feat(insights): adoption tab with active members by surface, member table, breakdowns and CSV export - #10540
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 17 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge, with no outstanding findings. SummaryAdds an Adoption tab with member activity, daily charts, surface totals, breakdowns, and CSV export.
Reviews (7) · Last reviewed commit: "fix(insights): classify export outages l..." · Reviewed by Greptile |
…n, UTC chart, period-end labels
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 17 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@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 review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 17 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 17 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
…tive, member list end notice
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 17 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
…e 10,000-member cap
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 18 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
Summary
organization_member_activity_daily(feat(insights): record daily member activity per surface for organization adoption #10532), for organization admins and owners with usage monitoringadoption-sort,adoption-page)adoption-group): departments from People profiles (members without one grouped as "No department"), Search MCP tools and Search MCP clients (client name, or the API key kind), each with active members, totals and error rateGET /api/organizations/[id]/usage/adoption/export(the Insights Export action switches to it on this tab); same session auth,no-store, formula-injection-safe cells andX-Export-Truncatedas the usage exportlib/api/contracts/organization-adoption.ts(defineRouteContract), routes ondefineInternalJsonRoutewith the usage error policy, operationsorganization_usage.adoption.read/.exportunder organization admin authority, React Query hooks inhooks/queries/organization-adoption.tsformatFailureRaterenamedformatPercent, now shared by both tabsType of Change
Testing
lib/billing/core/organization-adoption.integration.tsagainst real Postgres (6 tests): a former member and another organization's member never count; 1/7/28-day bounds; coverage and stickiness from the daily series; every member listed with zeros for the inactive; ordering by days, uses and recency; department breakdown with the no-department group; Search MCP tool and client breakdowns bounded to the period. Removing the membership join or the Search MCP period bound turns their tests redee/organization-usage,app/api/organizations/[id]/usagecheck:api-validation:strict,check:client-boundary,check:boundaries,check:unused-exports,bun run generate, lintChecklist
test-auditauthoring gate)