Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Jun 3, 2025


PR-Codex overview

This PR focuses on enhancing the API reference documentation and adding new features to the sidebar.tsx and page.tsx components in the portal app, specifically related to the Thirdweb Bundler and its functionalities.

Detailed summary

  • Added a new entry for "API Reference" in sidebar.tsx.
  • Introduced a new SDKCard for "Bundler" in page.tsx.
  • Expanded API documentation in api/page.mdx with detailed sections on authentication, request formats, methods, and error handling for the Thirdweb Bundler.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Summary by CodeRabbit

  • New Features
    • Introduced a comprehensive API reference for the Thirdweb Bundler service, detailing supported methods, authentication, error formats, and network support.
    • Added an "API Reference" link to the Account Abstraction section of the sidebar for easier navigation.
    • Added a "Bundler" card to the Backend APIs grid for quick access to the new API documentation.

@vercel
Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 8:20am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
login ⬜️ Skipped (Inspect) Jun 3, 2025 8:20am
thirdweb_playground ⬜️ Skipped (Inspect) Jun 3, 2025 8:20am
thirdweb-www ⬜️ Skipped (Inspect) Jun 3, 2025 8:20am
wallet-ui ⬜️ Skipped (Inspect) Jun 3, 2025 8:20am

@vercel vercel bot temporarily deployed to Preview – thirdweb-www June 3, 2025 08:13 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 3, 2025 08:13 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 3, 2025 08:13 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 3, 2025 08:13 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Jun 3, 2025

⚠️ No Changeset found

Latest commit: 5e729f9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 3, 2025

Walkthrough

A new API reference documentation for the Thirdweb Bundler service was added, detailing supported methods and usage. The sidebar was updated to include a link to this API reference, and a new "Bundler" SDK card was introduced in the backend APIs grid on the reference page, linking to the documentation.

Changes

File(s) Change Summary
apps/portal/src/app/connect/account-abstraction/api/page.mdx Added comprehensive API documentation for the Thirdweb Bundler service, covering endpoints, authentication, errors, and usage.
apps/portal/src/app/connect/sidebar.tsx Inserted "API Reference" link to the Account Abstraction section of the sidebar.
apps/portal/src/app/page.tsx Added a "Bundler" SDKCard to the Backend APIs grid, linking to the new API documentation.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant PortalSidebar
    participant ReferencePage
    participant APIReferenceDoc

    User->>PortalSidebar: Opens sidebar
    PortalSidebar-->>User: Displays "API Reference" link
    User->>ReferencePage: Views Backend APIs grid
    ReferencePage-->>User: Shows "Bundler" SDK card
    User->>APIReferenceDoc: Clicks "API Reference" or "Bundler" card
    APIReferenceDoc-->>User: Displays Thirdweb Bundler API documentation
Loading

Suggested labels

