Skip to content

fix(admin): bump proton to fix runtime errors#1497

Merged
rohilsurana merged 4 commits intomainfrom
fix/admin-query-client-and-proton-version
Apr 1, 2026
Merged

fix(admin): bump proton to fix runtime errors#1497
rohilsurana merged 4 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

@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 Apr 1, 2026 4:27am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a13b16c6-cd34-47f1-aa69-2742497bab58

📥 Commits

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

⛔ 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
✅ Files skipped from review due to trivial changes (2)
  • web/apps/admin/package.json
  • web/sdk/package.json

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated package dependencies to the latest version across multiple packages for improved compatibility and stability.
    • Fixed formatting by adding trailing newlines to configuration files.

Walkthrough

Updated @raystack/proton dependency version across two package.json files to the same commit hash (0b6548e706d14b39f4d2dbd44567d6d4c2c3159e). Added trailing newlines to both files for consistency.

Changes

Cohort / File(s) Summary
Dependency Updates
web/apps/admin/package.json, web/sdk/package.json
Updated @raystack/proton dependency version and added trailing newlines. Both files now reference the same commit hash.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • rsbh
  • paanSinghCoder
  • rohanchkrabrty

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 23831895582

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 23831720448: 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
- 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
@rohilsurana rohilsurana force-pushed the fix/admin-query-client-and-proton-version branch from 8677caf to fa737f5 Compare April 1, 2026 04:26
@rohilsurana rohilsurana changed the title fix(admin): bump proton and dedupe react-query to fix runtime errors fix(admin): bump proton to fix runtime errors Apr 1, 2026
@rohilsurana rohilsurana enabled auto-merge (squash) April 1, 2026 04:30
@rohilsurana rohilsurana merged commit f355239 into main Apr 1, 2026
8 checks passed
@rohilsurana rohilsurana deleted the fix/admin-query-client-and-proton-version branch April 1, 2026 05:13
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.

4 participants