Skip to content

feat(app): show live connections on a Connections page - #539

Merged
linroid merged 2 commits into
mainfrom
feat/connections-page
Oct 13, 2026
Merged

linroid merged 2 commits into
mainfrom
feat/connections-page

Conversation

@linroid

@linroid linroid commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Live connections move from the Pulse bar's popover to a page of their own, which has room to compare them.

What changes for users

  • Connections joins Downloads, Discover and Devices in the sidebar, rail and phone bottom bar (⌘7; Alt+7 on the web), the command palette and the macOS View menu.
  • Wide windows: a table. Columns are endpoint, task, protocol (a shield when encrypted), route (Direct, HTTP proxy, SOCKS5 proxy or Incoming), a torrent peer's wire and choke state, down and up speed, received, sent, and how long it has been open. Under All devices there is a Device column too.
    • Headers sort; the default is longest open first, so rows keep their place as speeds change.
    • Less telling columns drop out as the window narrows; the two speed columns always stay.
  • Narrow windows and phones: two-line rows.
  • Filters: chips pick a protocol family (HTTP, BitTorrent, FTP…) with counts; the search field matches endpoints, tasks, protocols and devices.
  • Direction by shape and color: each row leads with ↓, ↑, both, or a dot when idle, and its speeds are drawn in the download (accent) and upload (teal) colors.
  • Clicking a row shows its task in the inspector (on the Connections tab for HTTP and FTP).
  • Other states: a message when nothing is connected, when the device is too old to report connections, or when nothing matches; a footer counts slower connections left out (the page lists the fastest 1,024) and devices that don't report them.
  • The Pulse bar's grid of squares and its popover are no longer shown. Their code stays.
  • Data only flows while you look. Nothing else subscribes now, so devices stream their connections only while the page is open, stopping 5 s after you leave.

How

  • ui/connections: ConnectionsScreen, plus ConnectionRows (rows, sourceFilters, matching, ConnectionArrangement/arranged) and fitColumns, built on ConnectionGridModel.state(ActiveConnections.MAX_LIMIT). It reuses the table's header style, TablePadding and rowDivider, and the Pulse formatting helpers (endpointText, summaryText, trafficLabel).
  • AppDestination.Connections (icon Lanes), KetchCommands.Connections, ShellCommands, palette NOT_COMMANDS, DesktopMenuBar View menu and SHELL_COMMANDS.
  • AppShell and PhoneTopBar stop passing showConnections, so the strip, mini strip and Pulse sheet section stay off.
  • English strings in strings_connections.xml; the other languages fall back to English for now.
  • AGENTS.md updated.

Snapshots

Before After

Narrow window (760 dp) and small desktop, dark:

Tests

  • :app:shared:jvmTest and :app:desktop:test pass in full.
  • New ConnectionRowsTest (names, source filters, search, sorting, column fitting); AppDestinationTest and HostShortcutsTest updated.
  • ConnectionGridSnapshots.app_everySize_showsTheConnectionsPage replaces the scenario that opened the bar's popover.
  • Ran on the desktop app against live HTTP and torrent downloads.
  • Not run: iOS, Android and web compiles (CI covers them).

Follow-ups

  • Translations for the new strings.
  • Country flags for peer IPs, from a bundled IP-to-country table (separate PR).

A new destination (⌘7) lists the live connections of the shown devices: a sortable table on
wide windows (endpoint, task, protocol, route, torrent peer state, speeds, totals and how long
each has been open) and two-line rows on narrow ones, with protocol chips and a search field.
Direction shows by shape and color, ↓ and ↑ in the download and upload colors; a row shows its
task. Devices stream connections only while the page shows, stopping 5 s after it leaves. The
Pulse bar's grid of squares and its popover are no longer shown.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T14:16:18.294003Z 6e17a33 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 13, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e17a331c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

 1 873 files  + 2   1 900 suites  +2   23m 3s ⏱️ +11s
12 707 tests +14  12 462 ✅ +14  245 💤 ±0  0 ❌ ±0 
15 192 runs  +14  14 947 ✅ +14  245 💤 ±0  0 ❌ ±0 

Results for commit f019234. ± Comparison against base commit 8fa48e3.

This pull request removes 1 and adds 15 tests. Note that renamed tests count towards both.
com.linroid.ketch.app.snapshot.ConnectionGridSnapshots ‑ app_desktopAndPhone_showTheGridOnDownloads[jvm]
com.linroid.ketch.app.snapshot.ConnectionGridSnapshots ‑ app_everySize_showsTheConnectionsPage[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ arranged_defaultsToTheLongestOpen_andSortsNumbersLargestFirst[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ arranged_longestOpen_readsEachDevicesOwnClock[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ connectionRows_nameEachTaskAndDevice[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ fitColumns_dropsTheLeastTellingFirst_andKeepsSpeeds[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ matching_needsEveryWordInSomeField[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ next_cyclesNaturalReversedThenTheDefault[jvm]
com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ sourceFilters_nameEachSourceByItsCommonestProtocol_busiestFirst[jvm]
iosSimulatorArm64Test.com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ arranged_defaultsToTheLongestOpen_andSortsNumbersLargestFirst[iosSimulatorArm64]
iosSimulatorArm64Test.com.linroid.ketch.app.ui.connections.ConnectionRowsTest ‑ arranged_longestOpen_readsEachDevicesOwnClock[iosSimulatorArm64]
…
This pull request removes 1 skipped test and adds 1 skipped test. Note that renamed tests count towards both.
com.linroid.ketch.app.snapshot.ConnectionGridSnapshots ‑ app_desktopAndPhone_showTheGridOnDownloads[jvm]
com.linroid.ketch.app.snapshot.ConnectionGridSnapshots ‑ app_everySize_showsTheConnectionsPage[jvm]

@linroid
linroid merged commit 4d57088 into main Oct 13, 2026
14 checks passed
@linroid
linroid deleted the feat/connections-page branch October 13, 2026 14:28
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.

1 participant