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

fix(lightning): update transfer UI #1551

Closed
wants to merge 0 commits into from
Closed

Conversation

pwltr
Copy link
Collaborator

@pwltr pwltr commented Feb 9, 2024

Description

Updates the UI to better show transfers from and to spending, also contains most of the design updates from v46 related to transfers. I moved some state related to transfers to its own field in wallet.transfers, some of this is duplicated but this makes it more explicit and way easier to work with.

Linked Issues/Tasks

Add any links to GitHub issues or Asana tasks that are relevant to this pull request.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (improving code without creating new functionality)

Tests

  • Detox test
  • Unit test
  • No test

Screenshot / Video

channel open:

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-02-09.at.16.06.10.mp4

channel close:

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-02-09.at.16.00.27.mp4

@pwltr pwltr force-pushed the fix/transfer-savings branch 4 times, most recently from 3090b45 to fe0e5f8 Compare February 9, 2024 15:25
src/utils/wallet/index.ts Outdated Show resolved Hide resolved
pendingTransfers.forEach((transfer) => {
const tx = transactions[transfer.txId];
if (transfer.confirmations <= 6) {
const confs = tx.height === -1 ? 1 : headerHeight - tx.height + 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const confs = tx.height === -1 ? 1 : headerHeight - tx.height + 1;
const confs = tx.height < 1 ? 0 : headerHeight - tx.height + 1;

Seeing a confirmation miscalculation. Possibly from this snippet.
Screenshot 2024-02-10 at 12 48 03 PM

@coreyphillips
Copy link
Collaborator

Other than that, everything LGTM!

@JeanlChristophe JeanlChristophe added this to the v.1 milestone Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Channel closing UX [Bug]: Activity update [Bug]: In-flight HTLC
4 participants