@apotech-os/support-kit 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/index.cjs CHANGED
@@ -388,16 +388,70 @@ function dashboardSignals(totals, compare) {
388
388
  }
389
389
  return signals;
390
390
  }
391
- var DEFAULT_TOP_N = 6;
392
- function foldCategoryBreakdown(rows, categoryNames, topN = DEFAULT_TOP_N) {
393
- const measured = rows.map((row) => {
394
- const id = row["categoryId"];
391
+ function foldHumanReasons(rows) {
392
+ const reasons = { blocked: 0, invalidated: 0, expired: 0 };
393
+ for (const row of rows) {
394
+ if (outcomeOf(row["status"], row["autoSendDecision"]) !== "human") continue;
395
+ const count = Number(row["count"]) || 0;
396
+ if (row["status"] === "invalidated") reasons.invalidated += count;
397
+ else if (row["status"] === "expired") reasons.expired += count;
398
+ else reasons.blocked += count;
399
+ }
400
+ return reasons;
401
+ }
402
+ var CATEGORY_TOP_N = 10;
403
+ function foldCategoryOutcomes(triageRows, responseRows, categoryNames, topN = CATEGORY_TOP_N) {
404
+ const byId = /* @__PURE__ */ new Map();
405
+ const barFor = (id) => {
395
406
  const name = typeof id === "string" ? categoryNames.get(id) : void 0;
396
- return name ? { label: name, value: Number(row["count"]) || 0 } : null;
397
- }).filter((bar) => bar !== null).sort((a, b) => b.value - a.value);
398
- if (measured.length <= topN + 1) return measured;
399
- const tail = measured.slice(topN).reduce((sum, bar) => sum + bar.value, 0);
400
- return [...measured.slice(0, topN), { label: "Autres", value: tail }];
407
+ if (name === void 0) return null;
408
+ const existing = byId.get(id);
409
+ if (existing !== void 0) return existing;
410
+ const bar = {
411
+ label: name,
412
+ total: 0,
413
+ auto: 0,
414
+ human: 0,
415
+ noReply: 0,
416
+ undrafted: 0
417
+ };
418
+ byId.set(id, bar);
419
+ return bar;
420
+ };
421
+ for (const row of triageRows) {
422
+ const bar = barFor(row["categoryId"]);
423
+ if (bar !== null) bar.total += Number(row["count"]) || 0;
424
+ }
425
+ for (const row of responseRows) {
426
+ const bar = barFor(row["categoryId"]);
427
+ if (bar === null) continue;
428
+ const outcome = outcomeOf(row["status"], row["autoSendDecision"]);
429
+ const count = Number(row["count"]) || 0;
430
+ if (outcome === "auto") bar.auto += count;
431
+ else if (outcome === "human") bar.human += count;
432
+ else if (outcome === "noReplyNeeded") bar.noReply += count;
433
+ }
434
+ const bars = [...byId.values()].map((bar) => {
435
+ const accounted = bar.auto + bar.human + bar.noReply;
436
+ return {
437
+ ...bar,
438
+ total: Math.max(bar.total, accounted),
439
+ undrafted: Math.max(0, bar.total - accounted)
440
+ };
441
+ }).filter((bar) => bar.total > 0).sort((a, b) => b.total - a.total);
442
+ if (bars.length <= topN + 1) return bars;
443
+ const tail = bars.slice(topN).reduce(
444
+ (sum, bar) => ({
445
+ label: "Autres",
446
+ total: sum.total + bar.total,
447
+ auto: sum.auto + bar.auto,
448
+ human: sum.human + bar.human,
449
+ noReply: sum.noReply + bar.noReply,
450
+ undrafted: sum.undrafted + bar.undrafted
451
+ }),
452
+ { label: "Autres", total: 0, auto: 0, human: 0, noReply: 0, undrafted: 0 }
453
+ );
454
+ return [...bars.slice(0, topN), tail];
401
455
  }
402
456
  var POINTS_FORMAT = new Intl.NumberFormat("fr-FR", {
403
457
  maximumFractionDigits: 1,
@@ -483,8 +537,62 @@ function defaultPeriod(today = /* @__PURE__ */ new Date()) {
483
537
  ...compareRange === void 0 ? {} : { compareRange }
484
538
  };
485
539
  }
540
+ function sharePercent(value, total) {
541
+ return total > 0 ? `${Math.round(value / total * 100)} %` : null;
542
+ }
543
+ function StackedRow({
544
+ label,
545
+ segments,
546
+ total,
547
+ scale,
548
+ formatCount: formatCount2
549
+ }) {
550
+ const width = scale > 0 ? total / scale * 100 : 0;
551
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[minmax(6rem,9rem)_1fr_auto] items-center gap-3 text-xs", children: [
552
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-muted-foreground", title: label, children: label }),
553
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full overflow-hidden rounded-sm", style: { width: `${width}%` }, children: segments.filter((segment) => segment.value > 0).map((segment) => /* @__PURE__ */ jsxRuntime.jsx(
554
+ "div",
555
+ {
556
+ role: "presentation",
557
+ title: `${segment.label} : ${formatCount2(segment.value)}${sharePercent(segment.value, total) === null ? "" : ` (${sharePercent(segment.value, total)})`}`,
558
+ style: {
559
+ width: `${segment.value / total * 100}%`,
560
+ backgroundColor: segment.color
561
+ }
562
+ },
563
+ segment.key
564
+ )) }) }),
565
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tabular-nums text-muted-foreground", children: formatCount2(total) })
566
+ ] });
567
+ }
568
+ function StackedLegend({ segments }) {
569
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground", children: segments.map((segment) => /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5", children: [
570
+ /* @__PURE__ */ jsxRuntime.jsx(
571
+ "span",
572
+ {
573
+ "aria-hidden": true,
574
+ className: "inline-block size-2 rounded-[2px]",
575
+ style: { backgroundColor: segment.color }
576
+ }
577
+ ),
578
+ segment.label
579
+ ] }, segment.key)) });
580
+ }
486
581
  var OUTCOME_METRICS = [{ op: "count", as: "count" }];
