alby-hub/api
René Aaron d58b9f3ead
fix: show BOLT-12 offer button for CLN backend (#2360)
* fix: show BOLT-12 offer button for CLN backend

The CLN backend implements MakeOffer and the /api/offers endpoint is
backend-agnostic, but the UI only surfaced the "Lightning Offer" button
when backendType === "LDK", leaving CLN users without a way to reach
the flow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor: gate BOLT-12 offer UI on supportsBolt12 from useInfo

Surface a supportsBolt12 capability on the info response (true for LDK
and CLN) so the frontend stops hardcoding backend-type checks for the
BOLT-12 offer button.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 20:10:02 +07:00
..
api.go fix: show BOLT-12 offer button for CLN backend (#2360) 2026-05-23 20:10:02 +07:00
api_test.go feat: proposal: custom node commands (#1007) 2025-01-30 18:20:17 +07:00
apps_test.go Feat: NWA auth for self-hosted hubs (#1016) 2025-02-27 19:12:55 +07:00
backup.go fix: prevent LN client access during shutdown (#2096) 2026-02-27 15:45:09 +07:00
esplora.go Adding checks for ok status code in responses (#2178) 2026-03-31 23:21:26 +05:30
lsp.go chore: update to use sat/msat suffixes everywhere (#2271) 2026-05-01 15:41:56 +05:30
models.go fix: show BOLT-12 offer button for CLN backend (#2360) 2026-05-23 20:10:02 +07:00
rebalance.go chore: update to use sat/msat suffixes everywhere (#2271) 2026-05-01 15:41:56 +05:30
transactions.go feat: allow payments from app connections (#2267) 2026-05-03 12:27:38 -07:00