Skip to content

Settings: the connection path at the top, as PCOMM draws its link - #51

Open
Neo-Desktop wants to merge 2 commits into
mainfrom
claude/project-thread-0xgx4j
Open

Neo-Desktop wants to merge 2 commits into
mainfrom
claude/project-thread-0xgx4j

Conversation

@Neo-Desktop

Copy link
Copy Markdown
Collaborator

Requested by Sydney · project thread

What

The top of Settings now shows how a call is made, modelled on PCOMM's "Connection Overview": four steps joined by one line, each with its role above the icon and what it is set to below.

Line Program Modem / Adapter Line / Modem Reaches / Line
SIP account Terminal D-Modem SIP: registers as user@host (or just "Account") Phone network
SIP, anonymous Terminal D-Modem SIP: nothing registered SIP addresses
Wi-Fi / Bluetooth peer Terminal D-Modem Wi-Fi / Bluetooth (paired, or "Pair and choose a phone") Other phone
USB modem Terminal D-Modem USB modem (the one plugged in, or "None plugged in") Phone line
Mobile calls Terminal D-Modem Mobile call Phone network
No line Terminal D-Modem No line (off) Nothing (off)
Serial modem Terminal USB serial (speed, RTS/CTS) Modem Phone line
Bluetooth modem Terminal Bluetooth (paired) Bluetooth modem Phone line

The Terminal step also lists what else shares the modem: dial-up internet, dial-in and the bridges. While dial-up internet is up, that step shows as PPP.

  • Idle: shows the configuration. A step that still needs setting up is red, its line is dashed, and one line underneath says what's missing. "No line" is greyed out.
  • Starting, dialling, online: shows the live state. Steps light up as the call goes, and the rate appears once connected.
  • Android: tapping a step opens its settings page.

How

  • shared/.../path/ConnectionPath.kt: the steps, their states and their wording, shared by Android and iOS, with ConnectionPathTest.
  • Android: ui/ConnectionPathView.kt (Compose), placed above the settings menu's cards.
  • iOS: ConnectionPathView.swift (SwiftUI), the first section of Settings. It covers iOS's lines: SIP, Wi-Fi and none.
  • docs/features.md describes it.

Tested

  • :shared:jvmTest passes, including the 8 new path tests.
  • :app:compileDebugKotlin builds with no warnings in the new code.
  • The iOS build is left to CI, since there's no Mac here.

The desktop apps get the same diagram in D-Modem/gui.


Generated by Claude Code

Settings now opens with how a call is made: the terminal (and what else
shares the modem: dial-up internet, dial-in, the bridges), the modem,
the line and what it reaches; for a modem of its own, the USB serial
adapter or Bluetooth it's reached by, the modem and its line. Each
step's role is above its icon and what it is below, one line joining
them. Idle it shows the settings as they are (a step still to set in
red, its line dashed, and a line saying what); starting, dialling and
online it lights as the call goes. On Android a step opens its page.

The shared Kotlin's ConnectionPath has the steps and their words,
tested, for Android (Compose) and iOS (SwiftUI) alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvKupDGEromPgYtjG
@Neo-Desktop Neo-Desktop self-assigned this Nov 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants