freighter icon indicating copy to clipboard operation
freighter copied to clipboard

New add/remove asset flow does not surface errors

Open piyalbasu opened this issue 3 months ago • 2 comments

What version are you using?

5.35.0

What did you do?

  1. Fund an account with 1 XLM
  2. Attempt to add USDC as a trustline
  3. Observe that you receive a tx failed error

What did you expect to see?

Copy telling me what went wrong (in this case, insufficient balance)

What did you see instead?

Image

piyalbasu avatar Sep 29 '25 21:09 piyalbasu

Does this need to be fixed in mobile, as well?

piyalbasu avatar Sep 29 '25 21:09 piyalbasu

Does this need to be fixed in mobile, as well?

I don't think we've designed errors for this screen but yeah none of the platforms include detailed error messages here.

aristidesstaffieri avatar Sep 29 '25 21:09 aristidesstaffieri

@sdfcharles could we have Figma designs for Failed submitted transactions in all flows for the extension and mobile? E.g. Add/Remove Token, Send, Swap, and Sign Transaction

I think having a dedicated space/section for the UI error message in our existing error screens would probably be enough. What do you think? Below are 2 samples (extension and mobile)

Image Image

CassioMG avatar Nov 17 '25 22:11 CassioMG

Similar issue on the mobile repo: https://github.com/stellar/freighter-mobile/issues/315

CassioMG avatar Nov 17 '25 22:11 CassioMG

@sdfcharles could we have Figma designs for Failed submitted transactions in all flows for the extension and mobile? E.g. Add/Remove Token, Send, Swap, and Sign Transaction

I think having a dedicated space/section for the UI error message in our existing error screens would probably be enough. What do you think? Below are 2 samples (extension and mobile)

Image Image

yep makes sense, will attach here when done 🫡

sdfcharles avatar Nov 17 '25 22:11 sdfcharles

@CassioMG

Image

Mobile designs

Image

Extension designs

fyi copy is placeholder

sdfcharles avatar Nov 17 '25 23:11 sdfcharles

@sdfcharles looks good to me, thanks! @aristidesstaffieri @piyalbasu I was thinking we could use the fields suggested here to build the error messages. What do you think? Also please let us know in case you have further suggestions for the UI - thanks!

CassioMG avatar Nov 17 '25 23:11 CassioMG

@sdfcharles looks good to me, thanks! @aristidesstaffieri @piyalbasu I was thinking we could use the fields suggested here to build the error messages. What do you think? Also please let us know in case you have further suggestions for the UI - thanks!

that seems good to me, further, I think we can find the rpc code that defines all of the possible errors and create maps of <raw error -> display string>. Imo we should stay away from using raw errors from rpc/horizon in the UI since they often don't mean much to a non-dev user.

aristidesstaffieri avatar Nov 18 '25 15:11 aristidesstaffieri

Imo we should stay away from using raw errors from rpc/horizon in the UI since they often don't mean much to a non-dev user.

@aristidesstaffieri totally agree on it, I've included it as part of this other task.

CassioMG avatar Nov 18 '25 17:11 CassioMG

Result XDR and response codes would be helpful for mapping to human-readable explanation for each error

Keeeeeeeks avatar Dec 08 '25 18:12 Keeeeeeeks