From 362f5cdd4d467a6a2dcc1c7273dfbe2eb706bab5 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 13 Mar 2026 14:37:21 -0400 Subject: [PATCH] ui: Add 'Create New Site/Flyer' to the interactive management menu --- voxvera/cli.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/voxvera/cli.py b/voxvera/cli.py index 0a48b73..9bfa7ae 100644 --- a/voxvera/cli.py +++ b/voxvera/cli.py @@ -689,6 +689,7 @@ def manage_servers(): status_text = "[ON] " if running else "[OFF]" choices.append(Choice(s, f"{status_text} {s}")) + choices.insert(0, Choice("create_new", "--- Create New Site/Flyer ---")) choices.append(Choice("export_all", "--- Export All Sites ---")) choices.append(Choice("import_multiple", "--- Import Multiple Sites ---")) choices.append(Choice(None, "Exit")) @@ -701,6 +702,16 @@ def manage_servers(): if selected is None: break + if selected == "create_new": + config_path = ROOT / "src" / "config.json" + interactive_update(str(config_path)) + build_assets(str(config_path)) + try: + serve(str(config_path)) + except SystemExit: + pass + continue + if selected == "export_all": export_all_sites() continue