Skip to content

Fix rlogin issues - #570

Closed
jessgusclark wants to merge 12 commits into
mainfrom
fix-rlogin-issues
Closed

jessgusclark wants to merge 12 commits into
mainfrom
fix-rlogin-issues

Conversation

@jessgusclark

Copy link
Copy Markdown
Member

This PR removes the dependecy on rLogin-essentials and implements rLogin straight from the source. While the essentials package was a good idea, it wasn't maintained and has caused tech debt.

This PR also removes the hardware integrations which are not working on the main site. These will be added back in later.

- It was a good idea, but the package was not maintained and creates tech debt now
@jessgusclark
jessgusclark requested a review from Copilot December 17, 2025 10:35
@jessgusclark jessgusclark added the dependencies Pull requests that update a dependency file label Dec 17, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates from the unmaintained @rsksmart/rlogin-essentials package to using @rsksmart/rlogin directly, removing technical debt. Hardware wallet integrations (Trezor and Ledger) have been temporarily commented out and will be reintroduced later.

Key Changes:

  • Replaced rlogin-essentials with direct @rsksmart/rlogin implementation
  • Added WalletConnect provider configuration
  • Commented out hardware wallet provider integrations

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/app/rLogin/rLogin.js Implements rLogin directly with custom provider configuration, removing essentials dependency
package.json Updates dependencies to use @rsksmart/rlogin and @walletconnect/web3-provider instead of rlogin-essentials
Comments suppressed due to low confidence (1)

package.json:1

  • Corrected spelling of 'dependecy' to 'dependency' in PR description.
{

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/rLogin/rLogin.js Outdated
- Walletconnect was not working and that bridge URL is no longer working
- remove second set of () around RLogin
@jessgusclark
jessgusclark requested a review from Copilot December 17, 2025 10:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/rLogin/rLogin.js Outdated
Comment thread src/app/rLogin/rLogin.js Outdated
Comment thread package.json Outdated
@jessgusclark
jessgusclark requested a review from Copilot December 17, 2025 11:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/rLogin/rLogin.js
};

export default rLogin;
export default createRLogin();

Copilot AI Dec 17, 2025

Copy link

Choose a reason for hiding this comment

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

The createRLogin() function is called at module load time, which means the RLogin instance is created immediately when this module is imported. This could cause issues if environment variables change or if the module needs to be re-initialized. Consider exporting the factory function instead and calling it where needed, or document why immediate initialization is required.

Suggested change
export default createRLogin();
export default createRLogin;

Copilot uses AI. Check for mistakes.
@sonarqubecloud

Copy link
Copy Markdown

@jessgusclark jessgusclark mentioned this pull request Dec 17, 2025
@jessgusclark

Copy link
Copy Markdown
Member Author

Bumping web3modal did not solve the original issue of metamask mobile. Therefor closing this PR and will break out working parts into their own PRs.

This branch was previously deployed

1 inactive deployment
github-pages — 4bd2480b Deployed Dec 17, 2025 by jessgusclark via build-and-deploy #282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants