notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 08a97c946d9a6af7ee36f837d851a5aaf5adad14
parent 2fde5addebcbb3c4cc75bb071e9943ce5dde9378
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 10 Aug 2025 21:30:00 -0700

clndash: fix invoice order, return more stuff

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_clndash/src/lib.rs | 3++-
Mcrates/notedeck_clndash/src/watch.rs | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck_clndash/src/lib.rs b/crates/notedeck_clndash/src/lib.rs @@ -276,7 +276,7 @@ impl ClnDash { self.connection_state = ConnectionState::Active; let _ = channel.req_tx.send(Request::GetInfo); let _ = channel.req_tx.send(Request::ListPeerChannels); - let _ = channel.req_tx.send(Request::PaidInvoices(30)); + let _ = channel.req_tx.send(Request::PaidInvoices(100)); } Event::Response(resp) => match resp { @@ -648,6 +648,7 @@ fn invoices_ui( TableBuilder::new(ui) .column(Column::auto().resizable(true)) .column(Column::remainder()) + .vscroll(false) .header(20.0, |mut header| { header.col(|ui| { ui.strong("description"); diff --git a/crates/notedeck_clndash/src/watch.rs b/crates/notedeck_clndash/src/watch.rs @@ -109,7 +109,7 @@ pub async fn fetch_paid_invoices( results.push(res.map_err(|_| lnsocket::Error::Io(std::io::ErrorKind::Interrupted))??); } - results.sort_by(|a, b| a.updated_index.cmp(&b.updated_index)); + results.sort_by(|a, b| a.updated_index.cmp(&b.updated_index).reverse()); Ok(results) }