Skip to content

Trim Hub setup's Advanced options to overrides and diagnostics - #19

Merged
DigitalPals merged 2 commits into
mainfrom
hub-setup-advanced
Nov 6, 2026
Merged

DigitalPals merged 2 commits into
mainfrom
hub-setup-advanced

Conversation

@DigitalPals

Copy link
Copy Markdown
Owner

Second of three stacked PRs (after #18, base hub-setup-simplify). Retarget to main once #18 merges.

Advanced options repeated the whole setup as manual steps: check server, a Docker checkbox, install, open Tailscale, enable HTTPS, create the owner passkey, and verify the connection. Deploy Hub / Resume setup already does all of this, can be repeated safely and recovers interrupted runs. Advanced now holds only:

  • Tailscale name (new servers), owner account name (until the owner exists; the placeholder shows the actual default), Hub image, and local image tar
  • Refresh status, Check readiness, View diagnostics (saved servers)

Two manual steps had no other route, so they move to the main view:

  • Picking a saved server (or Manage server in Settings) now runs the read-only status check right away. That shows where setup stopped, or the maintenance options. Before, it needed Advanced → Refresh status, and "Manage server" offered "Resume setup" for a Hub that was already running. The check is skipped when the saved SSH host is missing, since the view already explains that.
  • Connect this device appears for a ready Hub that this device isn't signed in to. It signs in directly, with no SSH round trip. It replaces "Verify Hub connection".

Code removed: the manual-only state and messages (preflight, install_docker, InstallDocker, OpenEnrollment), the per-phase guidance() text, and the Install/preflight gating in start(). start() now only handles actions on a saved deployment. Install requests always send install_docker: true; starting setup is the consent.

Tests

  • New tests for the automatic status check on selection, Connect this device (handler and view), Advanced showing only overrides and diagnostics, and install requests carrying install_docker.
  • The hostname test now goes through Deploy.
  • cargo test --lib: 1233 passed. Clippy and fmt are clean.

🤖 Generated with Claude Code

CybexHQ and others added 2 commits November 6, 2026 18:45
Set up on a server no longer shows the existing-Hub Connect and Sign in
steps under the Deploy button. They appear once the deployment hands the
new Hub over, to show connection progress and offer retries. The selected
setup path is highlighted.

Maintenance shows one update button, and only when there is something to
update to: an image chosen in Advanced options, otherwise the version of
this Portal. The always-visible Update Hub button did nothing unless the
image had been changed.

Docs: the Hub README links to the install paths instead of repeating
them. The manual deployment guide is the one place for running the Hub
by hand, including the legacy forced-command mode. It no longer sends
owners to /admin or asks for a web port, installs Tailscale from its own
packages and builds with -p portal-hub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Advanced options repeated the whole setup as manual steps: check server,
a Docker checkbox, install, open Tailscale, enable HTTPS, create the owner
passkey and verify the connection. Deploy Hub / Resume setup already does
all of this, can be repeated safely and recovers interrupted runs, so
Advanced now holds only the Tailscale name, owner account name, Hub image
and local image tar, plus Refresh status, Check readiness and View
diagnostics.

Two manual steps had no other route, so they move to the main view.
Picking a saved server (or Manage server in Settings) now checks its
status right away, which shows where setup stopped or the maintenance
options; before, that needed Advanced → Refresh status. A ready Hub that
this device is not signed in to offers Connect this device, which signs
in without another SSH round trip.

Removes the manual-only state and messages (preflight, install_docker,
OpenEnrollment) and the per-phase guidance text. Installation requests
always allow adding Docker; starting setup is the consent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DigitalPals
DigitalPals changed the base branch from hub-setup-simplify to main November 6, 2026 18:10
@DigitalPals
DigitalPals merged commit 3e7daac into main Nov 6, 2026
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