fix(ui): Show city from fingerprint data in worker dashboard

City was captured in preflight fingerprint JSON but not displayed.
Now falls back to fingerprint.detectedLocation.city if current_city is null.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kelly
2025-12-13 18:08:41 -07:00
parent d02c347ef6
commit d810592bf2

View File

@@ -343,7 +343,8 @@ function PreflightSummary({ worker }: { worker: Worker }) {
const httpError = worker.preflight_http_error; const httpError = worker.preflight_http_error;
const httpMs = worker.preflight_http_ms; const httpMs = worker.preflight_http_ms;
const geoState = worker.current_state; const geoState = worker.current_state;
const geoCity = worker.current_city; // City from current_city column, or fallback to fingerprint detected location
const geoCity = worker.current_city || fingerprint?.detectedLocation?.city;
// Build detailed tooltip // Build detailed tooltip
const tooltipLines: string[] = []; const tooltipLines: string[] = [];