Skip to content

improvement(usage): show up to 50 rows per tab - #7410

Merged
waleedlatif1 merged 2 commits into
stagingfrom
codex/raise-usage-tab-limit
Sep 2, 2026
Merged

improvement(usage): show up to 50 rows per tab#7410
waleedlatif1 merged 2 commits into
stagingfrom
codex/raise-usage-tab-limit

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Show 50 usage breakdown rows immediately in each tab
  • Allow expanding the remainder up to the 100-row contract ceiling
  • Share the default and maximum limits across the contract and query hook

Type of Change

  • Improvement

Testing

  • Focused organization usage contract and component tests
  • Full lint suite and cleanup review
  • Block registry validation
  • All repository audits

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 2, 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 2, 2026 8:29pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR raises the immediately visible organization-usage breakdown from 10 to 50 rows and the expanded ceiling from 50 to 100.

  • Defines shared default and maximum breakdown limits.
  • Aligns the API contract, query hook, and usage UI with those limits.
  • Adds contract coverage for the new default and maximum.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/lib/api/contracts/organization-usage.ts Introduces shared 50/100 breakdown limits and applies them to request validation.
apps/sim/hooks/queries/organization-usage.ts Uses the shared 50-row default when callers omit an explicit limit.
apps/sim/ee/organization-usage/constants.ts Aligns collapsed and expanded UI row counts with the contract limits.
apps/sim/lib/api/contracts/organization-usage.test.ts Verifies the 50-row default, accepts 100 rows, and rejects 101.

Reviews (2): Last reviewed commit: "improvement(usage): allow expanded views..." | Re-trigger Greptile

@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 1 file

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

@waleedlatif1
waleedlatif1 merged commit 1405b45 into staging Sep 2, 2026
22 checks passed
@cubic-dev-ai

cubic-dev-ai Bot commented Sep 2, 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 deleted the codex/raise-usage-tab-limit branch September 2, 2026 20:29

@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 4 files

Confidence score: 5/5

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

Re-trigger cubic

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