ui aanpassing, debug scherm weg

This commit is contained in:
kodi
2026-03-08 09:18:20 +01:00
parent e10082e1bc
commit d7f97b2a77
7 changed files with 66 additions and 34 deletions
+12 -7
View File
@@ -30,17 +30,21 @@ required = [
"2. Episodes",
"3. Selected Episodes",
"4. Selected Files",
"Debug Output",
"Filename Preview",
"Select Files",
"Rename Execute (confirm=true)",
]
for needle in required:
assert needle in html, f"missing UI text: {needle}"
for removed in ["Debug Output", "Filename Preview", "Mapping Preview"]:
assert removed not in html, f"unexpected legacy UI text present: {removed}"
print("UI panel/control validation passed")
PY
echo
echo "== Feature test 2: static assets are served =="
echo "== Feature test 2: debug page and static assets are served =="
curl --fail --silent --show-error \
"${BASE_URL}/debug.html" \
-o "${TMP_DIR}/debug.html"
curl --fail --silent --show-error \
"${BASE_URL}/static/styles.css" \
-o "${TMP_DIR}/styles.css"
@@ -48,12 +52,14 @@ curl --fail --silent --show-error \
"${BASE_URL}/static/app.js" \
-o "${TMP_DIR}/app.js"
python3 - "${TMP_DIR}/styles.css" "${TMP_DIR}/app.js" <<'PY'
python3 - "${TMP_DIR}/debug.html" "${TMP_DIR}/styles.css" "${TMP_DIR}/app.js" <<'PY'
import sys
from pathlib import Path
css = Path(sys.argv[1]).read_text(encoding="utf-8")
js = Path(sys.argv[2]).read_text(encoding="utf-8")
debug_html = Path(sys.argv[1]).read_text(encoding="utf-8")
css = Path(sys.argv[2]).read_text(encoding="utf-8")
js = Path(sys.argv[3]).read_text(encoding="utf-8")
assert "Rename MVP Debug" in debug_html, "debug.html missing expected title/text"
assert ".grid" in css, "styles.css missing expected grid styles"
assert "session_id" in js, "app.js missing session_id usage"
assert "/api/tvdb/search" in js, "app.js missing search endpoint usage"
@@ -77,7 +83,6 @@ required_endpoints = [
"/api/files/roots",
"/api/files/folders",
"/api/files/discover",
"/api/session/filename-preview",
"/api/session/rename-execute",
]
for endpoint in required_endpoints: