Skip to content

Admin Portal M1: platform-admin gate (Issue #1254)#342

Open
Veekshitha11 wants to merge 2 commits into
DalgoT4D:mainfrom
Veekshitha11:feature/admin-portal-m1-platform-admin-gate
Open

Admin Portal M1: platform-admin gate (Issue #1254)#342
Veekshitha11 wants to merge 2 commits into
DalgoT4D:mainfrom
Veekshitha11:feature/admin-portal-m1-platform-admin-gate

Conversation

@Veekshitha11

Copy link
Copy Markdown
Collaborator

Milestone 1 of the Admin Portal plan (features/admin-portal/v1/plan.md) -- backend half. Adds @platform_admin_required guard and surfaces is_platform_admin in /currentuserv2. 5 new tests passing, 54 existing tests unaffected (no regression). No migration needed.

Veekshitha11 and others added 2 commits July 12, 2026 16:15
Admin Portal v1, Milestone 1 (platform-admin gate + client can see it) —
frontend half. Reads the new is_platform_admin flag from /currentuserv2 so
the app can later render the admin entry point and guard.

- stores/authStore.ts: add is_platform_admin to the OrgUser interface.
- hooks/api/usePermissions.ts: expose isPlatformAdmin from the current
  org user (defaults to false).

No UI yet — the /admin shell, nav link, and AdminGuard land in Milestone 2.
Type-checked (tsc --noEmit): no new errors in either file.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

@Veekshitha11 is attempting to deploy a commit to the support-9965's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Veekshitha11, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 58 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d841979e-cc27-49e6-861f-3d6a927ab87d

📥 Commits

Reviewing files that changed from the base of the PR and between 11a2b52 and 6fa1a3b.

📒 Files selected for processing (3)
  • .gitignore
  • hooks/api/usePermissions.ts
  • stores/authStore.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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