Skip to content

Add automation settings to setup wizard#34

Merged
munezaclovis merged 4 commits intomainfrom
feat/setup-automation-settings
Mar 10, 2026
Merged

Add automation settings to setup wizard#34
munezaclovis merged 4 commits intomainfrom
feat/setup-automation-settings

Conversation

@munezaclovis
Copy link
Copy Markdown
Contributor

@munezaclovis munezaclovis commented Mar 9, 2026

Summary

  • Adds automation configuration to the Settings tab in pv setup
  • 9 tri-state options (true/ask/false) for link automation gates: composer install, copy .env, generate key, set APP_URL, install Octane, create database, run migrations, service env update, service fallback
  • Up/down navigation, space to cycle values, color-coded display (green/yellow/dim)
  • Loads current settings from ~/.pv/pv.yml on start, saves on confirm

Test plan

  • go test ./... — all 26 packages pass
  • Manual: run pv setup, navigate to Settings tab, verify TLD editing still works
  • Manual: cycle automation values with space, confirm they persist to ~/.pv/pv.yml

The Settings tab now has two sections:
- Domain: TLD text input (existing)
- Automation: 9 tri-state options for pv link automation

Navigation: up/down moves between items, space cycles true/ask/false,
e edits TLD. Values are color-coded (green=true, yellow=ask, dim=false).
Settings are loaded from and saved back to ~/.pv/pv.yml.
Use DefaultSettings() on load error to prevent silent data loss,
consolidate three identical selected*Values methods into one helper,
and collapse duplicate esc/enter editing cases.
@munezaclovis munezaclovis merged commit 3a1a1af into main Mar 10, 2026
1 check passed
@munezaclovis munezaclovis deleted the feat/setup-automation-settings branch March 10, 2026 07:22
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