Skip to content

improvement(insights): default to the last 30 days - #7916

Merged
waleedlatif1 merged 1 commit into
stagingfrom
codex/insights-default-window
Sep 17, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
codex/insights-default-window

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Default Insights to the last 30 days to bound initial analytics queries while keeping a useful trend window. Explicit billing-period, 7-day, and custom selections remain available.

Type of Change

  • Improvement

Testing

Verified the default, preset switching, reloads, and event links in the local app. All 50 existing focused tests, app type checking, lint, API validation, and repository audits 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 17, 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 17, 2026 4:39am UTC

Request Review

@waleedlatif1
waleedlatif1 merged commit 452b35c into staging Sep 17, 2026
25 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/insights-default-window branch September 17, 2026 04:40
@greptile-apps

greptile-apps Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge with no outstanding findings.

Summary

This PR changes the default organization Insights usage window from the current billing period to the last 30 days, bounding initial analytics queries while preserving the existing preset options.

  • Updates DEFAULT_USAGE_PRESET from current-period to 30d.
  • No changes were made since the previous review.

Reviews (2) · Last reviewed commit: "improvement(insights): default to the la..."

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

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