Skip to content

fix(admin): bump proton and dedupe react-query to fix runtime errors#1497

Open
rohilsurana wants to merge 5 commits intomainfrom
fix/admin-query-client-and-proton-version
Open

fix(admin): bump proton and dedupe react-query to fix runtime errors#1497
rohilsurana wants to merge 5 commits intomainfrom
fix/admin-query-client-and-proton-version

Conversation

@rohilsurana
Copy link
Copy Markdown
Member

@rohilsurana rohilsurana commented Mar 31, 2026

Summary

Fixes two runtime errors in the admin UI:

  1. "SetOrganizationMemberRoleRequestSchema is not exported" — Admin app pinned an older @raystack/proton missing this schema. Bumped to match the SDK version.

  2. Potential "No QueryClient set" — pnpm can resolve separate copies of @tanstack/react-query for the app (React 19) and SDK (React 18), creating isolated contexts. Added @tanstack/react-query and @connectrpc/connect-query to Vite's resolve.dedupe to ensure a single instance is shared.

Changes

  • web/apps/admin/package.json — bump @raystack/proton to 0.1.0-0b6548e
  • web/apps/admin/vite.config.ts — add @tanstack/react-query and @connectrpc/connect-query to resolve.dedupe

Test plan

  • Admin UI loads without import errors
  • Workspaces page renders correctly
  • pnpm run build in web/apps/admin passes

- Add @tanstack/react-query and @connectrpc/connect-query to Vite
  dedupe config to prevent duplicate context instances between the
  app and SDK (fixes "No QueryClient set" error)
- Bump @raystack/proton to match SDK version so
  SetOrganizationMemberRoleRequestSchema is available
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
frontier Ready Ready Preview, Comment Mar 31, 2026 5:23pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2026

Warning

Rate limit exceeded

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

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 28 seconds.

⌛ 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.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 160c6b43-2de6-4636-8ed5-c3e8c387213a

📥 Commits

Reviewing files that changed from the base of the PR and between 16a2806 and 8677caf.

⛔ Files ignored due to path filters (1)
  • web/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • web/apps/admin/package.json
  • web/sdk/package.json
📝 Walkthrough

Walkthrough

The PR updates dependencies and Vite build configuration in the admin app. The @raystack/proton dependency version is bumped in package.json, and Vite's module deduplication list is extended to include @tanstack/react-query and @connectrpc/connect-query.

Changes

Cohort / File(s) Summary
Admin App Configuration
web/apps/admin/package.json, web/apps/admin/vite.config.ts
Updated @raystack/proton dependency version; extended Vite's resolve.dedupe configuration to include @tanstack/react-query and @connectrpc/connect-query for module deduplication.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • rsbh

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.

@rohilsurana rohilsurana changed the title fix(admin): dedupe react-query and bump proton to match SDK fix(admin): bump proton to match SDK version Mar 31, 2026
@rohilsurana rohilsurana changed the title fix(admin): bump proton to match SDK version fix(admin): bump proton version in both apps/admin and sdk Mar 31, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 31, 2026

Pull Request Test Coverage Report for Build 23810534994

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 41.675%

Totals Coverage Status
Change from base Build 23805339352: 0.0%
Covered Lines: 15052
Relevant Lines: 36118

💛 - Coveralls

@rohilsurana rohilsurana changed the title fix(admin): bump proton version in both apps/admin and sdk fix(admin): bump proton and dedupe react-query to fix runtime errors Mar 31, 2026
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.

3 participants