-
-
Notifications
You must be signed in to change notification settings - Fork 132
Wallet flow #2362
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
Wallet flow #2362
Conversation
9ca3b23
to
e1c49e8
Compare
e9ff174
to
57a7604
Compare
Oh, I lost something during my refactor here: stacker.news/components/multi-step-form.js Lines 61 to 69 in 736e18e
This was supposed to have a different margin adjustment for the second line. This and filling the numbers with the background color (so the line can't appear inside the circle) is how I made the lines touch the number.
Yes, will use svgs instead
Yes, good idea
Ah, I see that the font weight and color is off. Will make sure to reuse the CSS from nav.module.css |
Now using arrow-left-s-fill etc. for the form navigation instead of the existing arrows for page navigation: ![]() Had to manually adjust the padding of the next button to make it look good.
|
Looks much better. Thank you! I'm going to give it a quick QA/line-by-line and merge if all goes well. |
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 centered things a little more, and gave a few places padding, but it is otherwise good to go. It looks nice and works better!
I'll merge when you're more available.
Description
based on #2397 close #2308
This PR introduces a three-step flow to attach wallets: 1. attach send 2. attach receive 3. settings
The settings can only be accessed if the wallet has at least one send or receive configuration (else we wouldn't be saving anything).
/wallets/settings has been removed because the settings can now be accessed by going through the flow.
After a wallet has been configured, each protocol can still be enabled/disabled via the familiar checkbox in the protocol form. Individual protocols can no longer be detached however; a wallet can only be fully deleted via the 'delete' button in the settings (not quite happy with the position of it though).
The logic for the multi-step form has been encapsulated into
@/components/multi-step-form.js
. It's agnostic of wallets and handles:TODO
Video
2025-08-09.17-07-10.mp4
Additional Context
As mentioned in the description, I'm not quite happy with the position of the 'delete' button but not sure where else to put it.
This bullet point from Wallet flow #2308 has been skipped because it's better suited for a follow-up PR:
Checklist
Are your changes backward compatible? Please answer below:
yes
On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
8
. Tested attaching, configuring and deleting wallets that use lightning addresses, NWC or LNbitsFor frontend changes: Tested on mobile, light and dark mode? Please answer below:
n/a
Did you introduce any new environment variables? If so, call them out explicitly here:
no