From eae5e61fcf401f19dce3531af821ecc9ca0363e4 Mon Sep 17 00:00:00 2001 From: wasrusgen Date: Sun, 17 May 2026 09:47:06 +0300 Subject: [PATCH] =?UTF-8?q?ui:=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20?= =?UTF-8?q?=C2=AB=D0=9D=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=BA=D0=BB=D0=B8=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=C2=BB=20=D0=BD=D0=B0=20=C2=AB=D0=97=D0=B0=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D1=8B=C2=BB,=20=D1=81=D1=82=D0=B8=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=BE=D1=87=D0=B5=D0=BA=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B8=D0=B5=D0=BD=D1=82=D0=BE=D0=B2,=20=D0=A1=D0=B2=D0=BE?= =?UTF-8?q?=D0=B1=D0=BE=D0=B4=D0=BD=D1=8B=D0=B9=20=D0=B4=D0=B5=D0=BD=D1=8C?= =?UTF-8?q?,=20splash=20=E2=88=9230%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - quickActions: «Новый клиент» → «Заказы» (clipboard → #/assembly), убрали дублирующую кнопку «Сборки» из быстрых действий - «Свободный день»: текст теперь использует var(--ink)/var(--muted) вместо rgba белых значений, которые были невидимы на светлом фоне --card; заголовок — шрифт карточки ×1.3 (17.5px 600), описание — моно uppercase 9.5px - styles.css: добавлены явные стили .client-card/.client-name/.client-phone/ .client-avatar и др. — исправлен невидимый текст в карточках клиентов во всех темах (Foundry, Boardroom, Atelier) - splash: minShow 1200 → 840 мс (−30%) - index.html: версия ресурсов → 20260517c Co-Authored-By: Claude Sonnet 4.6 --- miniapp/assets/app.js | 17 +++--- miniapp/assets/styles.css | 117 ++++++++++++++++++++++++++++++++++++++ miniapp/index.html | 16 +++--- 3 files changed, 133 insertions(+), 17 deletions(-) diff --git a/miniapp/assets/app.js b/miniapp/assets/app.js index 9d33fd3..254fc25 100644 --- a/miniapp/assets/app.js +++ b/miniapp/assets/app.js @@ -199,11 +199,10 @@ async function renderManagerHome(me) { // Quick actions const quickActions = [ - { icon: "user", title: "Клиенты", subtitle: "История + хронология", href: "#/clients" }, - { icon: "plus", title: "Новый клиент", subtitle: "Завести карточку", href: "#/clients/new" }, - { icon: "package", title: "Подбор техники", subtitle: "Встройка + AI", href: "#/podbor" }, - { icon: "ruler", title: "Заказать замер", subtitle: "Назначить замерщика", href: "#/request" }, - { icon: "wrench", title: "Сборки", subtitle: "Заявки на сборку", href: "#/assembly" }, + { icon: "user", title: "Клиенты", subtitle: "История + хронология", href: "#/clients" }, + { icon: "clipboard", title: "Заказы", subtitle: "Сборки + заявки", href: "#/assembly" }, + { icon: "package", title: "Подбор техники", subtitle: "Встройка + AI", href: "#/podbor" }, + { icon: "ruler", title: "Заказать замер", subtitle: "Назначить замерщика", href: "#/request" }, ]; app.appendChild(el(`
Быстрые действия
`)); const grid = el(`
`); @@ -445,9 +444,9 @@ function renderManagerToday(container, measurements, firstName, greetingEl) { if (todayEvents.length === 0 && overdueEvents.length === 0 && noDateEvents.length === 0) { container.appendChild(el(` -
-
Свободный день
-
Замеров на сегодня нет.
Можно поработать с клиентами или заказать новые замеры.
+
+
Свободный день
+
Замеров на сегодня нет · можно поработать с клиентами или заказать новые замеры
`)); } @@ -1618,7 +1617,7 @@ function hideSplash() { const splash = document.getElementById("splash"); if (!splash) return; const elapsed = Date.now() - _splashStart; - const minShow = 1200; // минимум показа, мс — 1.2 сек хватает чтобы рассмотреть лого и не блокировать UI + const minShow = 840; // минимум показа, мс — было 1200, сокращено на 30% const wait = Math.max(0, minShow - elapsed); setTimeout(() => { splash.classList.add("hide"); diff --git a/miniapp/assets/styles.css b/miniapp/assets/styles.css index 1fa7dd5..3e4b46d 100644 --- a/miniapp/assets/styles.css +++ b/miniapp/assets/styles.css @@ -1361,3 +1361,120 @@ html[data-variant="d"] .section-head .label { letter-spacing: 0.16em; color: var(--ink-2); } + +/* ============================================================ + Client list cards — все темы + Явные стили чтобы текст не сливался с фоном ни в одной теме + ============================================================ */ +.client-list { + display: flex; + flex-direction: column; + gap: var(--s3); +} + +.client-card { + background: var(--card); + border: 1px solid var(--line-strong); + border-radius: var(--r-card); + padding: var(--s4); + cursor: pointer; + transition: background 0.12s; +} + +.client-card:active { background: var(--paper-2); } + +.client-card-head { + display: flex; + align-items: center; + gap: var(--s3); + margin-bottom: 6px; +} + +.client-avatar { + width: 36px; + height: 36px; + border-radius: var(--r-pill); + background: var(--warm); + display: flex; + align-items: center; + justify-content: center; + font-family: var(--font-ui); + font-size: 14px; + font-weight: 600; + color: var(--accent-1); + flex-shrink: 0; + text-transform: uppercase; + user-select: none; +} + +.client-avatar.lg { + width: 48px; + height: 48px; + font-size: 18px; +} + +.client-meta { + flex: 1; + min-width: 0; +} + +.client-name { + font-family: var(--font-ui); + font-size: 13.5px; + font-weight: 600; + color: var(--ink); + line-height: 1.2; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.client-phone { + font-family: var(--font-mono); + font-size: 9.5px; + font-weight: 500; + letter-spacing: 0.05em; + color: var(--muted); + margin-top: 2px; +} + +.client-arrow { + color: var(--muted); + flex-shrink: 0; +} + +.client-footer { + display: flex; + justify-content: space-between; + align-items: center; + font-family: var(--font-mono); + font-size: 9.5px; + font-weight: 500; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--muted); +} + +.client-detail-head { + display: flex; + align-items: center; + gap: var(--s3); +} + +.client-detail-name { + font-family: var(--font-ui); + font-size: 20px; + font-weight: 700; + color: var(--ink); + margin: 0 0 2px; + letter-spacing: -0.01em; +} + +.client-detail-meta { + font-family: var(--font-mono); + font-size: 10px; + font-weight: 500; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--muted); +} diff --git a/miniapp/index.html b/miniapp/index.html index 7ec980f..37a12a0 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -12,8 +12,8 @@ - - + + @@ -38,13 +38,13 @@ - - + + - - - + + + - +