Repository navigation
feat: tel: parsing, AT dialer and view models (Domain, Modem, AppLogic) - #4
Merged
Merged
Conversation
TelUri reduces an RFC 3966 link to 0-9 * # with an optional leading +, dropping visual separators, the printed "(0)" and all parameters. Since whatever follows ATD is executed by the phone, a link carrying a line break, a semicolon or any other character is refused, as is one longer than 32 digits or 256 characters. DialNumber turns +<home country> into a leading 0, any other + into 00, and prepends the Amtsholung prefix from DialSettings. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
On a landline a supplementary-service code such as *21*<number># sets up call forwarding at the exchange. A link carrying one would divert every call to the Feuerwehr's line, behind a confirm window that shows what looks like a number. Links, and the Amtsholung prefix, are now digits only; the attack is replayed in plain and percent-encoded form. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
DeepDiver1975
force-pushed
the
feat/modem-at-dialer
branch
from
October 26, 2026 20:49
9fb992e to
c03f360
Compare
DeepDiver1975
force-pushed
the
feat/applogic-view-models
branch
from
October 26, 2026 20:49
4b8c18c to
6541c0f
Compare
…ands (#3) * feat(modem): dial over the phone's Bluetooth serial port with AT commands AtDialer runs one dial as one connection: open the port, AT, ATD, close. A silent phone times out after 10 s on connect and 15 s on the dial and reports NoResponse, which is what the DL500A does while the PC holds its audio connection. ERROR/+CME ERROR, BUSY, NO CARRIER and NO DIALTONE map to their own results; echo lines, RING and CLIP: are skipped. A probe sends AT only. SerialPorts opens the OS's SPP port (COM on Windows, /dev/cu.* on macOS, /dev/rfcomm* on Linux) off the caller's thread and classifies why it did not open; StreamAtChannel frames the lines and refuses to write anything but one line of printable ASCII. Tests replay the transcript recorded from a DL500A on 2026-10-26. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> * fix(modem): report a link that breaks mid-dial as no response A serial stream throws IOException once the Bluetooth link behind it is gone — phone switched off, out of range, RFCOMM dropped. AtDialer let it escape; it now closes the port and reports NoResponse like a silent phone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]> --------- Signed-off-by: Thomas Müller <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
DialViewModel is the window a tel: click opens: it shows the number that will follow ATD and dials only when confirmed, closes two seconds after a successful dial, and stays open with the reason otherwise. A link that TelUri refuses shows no number and cannot be dialled. SettingsViewModel picks the phone's port (keeping a stored one the OS does not list right now), the Ländervorwahl and the Amtsholung, tests the connection with AT only, places a test call, and asks the OS to make Wählhilfe the tel: handler. DialMessages holds the German status for every DialResult, naming the audio-connection trap for a phone that does not answer. JsonSettingsStore keeps the settings in the user's profile and drops hand-edited values the settings window would refuse. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
DeepDiver1975
force-pushed
the
feat/applogic-view-models
branch
from
October 26, 2026 20:53
6541c0f to
8134781
Compare
A tel: link can arrive while the Lagebuchführer is typing in another program. The dial window comes to the front and takes focus, so an Enter meant for that program would confirm the call — the one thing the confirm window is there to prevent. Wählen now arms one second after the window opens. 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.
Targets
maindirectly and brings it up to date in one merge. Besides the AppLogic commits below it carries the Domain and Modem code you already reviewed and merged in #2 and #3 — those merges landed in stacked base branches, not inmain, somainstill has only the bootstrap. Supersedes #5.feat(domain),fix(domain)— tel: parsing, digits onlyfeat(modem)— AT dialer, serial portfeat(applogic),fix(applogic)— view models, arming delayDialViewModel— what atel:click opens. Wählen arms one second after the window opens (second commit): a link can arrive while someone types elsewhere, and their next Enter must not confirm the call. Shows the digits that will followATD(after Ländervorwahl and Amtsholung rules) and dials only on confirm. On success: „Gewählt. Gespräch am Telefon führen.“, then closes after 2 s. On failure it stays open with the reason. Cancel closes, and also cancels a dial in progress. A linkTelUrirefuses (injection,*21*…#, not atel:link) shows no number and the dial command is disabled; no port configured → says where to set it up.SettingsViewModel— port picker (keeps showing a stored port the OS doesn't list right now, refresh after pairing), Ländervorwahl, Amtsholung, Speichern with validation, „Verbindung testen“ (probe:ATonly, no call), Testanruf with an entered number, and „Als Standard festlegen“ throughITelHandlerRegistration(implemented per OS in the App PR), with a re-check for Windows where the user picks in the system dialog.DialMessages— German status for everyDialResult;NoResponsenames the audio-connection trap.JsonSettingsStore—%APPDATA%\Waehlhilfe/~/Library/Application Support/Waehlhilfe/$XDG_CONFIG_HOME/Waehlhilfe; atomic write; damaged, oversized (>16 KB) or hand-edited invalid values fall back to defaults.AtDialernow implementsIDialer, so the view models are tested against handwritten fakes. 47 tests;make cigreen. No views in this PR, so no screenshots — they come with the App PR.🤖 Generated with Claude Code