Dashboard redesign, Windows installer and reliability fixes

ES
5d ago
+4848-109

Summary

  • Redesigns the dashboard around a new Overview page: health ring, KPIs, quick actions, config-doctor checklist, HTML run reports, copyable endpoints and a safe-mode banner, on a refreshed five-theme design system (buttons with busy/focus states, tinted chrome, new login overlay, favicon).
  • Adds a real Windows installer (Inno Setup 7) with branded wizard art, admin install with a no-UAC per-user option, AppMutex integration, Start Menu/desktop shortcuts and optional autostart. Installed copies keep config/accounts/logs in %LOCALAPPDATA%\ZcodeGateway via installed.flag, so upgrades and uninstalls never touch user data. Includes a one-command build pipeline (scripts/installer/build_installer.ps1).
  • Fixes a startup crash where bracketed IPv6 entries in NO_PROXY ([::1]) made httpx raise InvalidURL; fixes auto-reload of the account pool after Auto Generate; adds Config Doctor, HTML run reports with redaction, Safe Mode, domain-rotation hints, log colouring and structured installer scripts.
  • Adds meaningful tests (54 in the additions file; full suite 1524 passed, 173 skipped on Windows / Python 3.13).

Phased roadmap and explicit scope boundaries are documented in PR_PROPOSAL.md. No new captcha-bypass, IP-rotation or account-claiming functionality is added.

Test plan

  • .venv\Scripts\python -m pytest tests -q → 1524 passed, 173 skipped
  • Silent installer end-to-end (/VERYSILENT /CURRENTUSER): install exit 0, /health + /dash 200 from the installed app, clean uninstall, data preserved
  • Dashboard visual QA: Overview / Accounts / Analytics / Settings
  • Setup wizard visual check (branded welcome page)
  • Portable exe still works unchanged (data beside the exe)

Build: .\scripts\build\windows.ps1 then .\scripts\installer\build_installer.ps1.


Summary by cubic

Redesigns the dashboard around a new Overview landing page, adds a Windows installer, and fixes a startup crash on bracketed IPv6 NO_PROXY entries plus a stale account pool after Auto Generate.

Features

  • Overview shows a health ring, KPIs, quick actions, a Config Doctor checklist, HTML run reports, endpoint links, and a safe-mode banner.
  • Dashboard now has ten themes, a new login overlay, favicon, and consistent button busy/focus states.
  • New Inno Setup installer offers admin or per-user no-UAC install, AppMutex, Start Menu/desktop shortcuts, and optional autostart, with a one-command build pipeline and branded wizard art.
  • Installed copies keep config, accounts, and logs in %LOCALAPPDATA%\ZcodeGateway via installed.flag; upgrades and uninstalls never touch user data.
  • HTML reports open in the default browser through short-lived gateway links, the Safe Mode toggle clears rate-limit state, and the Accounts view exposes its data folder.

Fixes and diagnostics

  • NO_PROXY entries in bracketed IPv6 form ([::1]) are normalized so httpx no longer raises InvalidURL on startup.
  • Auto Generate reloads the account pool at run end so qualified accounts show up in the dashboard immediately.
  • Fixes a blank Config Doctor page caused by awaiting a synchronous mount; a browser test now imports every view module.
  • Config Doctor and the captcha sidecar spawn subprocesses with hidden windows so polling no longer flashes cmd consoles on Windows.
  • Config Doctor probes mail with live secrets, records reconfiguration, and adds health checks; report HTML redacts credentials.
  • Adds 54 tests (full suite: 1524 passed, 173 skipped on Windows / Python 3.13).