meyi-insight-ui-dev 1.0.32 → 1.0.33

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/index.mjs CHANGED
@@ -17292,7 +17292,7 @@ function d9(e) {
17292
17292
  return n.filter((r) => r.t).sort((r, a) => new Date(r.t).getTime() - new Date(a.t).getTime());
17293
17293
  }
17294
17294
  const t = [];
17295
- t.push({ t: e.createdAt, title: "Incident created", detail: e.source ? `Source ${e.source}${e.alertId ? " · alarm linked" : ""}` : null, kind: "created" }), e.analysisTriggeredAt && t.push({ t: e.analysisTriggeredAt, title: "AI Insight triggered", detail: "RCA analysis requested", kind: "ai" }), e.analysisCompletedAt && t.push({ t: e.analysisCompletedAt, title: "AI Insight completed", detail: e.aiModelUsed ? `Model ${e.aiModelUsed}` : null, kind: "ai" }), e.analysisStatus === "failed" && t.push({ t: e.updatedAt, title: "AI Insight failed", detail: "Analysis did not complete", kind: "failed" });
17295
+ t.push({ t: e.createdAt, title: "Incident created", detail: e.source ? `Source ${e.source}${e.alertId ? " · alert linked" : ""}` : null, kind: "created" }), e.analysisTriggeredAt && t.push({ t: e.analysisTriggeredAt, title: "AI Insight triggered", detail: "RCA analysis requested", kind: "ai" }), e.analysisCompletedAt && t.push({ t: e.analysisCompletedAt, title: "AI Insight completed", detail: e.aiModelUsed ? `Model ${e.aiModelUsed}` : null, kind: "ai" }), e.analysisStatus === "failed" && t.push({ t: e.updatedAt, title: "AI Insight failed", detail: "Analysis did not complete", kind: "failed" });
17296
17296
  for (const n of e.comments || []) t.push({ t: n.createdAt, title: "Note added", detail: n.message, kind: "comment" });
17297
17297
  return e.resolvedAt && t.push({ t: e.resolvedAt, title: "Incident resolved", detail: null, kind: "resolved" }), t.filter((n) => n.t).sort((n, r) => new Date(n.t).getTime() - new Date(r.t).getTime());
17298
17298
  }
@@ -17317,11 +17317,11 @@ function f9(e) {
17317
17317
  return e.events.some((r) => r.type === "created") || n.push({ ts: e.createdAt, actor: "System", action: "Incident created", before: "—", after: "OPEN" }), n.sort((r, a) => new Date(r.ts).getTime() - new Date(a.ts).getTime());
17318
17318
  }
17319
17319
  const t = [];
17320
- return t.push({ ts: e.createdAt, actor: "System", action: e.alertId ? "Incident created from alarm" : "Incident created", before: "—", after: "OPEN" }), e.analysisTriggeredAt && t.push({ ts: e.analysisTriggeredAt, actor: "AI Insight", action: "Analysis triggered", before: "pending", after: "processing" }), e.analysisCompletedAt && t.push({ ts: e.analysisCompletedAt, actor: "AI Insight", action: "Analysis generated", before: "—", after: "completed" }), e.status === "in_progress" && t.push({ ts: e.analysisTriggeredAt || e.updatedAt, actor: "—", action: "State changed", before: "OPEN", after: "INVESTIGATING" }), e.resolvedAt && t.push({ ts: e.resolvedAt, actor: "—", action: "State changed", before: "INVESTIGATING", after: "RESOLVED" }), t.filter((n) => n.ts).sort((n, r) => new Date(n.ts).getTime() - new Date(r.ts).getTime());
17320
+ return t.push({ ts: e.createdAt, actor: "System", action: e.alertId ? "Incident created from alert" : "Incident created", before: "—", after: "OPEN" }), e.analysisTriggeredAt && t.push({ ts: e.analysisTriggeredAt, actor: "AI Insight", action: "Analysis triggered", before: "pending", after: "processing" }), e.analysisCompletedAt && t.push({ ts: e.analysisCompletedAt, actor: "AI Insight", action: "Analysis generated", before: "—", after: "completed" }), e.status === "in_progress" && t.push({ ts: e.analysisTriggeredAt || e.updatedAt, actor: "—", action: "State changed", before: "OPEN", after: "INVESTIGATING" }), e.resolvedAt && t.push({ ts: e.resolvedAt, actor: "—", action: "State changed", before: "INVESTIGATING", after: "RESOLVED" }), t.filter((n) => n.ts).sort((n, r) => new Date(n.ts).getTime() - new Date(r.ts).getTime());
17321
17321
  }
17322
17322
  const m9 = [
17323
17323
  { id: "overview", label: "Overview" },
17324
- { id: "alarms", label: "Alarm group" },
17324
+ { id: "alerts", label: "Alerts group" },
17325
17325
  { id: "ai", label: "AI Insight" },
17326
17326
  { id: "timeline", label: "Timeline" },
17327
17327
  { id: "notifications", label: "Notifications" },
@@ -17374,7 +17374,7 @@ function h9({ incident: e }) {
17374
17374
  ] }, r)) : /* @__PURE__ */ i.jsx("span", { children: "—" }) })
