Skip to content

Conversation

@drifter089
Copy link
Owner

Summary

Adds the ability to edit the selected data range for Google Sheets metrics directly in the metric drawer. Users can modify their range selection without recreating the metric.

Key Changes

  • Add updateEndpointConfigAndRegenerate tRPC procedure to update config and re-run pipeline
  • Create GSheetsRangeEditor component with drag-to-select and checkbox selection
  • Extract shared utilities to google-sheets-utils.ts for A1 notation handling
  • Add "Edit Range" button to drawer header for Google Sheets metrics
  • Conditionally render editor vs chart in drawer based on edit mode state
  • Old data points and transformers are deleted when range is updated

@vercel
Copy link

vercel bot commented Dec 25, 2025

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

Project Deployment Review Updated (UTC)
org-os Ready Ready Preview, Comment Dec 25, 2025 7:29pm

@coderabbitai
Copy link

coderabbitai bot commented Dec 25, 2025

Warning

Rate limit exceeded

@drifter089 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 11 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 0a8e7f4 and 16aeea7.

📒 Files selected for processing (7)
  • src/app/dashboard/[teamId]/_components/dashboard-metric-card.tsx
  • src/app/dashboard/[teamId]/_components/dashboard-metric-drawer.tsx
  • src/app/dashboard/[teamId]/_components/drawer/gsheets-range-editor.tsx
  • src/app/dashboard/[teamId]/_components/drawer/index.ts
  • src/app/metric/_components/google-sheets/GoogleSheetsMetricContent.tsx
  • src/lib/integrations/google-sheets-utils.ts
  • src/server/api/routers/metric.ts
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch gsheets-edit-range

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants