Skip to content

fix: stabilize send scan routing#925

Open
ovitrif wants to merge 9 commits intofeat/connection-issues-viewfrom
fix/connection-issues-view
Open

fix: stabilize send scan routing#925
ovitrif wants to merge 9 commits intofeat/connection-issues-viewfrom
fix/connection-issues-view

Conversation

@ovitrif
Copy link
Copy Markdown
Collaborator

@ovitrif ovitrif commented Apr 30, 2026

Description

Fixes issues surfaced in #878:

  • Avoids waiting 15 seconds for usable channels when there are no channels or the node cannot become runnable.
  • Stabilizes scan routing by preserving whether a scan started from the main scanner or send sheet before routing.
  • Adds a changelog fragment for the user-facing fix.

Also fixes all lint issues accumulated in latest PRs (should later update build config to fail on lint errors).

Preview

Before After
before.mp4
after.mp4

QA Notes

Manual Tests

  • 1. No usable channels/spending balance → scan LN invoice: error shows immediately, not after 15s.
  • 2. regression: Scanner → scan fixed amount LN invoice: Send Confirm or QuickPay opens directly.
  • 3a. regression: Send → scanner/paste fixed amount LN invoice: in-sheet nav to Confirm or QuickPay.
    • 3b. regression: Variable amount LN invoice/LNURL-pay: lands on Amount view.

Automated Tests

Added new unit tests:

  • main scanner lightning scan opens send sheet
  • main scanner zero amount lightning scan opens amount sheet
  • main scanner lightning scan opens QuickPay when enabled
  • waitForUsableChannels waits for running state before treating empty channels as absent

@ovitrif ovitrif force-pushed the fix/connection-issues-view branch from ac51d38 to 8c3e3d1 Compare May 1, 2026 12:06
@ovitrif ovitrif added this to the 2.3.0 milestone May 4, 2026
@ovitrif ovitrif force-pushed the fix/connection-issues-view branch from 8c3e3d1 to 3851847 Compare May 4, 2026 11:23
ovitrif added 2 commits May 8, 2026 00:57
…-view

# Conflicts:
#	app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt
@ovitrif ovitrif marked this pull request as ready for review May 7, 2026 23:34
chatgpt-codex-connector[bot]

This comment was marked as outdated.

ovitrif

This comment was marked as resolved.

@ovitrif ovitrif requested review from ben-kaufman and piotr-iohk May 7, 2026 23:39
Comment thread app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt Outdated
Comment thread app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt Outdated
chatgpt-codex-connector[bot]

This comment was marked as resolved.

@claude

This comment has been minimized.

@ovitrif
Copy link
Copy Markdown
Collaborator Author

ovitrif commented May 8, 2026

Addressed the changelog fragment review note in bf5e8f06a by adding changelog.d/next/925.fixed.md and updating the PR description to remove the stale no-changelog note.

@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 8, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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.

1 participant