Compare commits
2 Commits
4b0f4ea89b
...
87b82ca5f1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87b82ca5f1 | ||
|
|
82f8ab2826 |
@ -82,3 +82,7 @@ Errors
|
||||
## 12:09 - Fix: Rust sync excluded IL/MiL teams due to active_only=true
|
||||
- **Type:** fix
|
||||
- **Tags:** sba-scout, rust, sync, bug-fix, api, teams
|
||||
|
||||
## 12:09 - Fix: Dashboard didn't refresh after sync — re-mount on SyncComplete
|
||||
- **Type:** fix
|
||||
- **Tags:** sba-scout, rust, dashboard, ux, sync, tui
|
||||
|
||||
@ -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<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`.
|
||||
Loading…
Reference in New Issue
Block a user