From d50befde3d38739b6a86e2dcbb8b668f7fbc4e18 Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Wed, 25 Nov 2026 16:58:31 +0000 Subject: [PATCH] =?UTF-8?q?FRTVL-28:=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D0=BA=D0=B0=20=D0=A2=D0=B5=D0=BB=D0=B5=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=B0=20=D0=B1=D0=B5=D0=B7=20=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=20rebase=20=D0=BD=D0=B0=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- public/app.js | 2 +- public/filters.js | 3 +-- test/filters.test.ts | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/public/app.js b/public/app.js index e0d5145..6e8c107 100644 --- a/public/app.js +++ b/public/app.js @@ -230,7 +230,7 @@ async function loadSettings() { $("bot-unavailable").hidden = !tg.unavailable; $("telegram-detail").textContent = tg.detail; $("telegram-details").hidden = !tg.detail; - $("telegram-code-hint").textContent = telegramCodeHint(tg.step); + $("telegram-code-hint").textContent = telegramCodeHint(); $("link-button").hidden = tg.step !== "unlinked"; $("mock-confirm").hidden = tg.step !== "pending"; $("unlink-button").hidden = tg.step !== "linked"; diff --git a/public/filters.js b/public/filters.js index 4e66993..af27c4f 100644 --- a/public/filters.js +++ b/public/filters.js @@ -298,10 +298,9 @@ export function runningMessage(startedAt) { * Подсказка блока Телеграма про код привязки. Что с ним делать, сказано один раз: * до нажатия — в telegramState.note, после — в #link-info рядом с кодом (FRTVL-28), * поэтому отдельной подсказки нет ни на одном шаге. - * @param {"unlinked" | "pending" | "linked"} _step * @returns {string} */ -export function telegramCodeHint(_step) { +export function telegramCodeHint() { return ""; } diff --git a/test/filters.test.ts b/test/filters.test.ts index 44efc45..22a1033 100644 --- a/test/filters.test.ts +++ b/test/filters.test.ts @@ -156,9 +156,7 @@ describe("Requirement: Вход владельца (FRTVL-47)", async () => { }); it("Scenario: Подсказка Телеграма по шагам — без повторов и кода доступа", () => { - expect(telegramCodeHint("linked")).toBe(""); - expect(telegramCodeHint("pending")).toBe(""); - expect(telegramCodeHint("unlinked")).toBe(""); + expect(telegramCodeHint()).toBe(""); }); });