diff --git a/public/service-worker.js b/public/service-worker.js index cad0fda..e16296b 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -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-v125"; + const STATIC_CACHE = "construction-delivery-static-v126"; const RUNTIME_CACHE = "construction-delivery-runtime-v119"; const APP_SHELL_URLS = ["/", "/client", "/index.html", "/manifest.webmanifest", "/icons/icon-192.png", "/icons/icon-512.png"]; diff --git a/src/components/admin/analytics/CommsFunnelBlock.jsx b/src/components/admin/analytics/CommsFunnelBlock.jsx index 49a0dd8..69b2a9e 100644 --- a/src/components/admin/analytics/CommsFunnelBlock.jsx +++ b/src/components/admin/analytics/CommsFunnelBlock.jsx @@ -192,11 +192,12 @@ export const CommsFunnelBlock = ({ funnel, isLoading, mobile = false, periodLabe - - - - - + {/* на мобильном подписи короче: иначе последняя колонка обрезается */} + + + + + diff --git a/src/components/admin/analytics/CommsFunnelBlock.test.jsx b/src/components/admin/analytics/CommsFunnelBlock.test.jsx index 68f0f54..3812e7b 100644 --- a/src/components/admin/analytics/CommsFunnelBlock.test.jsx +++ b/src/components/admin/analytics/CommsFunnelBlock.test.jsx @@ -107,6 +107,9 @@ describe("CommsFunnelBlock", () => { // на мобильном процент по попыткам уходит во вторую строку, а не в скобках expect(m).not.toContain("(65.6%)"); expect(m).toContain("65.6%"); + // короткие подписи колонок, чтобы «Не взяли» влезала в 390px + expect(m).toContain("Согл."); + expect(m).toContain("Взяли"); }); it("показывает заглушку загрузки, пока данных нет", () => {
ПопыткаЗвонковВзяли трубкуСогласовалиНе взяли{mobile ? '№' : 'Попытка'}{mobile ? 'Звонков' : 'Звонков'}{mobile ? 'Взяли' : 'Взяли трубку'}{mobile ? 'Согл.' : 'Согласовали'}{mobile ? 'Не взяли' : 'Не взяли'}