@elevasis/ui 2.33.2 → 2.35.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/api/index.d.ts +9 -2
- package/dist/api/index.js +3 -3
- package/dist/app/index.css +452 -0
- package/dist/app/index.d.ts +1255 -8
- package/dist/app/index.js +151 -13
- package/dist/charts/index.js +3 -6
- package/dist/chunk-26HFM4MH.js +41449 -0
- package/dist/{chunk-52K5RFDH.js → chunk-4U3XAWCN.js} +1328 -2492
- package/dist/{chunk-ND5TDV2J.js → chunk-57OZ3AEG.js} +1 -1
- package/dist/{chunk-E4WQGJNS.js → chunk-7FPLLSHN.js} +14 -1
- package/dist/{chunk-RQA2EVN3.js → chunk-AKW7KISS.js} +39 -3
- package/dist/chunk-AUDNF2Q7.js +2050 -0
- package/dist/{chunk-TYRUKGGD.js → chunk-GX6XBRRF.js} +1 -2
- package/dist/{chunk-V6SZ4ECN.js → chunk-LUYVRATI.js} +257 -6
- package/dist/{chunk-X4WBGKJQ.js → chunk-R3VCBZDC.js} +50 -3
- package/dist/chunk-SIQ3P4OR.js +1764 -0
- package/dist/{chunk-Z2K2EAPL.js → chunk-VDOOGGBA.js} +5 -6
- package/dist/{chunk-3FV6HBXS.js → chunk-WF7CONXF.js} +23 -23
- package/dist/chunk-YYX7OPZQ.js +25 -0
- package/dist/components/index.d.ts +69 -92
- package/dist/components/index.js +20 -3216
- package/dist/components/navigation/index.js +25 -7
- package/dist/execution/index.d.ts +9 -9
- package/dist/execution/index.js +1 -2
- package/dist/features/auth/index.js +23 -2
- package/dist/features/clients/index.js +20 -31
- package/dist/features/crm/index.js +20 -35
- package/dist/features/dashboard/index.d.ts +68 -91
- package/dist/features/dashboard/index.js +20 -33
- package/dist/features/delivery/index.js +20 -35
- package/dist/features/knowledge/index.js +25 -11
- package/dist/features/lead-gen/index.d.ts +9 -9
- package/dist/features/lead-gen/index.js +20 -36
- package/dist/features/monitoring/index.js +20 -35
- package/dist/features/monitoring/requests/index.js +20 -30
- package/dist/features/operations/index.d.ts +197 -188
- package/dist/features/operations/index.js +18 -42
- package/dist/features/seo/index.js +3 -4
- package/dist/features/settings/index.js +20 -32
- package/dist/graph/index.js +1 -1
- package/dist/hooks/delivery/index.js +30 -2
- package/dist/hooks/index.d.ts +105 -112
- package/dist/hooks/index.js +20 -26
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +55 -62
- package/dist/hooks/published.d.ts +105 -112
- package/dist/hooks/published.js +20 -25
- package/dist/index.css +532 -532
- package/dist/index.d.ts +10261 -6793
- package/dist/index.js +22 -31
- package/dist/knowledge/index.d.ts +51 -59
- package/dist/knowledge/index.js +40 -211
- package/dist/{knowledge-search-index-VMAW7FLR.js → knowledge-search-index-ORIJCEZX.js} +3 -3
- package/dist/layout/index.js +4 -10
- package/dist/organization/index.js +27 -2
- package/dist/provider/index.d.ts +71 -52
- package/dist/provider/index.js +20 -20
- package/dist/provider/published.d.ts +39 -47
- package/dist/provider/published.js +20 -15
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +16 -4
- package/dist/test-utils/setup.js +38 -0
- package/dist/theme/index.js +2 -3
- package/dist/theme/presets/index.d.ts +28 -3
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +1 -2049
- package/dist/types/index.d.ts +88 -95
- package/dist/utils/index.d.ts +46 -69
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +21 -8
- package/dist/zustand/index.js +32 -1
- package/package.json +5 -5
- package/dist/chunk-2ZZ72TAB.js +0 -2281
- package/dist/chunk-32I2RCGC.js +0 -85
- package/dist/chunk-3MEXPLWT.js +0 -265
- package/dist/chunk-3ZMAGTWF.js +0 -18
- package/dist/chunk-44I4LOH6.js +0 -1593
- package/dist/chunk-4DYOXEH6.js +0 -951
- package/dist/chunk-7M2VOCYN.js +0 -1
- package/dist/chunk-A4VDJJCV.js +0 -1864
- package/dist/chunk-BZZCNLT6.js +0 -12
- package/dist/chunk-CLDCYJQT.js +0 -1
- package/dist/chunk-E565XMTQ.js +0 -17
- package/dist/chunk-EPTHX4VZ.js +0 -749
- package/dist/chunk-GWGQI6V4.js +0 -447
- package/dist/chunk-HUJCU55S.js +0 -159
- package/dist/chunk-IBWMR4TI.js +0 -469
- package/dist/chunk-IIMU5YAJ.js +0 -53
- package/dist/chunk-IOXOPMYS.js +0 -145
- package/dist/chunk-J2UD7BOH.js +0 -347
- package/dist/chunk-JA5ECJJB.js +0 -387
- package/dist/chunk-JFL3GRD4.js +0 -39
- package/dist/chunk-KW7ZNQD7.js +0 -126
- package/dist/chunk-LGKLC5MG.js +0 -44
- package/dist/chunk-N55DVMAG.js +0 -14
- package/dist/chunk-O56ESZCQ.js +0 -1874
- package/dist/chunk-OIBHQH5Q.js +0 -96
- package/dist/chunk-PDHTXPSF.js +0 -12
- package/dist/chunk-QDFJSUG3.js +0 -13
- package/dist/chunk-R2XR4FCV.js +0 -48
- package/dist/chunk-R66W5UDG.js +0 -26
- package/dist/chunk-RYTEQBAO.js +0 -37
- package/dist/chunk-SZHARWKU.js +0 -15
- package/dist/chunk-T3J6U77J.js +0 -12056
- package/dist/chunk-TBVLQRXT.js +0 -68
- package/dist/chunk-TGVAIWIL.js +0 -1778
- package/dist/chunk-TKAYX2SP.js +0 -204
- package/dist/chunk-TUMSNGTX.js +0 -35
- package/dist/chunk-VGU4ZFYZ.js +0 -4752
- package/dist/chunk-VNAZTCHA.js +0 -65
- package/dist/chunk-VNFR57DF.js +0 -87
- package/dist/chunk-WKW6B5ID.js +0 -29
- package/dist/chunk-XCYKC6OZ.js +0 -1
- package/dist/chunk-XZGSCABI.js +0 -383
- package/dist/chunk-ZMK5Z6KE.js +0 -5198
- /package/dist/{chunk-2RJMVWFJ.js → chunk-GEFWMU26.js} +0 -0
- /package/dist/{chunk-22UVE3RA.js → chunk-HENXLGVD.js} +0 -0
package/dist/chunk-TBVLQRXT.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { useCyberColors, CyberLegendItem, CyberAreaChart } from './chunk-4DYOXEH6.js';
|
|
2
|
-
import { useResourcesHealth } from './chunk-ZMK5Z6KE.js';
|
|
3
|
-
import { CardHeader, EmptyState } from './chunk-EPTHX4VZ.js';
|
|
4
|
-
import { getTimeRangeDates, formatBucketTime } from './chunk-2RJMVWFJ.js';
|
|
5
|
-
import { Paper, Center, Loader, Group } from '@mantine/core';
|
|
6
|
-
import { IconActivity, IconChartBar } from '@tabler/icons-react';
|
|
7
|
-
import { useMemo } from 'react';
|
|
8
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
function ResourceHealthPanel({ resourceId, resourceType, timeRange }) {
|
|
11
|
-
const colors = useCyberColors();
|
|
12
|
-
const { startDate, endDate } = useMemo(() => getTimeRangeDates(timeRange), [timeRange]);
|
|
13
|
-
const granularity = ["1h", "24h"].includes(timeRange) ? "hour" : "day";
|
|
14
|
-
const { data, isLoading } = useResourcesHealth({
|
|
15
|
-
resources: [{ entityType: resourceType, entityId: resourceId }],
|
|
16
|
-
startDate,
|
|
17
|
-
endDate,
|
|
18
|
-
granularity
|
|
19
|
-
});
|
|
20
|
-
const resourceHealth = data?.resources?.[0];
|
|
21
|
-
const chartData = useMemo(() => {
|
|
22
|
-
if (!resourceHealth?.trendData) return [];
|
|
23
|
-
return resourceHealth.trendData.map((point) => ({
|
|
24
|
-
time: point.time,
|
|
25
|
-
Success: (point.success || 0) - (point.warning || 0),
|
|
26
|
-
Warning: point.warning || 0,
|
|
27
|
-
Failed: point.failure || 0
|
|
28
|
-
}));
|
|
29
|
-
}, [resourceHealth?.trendData]);
|
|
30
|
-
const xTickFormatter = useMemo(() => (value) => formatBucketTime(value, granularity), [granularity]);
|
|
31
|
-
if (isLoading) {
|
|
32
|
-
return /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(Center, { p: "xl", children: /* @__PURE__ */ jsx(Loader, {}) }) });
|
|
33
|
-
}
|
|
34
|
-
const summary = resourceHealth?.summary;
|
|
35
|
-
return /* @__PURE__ */ jsxs(Paper, { withBorder: true, children: [
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
37
|
-
CardHeader,
|
|
38
|
-
{
|
|
39
|
-
icon: /* @__PURE__ */ jsx(IconActivity, { size: 18 }),
|
|
40
|
-
title: "Execution Health",
|
|
41
|
-
subtitle: `${summary?.total || 0} executions, ${summary?.successRate?.toFixed(1) || 0}% success rate`
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
chartData.length === 0 ? /* @__PURE__ */ jsx(EmptyState, { icon: IconChartBar, title: "No execution data for this time range" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
-
/* @__PURE__ */ jsxs(Group, { gap: "lg", justify: "center", mb: "xs", h: 24, align: "center", children: [
|
|
46
|
-
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.green, label: "Success" }),
|
|
47
|
-
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.yellow, label: "Warning" }),
|
|
48
|
-
/* @__PURE__ */ jsx(CyberLegendItem, { color: colors.red, label: "Failed" })
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
51
|
-
CyberAreaChart,
|
|
52
|
-
{
|
|
53
|
-
data: chartData,
|
|
54
|
-
series: [
|
|
55
|
-
{ dataKey: "Success", color: "green", name: "Success" },
|
|
56
|
-
{ dataKey: "Warning", color: "yellow", name: "Warning" },
|
|
57
|
-
{ dataKey: "Failed", color: "red", name: "Failed" }
|
|
58
|
-
],
|
|
59
|
-
height: 200,
|
|
60
|
-
yDomain: [0, "auto"],
|
|
61
|
-
xTickFormatter
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
] })
|
|
65
|
-
] });
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export { ResourceHealthPanel };
|