-
Notifications
You must be signed in to change notification settings - Fork 89
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
Adds a ENS address selector to the Profile page #367
Conversation
…e' into ramirotw/issue-1682-ens-affiliate
CLA Assistant Lite: I have read the CLA Document and I hereby sign the CLA You can retrigger the CLA Action by commenting recheckcla in this Pull Request |
Hey @ramirotw , could you please provide me the PR preview link please? |
|
@elena-zh the build is finally fixed. Btw, the CLA check fails because of the prettier bot that commited Fix code style issues with Prettier {
id: 'MDQ6VXNlcjU5MjgzODYy',
databaseId: 59283862,
login: 'lint-action'
} |
@@ -102,7 +102,7 @@ | |||
"eslint-plugin-simple-import-sort": "^7.0.0", | |||
"ethers": "^5.4.6", | |||
"graphql": "^15.5.0", | |||
"graphql-request": "^3.4.0", | |||
"graphql-request": "^4.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I introduced this change to force the CI script to run the postinstall
npm script which runs the yarn graphql:generate
script which generates the graphql TS types in src/state/data/generated.ts
that is needed to import the EnsNamesQuery
type.
Hey @ramirotw ! Some tiny notes from the UI side:
Thanks! |
@alongoni any idea on how we could improve this on mobile? |
done
I have already done this 0bc1579#diff-091719e9c8faa4dd8e97d8f607ee1f288ba02bb4f6be40589de8de2411e589baL36 but there were a few issues while switching accounts and maintaining state so to keep things simple I removed it. Maybe we can add that feature after this gets merged. |
@ramirotw , I see this.. However, I thought that the fix should disable the dropdown when a user does not have an ENS name, so I thought that there were issues with the last commit. |
@elena-zh sorry for the misunderstanding. Now the dropdown should be disabled when there are no ens names |
@ramirotw , great, thank you! I still see the arrow that should expand the dropdown, so it seems that it is still enabled. |
that is the disabled state of the dropdown, or you mean to remove entirely the dropdown as we do for Rinkeby/GC? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can use a shorter version of the address e.g: 0x3d2a...1b21 |
Yes, I would remove it at all when an account does not have a ENS name |
that works for me! |
Hey @ramirotw , great changes! However, sometimes I face this issue: when I share a referral link with an ENS name, the app shows me 'invalid' banner for a couple of seconds. Could you please take a look into this issue? Thanks! |
hey @elena-zh, I fixed both issues. Please run a few affiliate workflows to be sure nothing broke because I did some changes to fix the first invalid state |
Co-authored-by: Leandro Boscariol <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ramirotw , changes look great!
The only issue I can mention is that due to Explorer issue cowprotocol/explorer#63 Cowswap app does not receive a successful transaction pp-up, so a referral URL is not removed from the local storage after a successful trade and remains to be displayed.
But this issue is not related to your changes, so the PR is approved.
Thanks
Summary
Close #190
This adds a new AddressSelector component to the Profile page with all the ENS addresses the user has. It uses the official ENS subgraph