Skip to content

feat: [1.2] mur use widget context#2352

Merged
chaitanyapotti merged 8 commits intomasterfrom
feat/mur-use-widget-context
Feb 4, 2026
Merged

feat: [1.2] mur use widget context#2352
chaitanyapotti merged 8 commits intomasterfrom
feat/mur-use-widget-context

Conversation

@lionellbriones
Copy link
Copy Markdown
Contributor

@lionellbriones lionellbriones commented Jan 30, 2026

Motivation and Context

Jira Link:

Description

  • Use useWidget hook on non-dumb components.
  • Only for non-function props (will do function props later PR)

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 changes multiple component prop contracts and centralizes UI/runtime config access via context, which can affect rendering and multi-chain wallet selection (notably the chain filter visibility logic).

Overview
Moves non-function modal configuration to WidgetContext so Root, Login, ConnectWallet, and subcomponents read values like appLogo, deviceDetails, walletRegistry, chainNamespaces, and UI settings directly via useWidget, with corresponding prop/type simplifications.

Updates component APIs: BottomSheet now accepts borderRadiusType directly (instead of uiConfig), and ConnectWallet* components drop props such as buttonRadius, deviceDetails, chainNamespace, and walletRegistry in favor of context.

Centralizes UI defaults in loginModal.tsx by setting defaults for additional uiConfig fields (e.g., buttonRadiusType, logoAlignment, external wallet display toggles, legal links, hideSuccessScreen).

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

@vercel
Copy link
Copy Markdown

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 Feb 4, 2026 5:51am

Request Review

@lionellbriones lionellbriones changed the base branch from master to feat/modal-ui-revamp January 30, 2026 10:48
Comment thread packages/modal/src/ui/components/Login/Login.tsx
Comment thread packages/modal/src/ui/components/Loader/Loader.type.ts
Comment thread packages/modal/src/ui/components/BottomSheet/BottomSheet.tsx
Comment thread packages/modal/src/ui/components/Login/Login.tsx Outdated
Comment thread packages/modal/src/ui/components/Login/Login.type.ts
Comment thread packages/modal/src/ui/components/Login/Login.type.ts
@lionellbriones lionellbriones changed the title Feat/mur use widget context feat: [1.2] mur use widget context Feb 4, 2026
Base automatically changed from feat/modal-ui-revamp to master February 4, 2026 05:25
@chaitanyapotti
Copy link
Copy Markdown
Member

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

@chaitanyapotti chaitanyapotti merged commit 1acd70e into master Feb 4, 2026
7 checks passed
@chaitanyapotti chaitanyapotti deleted the feat/mur-use-widget-context branch February 4, 2026 05:54
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