17375
17375
  ] }),
17376
17376
  e.alertId && /* @__PURE__ */ i.jsxs("div", { className: "im-inc-meta-row", children: [
17377
- /* @__PURE__ */ i.jsx("span", { children: "Source alarm" }),
17377
+ /* @__PURE__ */ i.jsx("span", { children: "Source alert" }),
17378
17378
  /* @__PURE__ */ i.jsxs("span", { className: "im-mono", children: [
17379
17379
  e.alertId.slice(0, 8),
17380
17380
  "…"
@@ -17398,7 +17398,7 @@ function h9({ incident: e }) {
17398
17398
  /* @__PURE__ */ i.jsx("strong", { style: { textTransform: "capitalize" }, children: e.analysisStatus })
17399
17399
  ] }),
17400
17400
  /* @__PURE__ */ i.jsxs("div", { children: [
17401
- /* @__PURE__ */ i.jsx("span", { children: "Alarm group size" }),
17401
+ /* @__PURE__ */ i.jsx("span", { children: "Alert group size" }),
17402
17402
  /* @__PURE__ */ i.jsx("strong", { children: (() => {
17403
17403
  const r = e.name.match(/^(\d+) alerts? on/);
17404
17404
  return r ? parseInt(r[1]) : e.alertId ? 1 : 0;
@@ -17422,7 +17422,7 @@ function g9({ incident: e, onViewAlert: t }) {
17422
17422
  e.id && (s(!0), De.listAlerts({ incidentId: e.id, limit: 100 }).then((c) => r(c.alerts)).catch(() => {
17423
17423
  }).finally(() => s(!1)));
17424
17424
  }, [e.id]);
17425
- const o = n[0]?.sourceType ?? e.source ?? "—", l = n.length ? `${n.length} alarm${n.length > 1 ? "s" : ""} across 1 resource · Source: ${o} · First alarm ${Wm(n[n.length - 1]?.createdAt)}` : "No alarms are linked to this incident yet.";
17425
+ const o = n[0]?.sourceType ?? e.source ?? "—", l = n.length ? `${n.length} alert${n.length > 1 ? "s" : ""} across 1 resource · Source: ${o} · First alert ${Wm(n[n.length - 1]?.createdAt)}` : "No alerts are linked to this incident yet.";
17426
17426
  return /* @__PURE__ */ i.jsxs("div", { className: "im-inc-alarm-group", children: [
17427
17427
  /* @__PURE__ */ i.jsxs("div", { className: "im-inc-group-banner", children: [
17428
17428
  /* @__PURE__ */ i.jsx("span", { children: l }),
@@ -17434,11 +17434,11 @@ function g9({ incident: e, onViewAlert: t }) {
17434
17434
  /* @__PURE__ */ i.jsx("span", { style: { flex: "0 0 90px" }, children: "Severity" }),
17435
17435
  /* @__PURE__ */ i.jsx("span", { style: { flex: "0 0 90px" }, children: "State" }),
17436
17436
  /* @__PURE__ */ i.jsx("span", { style: { flex: "0 0 120px" }, children: "Source" }),
17437
- /* @__PURE__ */ i.jsx("span", { style: { flex: 1 }, children: "Metric" }),
17437
+ /* @__PURE__ */ i.jsx("span", { style: { flex: 1 }, children: "Metric / Alert" }),
17438
17438
  /* @__PURE__ */ i.jsx("span", { style: { flex: "0 0 80px" }, children: "Value" }),
17439
17439
  /* @__PURE__ */ i.jsx("span", { style: { flex: "0 0 60px", textAlign: "right" }, children: "Raw" })
17440
17440
  ] }),
17441
- a ? /* @__PURE__ */ i.jsx("div", { className: "im-inc-alarm-empty", children: /* @__PURE__ */ i.jsx(et, { className: "h-5 w-5 animate-spin" }) }) : n.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: "im-inc-alarm-empty", children: "No alarms in this group." }) : n.map((c) => {
17441
+ a ? /* @__PURE__ */ i.jsx("div", { className: "im-inc-alarm-empty", children: /* @__PURE__ */ i.jsx(et, { className: "h-5 w-5 animate-spin" }) }) : n.length === 0 ? /* @__PURE__ */ i.jsx("div", { className: "im-inc-alarm-empty", children: "No alerts in this group." }) : n.map((c) => {
17442
17442
  const u = c.metricName || c.alertName, p = c.metricValue ?? c.value ?? "—";
17443
17443
  return /* @__PURE__ */ i.jsxs("div", { className: "im-inc-alarm-trow", children: [
17444
17444
  /* @__PURE__ */ i.jsx("span", { style: { flex: "0 0 80px" }, className: "im-mono im-muted", children: Wm(c.createdAt) }),
@@ -17525,7 +17525,7 @@ function x9({
17525
17525
  e.resourceName,
17526
17526
  ")"
17527
17527
  ] }),
17528
- e.alertId && /* @__PURE__ */ i.jsx("span", { children: "✓ Source alarm linked" })
17528
+ e.alertId && /* @__PURE__ */ i.jsx("span", { children: "✓ Source alert linked" })
17529
17529
  ] })
17530
17530
  ] }),
17531
17531
  t && !o && /* @__PURE__ */ i.jsxs("div", { className: "im-ai-running-card", children: [
@@ -17767,7 +17767,7 @@ function v9({ incidentId: e, onBack: t, onViewAlert: n }) {
17767
17767
  s.resourceName
17768
17768
  ] }),
17769
17769
  /* @__PURE__ */ i.jsx("span", { className: "im-inc-sep", children: "·" }),
17770
- /* @__PURE__ */ i.jsx("span", { children: s.alertId ? "1 alarm" : "0 alarms" }),
17770
+ /* @__PURE__ */ i.jsx("span", { children: s.alertId ? "1 alert" : "0 alerts" }),
17771
17771
  /* @__PURE__ */ i.jsx("span", { className: "im-inc-sep", children: "·" }),
17772
17772
  /* @__PURE__ */ i.jsxs("span", { className: "im-inc-dur", children: [
17773
17773
  "⏱ ",
@@ -17829,7 +17829,7 @@ function v9({ incidentId: e, onBack: t, onViewAlert: n }) {
17829
17829
  )) }),
17830
17830
  /* @__PURE__ */ i.jsxs("div", { className: "im-inc-tab-content", children: [
17831
17831
  d === "overview" && /* @__PURE__ */ i.jsx(h9, { incident: s }),
17832
- d === "alarms" && /* @__PURE__ */ i.jsx(g9, { incident: s, onViewAlert: D }),
17832
+ d === "alerts" && /* @__PURE__ */ i.jsx(g9, { incident: s, onViewAlert: D }),
17833
17833
  d === "ai" && /* @__PURE__ */ i.jsx(
17834
17834
  x9,
17835
17835
  {
@@ -17957,7 +17957,7 @@ function v9({ incidentId: e, onBack: t, onViewAlert: n }) {
17957
17957
  /* @__PURE__ */ i.jsxs("div", { className: "im-inc-sidebar-actions", children: [
17958
17958
  s.alertId && /* @__PURE__ */ i.jsxs("button", { type: "button", className: "im-inc-sidebar-action", onClick: () => D(s.alertId), children: [
17959
17959
  /* @__PURE__ */ i.jsx(gs, { size: 12 }),
17960
- " View source alarm"
17960
+ " View source alert"
17961
17961
  ] }),
17962
17962
  l && /* @__PURE__ */ i.jsxs(As, { to: `/sops/${l}`, className: "im-inc-sidebar-action", children: [
17963
17963
  /* @__PURE__ */ i.jsx(id, { size: 12 }),
@@ -26761,7 +26761,7 @@ function FV({ open: e, source: t, onOpenChange: n }) {
26761
26761
  ] }),
26762
26762
  /* @__PURE__ */ i.jsxs("div", { className: "im-detail-tabs", role: "tablist", "aria-label": "Source details", children: [
26763
26763
  /* @__PURE__ */ i.jsx("button", { className: "is-active", type: "button", children: "Overview" }),
26764
- /* @__PURE__ */ i.jsx("button", { type: "button", children: "Alarms" }),
26764
+ /* @__PURE__ */ i.jsx("button", { type: "button", children: "Alerts" }),
26765
26765
  /* @__PURE__ */ i.jsx("button", { type: "button", children: "Configuration" }),
26766
26766
  /* @__PURE__ */ i.jsx("button", { type: "button", children: "Logs" }),
26767
26767
  /* @__PURE__ */ i.jsx("button", { type: "button", children: "Test" })
@@ -26775,11 +26775,11 @@ function FV({ open: e, source: t, onOpenChange: n }) {
26775
26775
  ] })
26776
26776
  ] }),
26777
26777
  /* @__PURE__ */ i.jsxs("div", { className: "im-detail-stat", children: [
26778
- /* @__PURE__ */ i.jsx("span", { children: "Last alarm" }),
26778
+ /* @__PURE__ */ i.jsx("span", { children: "Last alert" }),
26779
26779
  /* @__PURE__ */ i.jsx("strong", { children: LV(t) })
26780
26780
  ] }),
26781
26781
  /* @__PURE__ */ i.jsxs("div", { className: "im-detail-stat", children: [
26782
- /* @__PURE__ */ i.jsx("span", { children: "Alarms today" }),
26782
+ /* @__PURE__ */ i.jsx("span", { children: "Alerts today" }),
26783
26783
  /* @__PURE__ */ i.jsx("strong", { children: c })
26784
26784
  ] }),
26785
26785
  /* @__PURE__ */ i.jsxs("div", { className: "im-detail-stat", children: [
@@ -26789,8 +26789,8 @@ function FV({ open: e, source: t, onOpenChange: n }) {
26789
26789
  ] }),
26790
26790
  /* @__PURE__ */ i.jsxs("div", { className: "im-detail-grid", children: [
26791
26791
  /* @__PURE__ */ i.jsxs("section", { className: "im-detail-card im-rate-card", children: [
26792
- /* @__PURE__ */ i.jsx("h3", { children: "7-day alarm rate" }),
26793
- /* @__PURE__ */ i.jsx("div", { className: "im-bar-chart", "aria-label": "7-day alarm rate", children: PV(c).map((p, d) => /* @__PURE__ */ i.jsxs("div", { className: "im-bar-col", children: [
26792
+ /* @__PURE__ */ i.jsx("h3", { children: "7-day alert rate" }),
26793
+ /* @__PURE__ */ i.jsx("div", { className: "im-bar-chart", "aria-label": "7-day alert rate", children: PV(c).map((p, d) => /* @__PURE__ */ i.jsxs("div", { className: "im-bar-col", children: [
26794
26794
  /* @__PURE__ */ i.jsx("span", { style: { height: p } }),
26795
26795
  /* @__PURE__ */ i.jsx("small", { children: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"][d] })
26796
26796
  ] }, d)) })
@@ -28860,14 +28860,14 @@ function lW({ sources: e, ...t }) {
28860
28860
  ] })
28861
28861
  ] }),
28862
28862
  /* @__PURE__ */ i.jsxs("div", { className: "im-row-metric", children: [
28863
- /* @__PURE__ */ i.jsx("span", { children: "Last alarm" }),
28863
+ /* @__PURE__ */ i.jsx("span", { children: "Last alert" }),
28864
28864
  /* @__PURE__ */ i.jsx("strong", { children: iW(c) })
28865
28865
  ] }),
28866
28866
  /* @__PURE__ */ i.jsxs("div", { className: "im-alarms-metric", children: [
28867
- /* @__PURE__ */ i.jsx("span", { children: "Alarms today" }),
28867
+ /* @__PURE__ */ i.jsx("span", { children: "Alerts today" }),
28868
28868
  /* @__PURE__ */ i.jsxs("div", { children: [
28869
28869
  /* @__PURE__ */ i.jsx("strong", { children: d }),
28870
- d > 0 ? /* @__PURE__ */ i.jsx("span", { className: "im-sparkline", "aria-hidden": "true", children: sW(d).map((f, m) => /* @__PURE__ */ i.jsx("span", { style: { height: f } }, `${c.id}-${m}`)) }) : /* @__PURE__ */ i.jsx("span", { className: "im-zero-sparkline", children: "No alarms" })
28870
+ d > 0 ? /* @__PURE__ */ i.jsx("span", { className: "im-sparkline", "aria-hidden": "true", children: sW(d).map((f, m) => /* @__PURE__ */ i.jsx("span", { style: { height: f } }, `${c.id}-${m}`)) }) : /* @__PURE__ */ i.jsx("span", { className: "im-zero-sparkline", children: "No alerts" })
28871
28871
  ] })
28872
28872
  ] }),
28873
28873
  Number(c.webhookFailureCount || 0) > 0 ? /* @__PURE__ */ i.jsxs("div", { className: "im-alarms-metric", children: [
@@ -29592,7 +29592,7 @@ const bw = [
29592
29592
  },
29593
29593
  {
29594
29594
  accessorKey: "alertName",
29595
- header: ({ column: e }) => /* @__PURE__ */ i.jsx(ft, { column: e, title: "Alarm name" }),
29595
+ header: ({ column: e }) => /* @__PURE__ */ i.jsx(ft, { column: e, title: "Alert name" }),
29596
29596
  cell: ({ row: e }) => /* @__PURE__ */ i.jsx("div", { className: "max-w-[240px] truncate text-sm font-semibold", title: e.original.alertName, children: e.original.alertName })
29597
29597
  },
29598
29598
  {
@@ -29665,7 +29665,7 @@ function mW({ alarms: e }) {
29665
29665
  return /* @__PURE__ */ i.jsxs("div", { className: "flex flex-1 flex-col gap-4", children: [
29666
29666
  /* @__PURE__ */ i.jsx("div", { className: "im-table-card", children: /* @__PURE__ */ i.jsxs(Fa, { children: [
29667
29667
  /* @__PURE__ */ i.jsx(Ba, { children: a.getHeaderGroups().map((s) => /* @__PURE__ */ i.jsx(Ht, { className: "bg-muted/50 group/row", children: s.headers.map((o) => /* @__PURE__ */ i.jsx(vn, { children: o.isPlaceholder ? null : Lr(o.column.columnDef.header, o.getContext()) }, o.id)) }, s.id)) }),
29668
- /* @__PURE__ */ i.jsx(Ua, { children: a.getRowModel().rows?.length ? a.getRowModel().rows.map((s) => /* @__PURE__ */ i.jsx(Ht, { className: "group/row hover:bg-muted/30", children: s.getVisibleCells().map((o) => /* @__PURE__ */ i.jsx($t, { children: Lr(o.column.columnDef.cell, o.getContext()) }, o.id)) }, s.id)) : /* @__PURE__ */ i.jsx(Ht, { children: /* @__PURE__ */ i.jsx($t, { colSpan: bw.length, className: "h-24 text-center", children: "No alarms found for this source." }) }) })
29668
+ /* @__PURE__ */ i.jsx(Ua, { children: a.getRowModel().rows?.length ? a.getRowModel().rows.map((s) => /* @__PURE__ */ i.jsx(Ht, { className: "group/row hover:bg-muted/30", children: s.getVisibleCells().map((o) => /* @__PURE__ */ i.jsx($t, { children: Lr(o.column.columnDef.cell, o.getContext()) }, o.id)) }, s.id)) : /* @__PURE__ */ i.jsx(Ht, { children: /* @__PURE__ */ i.jsx($t, { colSpan: bw.length, className: "h-24 text-center", children: "No alerts found for this source." }) }) })
29669
29669
  ] }) }),
29670
29670
  /* @__PURE__ */ i.jsx(wl, { table: a, className: "mt-auto" })
29671
29671
  ] });
@@ -29848,11 +29848,11 @@ function yW({ overview: e }) {
29848
29848
  /* @__PURE__ */ i.jsx("strong", { className: "im-inline-status", children: r })
29849
29849
  ] }),
29850
29850
  /* @__PURE__ */ i.jsxs("div", { className: "im-stat", children: [
29851
- /* @__PURE__ */ i.jsx("span", { children: "Last alarm" }),
29851
+ /* @__PURE__ */ i.jsx("span", { children: "Last alert" }),
29852
29852
  /* @__PURE__ */ i.jsx("strong", { children: pW(e.summary.lastAlarmAt) })
29853
29853
  ] }),
29854
29854
  /* @__PURE__ */ i.jsxs("div", { className: "im-stat", children: [
29855
- /* @__PURE__ */ i.jsx("span", { children: "Alarms today" }),
29855
+ /* @__PURE__ */ i.jsx("span", { children: "Alerts today" }),
29856
29856
  /* @__PURE__ */ i.jsx("strong", { children: e.summary.alarmsToday })
29857
29857
  ] }),
29858
29858
  /* @__PURE__ */ i.jsxs("div", { className: "im-stat", children: [
@@ -29860,11 +29860,11 @@ function yW({ overview: e }) {
29860
29860
  /* @__PURE__ */ i.jsx("strong", { className: "im-danger-text", children: e.summary.errorsLastHour })
29861
29861
  ] }),
29862
29862
  /* @__PURE__ */ i.jsxs("section", { className: "im-panel im-rate-panel", children: [
29863
- /* @__PURE__ */ i.jsx("h3", { children: "7-day alarm rate" }),
29863
+ /* @__PURE__ */ i.jsx("h3", { children: "7-day alert rate" }),
29864
29864
  n ? /* @__PURE__ */ i.jsx("div", { className: "im-bar-chart", children: e.summary.weeklyRate.map((s) => /* @__PURE__ */ i.jsxs("div", { className: "im-bar-item", children: [
29865
29865
  /* @__PURE__ */ i.jsx("span", { style: { height: `${Math.max(36, s.count / t * 124)}px` } }),
29866
29866
  /* @__PURE__ */ i.jsx("em", { children: s.day })
29867
- ] }, s.day)) }) : /* @__PURE__ */ i.jsx("div", { className: "im-rate-empty", children: "No alarms received in the last 7 days." })
29867
+ ] }, s.day)) }) : /* @__PURE__ */ i.jsx("div", { className: "im-rate-empty", children: "No alerts received in the last 7 days." })
29868
29868
  ] }),
29869
29869
  /* @__PURE__ */ i.jsxs("section", { className: "im-panel im-webhook-panel", children: [
29870
29870
  /* @__PURE__ */ i.jsx("h3", { children: "Webhook endpoint" }),
@@ -29938,7 +29938,7 @@ function SW({
29938
29938
  /* @__PURE__ */ i.jsx("pre", { className: "im-code-panel", children: vW }),
29939
29939
  /* @__PURE__ */ i.jsxs("div", { className: "im-test-actions", children: [
29940
29940
  /* @__PURE__ */ i.jsx(se, { className: "im-primary-button", onClick: n, disabled: t, children: t ? "Running..." : "Run test" }),
29941
- /* @__PURE__ */ i.jsx("span", { children: "Validates parsing only. No alarm is created." })
29941
+ /* @__PURE__ */ i.jsx("span", { children: "Validates parsing only. No alert is created." })
29942
29942
  ] })
29943
29943
  ] }),
29944
29944
  /* @__PURE__ */ i.jsxs("section", { className: "im-panel im-normalised-panel", children: [
@@ -29946,7 +29946,7 @@ function SW({
29946
29946
  e ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
29947
29947
  /* @__PURE__ */ i.jsxs("div", { className: "im-test-result-summary", children: [
29948
29948
  /* @__PURE__ */ i.jsx("span", { children: e.accepted ? "Accepted" : "Rejected" }),
29949
- /* @__PURE__ */ i.jsx("span", { children: e.createsAlarm ? "Creates alarm" : "No alarm created" })
29949
+ /* @__PURE__ */ i.jsx("span", { children: e.createsAlarm ? "Creates alert" : "No alert created" })
29950
29950
  ] }),
29951
29951
  /* @__PURE__ */ i.jsx("pre", { className: "im-code-panel", children: JSON.stringify(e.envelope, null, 2) })
29952
29952
  ] }) : /* @__PURE__ */ i.jsx("div", { className: "im-empty-envelope", children: "Run a test to see the normalised envelope." })
@@ -32119,7 +32119,7 @@ function EY({
32119
32119
  /* @__PURE__ */ i.jsxs("div", { className: "im-page-header", children: [
32120
32120
  /* @__PURE__ */ i.jsxs("div", { children: [
32121
32121
  /* @__PURE__ */ i.jsx("h2", { children: "Workflows" }),
32122
- /* @__PURE__ */ i.jsx("p", { children: "Rules that control how alarms become incidents" })
32122
+ /* @__PURE__ */ i.jsx("p", { children: "Rules that control how alerts become incidents" })
32123
32123
  ] }),
32124
32124
  /* @__PURE__ */ i.jsxs(se, { onClick: () => A({ to: `${t}/new${n ? `?sourceId=${n}` : ""}` }), className: "im-primary-button", children: [
32125
32125
  /* @__PURE__ */ i.jsx(Zr, { className: "h-4 w-4" }),
@@ -32961,8 +32961,8 @@ function AY({ onViewIncident: e, onViewAlert: t }) {
32961
32961
  renderFilters: (Q) => /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
32962
32962
  /* @__PURE__ */ i.jsx("div", { children: /* @__PURE__ */ i.jsxs("div", { className: "flex items-center justify-between w-full", children: [
32963
32963
  /* @__PURE__ */ i.jsxs("div", { children: [
32964
- /* @__PURE__ */ i.jsx("h2", { className: "text-2xl font-bold tracking-tight", children: "Alarm search" }),
32965
- /* @__PURE__ */ i.jsx("p", { className: "text-muted-foreground text-sm mt-0.5", children: "Every alarm received by the collector across all sources" })
32964
+ /* @__PURE__ */ i.jsx("h2", { className: "text-2xl font-bold tracking-tight", children: "Alert search" }),
32965
+ /* @__PURE__ */ i.jsx("p", { className: "text-muted-foreground text-sm mt-0.5", children: "Every alert received by the collector across all sources" })
32966
32966
  ] }),
32967
32967
  /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2", children: [
32968
32968
  /* @__PURE__ */ i.jsxs(se, { variant: "outline", size: "sm", onClick: () => B(), disabled: o, className: "h-8", children: [
@@ -77355,7 +77355,7 @@ function kue({ form: e, updateForm: t, sourceId: n }) {
77355
77355
  };
77356
77356
  return /* @__PURE__ */ i.jsxs("div", { className: "im-visual-form", children: [
77357
77357
  /* @__PURE__ */ i.jsx("h3", { children: "Triggers" }),
77358
- /* @__PURE__ */ i.jsx("p", { children: "Which alarms this workflow listens for." }),
77358
+ /* @__PURE__ */ i.jsx("p", { children: "Which alerts this workflow listens for." }),
77359
77359
  /* @__PURE__ */ i.jsxs("label", { children: [
77360
77360
  "Workflow name ",
77361
77361
  /* @__PURE__ */ i.jsx("span", { children: "*" })
@@ -77400,7 +77400,7 @@ function Iue({ form: e, updateForm: t }) {
77400
77400
  const n = () => t((s) => ({ ...s, conditions: [...s.conditions, { field: "severity", operator: "equals", value: "" }] })), r = (s, o) => t((l) => ({ ...l, conditions: l.conditions.map((c, u) => u === s ? { ...c, ...o } : c) })), a = (s) => t((o) => ({ ...o, conditions: o.conditions.filter((l, c) => c !== s) }));
77401
77401
  return /* @__PURE__ */ i.jsxs("div", { className: "im-visual-form", children: [
77402
77402
  /* @__PURE__ */ i.jsx("h3", { children: "Conditions" }),
77403
- /* @__PURE__ */ i.jsx("p", { children: "Additional checks on alarm fields before matching." }),
77403
+ /* @__PURE__ */ i.jsx("p", { children: "Additional checks on alert fields before matching." }),
77404
77404
  /* @__PURE__ */ i.jsx("label", { children: "Condition logic" }),
77405
77405
  /* @__PURE__ */ i.jsxs("div", { className: "im-chip-row", children: [
77406
77406
  /* @__PURE__ */ i.jsx("button", { className: e.conditionLogic === "all" ? "is-active" : "", type: "button", onClick: () => t((s) => ({ ...s, conditionLogic: "all" })), children: "All must match (AND)" }),
@@ -77429,7 +77429,7 @@ function Due({ form: e, updateForm: t }) {
77429
77429
  }, a = e.dedup;
77430
77430
  return /* @__PURE__ */ i.jsxs("div", { className: "im-visual-form", children: [
77431
77431
  /* @__PURE__ */ i.jsx("h3", { children: "Dedup settings" }),
77432
- /* @__PURE__ */ i.jsx("p", { children: "Collapse repeated alarms within a time window." }),
77432
+ /* @__PURE__ */ i.jsx("p", { children: "Collapse repeated alerts within a time window." }),
77433
77433
  /* @__PURE__ */ i.jsxs("label", { children: [
77434
77434
  "Dedup window ",
77435
77435
  /* @__PURE__ */ i.jsx("span", { children: "*" })
@@ -77451,15 +77451,15 @@ function Due({ form: e, updateForm: t }) {
77451
77451
  /* @__PURE__ */ i.jsx("small", { children: "Key preview" }),
77452
77452
  /* @__PURE__ */ i.jsx("code", { children: a.keyFields.join(" | ") })
77453
77453
  ] }),
77454
- /* @__PURE__ */ i.jsx("label", { children: "Resolved alarm behaviour" }),
77454
+ /* @__PURE__ */ i.jsx("label", { children: "Resolved alert behaviour" }),
77455
77455
  /* @__PURE__ */ i.jsxs("div", { className: "im-radio-group", children: [
77456
77456
  /* @__PURE__ */ i.jsxs("label", { children: [
77457
77457
  /* @__PURE__ */ i.jsx("input", { type: "radio", checked: a.resolvedBehavior === "allow", onChange: () => n({ resolvedBehavior: "allow" }) }),
77458
- "Always allow resolved alarms through (default)"
77458
+ "Always allow resolved alerts through (default)"
77459
77459
  ] }),
77460
77460
  /* @__PURE__ */ i.jsxs("label", { children: [
77461
77461
  /* @__PURE__ */ i.jsx("input", { type: "radio", checked: a.resolvedBehavior === "apply", onChange: () => n({ resolvedBehavior: "apply" }) }),
77462
- "Apply dedup window to resolved alarms too"
77462
+ "Apply dedup window to resolved alerts too"
77463
77463
  ] })
77464
77464
  ] }),
77465
77465
  /* @__PURE__ */ i.jsxs("div", { className: "im-toggle-row", children: [
@@ -77475,7 +77475,7 @@ function Due({ form: e, updateForm: t }) {
77475
77475
  ),
77476
77476
  /* @__PURE__ */ i.jsxs("div", { children: [
77477
77477
  /* @__PURE__ */ i.jsx("strong", { children: "Flap detection" }),
77478
- /* @__PURE__ */ i.jsx("small", { children: "Catch alarms toggling rapidly between states." })
77478
+ /* @__PURE__ */ i.jsx("small", { children: "Catch alerts toggling rapidly between states." })
77479
77479
  ] })
77480
77480
  ] }),
77481
77481
  a.flapEnabled && /* @__PURE__ */ i.jsxs("div", { className: "im-flap-settings", children: [
@@ -77506,7 +77506,7 @@ function Oue({ form: e, updateForm: t }) {
77506
77506
  }, l = (u) => n({ groupByFields: r.groupByFields.filter((p) => p !== u) }), c = r.titleTemplate ? r.titleTemplate.replace(/\{resource\.name\}/g, "prod-db-01").replace(/\{metric\.name\}/g, "cpu_utilization").replace(/\{source\}/g, "cloudwatch") : "(uses default: '{resource.name} — {metric.name} incident')";
77507
77507
  return /* @__PURE__ */ i.jsxs("div", { className: "im-visual-form", children: [
77508
77508
  /* @__PURE__ */ i.jsx("h3", { children: "Grouping settings" }),
77509
- /* @__PURE__ */ i.jsx("p", { children: "Combine related alarms into one incident." }),
77509
+ /* @__PURE__ */ i.jsx("p", { children: "Combine related alerts into one incident." }),
77510
77510
  /* @__PURE__ */ i.jsxs("div", { className: "im-toggle-row", children: [
77511
77511
  /* @__PURE__ */ i.jsx(
77512
77512
  "button",
@@ -77520,7 +77520,7 @@ function Oue({ form: e, updateForm: t }) {
77520
77520
  ),
77521
77521
  /* @__PURE__ */ i.jsxs("div", { children: [
77522
77522
  /* @__PURE__ */ i.jsx("strong", { children: "Enable grouping" }),
77523
- /* @__PURE__ */ i.jsx("small", { children: "When off, each alarm creates its own incident." })
77523
+ /* @__PURE__ */ i.jsx("small", { children: "When off, each alert creates its own incident." })
77524
77524
  ] })
77525
77525
  ] }),
77526
77526
  r.enabled && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
@@ -77564,7 +77564,7 @@ function Oue({ form: e, updateForm: t }) {
77564
77564
  ] }),
77565
77565
  /* @__PURE__ */ i.jsxs("div", { children: [
77566
77566
  /* @__PURE__ */ i.jsxs("label", { children: [
77567
- "Max alarms / group ",
77567
+ "Max alerts / group ",
77568
77568
  /* @__PURE__ */ i.jsx("span", { children: "*" })
77569
77569
  ] }),
77570
77570
  /* @__PURE__ */ i.jsx("input", { type: "number", min: 1, value: r.maxAlarms, onChange: (u) => n({ maxAlarms: parseInt(u.target.value) || 1 }), style: { width: 90 } })
@@ -77586,7 +77586,7 @@ function Oue({ form: e, updateForm: t }) {
77586
77586
  /* @__PURE__ */ i.jsx("label", { children: "Severity resolution" }),
77587
77587
  /* @__PURE__ */ i.jsxs("select", { value: r.severityResolution, onChange: (u) => n({ severityResolution: u.target.value }), style: { width: 280 }, children: [
77588
77588
  /* @__PURE__ */ i.jsx("option", { value: "highest", children: "Highest in group (recommended)" }),
77589
- /* @__PURE__ */ i.jsx("option", { value: "first", children: "First alarm" }),
77589
+ /* @__PURE__ */ i.jsx("option", { value: "first", children: "First alert" }),
77590
77590
  /* @__PURE__ */ i.jsx("option", { value: "fixed", children: "Fixed level" })
77591
77591
  ] })
77592
77592
  ] })
@@ -77610,7 +77610,7 @@ function Lue({
77610
77610
  };
77611
77611
  return /* @__PURE__ */ i.jsxs("div", { className: "im-visual-form", children: [
77612
77612
  /* @__PURE__ */ i.jsx("h3", { children: "Actions" }),
77613
- /* @__PURE__ */ i.jsx("p", { children: "What happens when an alarm group matches." }),
77613
+ /* @__PURE__ */ i.jsx("p", { children: "What happens when an alert group matches." }),
77614
77614
  /* @__PURE__ */ i.jsxs("div", { className: "im-toggle-row im-action-row", style: { alignItems: "flex-start" }, children: [
77615
77615
  /* @__PURE__ */ i.jsx("div", { style: { display: "flex", gap: "12px", marginTop: "2px" }, children: /* @__PURE__ */ i.jsx(
77616
77616
  "button",
@@ -77919,7 +77919,7 @@ function wN({
77919
77919
  ) }),
77920
77920
  /* @__PURE__ */ i.jsxs("div", { className: "im-test-run", children: [
77921
77921
  /* @__PURE__ */ i.jsx("strong", { children: "Test run" }),
77922
- /* @__PURE__ */ i.jsx("button", { type: "button", onClick: z, disabled: R, children: R ? "Running..." : "Run with sample alarm" }),
77922
+ /* @__PURE__ */ i.jsx("button", { type: "button", onClick: z, disabled: R, children: R ? "Running..." : "Run with sample alert" }),
77923
77923
  A ? /* @__PURE__ */ i.jsx("div", { className: "im-test-result", children: A.ok ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
77924
77924
  /* @__PURE__ */ i.jsx("span", { className: "im-test-match", children: "MATCH" }),
77925
77925
  /* @__PURE__ */ i.jsx("small", { children: "All triggers satisfied" }),
@@ -78526,7 +78526,7 @@ const Uue = [
78526
78526
  meyi_pulse: "Meyi Pulse"
78527
78527
  }, Hue = ["resourceId", "alertName", "metricName", "resourceName", "resourceType", "severity", "state", "source", "tenantId"], zue = [
78528
78528
  { value: "max_of_members", label: "Highest in group" },
78529
- { value: "first_alarm", label: "First alarm" },
78529
+ { value: "first_alarm", label: "First alert" },
78530
78530
  { value: "fixed", label: "Fixed level" }
78531
78531
  ];
78532
78532
  function _N(e) {
@@ -79291,7 +79291,7 @@ function que(e) {
79291
79291
  ]
79292
79292
  },
79293
79293
  {
79294
- title: "Alarms",
79294
+ title: "Alerts",
79295
79295
  url: "/alerts",
79296
79296
  icon: "Bell",
79297
79297
  roles: ["admin", "user"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meyi-insight-ui-dev",
3
3
  "private": false,
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",