Skip to content

Conversation

@lionellbriones
Copy link
Contributor

@lionellbriones lionellbriones commented Jan 30, 2026

Motivation and Context

Jira Link:

Description

Add widget context

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Note

Medium Risk
Medium risk because it refactors how core widget inputs and callbacks are passed (props → React context), so a missing/mis-wired provider could break login/modal interactions at runtime despite minimal behavior changes.

Overview
Introduces a new WidgetContext (WidgetProvider + useWidget) to hold Widget configuration and callback handlers (app metadata, chain/wallet registry, UI config, auth mode, and click/close handlers).

loginModal.tsx now wraps Widget in WidgetProvider, and Widget is refactored to read most inputs from context; WidgetProps is simplified to only require stateListener.

Written by Cursor Bugbot for commit 16d01bf. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Jan 30, 2026

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

Project Deployment Actions Updated (UTC)
web3auth-web Ready Ready Preview, Comment Jan 30, 2026 4:32am

Request Review

@lionellbriones lionellbriones changed the title feat: add widget context feat: 1.1 add widget context Jan 30, 2026
@lionellbriones lionellbriones changed the title feat: 1.1 add widget context feat: [1.1] add widget context Jan 30, 2026
Copy link
Contributor

@arch1995 arch1995 left a comment

Choose a reason for hiding this comment

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

lgtm

@arch1995 arch1995 merged commit dd3265d into feat/modal-ui-revamp Jan 30, 2026
4 checks passed
@arch1995 arch1995 deleted the feat/mur-widget-context branch January 30, 2026 10:39
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