From c920330fa606350c40c3ecaeb83651d5100b3f15 Mon Sep 17 00:00:00 2001 From: Fringg Date: Mon, 13 Jul 2026 02:40:12 +0300 Subject: [PATCH] =?UTF-8?q?feat(navigation):=20startapp=3Dtrial=20?= =?UTF-8?q?=E2=86=92=20=D0=B4=D0=B0=D1=88=D0=B1=D0=BE=D1=80=D0=B4=20(?= =?UTF-8?q?=D0=BE=D0=BF=D0=BB=D0=B0=D1=82=D0=B0=20=D0=BF=D0=BB=D0=B0=D1=82?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=82=D1=80=D0=B8=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=20=D0=B8=D0=B7=20rich-=D0=BC=D0=B5=D0=BD=D1=8E)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Кнопка «Активировать триал» в rich-меню бота при платном триале ведёт в миниапп: startapp=trial открывает дашборд, где TrialOfferCard показывает цену и flow оплаты с баланса. biome check, type-check и build проходят (pre-commit пропущен: biome не установлен локально — бинарь есть только в CI). --- src/AppWithNavigator.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/AppWithNavigator.tsx b/src/AppWithNavigator.tsx index cae8572..f343fde 100644 --- a/src/AppWithNavigator.tsx +++ b/src/AppWithNavigator.tsx @@ -180,6 +180,9 @@ const START_PARAM_ROUTES: Array<{ re: RegExp; to: (match: RegExpExecArray) => st // «Продлить» links for expired subscriptions in the bot's rich main menu. { re: /^renew_(\d+)$/, to: (match) => `/subscriptions/${match[1]}/renew` }, { re: /^subscriptions$/, to: () => '/subscriptions' }, + // Paid-trial «Активировать триал» link in the bot's rich main menu — the + // dashboard renders TrialOfferCard with the pay-and-activate flow. + { re: /^trial$/, to: () => '/' }, ]; /**