Skip to content

Make connecting cancellable and connection errors actionable - #11

Merged
DigitalPals merged 5 commits into
mainfrom
delegate/cancel-on-connecting-and-clearer-error-xbgfg
Nov 6, 2026
Merged

DigitalPals merged 5 commits into
mainfrom
delegate/cancel-on-connecting-and-clearer-error-xbgfg

Conversation

@DigitalPals

@DigitalPals DigitalPals commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Connection failures such as a refused connection to 127.0.0.1:1 previously repeated the error, wrapped into six lines, and disappeared after five seconds. The Connecting dialog also required Escape to cancel.

  • Add a visible Cancel button, elapsed time, and the SSH connection step when available. Cancellation uses the existing abort path and ignores late results.
  • Give toast messages their full width. Summarize refused connections, timeouts, unknown hosts, and authentication failures in plain language, with the original diagnostic under Details.
  • Keep initial SSH, VNC, and host-backed Portal Hub connection failures visible until dismissed, with Retry and Edit host. Retry uses current saved settings and requests credentials again; failed quick connections can be edited into new hosts. Temporary notifications retain their five-second lifetime.
  • Use existing theme colours and button styles throughout.

Validation: ./run.sh check (including cargo clippy --all-targets -- -D warnings), cargo fmt --all -- --check, and 104 focused unit tests across toast, dialogs, connection services, SSH client, actions, dialog manager, session, VNC, UI, and host handling. Built and restarted the local desktop app for click testing of Cancel, Retry, Edit host, Details, persistent failures and fading informational notices. Checked rendering in all six themes.

Captured matching 1440×900 before/after PNGs using the real refused connection, in light and dark, for “Connecting” and “Connection error”. Uploaded all four comparisons and their plain-language notes to Whombat. Screenshots and capture logs remain in the excluded .whombat/ directory. No Hub service code was changed.

CI setup: load the legacy IPv4 filter kernel module before the pinned sidecar networking test. Its existing assertions remain unchanged.

@DigitalPals
DigitalPals merged commit 7236a5c into main Nov 6, 2026
9 checks passed
@DigitalPals
DigitalPals deleted the delegate/cancel-on-connecting-and-clearer-error-xbgfg branch November 6, 2026 17:09
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