@localstack/appinspector-ui 1.0.0-dev-37c5a6b8 → 1.0.2
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 +62 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +64 -48
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3460,11 +3460,12 @@ var SpansListPage = () => {
|
|
|
3460
3460
|
};
|
|
3461
3461
|
|
|
3462
3462
|
// src/pages/trace-graph-page.tsx
|
|
3463
|
-
import {
|
|
3463
|
+
import { ArrowBack } from "@mui/icons-material";
|
|
3464
|
+
import { Box as Box12, Button as Button5, Drawer, Paper as Paper2 } from "@mui/material";
|
|
3464
3465
|
import { styled } from "@mui/material/styles";
|
|
3465
3466
|
import { ReactFlowProvider } from "@xyflow/react";
|
|
3466
3467
|
import { useCallback as useCallback8, useEffect as useEffect6, useState as useState8 } from "react";
|
|
3467
|
-
import { useParams, useSearchParams } from "react-router-dom";
|
|
3468
|
+
import { useNavigate as useNavigate2, useParams, useSearchParams } from "react-router-dom";
|
|
3468
3469
|
|
|
3469
3470
|
// src/components/event-details/event-details.tsx
|
|
3470
3471
|
import { Box as Box9, Chip, Divider, Stack, Typography as Typography6 } from "@mui/material";
|
|
@@ -4091,7 +4092,13 @@ var TraceGraphPage = () => {
|
|
|
4091
4092
|
void checkStatus();
|
|
4092
4093
|
}, [checkStatus]);
|
|
4093
4094
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
4094
|
-
|
|
4095
|
+
const navigate = useNavigate2();
|
|
4096
|
+
const { resolveLink } = useAppInspector();
|
|
4097
|
+
const navigateToSpansList = useCallback8(() => {
|
|
4098
|
+
const url = resolveLink({ to: "spans-list" });
|
|
4099
|
+
navigate(url);
|
|
4100
|
+
}, [navigate, resolveLink]);
|
|
4101
|
+
return /* @__PURE__ */ jsxs128(
|
|
4095
4102
|
Box12,
|
|
4096
4103
|
{
|
|
4097
4104
|
"data-testid": "trace-graph-page",
|
|
@@ -4099,56 +4106,65 @@ var TraceGraphPage = () => {
|
|
|
4099
4106
|
alignItems: "center",
|
|
4100
4107
|
display: "flex",
|
|
4101
4108
|
flexDirection: "column",
|
|
4109
|
+
gap: 2,
|
|
4102
4110
|
height: "100vh",
|
|
4103
4111
|
overflow: "hidden"
|
|
4104
4112
|
},
|
|
4105
|
-
children:
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
}
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
Box12,
|
|
4113
|
+
children: [
|
|
4114
|
+
/* @__PURE__ */ jsxs128(Box12, { sx: { display: "flex", width: "100%" }, children: [
|
|
4115
|
+
/* @__PURE__ */ jsx135(Button5, { onClick: () => {
|
|
4116
|
+
navigateToSpansList();
|
|
4117
|
+
}, startIcon: /* @__PURE__ */ jsx135(ArrowBack, {}), children: "Go back" }),
|
|
4118
|
+
/* @__PURE__ */ jsx135(Box12, { sx: { flexGrow: 1 } })
|
|
4119
|
+
] }),
|
|
4120
|
+
/* @__PURE__ */ jsx135(
|
|
4121
|
+
Paper2,
|
|
4122
|
+
{
|
|
4123
|
+
sx: {
|
|
4124
|
+
display: "flex",
|
|
4125
|
+
flexGrow: 1,
|
|
4126
|
+
overflow: "hidden",
|
|
4127
|
+
position: "relative",
|
|
4128
|
+
width: "100%"
|
|
4129
|
+
},
|
|
4130
|
+
children: shouldShowStatusMessage ? /* @__PURE__ */ jsx135(
|
|
4131
|
+
StatusMessage,
|
|
4125
4132
|
{
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
},
|
|
4130
|
-
children: traceId !== void 0 && /* @__PURE__ */ jsx135(ReactFlowProvider, { children: /* @__PURE__ */ jsx135(
|
|
4131
|
-
TraceGraph,
|
|
4132
|
-
{
|
|
4133
|
-
initialFocusEventId: spanId,
|
|
4134
|
-
onEventSelect: handleEventSelect,
|
|
4135
|
-
onRefresh: () => {
|
|
4136
|
-
void fetchSpans();
|
|
4137
|
-
},
|
|
4138
|
-
spans: {
|
|
4139
|
-
data: spans,
|
|
4140
|
-
error: fetchError,
|
|
4141
|
-
loading
|
|
4142
|
-
},
|
|
4143
|
-
viewPortPixelWidth
|
|
4144
|
-
}
|
|
4145
|
-
) })
|
|
4133
|
+
error: statusError,
|
|
4134
|
+
onRetry: handleRetry,
|
|
4135
|
+
status
|
|
4146
4136
|
}
|
|
4147
|
-
)
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4137
|
+
) : /* @__PURE__ */ jsxs128(Fragment4, { children: [
|
|
4138
|
+
/* @__PURE__ */ jsx135(Main, { open, children: /* @__PURE__ */ jsx135(
|
|
4139
|
+
Box12,
|
|
4140
|
+
{
|
|
4141
|
+
sx: {
|
|
4142
|
+
height: "100%",
|
|
4143
|
+
overflow: "auto"
|
|
4144
|
+
},
|
|
4145
|
+
children: traceId !== void 0 && /* @__PURE__ */ jsx135(ReactFlowProvider, { children: /* @__PURE__ */ jsx135(
|
|
4146
|
+
TraceGraph,
|
|
4147
|
+
{
|
|
4148
|
+
initialFocusEventId: spanId,
|
|
4149
|
+
onEventSelect: handleEventSelect,
|
|
4150
|
+
onRefresh: () => {
|
|
4151
|
+
void fetchSpans();
|
|
4152
|
+
},
|
|
4153
|
+
spans: {
|
|
4154
|
+
data: spans,
|
|
4155
|
+
error: fetchError,
|
|
4156
|
+
loading
|
|
4157
|
+
},
|
|
4158
|
+
viewPortPixelWidth
|
|
4159
|
+
}
|
|
4160
|
+
) })
|
|
4161
|
+
}
|
|
4162
|
+
) }),
|
|
4163
|
+
/* @__PURE__ */ jsx135(StyledDrawer, { anchor: "right", open, variant: "persistent", children: /* @__PURE__ */ jsx135(EventDetails, { selectedEvent }) })
|
|
4164
|
+
] })
|
|
4165
|
+
}
|
|
4166
|
+
)
|
|
4167
|
+
]
|
|
4152
4168
|
}
|
|
4153
4169
|
);
|
|
4154
4170
|
};
|