-
Notifications
You must be signed in to change notification settings - Fork 17
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(tangle-dapp): Bridge UI on Tangle Dapp #2307
Conversation
✅ Deploy Preview for tangle-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
We can interact with the UI without connecting to a wallet at the moment. For the second comment, I will update it now! |
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.
LG, comment on the logic of chain selection but if you think it's the right UX that's good.
const onSetDestinationChain = useCallback( | ||
(chain: ChainConfig) => { | ||
setDestinationChain(chain); | ||
// If the destination chain is the same as the source chain, clear the source chain. |
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.
It seems that instead of switching and nullifying things that we should not present the same chain as an option? Or do you think this is better. I'm ambivalent is this is the logic you think is worth having.
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.
Working on it right now!
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
A few minor updates from me:
- Ensure that the width of the dropdown menu is consistent with the width of the selector container above it.
- Add a token container display within the amount input field. This will ensure that the user is clear on what token is being transacted. In the future, when we have more Tangle tokens to be bridged (e.g., tgETH, tgDOT), we can turn this container into a dropdown menu for the user to select the desired token.
- Update the button copy to 'Approve' or 'Confirm'. Using 'bridge' and 'transfer' simultaneously might be confusing for users, especially we also have 'transfer' in Account.
- We could consider displaying the potential applicable fees and the estimated transaction time, similar to the sub-bridge shown in the screenshot. (depending on feasibility on getting the data)
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
A few minor updates from me: @monaiuu I have updated the Dropdown Size and the Token Selector. The preview link does not have this page because we just show it in the development environment at the moment (the same as the page for Validator and Restaking). I might create a task to show these features in the deploy preview. CleanShot.2024-05-14.at.22.49.18.mp4 |
Merge conflicts here @vutuanlinh2k2 but otherwise looks good for merge. I do think the style looks different between the implementation and the image @monaiuu presented. I also would like there to be a label over the |
✅ Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2
To edit notification comments on pull requests, go to your Netlify site settings. |
Try adding labels but it does not look good without them. I personally think the arrow already indicates the source and destination chain for the user. This can be updated in the future. I will merge this for now |
Summary of changes
Provide a detailed description of proposed changes.
Proposed area of change
Put an
x
in the boxes that apply.apps/bridge-dapp
apps/hubble-stats
apps/stats-dapp
apps/tangle-dapp
apps/testnet-leaderboard
apps/faucet
apps/zk-explorer
libs/webb-ui-components
Reference issue to close (if applicable)
Specify any issues that can be closed from these changes (e.g.
Closes #233
).Screen Recording
If possible provide a screen recording of proposed change.
CleanShot.2024-05-14.at.13.36.41.mp4
Code Checklist
Please be sure to add .stories documentation if any additions are made to
libs/webb-ui-components
.