Skip to content

Update web SDK documentation with new providerVersion options and closeModal method#67

Merged
Kushal7788 merged 1 commit intomainfrom
update-web-sdk-options
Jul 14, 2025
Merged

Update web SDK documentation with new providerVersion options and closeModal method#67
Kushal7788 merged 1 commit intomainfrom
update-web-sdk-options

Conversation

@Kushal7788
Copy link
Contributor

@Kushal7788 Kushal7788 commented Jul 14, 2025

Description

Update web SDK documentation with new providerVersion options and closeModal method

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist:

Summary by CodeRabbit

  • Documentation
    • Updated Web SDK documentation to include a new optional parameter for specifying the provider version in both JavaScript and Python.
    • Noted that the default for showing the extension install button in the QR code modal is now set to false.
    • Added documentation for a new method to manually close the modal popup, including example usage.

@vercel
Copy link
Contributor

vercel bot commented Jul 14, 2025

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2025 11:41am

@coderabbitai
Copy link

coderabbitai bot commented Jul 14, 2025

Walkthrough

The documentation for the Web SDK was updated to introduce a new optional providerVersion parameter to the init method for both JavaScript and Python. The default for showExtensionInstallButton in modal options was changed to false, and a new closeModal() method was documented for manual modal closure.

Changes

File(s) Change Summary
content/docs/advance-options/web-sdk.mdx Documented new providerVersion/provider_version option in init; updated modal defaults; added closeModal() method usage example.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant WebSDK

    Developer->>WebSDK: init({ providerVersion, ... })
    Developer->>WebSDK: triggerReclaimFlow()
    WebSDK-->>Developer: Show QR code modal (showExtensionInstallButton: false)
    Developer->>WebSDK: closeModal()
    WebSDK-->>Developer: Modal closed
Loading

Possibly related PRs

  • JS SDK Modal Popup Options Updated #65: Updates the Web SDK documentation for modal popup options, including the showExtensionInstallButton parameter, directly related to the modal configuration changes in this PR.

Suggested reviewers

  • kryptocodes

Poem

In the docs a change appears,
New options hopping in with cheers—
A versioned provider, a modal to close,
And buttons that quietly now repose.
With every tweak, the SDK grows,
As bunnies dance where progress flows! 🐇✨


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

Copy link

@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: 0

🔭 Outside diff range comments (1)
content/docs/advance-options/web-sdk.mdx (1)

494-496: Comment says default: true but the spec below sets the default to false

The inline comment contradicts the bullet list farther down which states showExtensionInstallButton defaults to false. Align them to prevent confusion.

-      showExtensionInstallButton: true, // Show extension install button (default: true)
+      showExtensionInstallButton: true, // Show extension install button (default: false)
🧹 Nitpick comments (4)
content/docs/advance-options/web-sdk.mdx (4)

26-28: Specify default value for providerVersion to avoid ambiguity

The other options in this block explicitly document their defaults, but providerVersion does not. Readers may wonder whether the SDK falls back to the latest version, a fixed version, or leaves the value unset.

-        providerVersion: '1.0.0'
+        providerVersion: '1.0.0', // default: 'latest'

46-46: Clarify the inline-comment – it currently refers to the entire options object, not provider_version

# default: False reads as if the default for provider_version is False, which is misleading. Either delete the comment or scope it to log.

-        options={'log': True, 'provider_version': '1.0.0'} # default: False
+        # Only the `log` flag defaults to False. `provider_version` defaults to 'latest'
+        options={'log': True, 'provider_version': '1.0.0'}

50-51: Add default information for provider_version to mirror the JS section

Every other bullet lists a default; adding it here keeps the two language sections aligned.

-    - `provider_version`: Version of the data provider. This is needed if you are using a specific version of the data provider.
+    - `provider_version` (Default: `'latest'`): Version of the data provider. Supply this only when you need a fixed provider build.

517-538: Add brief guidance on when to call closeModal()

Most users will call triggerReclaimFlow() and wait for a result event; abruptly closing the modal may break the UX if proofs are still being generated. A short note such as “only call after you have handled the proof or on user cancel” would help.

No diff supplied as wording is content-dependent.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c78db08 and 9ef6cd2.

📒 Files selected for processing (1)
  • content/docs/advance-options/web-sdk.mdx (3 hunks)
🔇 Additional comments (1)
content/docs/advance-options/web-sdk.mdx (1)

513-513: Default mismatch

This bullet correctly states the default is false, but it will keep clashing with the example above until that is updated (see previous comment). Make sure both locations stay consistent after editing.

@Kushal7788 Kushal7788 merged commit 860c66c into main Jul 14, 2025
3 checks passed
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.

2 participants