-
Notifications
You must be signed in to change notification settings - Fork 191
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
Spike: Abstract wallet-dependant components/functionality #6446
Labels
needs architecture
Needs architecture input before engineering
Comments
twblack88
added
the
needs architecture
Needs architecture input before engineering
label
Mar 13, 2024
Some notes from spike @purelycrickets Common component doesn't have the right estimate baked in. We want to do a holistic treating for |
3 tasks
Merged
3 tasks
closing and referencing in #8471 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
The high-level idea behind this issue is we have a set of common functionality implemented across the app WRT buttons that interact with wallet. This screenshot from @woodenfurniture sums it best:
We always have to:
What if we instead we had some dynamic component/s (e.g a button, but not limited to it) which would detect if/which wallet is connected, an do some checks before, returning a fallback in the case of no wallet connected, or in case an action is needed
What if we didn't have to think of those edge cases, but would have a UI library of sorts that handles this, and returns a different copy, also handling things like approvals needed and accepting functions that trigger whichever action is needed on click (e.g
onApprove
) or sane defaults for actions which are always the same (onConnectWalletClick
).This spike is an engineering spike on how to avoid the repetitiveness, disparity of duplicated code, and eventually make it so we don't have to repeat ourselves and miss edge cases, because it is streamlined.
Here is an overview of states we're interested in:
References and additional details
TODO
Acceptance Criteria
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered: