From 97bc8f929dce8f6bb1b5747ac80d761436133fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sun, 20 Sep 2026 01:08:44 +0300 Subject: [PATCH] =?UTF-8?q?ui:=20header=20preset=20indicators=20=E2=80=94?= =?UTF-8?q?=20ADM=20key=20glyph,=20SCP80/SCP81=20completeness=20(v2.6.1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - the ADM badge gains a trailing key glyph (ADM ✓ ⚿ / ADM ✗ ⚿) when the preset matching the equipped card's ICCID carries an ADM key; the four tooltip states cover key/no-key x verified/not-verified - new gray SCP80/SCP81 markers after ADM, shown only when that preset has all SCP80 fields (KIc/KID, SPI1/SPI2, counter, KIc/KID keys) or the SCP81 PSK pair filled in; hidden without a card session, a matching preset or the fields, never color-coded - cardsScp80Complete/cardsScp81Complete/cardsAdmPresent/cardsMatchedPreset helpers; cardsRender reuses the SCP81 predicate - tests: ADM four-state badge, marker show/hide, predicate whitespace handling, header markup order; help EN/RU updated; SW cache simple-v201 --- frontend/help-ru.html | 4 +- frontend/help.html | 4 +- frontend/index.html | 81 ++++++++++++++++++++++++++++--- frontend/sw.js | 2 +- frontend/tests/card_state.test.js | 78 ++++++++++++++++++++++++++--- frontend/tests/cards_form.test.js | 21 ++++++++ frontend/tests/indicator.test.js | 50 ++++++++++++++++++- pyproject.toml | 2 +- pysim_simple_server/server.py | 2 +- 9 files changed, 220 insertions(+), 24 deletions(-) diff --git a/frontend/help-ru.html b/frontend/help-ru.html index d985b85..4892389 100644 --- a/frontend/help-ru.html +++ b/frontend/help-ru.html @@ -42,7 +42,7 @@

1.1 Интерфейс