feat(webapp): admin Back Office tab with org API rate limit editor#3434
feat(webapp): admin Back Office tab with org API rate limit editor#3434
Conversation
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (28)
WalkthroughAdds an admin back‑office section with server loaders enforcing admin-only access, a back‑office layout, a landing index route, and an organization detail route for viewing and editing an organization’s API rate‑limiter config. Implements server-side fetching, zod-validated form action to persist token-bucket overrides, and UI for previewing sustained/burst rates plus per-field validation and saved-state handling. Also updates the admin organizations table to link into the back‑office and enhances the Tabs component to support a per‑tab Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Summary of key changes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
…m/triggerdotdev/trigger.dev into feat/admin-back-office-rate-limit
Summary
/admin, per-org detail page at/admin/back-office/orgs/:orgIddesigned to host future per-org admin actions (project count, delete account, YC deals).v2?/v3?columns from the admin orgs list (display only — Prisma select untouched).Test plan
/admin/orgsshows a Back office "Open" link per row; no v2/v3 columns/admin/back-officelinks back to/admin/orgsOrganization.apiRateLimiterConfig, returns to view mode, shows "Rate limit saved." banner/admin.backOffice.rateLimitinfo line per mutation