SDK

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Jun 3, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joaquim-verges joaquim-verges changed the title [Connect] Add Bundler API reference documentation [Docs] Add Bundler API reference documentation Jun 3, 2025
@joaquim-verges joaquim-verges marked this pull request as ready for review June 3, 2025 08:13
@joaquim-verges joaquim-verges requested review from a team as code owners June 3, 2025 08:13
@codecov
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.57%. Comparing base (de297e4) to head (5e729f9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7257   +/-   ##
=======================================
  Coverage   55.57%   55.57%           
=======================================
  Files         909      909           
  Lines       58680    58680           
  Branches     4157     4157           
=======================================
  Hits        32610    32610           
  Misses      25963    25963           
  Partials      107      107           
Flag Coverage Δ
packages 55.57% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (6)
apps/portal/src/app/connect/account-abstraction/api/page.mdx (6)

20-28: Use uppercase “URL” and annotate code block language
Change the heading to “URL Format” for consistency, and update the code fence to use a language specifier (e.g., ```bash) for proper syntax highlighting.


380-389: Standard ERC-4337 Methods
The list of standard bundler RPC methods is useful; consider linking to the official ERC-4337 specification for deeper reference.


435-463: Policy Enforcement details
The policy check process is well articulated; adding a concrete policy rejection example would further illustrate the behavior.

🧰 Tools
🪛 LanguageTool

[duplication] ~441-~441: Possible typo: you repeated a word.
Context: ...s paymaster requests against configured policies 2. Policies can restrict based on: - Contract ad...

(ENGLISH_WORD_REPEAT_RULE)


472-477: Rate Limits and Quotas formatting
The bullets are clear; for consistency, you may choose to add or remove terminal punctuation across all bulleted sections.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~476-~476: A period might be missing here.
Context: ...n - Testnet access is available on free plans ## Supported Networks For the most up...

(AI_EN_LECTOR_MISSING_PUNCTUATION_PERIOD)


478-482: Supported Networks link
The dashboard URL is helpful; consider marking it as external ([isExternal]) or adding an icon to indicate navigation off-site.


483-491: SDK Integration links
Ensure the SDK URLs include the correct version path (e.g., /typescript/v5) to align with other documentation routes.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between de297e4 and 5e729f9.

📒 Files selected for processing (3)
  • apps/portal/src/app/connect/account-abstraction/api/page.mdx (1 hunks)
  • apps/portal/src/app/connect/sidebar.tsx (1 hunks)
  • apps/portal/src/app/page.tsx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
apps/portal/src/app/connect/account-abstraction/api/page.mdx

[uncategorized] ~231-~231: Loose punctuation mark.
Context: ...} ``` Status Values: - not_found: User operation not found - `not_submitt...

(UNLIKELY_OPENING_PUNCTUATION)


[duplication] ~441-~441: Possible typo: you repeated a word.
Context: ...s paymaster requests against configured policies 2. Policies can restrict based on: - Contract ad...

(ENGLISH_WORD_REPEAT_RULE)


[uncategorized] ~476-~476: A period might be missing here.
Context: ...n - Testnet access is available on free plans ## Supported Networks For the most up...

(AI_EN_LECTOR_MISSING_PUNCTUATION_PERIOD)

⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (12)
apps/portal/src/app/connect/sidebar.tsx (1)

201-204: Add API Reference link to Account Abstraction section
The new “API Reference” link is correctly inserted and points to ${aAslug}/api, aligning with the existing slug usage.

apps/portal/src/app/page.tsx (1)

143-148: Introduce Bundler SDKCard in Backend APIs grid
The new “Bundler” card is consistent with existing cards and correctly links to the /connect/account-abstraction/api page.

apps/portal/src/app/connect/account-abstraction/api/page.mdx (10)

1-4: Document title and intro are clear
The header and introduction succinctly describe the Thirdweb Bundler service and its capabilities.


29-35: Authentication section is accurate
Headers X-Client-Id and X-Secret-Key are clearly defined and explained.


36-48: Request format follows JSON-RPC 2.0
The example request is well-formed and demonstrates the correct payload structure.


49-93: Paymaster Methods documented correctly
Each pm_* method has a clear purpose, parameter list, and response example.


127-165: User Operation Methods section is complete
The gas estimation and submission methods are well explained with accurate JSON examples.


183-202: Gas Price Methods are clear
The thirdweb_getUserOperationGasPrice method is properly defined with an illustrative response.


204-227: Status and Tracking Methods are thorough
All possible user operation statuses are listed, and the example response covers the relevant fields.


239-275: zkSync-specific Methods are well covered
Both zk_paymasterData and zk_broadcastTransaction sections include clear parameter definitions and examples.


312-356: Verify EIP-7702 Methods parameter order
The tw_execute example clearly shows parameters and response; please confirm that the client implementation expects this exact sequence.


390-403: Error Responses section is correct
The JSON-RPC error format and example codes are accurately presented.

Comment on lines +5 to +19
## Table of Contents

- [Url format](#url-format)
- [Authentication](#authentication)
- [Request Format](#request-format)
- [Paymaster Methods](#paymaster-methods)
- [User Operation Methods](#user-operation-methods)
- [Gas Price Methods](#gas-price-methods)
- [Status and Tracking Methods](#status-and-tracking-methods)
- [zkSync-Specific Methods](#zksync-specific-methods)
- [EIP-7702 Methods](#eip-7702-methods)
- [Standard ERC-4337 Methods](#standard-erc-4337-methods)
- [Error Responses](#error-responses)
- [Policy Enforcement](#policy-enforcement)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Include missing sections in the Table of Contents
Add “Rate Limits and Quotas”, “Supported Networks”, and “SDK Integration” to the TOC for complete navigation.

🤖 Prompt for AI Agents
In apps/portal/src/app/connect/account-abstraction/api/page.mdx around lines 5
to 19, the Table of Contents is missing the sections "Rate Limits and Quotas",
"Supported Networks", and "SDK Integration". Add these three entries to the TOC
list with appropriate anchor links to ensure complete navigation coverage.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.57 KB (0%) 1.3 s (0%) 288 ms (+130.59% 🔺) 1.6 s
thirdweb (cjs) 345.62 KB (0%) 7 s (0%) 940 ms (+4.39% 🔺) 7.9 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 65 ms (+715.67% 🔺) 178 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 35 ms (+1246.16% 🔺) 46 ms
thirdweb/react (minimal + tree-shaking) 19.56 KB (0%) 392 ms (0%) 87 ms (+457.34% 🔺) 478 ms

@joaquim-verges joaquim-verges merged commit aaad876 into main Jun 3, 2025
27 checks passed
@joaquim-verges joaquim-verges deleted the _Connect_Add_Bundler_API_reference_documentation branch June 3, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants