FRTVL-28: подсказка Телеграма без кода доступа после rebase на main
All checks were successful
peppa/lint lint: success за 6с
peppa/typecheck typecheck: success за 5с
peppa/test test: success за 3с
peppa/build build: success за 3с
ci / checks (pull_request) Successful in 42s
deploy / deploy (pull_request) Successful in 1m4s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
peppa-bot 2026-11-25 16:58:31 +00:00
parent 7febd6461e
commit d50befde3d
3 changed files with 3 additions and 6 deletions

View File

@ -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";

View File

@ -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 "";
}

View File

@ -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("");
});
});