stellar / laboratory

82 stars 95 forks source link

Problem: Sign buttons and UI ambiguous #1034

Open leighmcculloch opened 1 week ago

leighmcculloch commented 1 week ago

The sign UI is ambigious.

  1. The Add Signer section, has a button Add Signature, but it doesn't accept a signature as input, but a signer to produce a signature. The button would be less ambiguous to me if named Add additional signer.

  2. There are three sign buttons, and it's unclear how they interact. Does Sign transaction only sign using signers, or also using the hardware wallet?

    The Sign transactions button seems to exclusively work with keys entered at the beginning of the sign box, and the Sign with wallet seems to ignore the signers entered. The UI looks like it's signing with all things together, but actually they're all independent.

  3. Until clicking Sign with wallet it's not obvious what that button is for vs the first button.

Screenshot 2024-09-16 at 11 17 54 AM

The separation of functionality was clearer, although still subtle, in old lab:

Screenshot 2024-09-16 at 11 20 21 AM
janewang commented 1 week ago

Discussed and agreed:

quietbits commented 1 week ago

Here are examples of the Old vs. New flow when signing with the Ledger hardware wallet. The Old Lab signs the transaction right away, while the New Lab needs an extra click to do that.

Old Lab

lab-sign-tx-ledger-old-lab.webm

New Lab

lab-sign-tx-ledger-new-lab.webm

janewang commented 1 week ago

Thanks @quietbits

@quietbits @sdfcharles I think we are missing a few states, like "Waiting for Ledger", then once we show the state "Successfully added a hardware wallet signature", the first button below really should change to "Submit transaction" (because the transaction has been signed). Wdyt?

sdfcharles commented 1 week ago

yep agreed, will design those states before our next huddle 🙏

sdfcharles commented 1 week ago

updated designs here

ux changes:

cc @janewang @quietbits

leighmcculloch commented 5 days ago

The separation in the updated design looks great, and is clearer than previous lab's separation was. 👏🏻

  • updated "Add signature" to "Add additional signer" on signing with secret key

@sdfcharles Would it also work to automatically display an additional signer text input when a secret key is entered into the previous input? It would alleviate the need for an additional bold button, that would I think make the flow clearer to a user. This might be too minor to worry about at this point.

  • added success message for hardware wallet and wallet extension signings

@sdfcharles I love this. What do you think about adding the same success message to the signer/key box, so that all three types of signing produce the same style of success message? It'd round out the connection between I've hit that button, and it's done.

sdfcharles commented 5 days ago

@leighmcculloch

Would it also work to automatically display an additional signer text input when a secret key is entered into the previous input? It would alleviate the need for an additional bold button, that would I think make the flow clearer to a user. This might be too minor to worry about at this point.

yep we could do that – would feel more seamless especially if we are also having the user click "Sign with a Secret Key"

What do you think about adding the same success message to the signer/key box, so that all three types of signing produce the same style of success message? It'd round out the connection between I've hit that button, and it's done.

yep, updated designs to include this success message