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

feat: connect wallet to web2 account on action #2219

Merged
merged 6 commits into from
Nov 29, 2023

Conversation

flagrede
Copy link
Collaborator

@flagrede flagrede commented Nov 21, 2023

Description

Closes: #2159

Prompt web2 user to connect a wallet for on-chain action


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

  1. https://deploy-preview-2219--regen-marketplace.netlify.app/

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

Copy link

netlify bot commented Nov 21, 2023

Deploy Preview for regen-website ready!

Name Link
🔨 Latest commit 0e0cfda
🔍 Latest deploy log https://app.netlify.com/sites/regen-website/deploys/6565c26f3e973f0008cb4c96
😎 Deploy Preview https://deploy-preview-2219--regen-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@flagrede
Copy link
Collaborator Author

flagrede commented Nov 21, 2023

There seems to be an issue on the deploy preview with the google login. It might be best to test locally in the meantime.

@flagrede flagrede requested a review from a team November 21, 2023 16:16
@blushi
Copy link
Member

blushi commented Nov 22, 2023

There seems to be an issue on the deploy preview with the google login. It might be best to test locally in the meantime.

I've updated the env var in Heroku so it redirects to the deploy preview for logging in with google.

@erikalogie you can test this on https://deploy-preview-2219--regen-marketplace.netlify.app/
Login with google and then try to perform on chain actions like buy, take from/put in basket...


useEffect(() => {
if (shouldConnectAccount && !isConnectingWalletRef.current) {
connectWalletCallback();
Copy link
Member

Choose a reason for hiding this comment

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

I'm getting the 'prove ownership' popup multiple times now

@erikalogie
Copy link
Collaborator

There seems to be an issue on the deploy preview with the google login. It might be best to test locally in the meantime.

I've updated the env var in Heroku so it redirects to the deploy preview for logging in with google.

@erikalogie you can test this on https://deploy-preview-2219--regen-marketplace.netlify.app/ Login with google and then try to perform on chain actions like buy, take from/put in basket...

I can't log in with google, I've tried all my different accounts and it isn't working.

Screen.Recording.2023-11-22.at.8.41.55.AM.mov

@blushi blushi force-pushed the feat-2159-connect-keplr-wallet-account branch from 216e5c6 to a2b3403 Compare November 22, 2023 14:01
@blushi
Copy link
Member

blushi commented Nov 22, 2023

There seems to be an issue on the deploy preview with the google login. It might be best to test locally in the meantime.

I've updated the env var in Heroku so it redirects to the deploy preview for logging in with google.
@erikalogie you can test this on https://deploy-preview-2219--regen-marketplace.netlify.app/ Login with google and then try to perform on chain actions like buy, take from/put in basket...

I can't log in with google, I've tried all my different accounts and it isn't working.

Screen.Recording.2023-11-22.at.8.41.55.AM.mov

Weird, still investigating. In the meantime, you should be able to log in with email/passcode now.

@erikalogie
Copy link
Collaborator

There seems to be an issue on the deploy preview with the google login. It might be best to test locally in the meantime.

I've updated the env var in Heroku so it redirects to the deploy preview for logging in with google.
@erikalogie you can test this on https://deploy-preview-2219--regen-marketplace.netlify.app/ Login with google and then try to perform on chain actions like buy, take from/put in basket...

I can't log in with google, I've tried all my different accounts and it isn't working.
Screen.Recording.2023-11-22.at.8.41.55.AM.mov

Weird, still investigating. In the meantime, you should be able to log in with email/passcode now.

Great yes it is working properly with email/passcode log in

@erikalogie
Copy link
Collaborator

I did notice this small typo (was my bad, it was in the comps) https://monosnap.com/file/Hi4bf1EQnLTsVF03Xnw5qg6UqurgG6

@flagrede flagrede force-pushed the feat-2159-connect-keplr-wallet-account branch from a2b3403 to dc5b399 Compare November 27, 2023 09:23
@flagrede
Copy link
Collaborator Author

@blushi I think you had several 'prove ownership' popups because you had an error (like address already used) but the error was not handled properly because of a change made in postData. I fixed that here d4d83cb, should be better.

@flagrede
Copy link
Collaborator Author

@blushi Also I noted that the google login on staging does not redirect to the good origin preview URL. The login works but you would have to come back manually to the good preview url.

@blushi
Copy link
Member

blushi commented Nov 27, 2023

@blushi Also I noted that the google login on staging does not redirect to the good origin preview URL. The login works but you would have to come back manually to the good preview url.

yeah this is because the app redirect URL is set to the deploy preview URL for #2221 right now. This is an env var in the server.

Copy link

netlify bot commented Nov 27, 2023

marie left a comment:

If I try to connect a wallet address (assuming I haven't connected yet, auto_connect_wallet is not set), then I don't even get the prove ownership popup, only the wallet address is set from Keplr.

recording

Browser metadata
Path:      /profile/edit/settings
Browser:   Chrome 119.0.0.0 on Mac OS 10.15.7
Viewport:  912 x 782 @2x
Language:  fr-FR
Cookies:   Enabled

Open in BrowserStack

Open Deploy Preview · Mark as Resolved

@flagrede
Copy link
Collaborator Author

marie left a comment:

If I try to connect a wallet address (assuming I haven't connected yet, auto_connect_wallet is not set), then I don't even get the prove ownership popup, only the wallet address is set from Keplr.

recording

Browser metadata
Open Deploy Preview · Mark as Resolved

This is not the same story. This story is about connecting an account if the user tries to perform an on-chain action (like buying credits). That said, we might have a regression on this part in the user profile settings.

@flagrede flagrede force-pushed the feat-2159-connect-keplr-wallet-account branch from 7e760ab to 0e0cfda Compare November 28, 2023 10:35
@flagrede flagrede requested a review from blushi November 28, 2023 10:49
Copy link
Member

@blushi blushi left a comment

Choose a reason for hiding this comment

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

tACK

@blushi blushi merged commit 06bffa7 into dev Nov 29, 2023
11 checks passed
@blushi blushi deleted the feat-2159-connect-keplr-wallet-account branch November 29, 2023 13:29
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.

Add popup for connecting keplr wallet to existing account
3 participants