From 690b7d45907ba704cc5bbb50de7df4758a258dfa Mon Sep 17 00:00:00 2001 From: user Date: Tue, 10 Mar 2026 11:18:46 -0700 Subject: [PATCH] feat: restore table UI with monolithic env var submission Keep the original table-based UI with individual key/value rows, edit/delete buttons, and add form. Use Alpine.js to manage the env var list client-side. On form submit, all env vars are collected into a hidden textarea field and POSTed as a single bulk request. The server-side handler (HandleEnvVarSave) atomically replaces all env vars: DELETE all existing + INSERT the full submitted set. This combines the fix for issue #156 (env var 404) with the monolithic list approach from issue #163. closes https://git.eeqj.de/sneak/upaas/issues/156 closes https://git.eeqj.de/sneak/upaas/issues/163 --- templates/app_detail.html | 85 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 80 insertions(+), 5 deletions(-) diff --git a/templates/app_detail.html b/templates/app_detail.html index 63cbb45..e315e4c 100644 --- a/templates/app_detail.html +++ b/templates/app_detail.html @@ -101,14 +101,89 @@ -
+

Environment Variables

-
+ {{ .CSRFField }} -

One KEY=value per line. Lines starting with # are ignored.

- + +
+ + + +
+
- +

⚠ Container restart needed after env var changes.