fix(analytics): подписи каналов согласования — робот и старые записи не сырыми ключами

This commit is contained in:
Hermes 2026-10-03 00:39:14 +02:00
parent bf2b3559ae
commit c8e9e697ad
4 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
const isLocalhost = self.location.hostname === "localhost" || self.location.hostname === "127.0.0.1";
if (!isLocalhost) {
const STATIC_CACHE = "construction-delivery-static-v134";
const STATIC_CACHE = "construction-delivery-static-v135";
const RUNTIME_CACHE = "construction-delivery-runtime-v119";
const APP_SHELL_URLS = ["/", "/client", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"];

View File

@ -22,6 +22,7 @@ const STAGE_COLORS = {
};
const CHANNEL_LABELS = {
call: 'Робот-звонок',
autocall: 'Робот-звонок',
manual: 'Менеджер',
link: 'По ссылке',

View File

@ -33,9 +33,10 @@ const SOURCE_LABELS = {
autocall: 'Робот-звонок',
link: 'Ссылка из SMS',
automation: 'Автоматически',
none: 'В обход (без даты)',
// дата есть, а источник не записан — старые подтверждения (канал клиента до 29.09.2026)
none: 'Источник не записан',
// Клиентские каналы из ссылки (/delivery/{hash}?src=...) — до 29.09.2026 не писались,
// поэтому в старых строках стоит пустой источник («В обход (без даты)»).
// поэтому в старых строках источник пустой («Источник не записан»).
sms: 'SMS-ссылка',
client: 'Ссылка (прямой заход)',
push: 'Push',

View File

@ -60,7 +60,7 @@ describe("OrderPathFunnelBlock", () => {
it("показывает источники даты и разбивку по типу заказа", () => {
expect(html).toContain("Менеджер");
expect(html).toContain("Робот-звонок");
expect(html).toContain("В обход (без даты)");
expect(html).toContain("Источник не записан");
expect(html).toContain("Самовывоз");
expect(html).toContain("235");
expect(html).toContain("Доставка");