KvalityUI

FindingList

Находки страницы AI по группам: заголовок, текст по числам, примеры (визиты, заявки, звонки) и «Спросить подробнее».

Текст карточки собирает шаблон describeFinding из ai/model/finding-text — без модели, только по числам находки. Без onAsk кнопки «Спросить подробнее» нет: так находки показываются в демо.

Живой код — редактируйте
const findingsData = [
  {
    windowFrom: "2026-10-17T21:00:00.000Z",
    windowTo: "2026-11-16T21:00:00.000Z",
    computedAt: "2026-11-17T02:15:00.000Z",
    id: "f-form-blocked",
    kind: "form_blocked",
    impact: 7,
    facts: { visits: 10, withPhone: 3, leads: 1, fields: [{ field: "email", visits: 10 }] },
    evidence: { sessionDbIds: ["s-1", "s-2", "s-3"], submissionIds: [], callIds: [] }
  },
  {
    windowFrom: "2026-10-17T21:00:00.000Z",
    windowTo: "2026-11-16T21:00:00.000Z",
    computedAt: "2026-11-17T02:15:00.000Z",
    id: "f-mobile",
    kind: "mobile_form_unseen",
    impact: 21,
    facts: {
      mobileVisits: 900,
      desktopVisits: 400,
      mobileSeenPercent: 12,
      desktopSeenPercent: 41.5,
      mobileConversionPercent: 0.8,
      desktopConversionPercent: 3.1,
      missedLeads: 21
    },
    evidence: { sessionDbIds: [], submissionIds: [], callIds: [] }
  },
  {
    windowFrom: "2026-10-17T21:00:00.000Z",
    windowTo: "2026-11-16T21:00:00.000Z",
    computedAt: "2026-11-17T02:15:00.000Z",
    id: "f-missed-calls",
    kind: "missed_calls",
    impact: 15,
    facts: { missed: 25, contacted: 10, noCallback: 15 },
    evidence: { sessionDbIds: [], submissionIds: [], callIds: ["c-1", "c-2"] }
  },
  {
    windowFrom: "2026-10-17T21:00:00.000Z",
    windowTo: "2026-11-16T21:00:00.000Z",
    computedAt: "2026-11-17T02:15:00.000Z",
    id: "f-target-unrated",
    kind: "target_unrated",
    impact: 12,
    facts: { unrated: 12, target: 20 },
    evidence: { sessionDbIds: [], submissionIds: ["l-1", "l-2", "l-3"], callIds: [] }
  },
  {
    windowFrom: "2026-10-17T21:00:00.000Z",
    windowTo: "2026-11-16T21:00:00.000Z",
    computedAt: "2026-11-17T02:15:00.000Z",
    id: "f-segments",
    kind: "target_segments",
    impact: 19,
    facts: {
      rated: 100,
      targetPercent: 60,
      segments: [
        { dimension: "active", name: "меньше 10 с", rated: 30, targetPercent: 20 },
        { dimension: "source", name: "maps", rated: 20, targetPercent: 95 }
      ]
    },
    evidence: { sessionDbIds: [], submissionIds: [], callIds: [] }
  },
  {
    windowFrom: "2026-10-17T21:00:00.000Z",
    windowTo: "2026-11-16T21:00:00.000Z",
    computedAt: "2026-11-17T02:15:00.000Z",
    id: "f-tracker-silent",
    kind: "tracker_silent",
    impact: 135,
    facts: { silentDays: 3, lastVisitAt: "2026-11-14T09:30:00.000Z", visitsPerDay: 45 },
    evidence: { sessionDbIds: [], submissionIds: [], callIds: [] }
  }
];

function ReplayStub({ open, onOpenChange, name }) {
  return (
    <ConfirmDialog
      open={open}
      onOpenChange={onOpenChange}
      title={name}
      description="Здесь откроется плеер записи визита"
      confirmText="Закрыть"
      onConfirm={() => onOpenChange(false)}
    />
  );
}

render(
  <AnalyticsLinksProvider
    value={{
      submissionHref: (id) => '#' + id,
      callHref: (id) => '#' + id,
      ReplayDialog: ReplayStub
    }}
  >
    <FindingList findings={findingsData} onAsk={() => {}} />
  </AnalyticsLinksProvider>
);

Пропсы

Prop

Type

On this page