Commit 2cb2840
fix(tui): add ProgressTracker to execute_scan_ports for Metrics/Network Graph
Root cause: execute_scan_ports() never published ProgressUpdate events during
the actual port scanning loop. Only ScanStarted/ScanCompleted were published,
leaving Metrics dashboard and Network Graph without real-time data.
Changes:
- Add ProgressTracker to execute_scan_ports() for real-time progress updates
- Publish ProgressUpdate events every 250ms during port scanning
- Track completed port count and calculate accurate throughput
- Enable Network Graph to receive ThroughputSamples for visualization
- Enable Metrics dashboard to show current throughput and completed count
This is Part 3 of the comprehensive TUI event flow fix series:
- Part 1: Event aggregation and progress tracking (cdad62c)
- Part 2: EventBus attachment to TCP scanner (2a051ad)
- Part 2b: Service detection, duration, Network Graph (b3776e7)
- Part 3: ProgressUpdate in execute_scan_ports (this commit)
Testing: All 276 prtip-tui tests pass, clean clippy
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b3776e7 commit 2cb2840
2 files changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
797 | 800 | | |
798 | 801 | | |
799 | 802 | | |
800 | 803 | | |
801 | | - | |
802 | 804 | | |
803 | | - | |
804 | 805 | | |
805 | 806 | | |
806 | 807 | | |
| |||
867 | 868 | | |
868 | 869 | | |
869 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
870 | 875 | | |
871 | 876 | | |
872 | 877 | | |
| |||
985 | 990 | | |
986 | 991 | | |
987 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
988 | 1000 | | |
989 | 1001 | | |
990 | 1002 | | |
| |||
1176 | 1188 | | |
1177 | 1189 | | |
1178 | 1190 | | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
1179 | 1194 | | |
1180 | 1195 | | |
1181 | 1196 | | |
1182 | 1197 | | |
1183 | | - | |
1184 | 1198 | | |
1185 | | - | |
| 1199 | + | |
1186 | 1200 | | |
1187 | 1201 | | |
1188 | 1202 | | |
| |||
0 commit comments