487
582
  var OUTCOME_GROUP_BY = ["status", "autoSendDecision"];
583
+ var CATEGORY_OUTCOME_GROUP_BY = ["categoryId", "status", "autoSendDecision"];
584
+ var CATEGORY_COLORS = {
585
+ auto: "var(--chart-1)",
586
+ human: "var(--chart-2)",
587
+ noReply: "var(--chart-4)",
588
+ undrafted: "var(--muted)"
589
+ };
590
+ var CATEGORY_LEGEND = [
591
+ { key: "auto", label: "R\xE9ponse automatis\xE9e par l\u2019agent", color: CATEGORY_COLORS.auto },
592
+ { key: "human", label: "Repris par un humain", color: CATEGORY_COLORS.human },
593
+ { key: "noReply", label: "Sans r\xE9ponse n\xE9cessaire", color: CATEGORY_COLORS.noReply },
594
+ { key: "undrafted", label: "Sans brouillon", color: CATEGORY_COLORS.undrafted }
595
+ ];
488
596
  function formatCount(value) {
489
597
  return Number.isNaN(value) ? "\u2026" : value.toLocaleString("fr-FR");
490
598
  }
@@ -525,6 +633,11 @@ function DashboardPage() {
525
633
  groupBy: ["categoryId"],
526
634
  metrics: OUTCOME_METRICS
527
635
  });
636
+ const { rows: categoryOutcomes } = useAggregate("generated-response", {
637
+ filter: currentFilter,
638
+ groupBy: CATEGORY_OUTCOME_GROUP_BY,
639
+ metrics: OUTCOME_METRICS
640
+ });
528
641
  const { rows: categories } = useRecordList("category", { limit: 500 }, toCategory);
529
642
  const categoryNames = react.useMemo(() => toNameMap(categories), [categories]);
530
643
  const totals = react.useMemo(() => foldOutcomes(dailyRows), [dailyRows]);
