-
Notifications
You must be signed in to change notification settings - Fork 655
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: Add the new FIAT Flow to the ClaimName feature #2102
Conversation
40e531a
to
8cb95bc
Compare
43de1e0
to
76a05dd
Compare
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.
Nice work! It looks great. I've left some minor comments.
There's an issue that I've encountered wile trying the FIAT option:
payload: {error: 'No identity found'}
type: "[Failure] Open FIAT Gateway Widget"
There might be an issue with the retrieval of the identity in the decentraland-dapps
repo.
@@ -1626,7 +1642,7 @@ | |||
} | |||
}, | |||
"set_name_as_alias_modal": { | |||
"title": "Use NAME as Alias", | |||
"title": "Use NAME as Username", |
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.
This change was done only in the english language, should we replicate it in the other languages?
"claim_name_fat_finger_modal": { | ||
"title": "Por favor confirmar tu nombre", | ||
"description": "Eelegiste {name}. Entra nuevamente el nombre para confirmar tu selección.", | ||
"description": "Eelegiste {name}. {br} Entra nuevamente el nombre para confirmar tu selección.", |
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.
Just a small typo:
"description": "Eelegiste {name}. {br} Entra nuevamente el nombre para confirmar tu selección.", | |
"description": "Elegiste {name}. {br} Entra nuevamente el nombre para confirmar tu selección.", |
webapp/src/config/env/stg.json
Outdated
@@ -45,5 +45,6 @@ | |||
"SENTRY_DSN": "https://1dc401149e1c819b8477565c9cdd9b70@o4504361728212992.ingest.sentry.io/4505743351676928", | |||
"SQUID_API_URL": "https://v2.api.squidrouter.com", | |||
"DCL_LISTS_SERVER": "https://dcl-lists.decentraland.today", | |||
"AUTH_URL": "/auth" | |||
"AUTH_URL": "/auth", | |||
"WERT_URL": "https://sandbox.wert.io" |
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.
Should we use the production URL in stg?
border-radius: 6px; | ||
border: 1px solid #43404a; | ||
margin-bottom: 11px; | ||
/* border-radius: 14px; */ |
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.
Would you mind removing this comment?
@@ -228,3 +228,14 @@ export const getIsAuthDappEnabled = (state: RootState) => { | |||
} | |||
return false | |||
} | |||
|
|||
export const getIsClaimingNamesWithFiatEnabled = (state: RootState) => { |
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.
Would you mind adding this FF to the FF tests?
"name": "FIAT", | ||
"new": "new", | ||
"title": "Using Debit and Credit Cards", | ||
"subtitle": "Price rate changes may change" |
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.
Should this be?:
"subtitle": "Price rate changes may change" | |
"subtitle": "Price rates may change" |
webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.tsx
Show resolved
Hide resolved
}, [wallet, ENSName, analytics, onOpenFiatGateway, onClaimTxSubmitted]) | ||
|
||
const handleClaimWithCardClick = useCallback(() => { | ||
return isClaimingNamesWithFiatEnabled |
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.
What do you think about not doing anything when the claiming process (both for FIAT and Crypto) has started? It's possible to change the options while waiting for the transaction to be completed.
webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.spec.tsx
Show resolved
Hide resolved
|
||
const from = address | ||
|
||
try { |
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.
Would you mind adding tests for this new handler?
} | ||
}, [wallet, ENSName, analytics, onOpenFiatGateway, onClaimTxSubmitted]) | ||
|
||
const isLoading = useMemo(() => isClaiming || isLoadingFIATWidget, []) |
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.
If I'm not wrong, as there's no dependencies in this useMemo
, isLoading
will be computed only once. As this is a boolean comparison, what do you think about removing the useMemo
hook?
const isLoading = useMemo(() => isClaiming || isLoadingFIATWidget, []) | |
const isLoading = isClaiming || isLoadingFIATWidget |
webapp/src/components/Modals/ClaimNameFatFingerModal/ClaimNameFatFingerModal.spec.tsx
Show resolved
Hide resolved
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
f8a7148
to
64e9733
Compare
cb82989
to
64e9733
Compare
…2111) * feat: add workaround to show the ENS on its way before being minted * test: add tests in SuccessPage for the ens new case
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.
🚀
FF not enabled
FF enabled