47 lines
1.4 KiB
Markdown
47 lines
1.4 KiB
Markdown
---
|
|
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:10:06.851656+00:00"
|
|
relations:
|
|
- target: 5c11485a-c808-41b6-8576-a8a388b5be1e
|
|
type: RELATED_TO
|
|
direction: incoming
|
|
strength: 0.8
|
|
edge_id: 38e55a1d-2f56-428b-8160-f01f98c6e113
|
|
- target: 6d3627c4-5aa1-47f0-a85f-34fe3ea685ac
|
|
type: RELATED_TO
|
|
direction: outgoing
|
|
strength: 0.75
|
|
edge_id: bd644f41-70ec-46b5-bde9-ab32e800315e
|
|
---
|
|
|
|
# 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<AppMessage>`
|
|
|
|
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`.
|