feat: list the store live while a fetch runs

This commit is contained in:
randogoth 2026-10-02 00:00:41 +03:00
parent 50299547e5
commit 7ed2889966
3 changed files with 67 additions and 2 deletions

View file

@ -198,9 +198,12 @@ fn status<'a>(app: &'a Carrier) -> Element<'a, Message> {
let mut line = row![].spacing(10).align_y(Alignment::Center);
match (&app.busy, &app.status) {
(Some(busy), _) => {
line = line.push(muted(format!("{busy}…")));
if busy == "fetching" {
let inbox = app.lists.first().map(|rows| rows.len()).unwrap_or(0);
line = line.push(muted(format!("fetching… {inbox} in inbox")));
line = line.push(quiet_action("Cancel", Message::FetchCancelled));
} else {
line = line.push(muted(format!("{busy}…")));
}
}
(None, Some(status)) => {