@localstack/appinspector-ui 1.0.1 → 1.0.3
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.cjs +76 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +76 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2883,8 +2883,7 @@ var SpansList = (props) => {
|
|
|
2883
2883
|
};
|
|
2884
2884
|
|
|
2885
2885
|
// src/components/status-message/status-message.tsx
|
|
2886
|
-
var
|
|
2887
|
-
var import_InfoOutlined = __toESM(require("@mui/icons-material/InfoOutlined"), 1);
|
|
2886
|
+
var import_icons_material2 = require("@mui/icons-material");
|
|
2888
2887
|
var import_material6 = require("@mui/material");
|
|
2889
2888
|
|
|
2890
2889
|
// src/api/errors.ts
|
|
@@ -2947,7 +2946,7 @@ var StatusMessage = ({
|
|
|
2947
2946
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
2948
2947
|
import_material6.Alert,
|
|
2949
2948
|
{
|
|
2950
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
2949
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_icons_material2.ErrorOutline, { fontSize: "large" }),
|
|
2951
2950
|
severity: "error",
|
|
2952
2951
|
sx: { maxWidth: 600, width: "100%" },
|
|
2953
2952
|
children: [
|
|
@@ -3020,7 +3019,7 @@ var StatusMessage = ({
|
|
|
3020
3019
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
3021
3020
|
import_material6.Alert,
|
|
3022
3021
|
{
|
|
3023
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
3022
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_icons_material2.ErrorOutline, { fontSize: "large" }),
|
|
3024
3023
|
severity: "error",
|
|
3025
3024
|
sx: { maxWidth: 600, width: "100%" },
|
|
3026
3025
|
children: [
|
|
@@ -3070,7 +3069,7 @@ var StatusMessage = ({
|
|
|
3070
3069
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
3071
3070
|
import_material6.Alert,
|
|
3072
3071
|
{
|
|
3073
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
3072
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_icons_material2.InfoOutlined, { fontSize: "large" }),
|
|
3074
3073
|
severity: "warning",
|
|
3075
3074
|
sx: { maxWidth: 600, width: "100%" },
|
|
3076
3075
|
children: [
|
|
@@ -3139,7 +3138,7 @@ var StatusMessage = ({
|
|
|
3139
3138
|
children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
|
|
3140
3139
|
import_material6.Alert,
|
|
3141
3140
|
{
|
|
3142
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
3141
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_icons_material2.ErrorOutline, { fontSize: "large" }),
|
|
3143
3142
|
severity: "error",
|
|
3144
3143
|
sx: { maxWidth: 600, width: "100%" },
|
|
3145
3144
|
children: [
|
|
@@ -3160,7 +3159,7 @@ var StatusMessage = ({
|
|
|
3160
3159
|
}
|
|
3161
3160
|
);
|
|
3162
3161
|
}
|
|
3163
|
-
return;
|
|
3162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_jsx_runtime126.Fragment, {});
|
|
3164
3163
|
};
|
|
3165
3164
|
|
|
3166
3165
|
// src/context.tsx
|
|
@@ -3497,6 +3496,7 @@ var SpansListPage = () => {
|
|
|
3497
3496
|
};
|
|
3498
3497
|
|
|
3499
3498
|
// src/pages/trace-graph-page.tsx
|
|
3499
|
+
var import_icons_material6 = require("@mui/icons-material");
|
|
3500
3500
|
var import_material14 = require("@mui/material");
|
|
3501
3501
|
var import_styles = require("@mui/material/styles");
|
|
3502
3502
|
var import_react16 = require("@xyflow/react");
|
|
@@ -3507,7 +3507,7 @@ var import_react_router_dom2 = require("react-router-dom");
|
|
|
3507
3507
|
var import_material10 = require("@mui/material");
|
|
3508
3508
|
|
|
3509
3509
|
// src/components/event-details/event-details-header.tsx
|
|
3510
|
-
var
|
|
3510
|
+
var import_icons_material3 = require("@mui/icons-material");
|
|
3511
3511
|
var import_material8 = require("@mui/material");
|
|
3512
3512
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
3513
3513
|
var EventDetailsHeader = ({ event, onClose }) => {
|
|
@@ -3532,14 +3532,14 @@ var EventDetailsHeader = ({ event, onClose }) => {
|
|
|
3532
3532
|
event.operation_name
|
|
3533
3533
|
] })
|
|
3534
3534
|
] }),
|
|
3535
|
-
onClose && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.IconButton, { onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
3535
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_material8.IconButton, { onClick: onClose, size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(import_icons_material3.Close, {}) })
|
|
3536
3536
|
]
|
|
3537
3537
|
}
|
|
3538
3538
|
);
|
|
3539
3539
|
};
|
|
3540
3540
|
|
|
3541
3541
|
// src/components/event-details/toggle-section.tsx
|
|
3542
|
-
var
|
|
3542
|
+
var import_icons_material4 = require("@mui/icons-material");
|
|
3543
3543
|
var import_material9 = require("@mui/material");
|
|
3544
3544
|
var import_react9 = require("react");
|
|
3545
3545
|
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
@@ -3567,7 +3567,7 @@ var ToggleSection = ({ children, headline, initialOpen = true }) => {
|
|
|
3567
3567
|
},
|
|
3568
3568
|
children: [
|
|
3569
3569
|
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_material9.Typography, { sx: { fontWeight: 600 }, variant: "subtitle2", children: headline }),
|
|
3570
|
-
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
3570
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_icons_material4.KeyboardArrowDown, { sx: { color: "text.secondary", height: 20, width: 20 } }) : /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_icons_material4.KeyboardArrowRight, { sx: { color: "text.secondary", height: 20, width: 20 } })
|
|
3571
3571
|
]
|
|
3572
3572
|
}
|
|
3573
3573
|
)
|
|
@@ -3663,7 +3663,7 @@ var import_react11 = require("@xyflow/react");
|
|
|
3663
3663
|
var import_react12 = require("react");
|
|
3664
3664
|
|
|
3665
3665
|
// src/components/trace-graph/problem-indicator.tsx
|
|
3666
|
-
var
|
|
3666
|
+
var import_icons_material5 = require("@mui/icons-material");
|
|
3667
3667
|
var import_material11 = require("@mui/material");
|
|
3668
3668
|
var import_react10 = require("react");
|
|
3669
3669
|
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
@@ -3671,13 +3671,13 @@ var ProblemIndicator = ({ error }) => {
|
|
|
3671
3671
|
const icon = (0, import_react10.useMemo)(() => {
|
|
3672
3672
|
switch (error.level) {
|
|
3673
3673
|
case "error": {
|
|
3674
|
-
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
3674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material5.Error, { sx: { color: "#d32f2f", fontSize: "14px" } });
|
|
3675
3675
|
}
|
|
3676
3676
|
case "warning": {
|
|
3677
|
-
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
3677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material5.Warning, { sx: { color: "#ff9800", fontSize: "14px" } });
|
|
3678
3678
|
}
|
|
3679
3679
|
default: {
|
|
3680
|
-
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
3680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_icons_material5.Info, { sx: { color: "#2196f3", fontSize: "14px" } });
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
3683
3683
|
}, [error.level]);
|
|
@@ -4128,7 +4128,13 @@ var TraceGraphPage = () => {
|
|
|
4128
4128
|
void checkStatus();
|
|
4129
4129
|
}, [checkStatus]);
|
|
4130
4130
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
4131
|
-
|
|
4131
|
+
const navigate = (0, import_react_router_dom2.useNavigate)();
|
|
4132
|
+
const { resolveLink } = useAppInspector();
|
|
4133
|
+
const navigateToSpansList = (0, import_react17.useCallback)(() => {
|
|
4134
|
+
const url = resolveLink({ to: "spans-list" });
|
|
4135
|
+
navigate(url);
|
|
4136
|
+
}, [navigate, resolveLink]);
|
|
4137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(
|
|
4132
4138
|
import_material14.Box,
|
|
4133
4139
|
{
|
|
4134
4140
|
"data-testid": "trace-graph-page",
|
|
@@ -4136,56 +4142,65 @@ var TraceGraphPage = () => {
|
|
|
4136
4142
|
alignItems: "center",
|
|
4137
4143
|
display: "flex",
|
|
4138
4144
|
flexDirection: "column",
|
|
4145
|
+
gap: 2,
|
|
4139
4146
|
height: "100vh",
|
|
4140
4147
|
overflow: "hidden"
|
|
4141
4148
|
},
|
|
4142
|
-
children:
|
|
4143
|
-
import_material14.
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
}
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
import_material14.Box,
|
|
4149
|
+
children: [
|
|
4150
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_material14.Box, { sx: { display: "flex", width: "100%" }, children: [
|
|
4151
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_material14.Button, { onClick: () => {
|
|
4152
|
+
navigateToSpansList();
|
|
4153
|
+
}, startIcon: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_icons_material6.ArrowBack, {}), children: "Go back" }),
|
|
4154
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_material14.Box, { sx: { flexGrow: 1 } })
|
|
4155
|
+
] }),
|
|
4156
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
4157
|
+
import_material14.Paper,
|
|
4158
|
+
{
|
|
4159
|
+
sx: {
|
|
4160
|
+
display: "flex",
|
|
4161
|
+
flexGrow: 1,
|
|
4162
|
+
overflow: "hidden",
|
|
4163
|
+
position: "relative",
|
|
4164
|
+
width: "100%"
|
|
4165
|
+
},
|
|
4166
|
+
children: shouldShowStatusMessage ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
4167
|
+
StatusMessage,
|
|
4162
4168
|
{
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
},
|
|
4167
|
-
children: traceId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_react16.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
4168
|
-
TraceGraph,
|
|
4169
|
-
{
|
|
4170
|
-
initialFocusEventId: spanId,
|
|
4171
|
-
onEventSelect: handleEventSelect,
|
|
4172
|
-
onRefresh: () => {
|
|
4173
|
-
void fetchSpans();
|
|
4174
|
-
},
|
|
4175
|
-
spans: {
|
|
4176
|
-
data: spans,
|
|
4177
|
-
error: fetchError,
|
|
4178
|
-
loading
|
|
4179
|
-
},
|
|
4180
|
-
viewPortPixelWidth
|
|
4181
|
-
}
|
|
4182
|
-
) })
|
|
4169
|
+
error: statusError,
|
|
4170
|
+
onRetry: handleRetry,
|
|
4171
|
+
status
|
|
4183
4172
|
}
|
|
4184
|
-
)
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4173
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
|
|
4174
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(Main, { open, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
4175
|
+
import_material14.Box,
|
|
4176
|
+
{
|
|
4177
|
+
sx: {
|
|
4178
|
+
height: "100%",
|
|
4179
|
+
overflow: "auto"
|
|
4180
|
+
},
|
|
4181
|
+
children: traceId !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_react16.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
4182
|
+
TraceGraph,
|
|
4183
|
+
{
|
|
4184
|
+
initialFocusEventId: spanId,
|
|
4185
|
+
onEventSelect: handleEventSelect,
|
|
4186
|
+
onRefresh: () => {
|
|
4187
|
+
void fetchSpans();
|
|
4188
|
+
},
|
|
4189
|
+
spans: {
|
|
4190
|
+
data: spans,
|
|
4191
|
+
error: fetchError,
|
|
4192
|
+
loading
|
|
4193
|
+
},
|
|
4194
|
+
viewPortPixelWidth
|
|
4195
|
+
}
|
|
4196
|
+
) })
|
|
4197
|
+
}
|
|
4198
|
+
) }),
|
|
4199
|
+
/* @__PURE__ */ (0, import_jsx_runtime135.jsx)(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(EventDetails, { selectedEvent }) })
|
|
4200
|
+
] })
|
|
4201
|
+
}
|
|
4202
|
+
)
|
|
4203
|
+
]
|
|
4189
4204
|
}
|
|
4190
4205
|
);
|
|
4191
4206
|
};
|