From 34b65fcbbe27cc330d045e42b38f76d6a0151690 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Tue, 19 May 2026 00:31:16 +0200 Subject: [PATCH] style(overlays): redesign create-overlay modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reorders fields to Name → Type → System-wide. Drops the legacy fieldset border and the now-stale "path is generated automatically" hint. Type radios use the new .radio-row vocabulary with always-visible descriptions; the admin-only system-wide checkbox becomes a .switch-row toggle. Form field names are unchanged, so the overlay-creation handler is untouched. Plan deviation: live_server e2e fixture now also sets LEFT4ME_ROOT. This is required because the new test creates an overlay end-to-end via the UI, and create_overlay_directory() writes under $LEFT4ME_ROOT, which defaults to /var/lib/left4me (unwritable on dev machines). The two existing live_server consumers (test_editor, test_smoke) only visit /blueprints/ routes that don't touch the filesystem, so this change is safe for them. Co-Authored-By: Claude Opus 4.7 (1M context) --- l4d2web/l4d2web/templates/overlays.html | 49 ++++++++++++++++++----- l4d2web/tests/e2e/conftest.py | 4 ++ l4d2web/tests/e2e/test_overlays_create.py | 47 ++++++++++++++++++++++ 3 files changed, 91 insertions(+), 9 deletions(-) create mode 100644 l4d2web/tests/e2e/test_overlays_create.py diff --git a/l4d2web/l4d2web/templates/overlays.html b/l4d2web/l4d2web/templates/overlays.html index ac38a70..b609ecc 100644 --- a/l4d2web/l4d2web/templates/overlays.html +++ b/l4d2web/l4d2web/templates/overlays.html @@ -34,17 +34,48 @@