From 0180f3cb3fced30106bd189536568ab318be6ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 31 Jul 2026 14:14:04 +0400 Subject: [PATCH] v1.2.15: aligned table columns everywhere - Overview cards: .overview-table with table-layout:fixed, status column 70px - History table: table-layout:fixed, Time 130px, Op 90px, Status 50px, Duration 55px - All tables now have consistent column widths across cards --- site/app.py | 2 +- site/static/js/history.js | 4 ++-- site/templates/index.html | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/site/app.py b/site/app.py index 76f63d5..106c1ea 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.14" +VERSION = "1.2.15" 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/history.js b/site/static/js/history.js index 755feae..4ae29fe 100644 --- a/site/static/js/history.js +++ b/site/static/js/history.js @@ -16,8 +16,8 @@ async function loadHistory(){ const r=await fetch('/api/history'); const rows=await r.json(); if(!rows||!rows.length){body.innerHTML='Нет записей'; return;} - let html=''; - html+=''; + let html='
ВремяОперацияИнстансСтатусДлит.
'; + html+=''; rows.forEach((r, i)=>{ const time=r.created_at?r.created_at.replace('T',' ').substring(0,19):'?'; const cls=r.status==='OK'?'badge-success':r.status==='FAIL'?'badge' :''; diff --git a/site/templates/index.html b/site/templates/index.html index 4c519f9..c436467 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -40,6 +40,9 @@ .token-row { display:flex; gap:4px; padding:8px 12px; } .token-row input { flex:1; height:26px; font-size:11px; border:1px solid var(--brand-gray); border-radius:3px; padding:0 4px; background:var(--brand-grey-light); } .token-row button { height:26px; font-size:10px; padding:0 6px; } + .overview-table { width:100%; table-layout:fixed; } + .overview-table td:first-child { width:auto; } + .overview-table td:last-child { width:70px; text-align:center; } @@ -109,7 +112,7 @@
Организация{% if client_id %} ({{ client_id }}){% endif %}
-
ВремяОперацияИнстансСтатусДлит.
+
{{ organization.displayName }}
{{ organization.instanceUid }}
{{ organization.explainedStatus or 'OK' }}
@@ -119,7 +122,7 @@
{{ svc_name }} ({{ items|length }})
- +
{% for i in items %} {% endfor %}
{{ i.displayName }}
{{ i.instanceUid }}
{{ i.explainedStatus or '?' }}