@@ -540,20 +653,15 @@ function DashboardPage() {
540
653
  const compareRate = compareTotals === null ? Number.NaN : autonomyRate(compareTotals);
541
654
  const settled = settledCount(totals);
542
655
  const signals = react.useMemo(() => dashboardSignals(totals, compareTotals), [totals, compareTotals]);
543
- const categoryBars = foldCategoryBreakdown(categoryCounts, categoryNames);
656
+ const reasons = react.useMemo(() => foldHumanReasons(dailyRows), [dailyRows]);
657
+ const categoryBars = react.useMemo(
658
+ () => foldCategoryOutcomes(categoryCounts, categoryOutcomes, categoryNames),
659
+ [categoryCounts, categoryOutcomes, categoryNames]
660
+ );
661
+ const categoryScale = categoryBars.reduce((max, bar) => Math.max(max, bar.total), 0);
544
662
  const loading = dailyLoading || previousLoading;
545
663
  const chartData = daily.map((point) => ({ ...point, jour: dayLabel(point.day) }));
546
664
  const bucketWord = bounds.interval === "day" ? "jour" : "semaine";
547
- const aCreuser = signals.find((signal) => signal.level === "creuser");
548
- const lead = loading ? null : settled === 0 ? {
549
- alert: false,
550
- title: "Aucune demande r\xE9gl\xE9e sur cette p\xE9riode",
551
- detail: "Choisis une autre p\xE9riode, ou v\xE9rifie que le triage tourne (Param\xE8tres \u203A Triage)."
552
- } : aCreuser !== void 0 ? { alert: true, title: "Un point m\xE9rite ton attention", detail: aCreuser.text } : {
553
- alert: false,
554
- title: `${formatRate(rate)} des demandes r\xE9gl\xE9es sans personne`,
555
- detail: `${formatCount(totals.auto)} r\xE9ponses envoy\xE9es par l\u2019IA, ${formatCount(totals.human)} reprises par un humain, sur ${formatCount(settled)} demandes r\xE9gl\xE9es.`
556
- };
557
665
  return /* @__PURE__ */ jsxRuntime.jsxs(PageShell, { children: [
558
666
  /* @__PURE__ */ jsxRuntime.jsx(
559
667
  PageHeader,
@@ -575,13 +683,6 @@ function DashboardPage() {
575
683
  ] })
576
684
  }
577
685
  ),
578
- lead !== null && /* @__PURE__ */ jsxRuntime.jsx(uiSdk.Card, { children: /* @__PURE__ */ jsxRuntime.jsxs(uiSdk.CardContent, { className: "flex items-start gap-3 p-4", children: [
579
- /* @__PURE__ */ jsxRuntime.jsx(uiSdk.Badge, { variant: lead.alert ? "warning" : "brand", children: lead.alert ? "\xC0 creuser" : "Cap" }),
580
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
581
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base font-semibold leading-snug", children: lead.title }),
582
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: lead.detail })
583
- ] })
584
- ] }) }),
585
686
  /* @__PURE__ */ jsxRuntime.jsxs(
586
687
  "div",
587
688
  {
@@ -599,7 +700,7 @@ function DashboardPage() {
599
700
  /* @__PURE__ */ jsxRuntime.jsx(
600
701
  uiSdk.KpiCard,
601
702
  {
602
- label: "R\xE9gl\xE9 par l\u2019IA",
703
+ label: "R\xE9ponse automatis\xE9e par l\u2019agent",
603
704
  value: loading ? Number.NaN : totals.auto,
604
705
  ...compareTotals === null ? {} : { compareValue: compareTotals.auto },
605
706
  formatValue: formatCount
@@ -618,7 +719,7 @@ function DashboardPage() {
618
719
  ]
619
720
  }
620
721
  ),
621
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [
722
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: [
622
723
  /* @__PURE__ */ jsxRuntime.jsx(
623
724
  uiSdk.KpiCard,
624
725
  {
@@ -634,19 +735,12 @@ function DashboardPage() {
634
735
  value: loading ? Number.NaN : totals.noReplyNeeded,
635
736
  formatValue: formatCount
636
737
  }
637
- ),
638
- /* @__PURE__ */ jsxRuntime.jsx(
639
- uiSdk.KpiCard,
640
- {
641
- label: "\xC9checs techniques",
642
- value: loading ? Number.NaN : totals.failed,
643
- ...compareTotals === null ? {} : { compareValue: compareTotals.failed },
644
- formatValue: formatCount,
645
- lowerIsBetter: true
646
- }
647
738
  )
648
739
  ] }),
649
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs leading-relaxed text-muted-foreground", children: "Le taux d\u2019autonomie rapporte les r\xE9ponses envoy\xE9es par l\u2019IA \xE0 ces m\xEAmes r\xE9ponses plus celles qu\u2019un humain a reprises \u2014 bloqu\xE9es, escalad\xE9es, invalid\xE9es parce qu\u2019un agent avait d\xE9j\xE0 r\xE9pondu, ou expir\xE9es. \xB7 Une escalade est compt\xE9e UNE fois, du c\xF4t\xE9 humain : c\u2019est un motif de blocage, pas un camp de plus. \xB7 Les demandes encore en cours, celles sans r\xE9ponse n\xE9cessaire et les \xE9checs techniques sont hors du taux \u2014 les compter d\u2019un c\xF4t\xE9 ou de l\u2019autre le fausserait dans les deux sens. \xB7 Le d\xE9nominateur ne couvre que les demandes mises en file : un ticket escalad\xE9 avant toute g\xE9n\xE9ration n\u2019y figure pas." }),
740
+ /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "text-xs leading-relaxed text-muted-foreground", children: [
741
+ /* @__PURE__ */ jsxRuntime.jsx("summary", { className: "cursor-pointer select-none font-medium", children: "Comment le taux d\u2019autonomie est calcul\xE9" }),
742
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2", children: "Le taux d\u2019autonomie rapporte les r\xE9ponses envoy\xE9es par l\u2019IA \xE0 ces m\xEAmes r\xE9ponses plus celles qu\u2019un humain a reprises \u2014 bloqu\xE9es, escalad\xE9es, invalid\xE9es parce qu\u2019un agent avait d\xE9j\xE0 r\xE9pondu, ou expir\xE9es. \xB7 Une escalade est compt\xE9e UNE fois, du c\xF4t\xE9 humain : c\u2019est un motif de blocage, pas un camp de plus. \xB7 Les demandes encore en cours, celles sans r\xE9ponse n\xE9cessaire et les \xE9checs techniques sont hors du taux \u2014 les compter d\u2019un c\xF4t\xE9 ou de l\u2019autre le fausserait dans les deux sens. \xB7 Le d\xE9nominateur ne couvre que les demandes mises en file : un ticket escalad\xE9 avant toute g\xE9n\xE9ration n\u2019y figure pas." })
743
+ ] }),
650
744
  dailyError !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Erreur lors du calcul des chiffres cl\xE9s." }),
651
745
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2", children: [
652
746
  /* @__PURE__ */ jsxRuntime.jsxs(uiSdk.Card, { children: [
@@ -709,19 +803,105 @@ function DashboardPage() {
709
803
  ] }),
710
804
  /* @__PURE__ */ jsxRuntime.jsxs(uiSdk.Card, { children: [
711
805
  /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardTitle, { className: "text-sm", children: "R\xE9partition par cat\xE9gorie" }) }),
712
- /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardContent, { children: categoryLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Chargement\u2026" }) : categoryError !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Impossible de calculer la r\xE9partition par cat\xE9gorie." }) : categoryBars.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Aucun volume calcul\xE9 pour l'instant sur cette p\xE9riode." }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
713
- /* @__PURE__ */ jsxRuntime.jsx(
714
- uiSdk.BarChart,
806
+ /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardContent, { className: "space-y-3", children: categoryLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Chargement\u2026" }) : categoryError !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-destructive", children: "Impossible de calculer la r\xE9partition par cat\xE9gorie." }) : categoryBars.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Aucun volume calcul\xE9 pour l'instant sur cette p\xE9riode." }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
807
+ /* @__PURE__ */ jsxRuntime.jsx(StackedLegend, { segments: CATEGORY_LEGEND }),
808
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1.5", children: categoryBars.map((bar) => /* @__PURE__ */ jsxRuntime.jsx(
809
+ StackedRow,
715
810
  {
716
- data: categoryBars,
717
- x: "label",
718
- series: [{ key: "value", label: "Volume", colorIndex: 0 }]
719
- }
720
- ),
721
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-3 text-xs leading-relaxed text-muted-foreground", children: "Les d\xE9cisions de triage de la p\xE9riode, par cat\xE9gorie \u2014 le volume qui entre, avant toute id\xE9e de qui l\u2019a r\xE9gl\xE9." })
811
+ label: bar.label,
812
+ total: bar.total,
813
+ scale: categoryScale,
814
+ formatCount,
815
+ segments: [
816
+ {
817
+ key: "auto",
818
+ label: "R\xE9ponse automatis\xE9e par l\u2019agent",
819
+ value: bar.auto,
820
+ color: CATEGORY_COLORS.auto
821
+ },
822
+ {
823
+ key: "human",
824
+ label: "Repris par un humain",
825
+ value: bar.human,
826
+ color: CATEGORY_COLORS.human
827
+ },
828
+ {
829
+ key: "noReply",
830
+ label: "Sans r\xE9ponse n\xE9cessaire",
831
+ value: bar.noReply,
832
+ color: CATEGORY_COLORS.noReply
833
+ },
834
+ {
835
+ key: "undrafted",
836
+ label: "Sans brouillon",
837
+ value: bar.undrafted,
838
+ color: CATEGORY_COLORS.undrafted
839
+ }
840
+ ]
841
+ },
842
+ bar.label
843
+ )) }),
844
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs leading-relaxed text-muted-foreground", children: "Ce qui arrive, par cat\xE9gorie \u2014 et qui l\u2019a trait\xE9. La longueur d\u2019une barre est le volume tri\xE9 sur la p\xE9riode ; les couleurs sont ce que ce volume est devenu. \xAB\xA0Sans brouillon\xA0\xBB couvre ce que le triage a vu sans qu\u2019une r\xE9ponse soit g\xE9n\xE9r\xE9e : escalade imm\xE9diate, conversation d\xE9j\xE0 close, ou traitement encore en cours." })
722
845
  ] }) })
723
846
  ] })
724
847
  ] }),
848
+ /* @__PURE__ */ jsxRuntime.jsxs(uiSdk.Card, { children: [
849
+ /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardTitle, { className: "text-sm", children: "Pourquoi un humain a repris" }) }),
850
+ /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardContent, { className: "space-y-3", children: loading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Chargement\u2026" }) : totals.human === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Aucune reprise humaine sur cette p\xE9riode." }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
851
+ /* @__PURE__ */ jsxRuntime.jsx(
852
+ StackedRow,
853
+ {
854
+ label: "Motifs",
855
+ total: totals.human,
856
+ scale: totals.human,
857
+ formatCount,
858
+ segments: [
859
+ {
860
+ key: "blocked",
861
+ label: "Bloqu\xE9 avant envoi",
862
+ value: reasons.blocked,
863
+ color: "var(--chart-2)"
864
+ },
865
+ {
866
+ key: "invalidated",
867
+ label: "Un agent avait d\xE9j\xE0 r\xE9pondu",
868
+ value: reasons.invalidated,
869
+ color: "var(--chart-3)"
870
+ },
871
+ {
872
+ key: "expired",
873
+ label: "Brouillon expir\xE9",
874
+ value: reasons.expired,
875
+ color: "var(--chart-5)"
876
+ }
877
+ ]
878
+ }
879
+ ),
880
+ /* @__PURE__ */ jsxRuntime.jsx(
881
+ StackedLegend,
882
+ {
883
+ segments: [
884
+ {
885
+ key: "blocked",
886
+ label: `Bloqu\xE9 avant envoi (${formatCount(reasons.blocked)})`,
887
+ color: "var(--chart-2)"
888
+ },
889
+ {
890
+ key: "invalidated",
891
+ label: `Un agent avait d\xE9j\xE0 r\xE9pondu (${formatCount(reasons.invalidated)})`,
892
+ color: "var(--chart-3)"
893
+ },
894
+ {
895
+ key: "expired",
896
+ label: `Brouillon expir\xE9 (${formatCount(reasons.expired)})`,
897
+ color: "var(--chart-5)"
898
+ }
899
+ ]
900
+ }
901
+ ),
902
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs leading-relaxed text-muted-foreground", children: "Les escalades sont dans \xAB\xA0bloqu\xE9\xA0\xBB : un ticket escalad\xE9 voit son brouillon retenu par le garde-fou, c\u2019est un motif de blocage et non un camp de plus. Le d\xE9tail ticket par ticket est sur la page Escalades." })
903
+ ] }) })
904
+ ] }),
725
905
  /* @__PURE__ */ jsxRuntime.jsxs(uiSdk.Card, { children: [
726
906
  /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardTitle, { className: "text-sm", children: "Signaux \xE0 surveiller" }) }),
727
907
  /* @__PURE__ */ jsxRuntime.jsx(uiSdk.CardContent, { children: signals.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Rien de notable sur cette p\xE9riode \u2014 ou pas assez de demandes r\xE9gl\xE9es pour qu\u2019une comparaison veuille dire quelque chose." }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-3", children: signals.map((signal) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [