@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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { GENERATED_RESPONSE_STATUSES, EVALUATION_VERDICTS, WHATSAPP_MODES, validateSettings, AGENT_GUARDRAILS, toCategory, toAgent, toGeneratedResponse, toTriageDecision, isGeneratedResponseStatus, toCategoryGroup, toResponseComparison, toDiffAnalysis, NODE_NAMES, settingsToProfile, hasNoDraftNode, guardrailBucket, DEFAULT_LLM_PROVIDER, computeWordDiff, isSendableVerdict, DEFAULT_MAX_TOOL_CALLS, DEFAULT_MIN_CONFIDENCE, DEFAULT_ESCALATION_ENABLED } from '../chunk-SFOPXCD4.js';
2
2
  import { useState, useMemo, useRef, useEffect, useCallback, useId } from 'react';
3
- import { useAppContext, useAppSettings, DateRangeCompare, Link, Card, CardContent, Badge, KpiCard, CardHeader, CardTitle, AreaChart, StackedBarChart, BarChart, Button, Select, DataTable, useAppApi, useToast, FunnelChart, Spinner, LineChart, Switch, Input, Checkbox, Textarea, comparisonRange, cn, SidePanel, CopyButton, Modal, Tooltip, buttonVariants, AppInvokeError, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, downloadBlob } from '@apotech-os/ui-sdk';
3
+ import { useAppContext, useAppSettings, DateRangeCompare, Link, KpiCard, Card, CardHeader, CardTitle, CardContent, AreaChart, StackedBarChart, Badge, Button, Select, DataTable, useAppApi, useToast, FunnelChart, Spinner, LineChart, Switch, Input, Checkbox, Textarea, comparisonRange, cn, SidePanel, CopyButton, Modal, Tooltip, buttonVariants, AppInvokeError, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, downloadBlob } from '@apotech-os/ui-sdk';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
 
6
6
  function useRecordList(objectKey, query, mapper) {
@@ -248,16 +248,70 @@ function dashboardSignals(totals, compare) {
248
248
  }
249
249
  return signals;
250
250
  }
251
- var DEFAULT_TOP_N = 6;
252
- function foldCategoryBreakdown(rows, categoryNames, topN = DEFAULT_TOP_N) {
253
- const measured = rows.map((row) => {
254
- const id = row["categoryId"];
251
+ function foldHumanReasons(rows) {
252
+ const reasons = { blocked: 0, invalidated: 0, expired: 0 };
253
+ for (const row of rows) {
254
+ if (outcomeOf(row["status"], row["autoSendDecision"]) !== "human") continue;
255
+ const count = Number(row["count"]) || 0;
256
+ if (row["status"] === "invalidated") reasons.invalidated += count;
257
+ else if (row["status"] === "expired") reasons.expired += count;
258
+ else reasons.blocked += count;
259
+ }
260
+ return reasons;
261
+ }
262
+ var CATEGORY_TOP_N = 10;
263
+ function foldCategoryOutcomes(triageRows, responseRows, categoryNames, topN = CATEGORY_TOP_N) {
264
+ const byId = /* @__PURE__ */ new Map();
265
+ const barFor = (id) => {
255
266
  const name = typeof id === "string" ? categoryNames.get(id) : void 0;
256
- return name ? { label: name, value: Number(row["count"]) || 0 } : null;
257
- }).filter((bar) => bar !== null).sort((a, b) => b.value - a.value);
258
- if (measured.length <= topN + 1) return measured;
259
- const tail = measured.slice(topN).reduce((sum, bar) => sum + bar.value, 0);
260
- return [...measured.slice(0, topN), { label: "Autres", value: tail }];
267
+ if (name === void 0) return null;
268
+ const existing = byId.get(id);
269
+ if (existing !== void 0) return existing;
270
+ const bar = {
271
+ label: name,
272
+ total: 0,
273
+ auto: 0,
274
+ human: 0,
275
+ noReply: 0,
276
+ undrafted: 0
277
+ };
278
+ byId.set(id, bar);
279
+ return bar;
280
+ };
281
+ for (const row of triageRows) {
282
+ const bar = barFor(row["categoryId"]);
283
+ if (bar !== null) bar.total += Number(row["count"]) || 0;
284
+ }
285
+ for (const row of responseRows) {
286
+ const bar = barFor(row["categoryId"]);
287
+ if (bar === null) continue;
288
+ const outcome = outcomeOf(row["status"], row["autoSendDecision"]);
289
+ const count = Number(row["count"]) || 0;
290
+ if (outcome === "auto") bar.auto += count;
291
+ else if (outcome === "human") bar.human += count;
292
+ else if (outcome === "noReplyNeeded") bar.noReply += count;
293
+ }
294
+ const bars = [...byId.values()].map((bar) => {
295
+ const accounted = bar.auto + bar.human + bar.noReply;
296
+ return {
297
+ ...bar,
298
+ total: Math.max(bar.total, accounted),
299
+ undrafted: Math.max(0, bar.total - accounted)
300
+ };
301
+ }).filter((bar) => bar.total > 0).sort((a, b) => b.total - a.total);
302
+ if (bars.length <= topN + 1) return bars;
303
+ const tail = bars.slice(topN).reduce(
304
+ (sum, bar) => ({
305
+ label: "Autres",
306
+ total: sum.total + bar.total,
307
+ auto: sum.auto + bar.auto,
308
+ human: sum.human + bar.human,
309
+ noReply: sum.noReply + bar.noReply,
310
+ undrafted: sum.undrafted + bar.undrafted
311
+ }),
312
+ { label: "Autres", total: 0, auto: 0, human: 0, noReply: 0, undrafted: 0 }
313
+ );
314
+ return [...bars.slice(0, topN), tail];
261
315
  }
262
316
  var POINTS_FORMAT = new Intl.NumberFormat("fr-FR", {
263
317
  maximumFractionDigits: 1,
@@ -343,8 +397,62 @@ function defaultPeriod(today = /* @__PURE__ */ new Date()) {
343
397
  ...compareRange === void 0 ? {} : { compareRange }
344
398
  };
345
399
  }
400
+ function sharePercent(value, total) {
401
+ return total > 0 ? `${Math.round(value / total * 100)} %` : null;
402
+ }
403
+ function StackedRow({
404
+ label,
405
+ segments,
406
+ total,
407
+ scale,
408
+ formatCount: formatCount2
409
+ }) {
410
+ const width = scale > 0 ? total / scale * 100 : 0;
411
+ return /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[minmax(6rem,9rem)_1fr_auto] items-center gap-3 text-xs", children: [
412
+ /* @__PURE__ */ jsx("span", { className: "truncate text-muted-foreground", title: label, children: label }),
413
+ /* @__PURE__ */ jsx("div", { className: "h-4 w-full", children: /* @__PURE__ */ jsx("div", { className: "flex h-full overflow-hidden rounded-sm", style: { width: `${width}%` }, children: segments.filter((segment) => segment.value > 0).map((segment) => /* @__PURE__ */ jsx(
414
+ "div",
415
+ {
416
+ role: "presentation",
417
+ title: `${segment.label} : ${formatCount2(segment.value)}${sharePercent(segment.value, total) === null ? "" : ` (${sharePercent(segment.value, total)})`}`,
418
+ style: {
419
+ width: `${segment.value / total * 100}%`,
420
+ backgroundColor: segment.color
421
+ }
422
+ },
423
+ segment.key
424
+ )) }) }),
425
+ /* @__PURE__ */ jsx("span", { className: "tabular-nums text-muted-foreground", children: formatCount2(total) })
426
+ ] });
427
+ }
428
+ function StackedLegend({ segments }) {
429
+ return /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground", children: segments.map((segment) => /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
430
+ /* @__PURE__ */ jsx(
431
+ "span",
432
+ {
433
+ "aria-hidden": true,
434
+ className: "inline-block size-2 rounded-[2px]",
435
+ style: { backgroundColor: segment.color }
436
+ }
437
+ ),
438
+ segment.label
439
+ ] }, segment.key)) });
440
+ }
346
441
  var OUTCOME_METRICS = [{ op: "count", as: "count" }];
347
442
  var OUTCOME_GROUP_BY = ["status", "autoSendDecision"];
443
+ var CATEGORY_OUTCOME_GROUP_BY = ["categoryId", "status", "autoSendDecision"];
444
+ var CATEGORY_COLORS = {
445
+ auto: "var(--chart-1)",
446
+ human: "var(--chart-2)",
447
+ noReply: "var(--chart-4)",
448
+ undrafted: "var(--muted)"
449
+ };
450
+ var CATEGORY_LEGEND = [
451
+ { key: "auto", label: "R\xE9ponse automatis\xE9e par l\u2019agent", color: CATEGORY_COLORS.auto },
452
+ { key: "human", label: "Repris par un humain", color: CATEGORY_COLORS.human },
453
+ { key: "noReply", label: "Sans r\xE9ponse n\xE9cessaire", color: CATEGORY_COLORS.noReply },
454
+ { key: "undrafted", label: "Sans brouillon", color: CATEGORY_COLORS.undrafted }
455
+ ];
348
456
  function formatCount(value) {
349
457
  return Number.isNaN(value) ? "\u2026" : value.toLocaleString("fr-FR");
350
458
  }
@@ -385,6 +493,11 @@ function DashboardPage() {
385
493
  groupBy: ["categoryId"],
386
494
  metrics: OUTCOME_METRICS
387
495
  });
496
+ const { rows: categoryOutcomes } = useAggregate("generated-response", {
497
+ filter: currentFilter,
498
+ groupBy: CATEGORY_OUTCOME_GROUP_BY,
499
+ metrics: OUTCOME_METRICS
500
+ });
388
501
  const { rows: categories } = useRecordList("category", { limit: 500 }, toCategory);
389
502
  const categoryNames = useMemo(() => toNameMap(categories), [categories]);
390
503
  const totals = useMemo(() => foldOutcomes(dailyRows), [dailyRows]);
@@ -400,20 +513,15 @@ function DashboardPage() {
400
513
  const compareRate = compareTotals === null ? Number.NaN : autonomyRate(compareTotals);
401
514
  const settled = settledCount(totals);
402
515
  const signals = useMemo(() => dashboardSignals(totals, compareTotals), [totals, compareTotals]);
403
- const categoryBars = foldCategoryBreakdown(categoryCounts, categoryNames);
516
+ const reasons = useMemo(() => foldHumanReasons(dailyRows), [dailyRows]);
517
+ const categoryBars = useMemo(
518
+ () => foldCategoryOutcomes(categoryCounts, categoryOutcomes, categoryNames),
519
+ [categoryCounts, categoryOutcomes, categoryNames]
520
+ );
521
+ const categoryScale = categoryBars.reduce((max, bar) => Math.max(max, bar.total), 0);
404
522
  const loading = dailyLoading || previousLoading;
405
523
  const chartData = daily.map((point) => ({ ...point, jour: dayLabel(point.day) }));
406
524
  const bucketWord = bounds.interval === "day" ? "jour" : "semaine";
407
- const aCreuser = signals.find((signal) => signal.level === "creuser");
408
- const lead = loading ? null : settled === 0 ? {
409
- alert: false,
410
- title: "Aucune demande r\xE9gl\xE9e sur cette p\xE9riode",
411
- detail: "Choisis une autre p\xE9riode, ou v\xE9rifie que le triage tourne (Param\xE8tres \u203A Triage)."
412
- } : aCreuser !== void 0 ? { alert: true, title: "Un point m\xE9rite ton attention", detail: aCreuser.text } : {
413
- alert: false,
414
- title: `${formatRate(rate)} des demandes r\xE9gl\xE9es sans personne`,
415
- 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.`
416
- };
417
525
  return /* @__PURE__ */ jsxs(PageShell, { children: [
418
526
  /* @__PURE__ */ jsx(
419
527
  PageHeader,
@@ -435,13 +543,6 @@ function DashboardPage() {
435
543
  ] })
436
544
  }
437
545
  ),
438
- lead !== null && /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "flex items-start gap-3 p-4", children: [
439
- /* @__PURE__ */ jsx(Badge, { variant: lead.alert ? "warning" : "brand", children: lead.alert ? "\xC0 creuser" : "Cap" }),
440
- /* @__PURE__ */ jsxs("div", { children: [
441
- /* @__PURE__ */ jsx("p", { className: "text-base font-semibold leading-snug", children: lead.title }),
442
- /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm leading-relaxed text-muted-foreground", children: lead.detail })
443
- ] })
444
- ] }) }),
445
546
  /* @__PURE__ */ jsxs(
446
547
  "div",
447
548
  {
@@ -459,7 +560,7 @@ function DashboardPage() {
459
560
  /* @__PURE__ */ jsx(
460
561
  KpiCard,
461
562
  {
462
- label: "R\xE9gl\xE9 par l\u2019IA",
563
+ label: "R\xE9ponse automatis\xE9e par l\u2019agent",
463
564
  value: loading ? Number.NaN : totals.auto,
464
565
  ...compareTotals === null ? {} : { compareValue: compareTotals.auto },
465
566
  formatValue: formatCount
@@ -478,7 +579,7 @@ function DashboardPage() {
478
579
  ]
479
580
  }
480
581
  ),
481
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-3", children: [
582
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: [
482
583
  /* @__PURE__ */ jsx(
483
584
  KpiCard,
484
585
  {
@@ -494,19 +595,12 @@ function DashboardPage() {
494
595
  value: loading ? Number.NaN : totals.noReplyNeeded,
495
596
  formatValue: formatCount
496
597
  }
497
- ),
498
- /* @__PURE__ */ jsx(
499
- KpiCard,
500
- {
501
- label: "\xC9checs techniques",
502
- value: loading ? Number.NaN : totals.failed,
503
- ...compareTotals === null ? {} : { compareValue: compareTotals.failed },
504
- formatValue: formatCount,
505
- lowerIsBetter: true
506
- }
507
598
  )
508
599
  ] }),
509
- /* @__PURE__ */ 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." }),
600
+ /* @__PURE__ */ jsxs("details", { className: "text-xs leading-relaxed text-muted-foreground", children: [
601
+ /* @__PURE__ */ jsx("summary", { className: "cursor-pointer select-none font-medium", children: "Comment le taux d\u2019autonomie est calcul\xE9" }),
602
+ /* @__PURE__ */ 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." })
603
+ ] }),
510
604
  dailyError !== void 0 && /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: "Erreur lors du calcul des chiffres cl\xE9s." }),
511
605
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2", children: [
512
606
  /* @__PURE__ */ jsxs(Card, { children: [
@@ -569,19 +663,105 @@ function DashboardPage() {
569
663
  ] }),
570
664
  /* @__PURE__ */ jsxs(Card, { children: [
571
665
  /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "R\xE9partition par cat\xE9gorie" }) }),
572
- /* @__PURE__ */ jsx(CardContent, { children: categoryLoading ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Chargement\u2026" }) : categoryError !== void 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: "Impossible de calculer la r\xE9partition par cat\xE9gorie." }) : categoryBars.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Aucun volume calcul\xE9 pour l'instant sur cette p\xE9riode." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
573
- /* @__PURE__ */ jsx(
574
- BarChart,
666
+ /* @__PURE__ */ jsx(CardContent, { className: "space-y-3", children: categoryLoading ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Chargement\u2026" }) : categoryError !== void 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: "Impossible de calculer la r\xE9partition par cat\xE9gorie." }) : categoryBars.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Aucun volume calcul\xE9 pour l'instant sur cette p\xE9riode." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
667
+ /* @__PURE__ */ jsx(StackedLegend, { segments: CATEGORY_LEGEND }),
668
+ /* @__PURE__ */ jsx("div", { className: "space-y-1.5", children: categoryBars.map((bar) => /* @__PURE__ */ jsx(
669
+ StackedRow,
575
670
  {
576
- data: categoryBars,
577
- x: "label",
578
- series: [{ key: "value", label: "Volume", colorIndex: 0 }]
579
- }
580
- ),
581
- /* @__PURE__ */ 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." })
671
+ label: bar.label,
672
+ total: bar.total,
673
+ scale: categoryScale,
674
+ formatCount,
675
+ segments: [
676
+ {
677
+ key: "auto",
678
+ label: "R\xE9ponse automatis\xE9e par l\u2019agent",
679
+ value: bar.auto,
680
+ color: CATEGORY_COLORS.auto
681
+ },
682
+ {
683
+ key: "human",
684
+ label: "Repris par un humain",
685
+ value: bar.human,
686
+ color: CATEGORY_COLORS.human
687
+ },
688
+ {
689
+ key: "noReply",
690
+ label: "Sans r\xE9ponse n\xE9cessaire",
691
+ value: bar.noReply,
692
+ color: CATEGORY_COLORS.noReply
693
+ },
694
+ {
695
+ key: "undrafted",
696
+ label: "Sans brouillon",
697
+ value: bar.undrafted,
698
+ color: CATEGORY_COLORS.undrafted
699
+ }
700
+ ]
701
+ },
702
+ bar.label
703
+ )) }),
704
+ /* @__PURE__ */ 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." })
582
705
  ] }) })
583
706
  ] })
584
707
  ] }),
708
+ /* @__PURE__ */ jsxs(Card, { children: [
709
+ /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "Pourquoi un humain a repris" }) }),
710
+ /* @__PURE__ */ jsx(CardContent, { className: "space-y-3", children: loading ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Chargement\u2026" }) : totals.human === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Aucune reprise humaine sur cette p\xE9riode." }) : /* @__PURE__ */ jsxs(Fragment, { children: [
711
+ /* @__PURE__ */ jsx(
712
+ StackedRow,
713
+ {
714
+ label: "Motifs",
715
+ total: totals.human,
716
+ scale: totals.human,
717
+ formatCount,
718
+ segments: [
719
+ {
720
+ key: "blocked",
721
+ label: "Bloqu\xE9 avant envoi",
722
+ value: reasons.blocked,
723
+ color: "var(--chart-2)"
724
+ },
725
+ {
726
+ key: "invalidated",
727
+ label: "Un agent avait d\xE9j\xE0 r\xE9pondu",
728
+ value: reasons.invalidated,
729
+ color: "var(--chart-3)"
730
+ },
731
+ {
732
+ key: "expired",
733
+ label: "Brouillon expir\xE9",
734
+ value: reasons.expired,
735
+ color: "var(--chart-5)"
736
+ }
737
+ ]
738
+ }
739
+ ),
740
+ /* @__PURE__ */ jsx(
741
+ StackedLegend,
742
+ {
743
+ segments: [
744
+ {
745
+ key: "blocked",
746
+ label: `Bloqu\xE9 avant envoi (${formatCount(reasons.blocked)})`,
747
+ color: "var(--chart-2)"
748
+ },
749
+ {
750
+ key: "invalidated",
751
+ label: `Un agent avait d\xE9j\xE0 r\xE9pondu (${formatCount(reasons.invalidated)})`,
752
+ color: "var(--chart-3)"
753
+ },
754
+ {
755
+ key: "expired",
756
+ label: `Brouillon expir\xE9 (${formatCount(reasons.expired)})`,
757
+ color: "var(--chart-5)"
758
+ }
759
+ ]
760
+ }
761
+ ),
762
+ /* @__PURE__ */ 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." })
763
+ ] }) })
764
+ ] }),
585
765
  /* @__PURE__ */ jsxs(Card, { children: [
586
766
  /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-sm", children: "Signaux \xE0 surveiller" }) }),
587
767
  /* @__PURE__ */ jsx(CardContent, { children: signals.length === 0 ? /* @__PURE__ */ 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__ */ jsx("div", { className: "flex flex-col gap-3", children: signals.map((signal) => /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [