Feat: blocked user#2490
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| const handleChangeWallet = () => { | ||
| // TODO: wire up real action in a follow-up commit | ||
| log.info("change wallet"); | ||
| }; |
There was a problem hiding this comment.
Blocked user button has no functional action
High Severity
The handleChangeWallet callback in BlockedStatus only calls log.info("change wallet") and performs no actual action. This button is rendered prominently to blocked users (with default text "Change wallet") but clicking it does nothing. Combined with the fact that onCloseLoader for BLOCKED status hides the modal without resetting status to INITIALIZED, the user is left in a dead-end state with no functional escape path other than a full page reload.
Reviewed by Cursor Bugbot for commit e27d7d9. Configure here.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2583007. Configure here.
| > | ||
| {buttonMessage} | ||
| </button> | ||
| </div> |
There was a problem hiding this comment.
Wrong CSS class prefix breaks BlockedStatus styling
High Severity
The BlockedStatus component uses the w3a-- prefix for all utility CSS classes (e.g., w3a--flex, w3a--text-center, w3a--bg-app-primary-600) and dark:w3a-- for dark mode. Every other component in this file and across the UI layer uses the wta: prefix for utility classes (e.g., wta:flex, wta:text-center) and wta:dark: for dark mode. The w3a-- prefix is only used in this codebase for specific named component classes like w3a--error-logo and w3a--btn, not for utility classes. This means the entire blocked user screen will render without layout, spacing, text styling, or button styling applied.
Reviewed by Cursor Bugbot for commit 2583007. Configure here.


Jira Link
Description
How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
Note
Medium Risk
Introduces a new modal status and error-code-specific handling (
5120) that changes the login/error UI flow and state transitions. Risk is moderate because it affects user-facing authentication error handling and modal visibility logic, though it’s scoped and largely additive.Overview
Adds a new
MODAL_STATUS.BLOCKEDflow that is triggered when connector errors surfaceerror.code === 5120, storing ablockedUserConfigin modal state and rendering a dedicated blocked screen inLoader.Plumbs
blockedUserConfigfromUIConfig→LoginModalstate →Root→Loader, updates widget close/visibility behavior to account forBLOCKED, and extends@web3auth/no-modalerrors with code5120plus aWalletLoginError.userBlocked()helper.Reviewed by Cursor Bugbot for commit 2583007. Bugbot is set up for automated code reviews on this repo. Configure here.