sort compare remote records, improve views

tzemanovic
Apr 1, 2026, 5:30 PM
ZG2CON2VWRVR7H7TV3DB3MCMD2ODSJOOZ4VNTF27SVPBEYQKZQYAC

Dependencies

Change contents

  • edit in libflorescence/src/repo.rs at line 37
    [2.120]
    [3.41]
    use itertools::Itertools;
  • edit in libflorescence/src/repo.rs at line 330
    [10.43]
    [4.48]
    pub timestamp: Timestamp,
  • edit in libflorescence/src/repo.rs at line 1426
    [10.120]
    [13.9789]
    let timestamp = header.timestamp;
  • edit in libflorescence/src/repo.rs at line 1431
    [10.159]
    [4.540]
    timestamp,
  • edit in libflorescence/src/repo.rs at line 1852
    [18.4431]
    [18.4431]
    .sorted_by(|a, b| match (a, b) {
    (Ok(a), Ok(b)) => Ord::cmp(&a.timestamp, &b.timestamp),
    _ => cmp::Ordering::Equal,
    })
  • edit in libflorescence/src/repo.rs at line 1864
    [18.4757]
    [18.4757]
    .sorted_by(|a, b| match (a, b) {
    (Ok(a), Ok(b)) => Ord::cmp(&a.timestamp, &b.timestamp),
    _ => cmp::Ordering::Equal,
    })
  • edit in libflorescence/src/repo.rs at line 1876
    [18.5071]
    [18.5071]
    .sorted_by(|a, b| match (a, b) {
    (Ok(a), Ok(b)) => Ord::cmp(&a.timestamp, &b.timestamp).reverse(),
    _ => cmp::Ordering::Equal,
    })
  • edit in libflorescence/src/repo/test.rs at line 137
    [12.733]
    [12.733]
    timestamp: _,
  • edit in libflorescence/Cargo.toml at line 41
    [17.29054]
    [15.3436]
    workspace = true
    [dependencies.itertools]
  • edit in libflorescence/Cargo.toml at line 91
    [8.4118][16.13056:13102]()
    workspace = true
    [dev-dependencies.itertools]
  • replacement in inflorescence_view/src/view.rs at line 1735
    [18.9573][18.9573:9598]()
    ))))
    [18.9573]
    [18.9598]
    ))
    .font(Font::MONOSPACE)))
  • edit in inflorescence_view/src/view.rs at line 2243
    [10.1995]
    [9.15329]
    timestamp: _,
  • edit in inflorescence_view/src/view.rs at line 2273
    [10.2097]
    [10.2097]
    timestamp,
  • replacement in inflorescence_view/src/view.rs at line 2278
    [10.2222][10.2222:2258](),[10.2258][12.2196:2255](),[12.2255][10.2322:2472](),[10.2322][10.2322:2472](),[10.2472][12.2256:2301](),[12.2301][10.2531:2674](),[11.3184][10.2531:2674](),[10.2531][10.2531:2674](),[10.2674][14.948:993]()
    el(column([
    el(column([
    view_header(format!("{short_hash} message:")),
    el(text(message).shaping(text::Shaping::Advanced)),
    ])),
    if let Some(description) = description {
    el(column([
    view_header("Description:"),
    el(text(description).shaping(text::Shaping::Advanced)),
    ]))
    } else {
    el(column([]))
    },
    view_header("Changed:".to_string()),
    [10.2222]
    [10.2730]
    let mut cols = Vec::with_capacity(3 + description.iter().len());
    cols.push(el(row([
    el(text(short_hash.to_string()).font(Font {
    weight: font::Weight::Bold,
    ..Font::MONOSPACE
    })),
    view_timestamp(timestamp),
    ])
    .spacing(SPACING)));
    cols.push(el(row([
    view_header("Message:"),
    el(text(message).shaping(text::Shaping::Advanced)),
  • replacement in inflorescence_view/src/view.rs at line 2293
    [10.2737][10.2737:2760]()
    .spacing(SPACING))
    [10.2737]
    [10.2760]
    .spacing(SPACING)));
    if let Some(description) = description {
    cols.push(el(row([
    view_header("Description:"),
    el(text(description).shaping(text::Shaping::Advanced)),
    ])
    .spacing(SPACING)));
    }
    cols.push(view_header("Files:".to_string()));
    el(column(cols).spacing(SPACING))
    }
    fn view_timestamp(timestamp: &Timestamp) -> Element<'_, Msg, Theme> {
    el(text(timestamp.strftime("%H:%M:%S, %b %d, %Y").to_string()))
  • edit in inflorescence_view/src/view/test.rs at line 140
    [11.3367]
    [5.1516]
    timestamp: Timestamp::from_str("2024-03-10T06:05:00Z").unwrap(),
  • edit in inflorescence/src/test.rs at line 10
    [11.8750]
    [6.1489]
    use libflorescence::prelude::Timestamp;
  • edit in inflorescence/src/test.rs at line 1000
    [11.10859]
    [7.6869]
    timestamp: Timestamp::now(),
  • edit in inflorescence/src/test.rs at line 1007
    [11.10891]
    [7.7007]
    timestamp: Timestamp::now(),
  • edit in inflorescence/src/test.rs at line 1014
    [11.10923]
    [7.7145]
    timestamp: Timestamp::now(),