Repository navigation
feat(app): dial window, settings window and the OS tel: handler - #6
Merged
Merged
Conversation
A tel: link opens a small topmost window with the number: Enter dials, Escape cancels, it closes itself after a successful dial and shows why otherwise. Started on its own, Wählhilfe opens the settings window: Bluetooth port, Ländervorwahl, Amtsholung, Verbindung testen, Testanruf, and whether it opens tel: links. The link arrives as the first argument on Windows and Linux, and as an Apple event (IActivatableLifetime) on macOS, where the settings open only when no link follows the launch. Windows opens the Default apps page for the registered capability; macOS sets the handler through Launch Services; Linux has no registration. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
A second tel: link replaces the open dial window instead of stacking another one, so there is never more than one call waiting for a keystroke to confirm it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
Closing the dial window — the title bar, or a newer link replacing it on macOS — left a dial that was still connecting running behind it, so a call could be placed from a window nobody could see any more. The window now cancels it on close; the launch-time window also counts as the one a newer link replaces. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The windows a Lagebuchführer actually sees, plus the glue that hands
tel:links to them. Targetsmain; no stacking.Dial window — what a
tel:click opens. Small, topmost, shows the number that will followATD.*21*…#, a smuggled line break, not atel:link) shows no number, and Wählen stays disabled.Settings window — what opens when Wählhilfe is started on its own: Bluetooth port (with refresh), Ländervorwahl, Amtsholung, Speichern, Verbindung testen (sends
ATonly), Testanruf, and whether Wählhilfe openstel:links (Als Standard festlegen / Prüfen).Getting the link
IActivatableLifetime). The settings window opens only when no link follows the launch within 500 ms.tel:registrationLSSetDefaultHandlerForURLSchemevia Launch Services.Screenshots
Settings window — before (placeholder from #1) / after:
Dial window — new view, so no before. Ready / phone not answering / refused link:
Tests
19 headless view tests. Enter dials, Escape closes, Enter right after opening does not dial, closing during a dial cancels it, a refused link can't be dialled, settings bind and save, Verbindung testen only probes, and every button has a screen-reader name.
make clean ci: 172 tests green.Not yet verified:
System.IO.Ports; that waits for the next time in the ELW (sudo rfcomm bind 0 <MAC> 1, then Verbindung testen).tel:registration; that needs the installers.🤖 Generated with Claude Code