implement phase 5~7

This commit is contained in:
ms2k 2026-03-31 22:28:07 +09:00
commit 6140548774

16
SPEC.md
View file

@ -264,7 +264,7 @@ gantt
| 6 | Map pan/zoom, hover highlight, click-to-connect, color states by availability |
| 7 | `config_dialog.rs` modal, full settings flow, apply restarts poller |
| 8 | Unit tests (see below) |
| 9 | Polish pass |
| 9 | Polish pass: confirmation prompts, status formatting, edge cases, deprecation cleanup |
---
@ -280,6 +280,20 @@ gantt
---
## Phase 9 — Polish Details
- **Confirmation prompts on connect/switch**: connecting takes long enough to feel costly, so clicking
a country (list, grid, or map) when already connected should show a small modal or inline prompt
("Switch to X? [Connect] [Cancel]") before issuing the CLI call. Disconnected → connect can proceed
immediately.
- **Deprecated API cleanup**: replace `ctx.screen_rect()` with `content_rect()`, replace
`show_tooltip_at_pointer` with `egui::Tooltip`, remove `#![allow(dead_code)]`.
- **Border stroke scaling**: consider thinning borders at low zoom and thickening at high zoom.
- **Notification display**: show `self.notification` somewhere visible (inline banner or status bar).
- **Cursor polish**: grab/grabbing cursor icons on map pan.
---
## Future Enhancements (out of scope)
- **Flags setup script**: download SVGs from https://github.com/emcrisostomo/flags (public domain,