Skip to content

Polish setup wizard UX#177

Open
holmboe wants to merge 2 commits intomasterfrom
polish-setup-wizard-ui
Open

Polish setup wizard UX#177
holmboe wants to merge 2 commits intomasterfrom
polish-setup-wizard-ui

Conversation

@holmboe
Copy link
Contributor

@holmboe holmboe commented Mar 8, 2026

Summary

  • Browser handling: Skip webbrowser.open() on WSL2, Docker, and Podman/systemd-nspawn where it opens text browsers in the terminal; display the URL for manual opening instead
  • Token URL fix: Point to /settings/panel/apitokens/ instead of the legacy /conduit/token/ which gives unusable 40-char temporary certificate tokens
  • URL input: Auto-prepend https:// when user enters a bare hostname (e.g. phorge.example.com)
  • Multi-host .arcrc: Read ~/.arcrc directly in config check to avoid triggering the interactive server selector
  • UI polish: Use Rich rules for section headers, spinners for connection verification, and InquirerPy for all prompts (replacing Rich Prompt/Confirm)

Test plan

  • uv run ruff check phabfive/ tests/
  • uv run ruff format --check phabfive/ tests/
  • uv run pytest tests/test_setup.py -v (24 tests pass)
  • Manual: phabfive user setup on WSL2 — shows URL without opening terminal browser
  • Manual: phabfive user setup with multi-host .arcrc — no server selector prompt
  • Manual: enter bare hostname without https:// — auto-prepended

🤖 Generated with Claude Code

holmboe and others added 2 commits March 8, 2026 22:46
Replace plain text headers with console.rule() for visual separation,
add a console.status() spinner during connection verification, and use
green checkmarks (✓) instead of arrow prefixes for success messages.
Also migrate all prompts from Rich Prompt/Confirm to InquirerPy for
consistent interactive input handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Skip webbrowser.open() on WSL2/Docker/Podman where it opens text
  browsers in the terminal; show the URL for manual opening instead
- Point token URL to /settings/panel/apitokens/ instead of the legacy
  /conduit/token/ which gives unusable 40-char temporary tokens
- Auto-prepend https:// when user enters bare hostname
- Read ~/.arcrc directly in config check to avoid triggering the
  interactive server selector on multi-host setups

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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