Skip to content
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

chore: reorder and use wallet name from lud16 #143

Merged
merged 21 commits into from
Oct 25, 2024
Merged

chore: reorder and use wallet name from lud16 #143

merged 21 commits into from
Oct 25, 2024

Conversation

im-adithya
Copy link
Member

@im-adithya im-adithya commented Sep 30, 2024

Fixes #126
Fixes #127
Fixes #164

Delete wallets with faulty/no NWC url (#164)

We can now select empty wallets without being redirected to setup

That makes wallet setting page accessible

Wallet can be deleted from there

Don't create wallet without valid connection string (#126)

Connect a new wallet (no. of wallets: 1)

If nwc url is invalid it doesn't create a wallet

Go back and check (no. of wallets: Still 1)

Reordering and using LUD16 (#127)

Go to setup and scan/paste nwc string

LUD 16 is used as name from string

If LUD 16 is not available

After finishing setup

@reneaaron reneaaron added this to the 1.7 milestone Oct 3, 2024
@rolznz
Copy link
Contributor

rolznz commented Oct 4, 2024

I believe this does not truly fix the root issue described in #126 which is that we shouldn't even save a new wallet until it's correctly configured. Would it be good to implement this too?

@reneaaron
Copy link
Contributor

Just tested and it's working out great 💪

The only thing that imo should be changed is the order of steps:

You start on the Connect Wallet screen where you scan a QR code. If the Connection Secret contains a LUD16 identifier that one should be used as the wallet's name, otherwise you can enter one.

If you don't enter a name (or close the app) the connection should not be saved yet.

reneaaron and others added 2 commits October 25, 2024 12:42
* fix: success layout

* fix: center content on screen
Copy link
Contributor

@reneaaron reneaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

pages/settings/Wallets.tsx Show resolved Hide resolved
@reneaaron reneaaron merged commit 299afe8 into master Oct 25, 2024
1 check passed
reneaaron added a commit that referenced this pull request Oct 31, 2024
* chore: rename animation from paid to tick

* chore: reorder and use wallet anme from lud16

* chore: delete wallet on cancelling setup

* fix: build error after merge

* chore: convert wallet connection page to wallet setup

* chore: remove trash icon

* chore: remove unnecessary empty wallet logic

* chore: add wallet only after setting the name

* chore: set info toast position

* chore: remove comment

* fix: button content

* fix: undo button change

* fix: use button component

* chore: redirect to setup if wallets.length is 0

* chore: disable button is name is empty

* fix: success layout (#160)

* fix: success layout

* fix: center content on screen

---------

Co-authored-by: René Aaron <100827540+reneaaron@users.noreply.github.com>
Co-authored-by: René Aaron <rene@twentyuno.net>
@im-adithya im-adithya deleted the task-order branch November 18, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants