Skip to content

Conversation

@ben-kaufman
Copy link
Contributor

@ben-kaufman ben-kaufman commented Nov 17, 2025

This PR improves the detection of onchain txs for opening channels, and updates the UI for activity details of transfer activities. (Fixes #168)

Test: Open anc close channels and ensure channel openings show in activities list as transfer from savings and channel close as transfer from spendings.

Video Demo:

Screen.Recording.2025-11-17.at.9.38.04.AM.mov

@ben-kaufman ben-kaufman self-assigned this Nov 17, 2025
@jvsena42 jvsena42 requested a review from Copilot November 17, 2025 14:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves the detection and display of onchain transactions related to Lightning channel operations. It enhances the ability to identify channel opening and closing transactions, and updates the activity details UI to properly display transfer activities between savings (onchain) and spending (Lightning) wallets.

Key Changes:

  • Enhanced detection of channel-related onchain transactions by checking both closed and open channels
  • Improved UI for transfer activity details with channel-specific information and proper color coding
  • Refactored order-channel linking logic into a reusable extension method

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ActivityItemView.swift Added comprehensive UI updates for transfer activities including channel detection, fee display improvements, and channel detail navigation button
LightningConnectionsView.swift Refactored channel-order matching logic to use new extension method
TransferViewModel.swift Simplified transfer metadata creation by removing async update logic and dedicated helper method
CoreService.swift Added new method to detect channel opening transactions by matching funding transactions and Blocktank orders
Localizable.strings Added new localization strings for transfer direction and prepaid fee labels
ChannelDetails+Extensions.swift Created new extension with extracted and improved order-channel matching logic

Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

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

ACK 🥇

tested:

  1. transfer to savings 🟢
  2. transfer to speding 🟢
  3. channel list screen 🟢
  4. channel detail screen 🟢

The only issues I found is what I reported via DMs, there's a temporary issue with sorting which eventually auto-fixes.

And another very minor issue is the back nav from channel details screen:

  • it goes to advanced settings screen, I would expect it to go to channel list screen.

@ovitrif ovitrif enabled auto-merge November 17, 2025 17:41
@ben-kaufman
Copy link
Contributor Author

Issue with navigation should be fixed in the last commit. Lmk if that persists

Copy link
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

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

Tested open 2 channels and close both. Just found this small issue from Transifex

Image

@ovitrif
Copy link
Collaborator

ovitrif commented Nov 17, 2025

Issue with navigation should be fixed in the last commit. Lmk if that persists

Fix validated 🟢

@ovitrif ovitrif disabled auto-merge November 17, 2025 18:43
@ovitrif ovitrif merged commit 5e9b905 into master Nov 17, 2025
6 of 7 checks passed
@ovitrif ovitrif deleted the feat/transfer-activity-details branch November 17, 2025 18:43
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.

Transfer from savings is displayed as a normal send transaction

4 participants