-
Notifications
You must be signed in to change notification settings - Fork 354
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
feat(llm): π₯ display human readable errors when the send flow fails #8081
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ 5 Skipped Deployments
|
049e4e3
to
1a07f79
Compare
apps/ledger-live-mobile/src/screens/SendFunds/07-SendBroadcastError.tsx
Outdated
Show resolved
Hide resolved
); | ||
} | ||
|
||
const InformativeBannerButton = styled(Button).attrs({ |
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.
Not sure since it's from the lib but can't we add an active css so the button gets a little white ? (it's done on some buttons of llm but not all of them so it's just an idea not sure that's useful)
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 realized that the active style was disabled on the Button
component from the DS (it's not the case for quick action buttons and promisables). Here's the commit but I don't have the PR it was part of (this is why I sometime prefer squashing: it removes data in the git repo but makes the GH data easier to find). So I kept the change but made it overidable to hopefully not break anything π€.
@cgrellard-ledger do you remember the context of this change βοΈ ?
apps/ledger-live-mobile/src/screens/SendFunds/07-SendBroadcastError.tsx
Outdated
Show resolved
Hide resolved
apps/ledger-live-mobile/src/newArch/components/CopyButton/index.tsx
Outdated
Show resolved
Hide resolved
@LucasWerey I just saw that I had forgotten to actualy show the network and coin in the error message. To fix that I had to make some major changes in the |
message.includes("-25: bad-tnxs-inputs-missingorspent") || | ||
message.includes("-25: Missing inputs") | ||
) { | ||
return "https://support.ledger.com/article/5129526865821-zd"; |
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.
You should move this outside :)
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.
Done!
c25857c
to
1a770df
Compare
@thesan is it ready to be merged? |
β Checklist
npx changeset
was attached.π Description
Display human readable errors when the send flow fails.
NodeErrors.mov
β Context
π§ Checklist for the PR Reviewers