Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(background): better error message for connectWallet #396

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

sidvishnoi
Copy link
Member

Context

Part of #147

Changes proposed in this pull request

@sidvishnoi sidvishnoi changed the title fix(background/openPayments): better error message for connectWallet fix(background): better error message for connectWallet Jul 5, 2024
@github-actions github-actions bot added the area: background Improvements or additions to extension background script label Jul 5, 2024
@sidvishnoi sidvishnoi changed the title fix(background): better error message for connectWallet fix(background): better error message for connectWallet Jul 5, 2024
@raducristianpopa
Copy link
Member

raducristianpopa commented Jul 5, 2024

Extension builds preview

Name Link
Latest commit 83d9095
Latest job logs Run #9838824926
BadgeDownload
BadgeDownload

@@ -23,5 +23,8 @@
},
"siteNotMonetized": {
"message": "This website is not monetized."
},
"error_connectWallet_invalidClient": {
Copy link
Member Author

Choose a reason for hiding this comment

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

Looking into this convention for future:

  • error_* for error messages
  • action_* for button/link actions
  • state_* mostly everything else
  • and rest can be anything I guess?

Can't use / or . or : unfortunately.

Copy link
Member

Choose a reason for hiding this comment

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

I would suggest error_openPayments_invalidClient for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was not going for openPayments here as this error is specific to one we show during connect wallet. When it happens during payment (openPayments_invalidClient again), we go for "key revoked" state which has its own error messages. We might show a different one during reconnectWallet even.

Base automatically changed from translation-helpers to main July 5, 2024 14:23
@sidvishnoi sidvishnoi marked this pull request as ready for review July 5, 2024 14:32
@@ -23,5 +23,8 @@
},
"siteNotMonetized": {
"message": "This website is not monetized."
},
"error_connectWallet_invalidClient": {
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest error_openPayments_invalidClient for this.

src/_locales/en/messages.json Outdated Show resolved Hide resolved
src/_locales/en/messages.json Outdated Show resolved Hide resolved
@sidvishnoi sidvishnoi merged commit e111225 into main Jul 8, 2024
8 checks passed
@sidvishnoi sidvishnoi deleted the connect-wallet-address branch July 8, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: background Improvements or additions to extension background script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants