From beaff3f1cfdf4a58464797c52e8dcbc4a9c92d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 31 Jul 2026 14:02:50 +0400 Subject: [PATCH] =?UTF-8?q?v1.2.12:=20scenario=20list=20=E2=80=94=20clean?= =?UTF-8?q?=20header=20row=20+=20action=20buttons=20in=20expanded=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Header: name | step count | seed badge (no CRUD buttons) - Expanded view: ▶ Запустить ✏ Редактировать 📋 Копировать 🗑 Удалить (same size, aligned, with labels) - Delete hidden for seed scenarios --- site/app.py | 2 +- site/static/js/scenario-list.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/site/app.py b/site/app.py index 783244e..f437f27 100644 --- a/site/app.py +++ b/site/app.py @@ -19,7 +19,7 @@ from routes.api_scenario_run import bp_run as api_scenario_run_bp from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. -VERSION = "1.2.11" +VERSION = "1.2.12" app = Flask(__name__, template_folder="templates", static_folder="static") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc") diff --git a/site/static/js/scenario-list.js b/site/static/js/scenario-list.js index b7c924e..b0694de 100644 --- a/site/static/js/scenario-list.js +++ b/site/static/js/scenario-list.js @@ -24,13 +24,10 @@ async function loadScenarios(){ sr.forEach(s=>{ const seed = s.is_seed; html+=`
`; - html+=`
`; + html+=`
`; html+=`${_esc(s.name)}`; - html+=`${s.steps} шагов`; - if(!seed) html+=``; - html+=``; - if(!seed) html+=``; - if(seed) html+=`seed`; + html+=`${s.steps} шаг.`; + if(seed) html+=`seed`; html+=`
`; html+=``; html+=`
`; @@ -75,6 +72,9 @@ async function toggleScenarioSteps(defId) { html += '
'; }); html += ``; + html += ``; + html += ``; + if (!def.is_seed) html += ``; html += ''; el.innerHTML = html; el.style.display = 'block';