-
Notifications
You must be signed in to change notification settings - Fork 35
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
Create pending transaction state #710
base: main
Are you sure you want to change the base?
Create pending transaction state #710
Conversation
📦 build.zip [updated at Feb 18, 3:52:51 PM UTC] |
e80be16
to
946a303
Compare
? transactionReceiptToActionStatus({ receipt: ethersv5Receipt }) | ||
: null; | ||
|
||
return localStatus || nodeStatus || 'pending'; |
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.
Is it ok to use pending as a fallback option?
import { sendRpcRequest } from 'src/shared/custom-rpc/rpc-request'; | ||
import { wait } from 'src/shared/wait'; | ||
|
||
export async function getTransactionReceipt({ |
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.
TransactionPoller
is already performing this work
I think we should be able to tap into it from the UI
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 was thinking about this, but didn't get the easy solution. Will think again
<UIText kind="headline/hero">{pendingTitle}</UIText> | ||
<AnimatedDots /> | ||
</HStack> | ||
<UIText | ||
kind="headline/hero" | ||
className={cn( | ||
styles.title, | ||
status !== 'confirmed' && styles.hidden | ||
)} | ||
> | ||
{confirmedTitle} | ||
</UIText> |
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 know it's minor but I don't like that text selection is messed up in this area because of overlapping text elements with zero opacity
Can we fix this?
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.
Good point!
<PageColumn | ||
style={{ | ||
width: 'clamp(320px, 100vw, 450px)', | ||
marginInline: 'auto', | ||
position: 'relative', | ||
}} | ||
> |
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 making this whole element appear with a quick fade-in? I think currently it feels a bit off that it appears kinda unexpectedly but then has fluid animations within
return ( | ||
<PageColumn> | ||
<NavigationTitle urlBar="none" title="Send Success" /> |
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.
Did this get lost?
@@ -43,10 +56,12 @@ | |||
|
|||
.title.hidden { | |||
opacity: 0; | |||
user-select: none; |
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.
Does this work? I'd think it should be pointer-events: none
instead
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 thought, user-select is the one that should be used here. As it prevents text from being selected
I can change to pointer-events too. Not sure there is a difference in this 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.
I meant that the visible text should still be selectable :)
No description provided.