From 82f8ab2826acc0930c813d7736b996e0b1bf2ed8 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 28 Feb 2026 12:09:29 -0600 Subject: [PATCH] =?UTF-8?q?store:=20Fix:=20Dashboard=20didn't=20refresh=20?= =?UTF-8?q?after=20sync=20=E2=80=94=20re-mount=20on=20SyncComplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...after-sync-re-mount-on-synccompl-0df0e0.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 graph/fixes/fix-dashboard-didnt-refresh-after-sync-re-mount-on-synccompl-0df0e0.md diff --git a/graph/fixes/fix-dashboard-didnt-refresh-after-sync-re-mount-on-synccompl-0df0e0.md b/graph/fixes/fix-dashboard-didnt-refresh-after-sync-re-mount-on-synccompl-0df0e0.md new file mode 100644 index 00000000000..bc3bafa8d96 --- /dev/null +++ b/graph/fixes/fix-dashboard-didnt-refresh-after-sync-re-mount-on-synccompl-0df0e0.md @@ -0,0 +1,35 @@ +--- +id: 0df0e075-ae86-4208-b08d-a02bb5fa2278 +type: fix +title: "Fix: Dashboard didn't refresh after sync — re-mount on SyncComplete" +tags: [sba-scout, rust, dashboard, ux, sync, tui] +importance: 0.6 +confidence: 0.8 +created: "2026-02-28T18:09:29.595660+00:00" +updated: "2026-02-28T18:09:29.595660+00:00" +--- + +# Fix: Dashboard didn't refresh after sync — re-mount on SyncComplete + +## Problem + +The dashboard's `handle_message` for `SyncComplete` updated the sync status display but did not re-fetch roster, team, or card data. Users had to navigate away and back to see the newly synced data reflected. + +## Fix + +Added a `self.mount(pool, tx)` call after successful sync in the `SyncComplete` handler. + +This required changing the `handle_message` method signature to accept: +- `pool: &SqlitePool` +- `tx: &mpsc::UnboundedSender` + +The call site in `app.rs` was updated accordingly. + +## Files Affected + +- `screens/dashboard.rs` — updated `handle_message` signature and added `mount` call +- `app.rs` — updated call site to pass `pool` and `tx` + +## Committed + +Part of commit `3e73644`.