@localstack/appinspector-ui 1.0.198 → 1.0.199

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.js CHANGED
@@ -495,7 +495,7 @@ var require_parse = __commonJS({
495
495
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports, module) {
496
496
  "use strict";
497
497
  var SemVer = require_semver();
498
- var parse2 = (version, options, throwErrors = false) => {
498
+ var parse3 = (version, options, throwErrors = false) => {
499
499
  if (version instanceof SemVer) {
500
500
  return version;
501
501
  }
@@ -508,7 +508,7 @@ var require_parse = __commonJS({
508
508
  throw er;
509
509
  }
510
510
  };
511
- module.exports = parse2;
511
+ module.exports = parse3;
512
512
  }
513
513
  });
514
514
 
@@ -516,9 +516,9 @@ var require_parse = __commonJS({
516
516
  var require_valid = __commonJS({
517
517
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports, module) {
518
518
  "use strict";
519
- var parse2 = require_parse();
519
+ var parse3 = require_parse();
520
520
  var valid = (version, options) => {
521
- const v = parse2(version, options);
521
+ const v = parse3(version, options);
522
522
  return v ? v.version : null;
523
523
  };
524
524
  module.exports = valid;
@@ -529,9 +529,9 @@ var require_valid = __commonJS({
529
529
  var require_clean = __commonJS({
530
530
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports, module) {
531
531
  "use strict";
532
- var parse2 = require_parse();
532
+ var parse3 = require_parse();
533
533
  var clean = (version, options) => {
534
- const s = parse2(version.trim().replace(/^[=v]+/, ""), options);
534
+ const s = parse3(version.trim().replace(/^[=v]+/, ""), options);
535
535
  return s ? s.version : null;
536
536
  };
537
537
  module.exports = clean;
@@ -566,10 +566,10 @@ var require_inc = __commonJS({
566
566
  var require_diff = __commonJS({
567
567
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports, module) {
568
568
  "use strict";
569
- var parse2 = require_parse();
569
+ var parse3 = require_parse();
570
570
  var diff = (version1, version2) => {
571
- const v1 = parse2(version1, null, true);
572
- const v2 = parse2(version2, null, true);
571
+ const v1 = parse3(version1, null, true);
572
+ const v2 = parse3(version2, null, true);
573
573
  const comparison = v1.compare(v2);
574
574
  if (comparison === 0) {
575
575
  return null;
@@ -640,9 +640,9 @@ var require_patch = __commonJS({
640
640
  var require_prerelease = __commonJS({
641
641
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports, module) {
642
642
  "use strict";
643
- var parse2 = require_parse();
643
+ var parse3 = require_parse();
644
644
  var prerelease = (version, options) => {
645
- const parsed = parse2(version, options);
645
+ const parsed = parse3(version, options);
646
646
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
647
647
  };
648
648
  module.exports = prerelease;
@@ -828,7 +828,7 @@ var require_coerce = __commonJS({
828
828
  "node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports, module) {
829
829
  "use strict";
830
830
  var SemVer = require_semver();
831
- var parse2 = require_parse();
831
+ var parse3 = require_parse();
832
832
  var { safeRe: re, t } = require_re();
833
833
  var coerce = (version, options) => {
834
834
  if (version instanceof SemVer) {
@@ -863,7 +863,7 @@ var require_coerce = __commonJS({
863
863
  const patch = match[4] || "0";
864
864
  const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
865
865
  const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
866
- return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
866
+ return parse3(`${major}.${minor}.${patch}${prerelease}${build}`, options);
867
867
  };
868
868
  module.exports = coerce;
869
869
  }
@@ -1880,7 +1880,7 @@ var require_semver2 = __commonJS({
1880
1880
  var constants = require_constants();
1881
1881
  var SemVer = require_semver();
1882
1882
  var identifiers = require_identifiers();
1883
- var parse2 = require_parse();
1883
+ var parse3 = require_parse();
1884
1884
  var valid = require_valid();
1885
1885
  var clean = require_clean();
1886
1886
  var inc = require_inc();
@@ -1918,7 +1918,7 @@ var require_semver2 = __commonJS({
1918
1918
  var simplifyRange = require_simplify();
1919
1919
  var subset = require_subset();
1920
1920
  module.exports = {
1921
- parse: parse2,
1921
+ parse: parse3,
1922
1922
  valid,
1923
1923
  clean,
1924
1924
  inc,
@@ -2021,7 +2021,7 @@ var require_copy_to_clipboard = __commonJS({
2021
2021
  var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
2022
2022
  return message.replace(/#{\s*key\s*}/g, copyKey);
2023
2023
  }
2024
- function copy(text2, options) {
2024
+ function copy(text3, options) {
2025
2025
  var debug2, message, reselectPrevious, range, selection, mark, success = false;
2026
2026
  if (!options) {
2027
2027
  options = {};
@@ -2032,7 +2032,7 @@ var require_copy_to_clipboard = __commonJS({
2032
2032
  range = document.createRange();
2033
2033
  selection = document.getSelection();
2034
2034
  mark = document.createElement("span");
2035
- mark.textContent = text2;
2035
+ mark.textContent = text3;
2036
2036
  mark.ariaHidden = "true";
2037
2037
  mark.style.all = "unset";
2038
2038
  mark.style.position = "fixed";
@@ -2052,10 +2052,10 @@ var require_copy_to_clipboard = __commonJS({
2052
2052
  debug2 && console.warn("trying IE specific stuff");
2053
2053
  window.clipboardData.clearData();
2054
2054
  var format3 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting["default"];
2055
- window.clipboardData.setData(format3, text2);
2055
+ window.clipboardData.setData(format3, text3);
2056
2056
  } else {
2057
2057
  e2.clipboardData.clearData();
2058
- e2.clipboardData.setData(options.format, text2);
2058
+ e2.clipboardData.setData(options.format, text3);
2059
2059
  }
2060
2060
  }
2061
2061
  if (options.onCopy) {
@@ -2075,14 +2075,14 @@ var require_copy_to_clipboard = __commonJS({
2075
2075
  debug2 && console.error("unable to copy using execCommand: ", err);
2076
2076
  debug2 && console.warn("trying IE specific stuff");
2077
2077
  try {
2078
- window.clipboardData.setData(options.format || "text", text2);
2078
+ window.clipboardData.setData(options.format || "text", text3);
2079
2079
  options.onCopy && options.onCopy(window.clipboardData);
2080
2080
  success = true;
2081
2081
  } catch (err2) {
2082
2082
  debug2 && console.error("unable to copy using clipboardData: ", err2);
2083
2083
  debug2 && console.error("falling back to prompt");
2084
2084
  message = format2("message" in options ? options.message : defaultMessage);
2085
- window.prompt(message, text2);
2085
+ window.prompt(message, text3);
2086
2086
  }
2087
2087
  } finally {
2088
2088
  if (selection) {
@@ -2421,7 +2421,7 @@ var init_event_streams = __esm({
2421
2421
  });
2422
2422
 
2423
2423
  // src/pages/spans-list-page.tsx
2424
- import { Box as Box22, Paper as Paper2 } from "@mui/material";
2424
+ import { Box as Box23, Paper as Paper2 } from "@mui/material";
2425
2425
  import { useCallback as useCallback12, useEffect as useEffect22, useMemo as useMemo13, useRef as useRef19, useState as useState22 } from "react";
2426
2426
 
2427
2427
  // src/api/errors.ts
@@ -2491,8 +2491,10 @@ var EVENT_DETAILS_SERVICE_NAME_TEST_ID = "event-details-service-name";
2491
2491
  var EVENT_DETAILS_OPERATION_NAME_TEST_ID = "event-details-operation-name";
2492
2492
  var EVENT_DETAILS_CLOSE_BUTTON_TEST_ID = "event-details-close-button";
2493
2493
  var EVENT_DETAILS_HEADING_TEST_ID = "event-details-heading";
2494
- var EVENT_DETAILS_HEADING_DURATION_TEST_ID = "event-details-heading-duration";
2495
- var EVENT_DETAILS_STATUS_TEST_ID = "event-details-status";
2494
+ var EVENT_DETAILS_HEADING_STATUS_TEST_ID = "event-details-heading-status";
2495
+ var EVENT_DETAILS_HEADING_IAM_TEST_ID = "event-details-heading-iam";
2496
+ var EVENT_DETAILS_FUNCTION_ERROR_TEST_ID = "event-details-function-error";
2497
+ var EVENT_DETAILS_STACK_TRACE_TEST_ID = "event-details-stack-trace";
2496
2498
  var EVENT_DETAILS_RESOURCE_NAME_TEST_ID = "event-details-resource-name";
2497
2499
  var EVENT_DETAILS_RESOURCE_ARN_TEST_ID = "event-details-resource-arn";
2498
2500
  var EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID = "event-details-cfn-resource-type";
@@ -7161,12 +7163,12 @@ var isColorString = (type, testProp) => (v) => {
7161
7163
  var splitColor = (aName, bName, cName) => (v) => {
7162
7164
  if (!isString(v))
7163
7165
  return v;
7164
- const [a3, b3, c3, alpha6] = v.match(floatRegex);
7166
+ const [a3, b3, c3, alpha7] = v.match(floatRegex);
7165
7167
  return {
7166
7168
  [aName]: parseFloat(a3),
7167
7169
  [bName]: parseFloat(b3),
7168
7170
  [cName]: parseFloat(c3),
7169
- alpha: alpha6 !== void 0 ? parseFloat(alpha6) : 1
7171
+ alpha: alpha7 !== void 0 ? parseFloat(alpha7) : 1
7170
7172
  };
7171
7173
  };
7172
7174
 
@@ -8280,7 +8282,7 @@ function hueToRgb(p, q, t) {
8280
8282
  return p + (q - p) * (2 / 3 - t) * 6;
8281
8283
  return p;
8282
8284
  }
8283
- function hslaToRgba({ hue, saturation, lightness, alpha: alpha6 }) {
8285
+ function hslaToRgba({ hue, saturation, lightness, alpha: alpha7 }) {
8284
8286
  hue /= 360;
8285
8287
  saturation /= 100;
8286
8288
  lightness /= 100;
@@ -8300,7 +8302,7 @@ function hslaToRgba({ hue, saturation, lightness, alpha: alpha6 }) {
8300
8302
  red: Math.round(red * 255),
8301
8303
  green: Math.round(green * 255),
8302
8304
  blue: Math.round(blue * 255),
8303
- alpha: alpha6
8305
+ alpha: alpha7
8304
8306
  };
8305
8307
  }
8306
8308
 
@@ -13117,7 +13119,7 @@ var ResponsiveTimestampCell = memo3(({ date }) => {
13117
13119
 
13118
13120
  // src/dev-settings.tsx
13119
13121
  import * as React5 from "react";
13120
- var DEFAULT_DEV_SETTINGS = { requestTerms: "on", waterfallIssueBackgrounds: "on", waterfallLayout: "tree", waterfallStatusIcons: "first column" };
13122
+ var DEFAULT_DEV_SETTINGS = { operationStatus: "subtitle-chips", requestTerms: "on", waterfallIssueBackgrounds: "off", waterfallLayout: "tree", waterfallStatusIcons: "first column" };
13121
13123
  var DevSettingsContext = React5.createContext(DEFAULT_DEV_SETTINGS);
13122
13124
  var useDevSettings = () => React5.useContext(DevSettingsContext);
13123
13125
 
@@ -13171,7 +13173,7 @@ var setQueryValues = (query2, key, { excluded, included }) => {
13171
13173
  var removeExclusions = (query2) => (query2.match(TOKEN_PATTERN) ?? []).filter((token) => !isExclusion(token)).join(" ");
13172
13174
 
13173
13175
  // src/components/cells/downstream-cell.tsx
13174
- import { Cancel, Error as ErrorIcon, SubdirectoryArrowRight } from "@mui/icons-material";
13176
+ import { Cancel, GppMaybe, SubdirectoryArrowRight } from "@mui/icons-material";
13175
13177
  import { Box, Tooltip, Typography } from "@mui/material";
13176
13178
  import { alpha as alpha2 } from "@mui/material/styles";
13177
13179
 
@@ -13253,7 +13255,7 @@ var DownstreamCell = ({ downstream }) => {
13253
13255
  pluralize(downstream.count, "op")
13254
13256
  ] }),
13255
13257
  downstream.errors > 0 && /* @__PURE__ */ jsx4(IssueChip, { color: "error", count: downstream.errors, icon: /* @__PURE__ */ jsx4(Cancel, { sx: { fontSize: 12 } }) }),
13256
- downstream.warnings > 0 && /* @__PURE__ */ jsx4(IssueChip, { color: "warning", count: downstream.warnings, icon: /* @__PURE__ */ jsx4(ErrorIcon, { sx: { fontSize: 12 } }) })
13258
+ downstream.warnings > 0 && /* @__PURE__ */ jsx4(IssueChip, { color: "warning", count: downstream.warnings, icon: /* @__PURE__ */ jsx4(GppMaybe, { sx: { fontSize: 12 } }) })
13257
13259
  ] }) });
13258
13260
  };
13259
13261
 
@@ -15366,7 +15368,7 @@ var ServiceCell = memo7(({
15366
15368
  ServiceCell.displayName = "ServiceCell";
15367
15369
 
15368
15370
  // src/components/cells/status-cell.tsx
15369
- import { Cancel as Cancel2, Error as Error2 } from "@mui/icons-material";
15371
+ import { Cancel as Cancel2, GppMaybe as GppMaybe2 } from "@mui/icons-material";
15370
15372
  import { Box as Box3, Divider, Tooltip as Tooltip3, Typography as Typography3 } from "@mui/material";
15371
15373
 
15372
15374
  // src/utils/iam-utils.ts
@@ -15539,7 +15541,7 @@ var StatusIconWithTooltip = ({ span }) => {
15539
15541
  if (!error && !warning2) return /* @__PURE__ */ jsx125(Fragment2, {});
15540
15542
  return /* @__PURE__ */ jsx125(Tooltip3, { title: buildTooltipContent(span), children: /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "center", cursor: "default", display: "flex" }, children: [
15541
15543
  error && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx125(Cancel2, { sx: { color: "error.main" } }) }),
15542
- warning2 && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx125(Error2, { sx: { color: "warning.main" } }) })
15544
+ warning2 && /* @__PURE__ */ jsx125(Box3, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx125(GppMaybe2, { sx: { color: "warning.main" } }) })
15543
15545
  ] }) });
15544
15546
  };
15545
15547
 
@@ -15683,7 +15685,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15683
15685
  };
15684
15686
 
15685
15687
  // src/components/spans-list/spans-filter-bar.tsx
15686
- import { ArrowDropDown, Cancel as Cancel3, FilterList, Visibility, VisibilityOff, Error as WarningIcon } from "@mui/icons-material";
15688
+ import { ArrowDropDown, Cancel as Cancel3, FilterList, GppMaybe as GppMaybe3, Visibility, VisibilityOff } from "@mui/icons-material";
15687
15689
  import {
15688
15690
  Box as Box5,
15689
15691
  Button as Button2,
@@ -15861,7 +15863,7 @@ var StatusFilter = ({ counts, onChange, value }) => {
15861
15863
  /* @__PURE__ */ jsx127(StatusCount, { count: counts.error, "data-testid": ERROR_COUNT_TEST_ID })
15862
15864
  ] }),
15863
15865
  /* @__PURE__ */ jsxs122(ToggleButton, { value: "warning", children: [
15864
- /* @__PURE__ */ jsx127(WarningIcon, { sx: { color: "warning.main", fontSize: 16 } }),
15866
+ /* @__PURE__ */ jsx127(GppMaybe3, { sx: { color: "warning.main", fontSize: 16 } }),
15865
15867
  "Warnings",
15866
15868
  /* @__PURE__ */ jsx127(StatusCount, { count: counts.warning, "data-testid": WARNING_COUNT_TEST_ID })
15867
15869
  ] })
@@ -16745,13 +16747,13 @@ var getTraceBounds = (spans) => {
16745
16747
 
16746
16748
  // src/components/trace-panel/trace-sidebar.tsx
16747
16749
  import { Close as Close4 } from "@mui/icons-material";
16748
- import { Box as Box20, IconButton as IconButton8, ToggleButton as ToggleButton3, ToggleButtonGroup as ToggleButtonGroup3, Typography as Typography15 } from "@mui/material";
16750
+ import { Box as Box21, IconButton as IconButton8, ToggleButton as ToggleButton3, ToggleButtonGroup as ToggleButtonGroup3, Typography as Typography16 } from "@mui/material";
16749
16751
  import { ReactFlowProvider } from "@xyflow/react";
16750
16752
  import * as React125 from "react";
16751
16753
 
16752
16754
  // src/components/event-details/event-details.tsx
16753
- import { Cancel as Cancel5, Close as Close3, Error as ErrorIcon3 } from "@mui/icons-material";
16754
- import { Alert as Alert4, Box as Box16, Chip as Chip3, FormControlLabel, IconButton as IconButton6, Stack as Stack4, Switch, Tab, Tabs, Typography as Typography12 } from "@mui/material";
16755
+ import { Cancel as Cancel6, Close as Close3, GppBad as GppBad2, GppMaybe as GppMaybe7 } from "@mui/icons-material";
16756
+ import { Alert as Alert4, Box as Box17, FormControlLabel, IconButton as IconButton6, Stack as Stack4, Switch, Tab, Tabs, Typography as Typography13 } from "@mui/material";
16755
16757
  import { useMemo as useMemo10, useState as useState13 } from "react";
16756
16758
 
16757
16759
  // src/utils/event-utils.ts
@@ -16861,6 +16863,37 @@ var getEventGroupsByType = (events) => {
16861
16863
  return groups;
16862
16864
  };
16863
16865
 
16866
+ // src/utils/lambda-function-error.ts
16867
+ var parse2 = (value) => {
16868
+ if (typeof value !== "string") return value;
16869
+ try {
16870
+ return JSON.parse(value);
16871
+ } catch {
16872
+ return value;
16873
+ }
16874
+ };
16875
+ var text2 = (value) => {
16876
+ if (value === void 0 || value === null || value === "") return void 0;
16877
+ return typeof value === "string" ? value : JSON.stringify(value);
16878
+ };
16879
+ var getLambdaFunctionError = (response) => {
16880
+ const parsed = parse2(response);
16881
+ if (!parsed || typeof parsed !== "object" || !("FunctionError" in parsed) || typeof parsed.FunctionError !== "string") {
16882
+ return void 0;
16883
+ }
16884
+ const payload = "Payload" in parsed ? parse2(parsed.Payload) : void 0;
16885
+ const error = payload && typeof payload === "object" ? payload : {};
16886
+ const stackTrace = Array.isArray(error.stackTrace) && error.stackTrace.length > 0 ? error.stackTrace.map((frame2) => String(frame2).replace(/\n$/, "")).join("\n") : void 0;
16887
+ return {
16888
+ // A runtime that returns a non-JSON payload: show it as the message.
16889
+ errorMessage: text2(error.errorMessage) ?? (typeof payload === "string" ? text2(payload) : void 0),
16890
+ errorType: text2(error.errorType),
16891
+ functionError: parsed.FunctionError,
16892
+ requestId: text2(error.requestId),
16893
+ stackTrace
16894
+ };
16895
+ };
16896
+
16864
16897
  // src/utils/time.ts
16865
16898
  function unixNanoToDate(unixNanoString) {
16866
16899
  const milliseconds = unixNanoToMilliseconds(unixNanoString);
@@ -16880,8 +16913,8 @@ import { jsx as jsx131 } from "react/jsx-runtime";
16880
16913
  var CopyButton = ({ value }) => {
16881
16914
  const [copied, setCopied] = useState8(false);
16882
16915
  const handleCopy = useCallback3(() => {
16883
- const text2 = typeof value === "string" ? value : JSON.stringify(value, void 0, 2);
16884
- void navigator.clipboard.writeText(text2).then(() => {
16916
+ const text3 = typeof value === "string" ? value : JSON.stringify(value, void 0, 2);
16917
+ void navigator.clipboard.writeText(text3).then(() => {
16885
16918
  setCopied(true);
16886
16919
  setTimeout(() => {
16887
16920
  setCopied(false);
@@ -16906,7 +16939,7 @@ import { Box as Box14, IconButton as IconButton5, Typography as Typography10 } f
16906
16939
  import { useEffect as useEffect12, useMemo as useMemo7, useRef as useRef8, useState as useState10 } from "react";
16907
16940
 
16908
16941
  // src/components/status-icon.tsx
16909
- import { Cancel as Cancel4, CheckCircle, Error as Error3, Info } from "@mui/icons-material";
16942
+ import { Cancel as Cancel4, CheckCircle, GppMaybe as GppMaybe4, Info } from "@mui/icons-material";
16910
16943
  import { Box as Box9 } from "@mui/material";
16911
16944
  import { jsx as jsx132 } from "react/jsx-runtime";
16912
16945
  var StatusIcon = ({ errorLevel }) => {
@@ -16919,7 +16952,7 @@ var StatusIcon = ({ errorLevel }) => {
16919
16952
  }
16920
16953
  case EventLevel.LevelPermission:
16921
16954
  case EventLevel.LevelWarning: {
16922
- return /* @__PURE__ */ jsx132(Error3, { sx: { color: "orange" } });
16955
+ return /* @__PURE__ */ jsx132(GppMaybe4, { sx: { color: "orange" } });
16923
16956
  }
16924
16957
  default: {
16925
16958
  return /* @__PURE__ */ jsx132(CheckCircle, { sx: { color: "lightgray" } });
@@ -16928,7 +16961,7 @@ var StatusIcon = ({ errorLevel }) => {
16928
16961
  };
16929
16962
 
16930
16963
  // src/components/event-details/iam-event-detail.tsx
16931
- import { CheckCircle as CheckCircle2, Error as ErrorIcon2, Warning } from "@mui/icons-material";
16964
+ import { CheckCircle as CheckCircle2, Error as ErrorIcon, GppMaybe as GppMaybe5 } from "@mui/icons-material";
16932
16965
  import { Box as Box10, Chip, Typography as Typography8 } from "@mui/material";
16933
16966
  import { jsx as jsx133, jsxs as jsxs126 } from "react/jsx-runtime";
16934
16967
  var DetailRow = ({ content, label }) => /* @__PURE__ */ jsxs126(Box10, { sx: { display: "grid", gap: 1, gridTemplateColumns: "72px 1fr", mb: 0.5 }, children: [
@@ -16941,10 +16974,10 @@ var PermissionIcon = ({ status }) => {
16941
16974
  return /* @__PURE__ */ jsx133(CheckCircle2, { sx: { color: "success.main", fontSize: "1rem" } });
16942
16975
  }
16943
16976
  case "explicitly_denied": {
16944
- return /* @__PURE__ */ jsx133(ErrorIcon2, { sx: { color: "error.main", fontSize: "1rem" } });
16977
+ return /* @__PURE__ */ jsx133(ErrorIcon, { sx: { color: "error.main", fontSize: "1rem" } });
16945
16978
  }
16946
16979
  case "implicitly_denied": {
16947
- return /* @__PURE__ */ jsx133(Warning, { sx: { color: "warning.main", fontSize: "1rem" } });
16980
+ return /* @__PURE__ */ jsx133(GppMaybe5, { sx: { color: "warning.main", fontSize: "1rem" } });
16948
16981
  }
16949
16982
  }
16950
16983
  };
@@ -17008,15 +17041,10 @@ var IAMEventDetail = ({ event }) => {
17008
17041
  };
17009
17042
 
17010
17043
  // src/components/event-details/iam-permission-detail.tsx
17011
- import { Box as Box11, Chip as Chip2, Stack as Stack2, Typography as Typography9 } from "@mui/material";
17044
+ import { Box as Box11, Stack as Stack2, Typography as Typography9 } from "@mui/material";
17012
17045
  import { useMemo as useMemo5 } from "react";
17013
17046
  import { jsx as jsx134, jsxs as jsxs127 } from "react/jsx-runtime";
17014
- var getChipColor = (isAllowed, spanStatusCode) => {
17015
- if (isAllowed) return "success.main";
17016
- if (spanStatusCode === 2) return "error.main";
17017
- return "warning.main";
17018
- };
17019
- var IAMPermissionItem = ({ event, spanStatusCode }) => {
17047
+ var IAMPermissionItem = ({ event }) => {
17020
17048
  const parsedData = useMemo5(() => {
17021
17049
  const payloadString = event.attributes?.payload;
17022
17050
  if (!payloadString) return;
@@ -17028,36 +17056,31 @@ var IAMPermissionItem = ({ event, spanStatusCode }) => {
17028
17056
  return null;
17029
17057
  }
17030
17058
  const { parsedIAM } = parsedData;
17031
- const isAllowed = parsedIAM.permission === "explicitly_allowed";
17032
- const chipColors = { backgroundColor: getChipColor(isAllowed, spanStatusCode), color: "white" };
17033
- return /* @__PURE__ */ jsxs127(Box11, { sx: { mb: 0.5 }, children: [
17034
- /* @__PURE__ */ jsx134(Box11, { sx: { alignItems: "center", display: "flex", gap: 1, mb: 0.5 }, children: /* @__PURE__ */ jsx134(Chip2, { label: formatPermissionStatus(parsedIAM.permission), size: "small", sx: { ...chipColors, fontWeight: 500 } }) }),
17035
- /* @__PURE__ */ jsxs127(Stack2, { spacing: 1, children: [
17036
- /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
17037
- /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
17038
- /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17039
- /* @__PURE__ */ jsx134(Typography9, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
17040
- /* @__PURE__ */ jsx134(CopyButton, { value: parsedIAM.principal })
17041
- ] })
17042
- ] }),
17043
- parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
17044
- /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
17045
- parsedIAM.details.actions.map((action) => /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17046
- /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block" }, variant: "body2", children: action }),
17047
- /* @__PURE__ */ jsx134(CopyButton, { value: action })
17048
- ] }, action))
17049
- ] }),
17050
- parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
17051
- /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
17052
- parsedIAM.details.resources.map((resource) => /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17053
- /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
17054
- /* @__PURE__ */ jsx134(CopyButton, { value: resource })
17055
- ] }, resource))
17059
+ return /* @__PURE__ */ jsx134(Box11, { sx: { mb: 0.5 }, children: /* @__PURE__ */ jsxs127(Stack2, { spacing: 1, children: [
17060
+ /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
17061
+ /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
17062
+ /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17063
+ /* @__PURE__ */ jsx134(Typography9, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
17064
+ /* @__PURE__ */ jsx134(CopyButton, { value: parsedIAM.principal })
17056
17065
  ] })
17066
+ ] }),
17067
+ parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
17068
+ /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
17069
+ parsedIAM.details.actions.map((action) => /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17070
+ /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block" }, variant: "body2", children: action }),
17071
+ /* @__PURE__ */ jsx134(CopyButton, { value: action })
17072
+ ] }, action))
17073
+ ] }),
17074
+ parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
17075
+ /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
17076
+ parsedIAM.details.resources.map((resource) => /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17077
+ /* @__PURE__ */ jsx134(Typography9, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
17078
+ /* @__PURE__ */ jsx134(CopyButton, { value: resource })
17079
+ ] }, resource))
17057
17080
  ] })
17058
- ] });
17081
+ ] }) });
17059
17082
  };
17060
- var IAMPermissionDetail = ({ events, spanStatusCode }) => /* @__PURE__ */ jsx134(Box11, { children: events.map((event) => /* @__PURE__ */ jsx134(IAMPermissionItem, { event, spanStatusCode }, `${event.span_id}-${event.event_id}`)) });
17083
+ var IAMPermissionDetail = ({ events }) => /* @__PURE__ */ jsx134(Box11, { children: events.map((event) => /* @__PURE__ */ jsx134(IAMPermissionItem, { event }, `${event.span_id}-${event.event_id}`)) });
17061
17084
 
17062
17085
  // src/components/event-details/payload-viewer.tsx
17063
17086
  import { Box as Box13, useTheme as useTheme3 } from "@mui/material";
@@ -18998,11 +19021,10 @@ var getEventLevelFromGroup = (group3) => {
18998
19021
  var EventDetail = ({
18999
19022
  displayText,
19000
19023
  events,
19001
- spanStatusCode,
19002
19024
  type
19003
19025
  }) => {
19004
19026
  if (type === "permission") {
19005
- return /* @__PURE__ */ jsx137(IAMPermissionDetail, { events, spanStatusCode });
19027
+ return /* @__PURE__ */ jsx137(IAMPermissionDetail, { events });
19006
19028
  }
19007
19029
  const eventLevel = getEventLevelFromGroup(type);
19008
19030
  return /* @__PURE__ */ jsxs129(Box14, { children: [
@@ -26023,7 +26045,7 @@ var ProtocolLib = class {
26023
26045
  if (output !== void 0 && queryErrorHeader != null) {
26024
26046
  const [Code, Type] = queryErrorHeader.split(";");
26025
26047
  const keys = Object.keys(output);
26026
- const Error4 = {
26048
+ const Error2 = {
26027
26049
  Code,
26028
26050
  Type
26029
26051
  };
@@ -26031,10 +26053,10 @@ var ProtocolLib = class {
26031
26053
  output.Type = Type;
26032
26054
  for (let i2 = 0; i2 < keys.length; i2++) {
26033
26055
  const k2 = keys[i2];
26034
- Error4[k2 === "message" ? "Message" : k2] = output[k2];
26056
+ Error2[k2 === "message" ? "Message" : k2] = output[k2];
26035
26057
  }
26036
- delete Error4.__type;
26037
- output.Error = Error4;
26058
+ delete Error2.__type;
26059
+ output.Error = Error2;
26038
26060
  }
26039
26061
  }
26040
26062
  queryCompatOutput(queryCompatErrorData, errorData) {
@@ -31123,10 +31145,10 @@ UAItem.prototype.parseCH = function() {
31123
31145
  break;
31124
31146
  case RESULT2:
31125
31147
  var data = this.data;
31126
- var parse2 = function(itemType) {
31148
+ var parse3 = function(itemType) {
31127
31149
  return data[itemType].getItem().setCH(uaCH).parseCH().get();
31128
31150
  };
31129
- this.set(BROWSER, parse2(BROWSER)).set(CPU, parse2(CPU)).set(DEVICE, parse2(DEVICE)).set(ENGINE, parse2(ENGINE)).set(OS, parse2(OS));
31151
+ this.set(BROWSER, parse3(BROWSER)).set(CPU, parse3(CPU)).set(DEVICE, parse3(DEVICE)).set(ENGINE, parse3(ENGINE)).set(OS, parse3(OS));
31130
31152
  }
31131
31153
  return this;
31132
31154
  };
@@ -31418,8 +31440,110 @@ var LambdaInvokeLogsSection = ({ endTimeNano, functionName: functionName2, regio
31418
31440
  return /* @__PURE__ */ jsx141(Box15, { sx: { backgroundColor: (theme) => theme.palette.background.default, borderRadius: 1, p: 1 }, children: /* @__PURE__ */ jsx141("pre", { style: { margin: 0, overflow: "auto" }, children: logs.map((log) => /* @__PURE__ */ jsx141(Typography11, { variant: "body2", children: `[${log.timestamp}] ${log.message}` }, log.ptr)) }) });
31419
31441
  };
31420
31442
 
31443
+ // src/components/event-details/operation-status-badges.tsx
31444
+ import { Cancel as Cancel5, CheckCircle as CheckCircle3, GppBad, GppGood, GppMaybe as GppMaybe6, HelpOutline } from "@mui/icons-material";
31445
+ import { alpha as alpha5, Box as Box16, ButtonBase, Chip as Chip2, darken, lighten, Tooltip as Tooltip6, Typography as Typography12 } from "@mui/material";
31446
+ import { jsx as jsx142, jsxs as jsxs131 } from "react/jsx-runtime";
31447
+ var IAM = {
31448
+ allowed: { color: "success", icon: GppGood, label: "IAM allowed", title: "IAM allowed the call" },
31449
+ denied: { color: "error", icon: GppBad, label: "IAM denied", title: "IAM denied and blocked the call" },
31450
+ suppressed: { color: "text", icon: HelpOutline, label: "IAM hidden", title: "IAM results are hidden: upgrade your license to view" },
31451
+ warning: { color: "warning", icon: GppMaybe6, label: "IAM warning", title: "IAM denied the call, but enforcement is off, so it went through" }
31452
+ };
31453
+ var sentenceCase = (text3) => text3.charAt(0) + text3.slice(1).toLowerCase();
31454
+ var paletteColor = (color2) => color2 === "text" ? "text.secondary" : `${color2}.main`;
31455
+ var tint = (color2) => ({
31456
+ bgcolor: (theme) => color2 === "text" ? theme.palette.action.hover : alpha5(theme.palette[color2].main, 0.12),
31457
+ borderRadius: 1,
31458
+ color: (theme) => {
31459
+ if (color2 === "text") return theme.palette.text.primary;
31460
+ const main = theme.palette[color2].main;
31461
+ return theme.palette.mode === "dark" ? lighten(main, 0.55) : darken(main, 0.45);
31462
+ },
31463
+ px: 0.75,
31464
+ py: 0.25
31465
+ });
31466
+ var clickable = (onClick, isTinted) => onClick === void 0 ? {} : {
31467
+ component: ButtonBase,
31468
+ onClick,
31469
+ sx: { "&:hover": isTinted ? { filter: "brightness(1.15)" } : { textDecoration: "underline" }, "borderRadius": 1, "cursor": "pointer", "font": "inherit" }
31470
+ };
31471
+ var OperationStatusBadges = ({ iam, iamPermission, onIamClick, onStatusClick, status, statusLabel, variant }) => {
31472
+ const isError = status === "error";
31473
+ const statusText = isError ? statusLabel ?? "Error" : "OK";
31474
+ const StatusIcon2 = isError ? Cancel5 : CheckCircle3;
31475
+ const statusColor = isError ? "error" : "success";
31476
+ const iamStyle = iam === void 0 ? void 0 : IAM[iam];
31477
+ const iamPrefix = variant === "subtitle-chips" ? "" : "IAM \u2022 ";
31478
+ const iamLabel = iamPermission === void 0 || iam === "suppressed" ? iamStyle?.label : `${iamPrefix}${sentenceCase(formatPermissionStatus(iamPermission))}`;
31479
+ const showStatus = status !== "unset";
31480
+ if (variant === "chips") {
31481
+ return /* @__PURE__ */ jsxs131(Box16, { sx: { display: "flex", flex: "none", gap: 0.5 }, children: [
31482
+ showStatus && /* @__PURE__ */ jsx142(
31483
+ Chip2,
31484
+ {
31485
+ color: statusColor,
31486
+ "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
31487
+ icon: /* @__PURE__ */ jsx142(StatusIcon2, {}),
31488
+ label: statusText,
31489
+ size: "small",
31490
+ variant: "outlined"
31491
+ }
31492
+ ),
31493
+ iamStyle && /* @__PURE__ */ jsx142(Tooltip6, { title: iamStyle.title, children: /* @__PURE__ */ jsx142(
31494
+ Chip2,
31495
+ {
31496
+ color: iamStyle.color === "text" ? "default" : iamStyle.color,
31497
+ "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
31498
+ icon: /* @__PURE__ */ jsx142(iamStyle.icon, {}),
31499
+ label: iamLabel,
31500
+ size: "small",
31501
+ variant: "outlined"
31502
+ }
31503
+ ) })
31504
+ ] });
31505
+ }
31506
+ if (variant === "icons") {
31507
+ return /* @__PURE__ */ jsxs131(Box16, { sx: { alignItems: "center", display: "flex", flex: "none", gap: 0.25 }, children: [
31508
+ showStatus && /* @__PURE__ */ jsx142(Tooltip6, { title: isError ? `Failed: ${statusText}` : "Succeeded", children: /* @__PURE__ */ jsx142(StatusIcon2, { color: statusColor, "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID, fontSize: "small" }) }),
31509
+ iamStyle && /* @__PURE__ */ jsx142(Tooltip6, { title: iamStyle.title, children: /* @__PURE__ */ jsx142(iamStyle.icon, { "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID, fontSize: "small", sx: { color: paletteColor(iamStyle.color) } }) })
31510
+ ] });
31511
+ }
31512
+ const isTinted = variant === "subtitle-chips";
31513
+ if (!showStatus && !iamStyle) {
31514
+ return null;
31515
+ }
31516
+ return /* @__PURE__ */ jsxs131(Box16, { sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
31517
+ showStatus && /* @__PURE__ */ jsxs131(
31518
+ Box16,
31519
+ {
31520
+ "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
31521
+ ...clickable(onStatusClick, isTinted),
31522
+ sx: { alignItems: "center", color: `${statusColor}.main`, display: "flex", gap: 0.5, minWidth: 0, ...clickable(onStatusClick, isTinted).sx, ...isTinted ? tint(statusColor) : {} },
31523
+ children: [
31524
+ /* @__PURE__ */ jsx142(StatusIcon2, { sx: { color: isTinted ? `${statusColor}.main` : void 0, fontSize: 14 } }),
31525
+ /* @__PURE__ */ jsx142(Typography12, { color: isTinted ? "inherit" : void 0, noWrap: true, variant: "caption", children: isError ? `Failed \xB7 ${statusText}` : "Succeeded" })
31526
+ ]
31527
+ }
31528
+ ),
31529
+ showStatus && iamStyle && !isTinted && /* @__PURE__ */ jsx142(Typography12, { color: "text.disabled", variant: "caption", children: "|" }),
31530
+ iamStyle && /* @__PURE__ */ jsxs131(
31531
+ Box16,
31532
+ {
31533
+ "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
31534
+ ...clickable(onIamClick, isTinted),
31535
+ sx: { alignItems: "center", color: paletteColor(iamStyle.color), display: "flex", flex: "none", gap: 0.5, ...clickable(onIamClick, isTinted).sx, ...isTinted ? tint(iamStyle.color) : {} },
31536
+ children: [
31537
+ /* @__PURE__ */ jsx142(iamStyle.icon, { sx: { color: isTinted ? paletteColor(iamStyle.color) : void 0, fontSize: 14 } }),
31538
+ /* @__PURE__ */ jsx142(Typography12, { color: isTinted ? "inherit" : void 0, variant: "caption", children: iamLabel })
31539
+ ]
31540
+ }
31541
+ )
31542
+ ] });
31543
+ };
31544
+
31421
31545
  // src/components/event-details/event-details.tsx
31422
- import { Fragment as Fragment10, jsx as jsx142, jsxs as jsxs131 } from "react/jsx-runtime";
31546
+ import { Fragment as Fragment10, jsx as jsx143, jsxs as jsxs132 } from "react/jsx-runtime";
31423
31547
  var checkIsLambdaInvoke = (span) => {
31424
31548
  if (span.service_name !== "lambda") {
31425
31549
  return false;
@@ -31433,14 +31557,17 @@ var checkIsSqsSendMessage = (span) => {
31433
31557
  }
31434
31558
  return span.operation_name.startsWith("SendMessage");
31435
31559
  };
31436
- var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ jsxs131(Box16, { children: [
31437
- /* @__PURE__ */ jsx142(Typography12, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
31438
- /* @__PURE__ */ jsxs131(Stack4, { alignItems: "center", "data-testid": testIdOn === "row" ? testId : void 0, direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31439
- /* @__PURE__ */ jsx142(Typography12, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
31440
- /* @__PURE__ */ jsx142(CopyButton, { value: copy ?? children })
31560
+ var PERMISSION_SEVERITY = ["explicitly_denied", "implicitly_denied", "explicitly_allowed"];
31561
+ var getWorstPermission = (events) => PERMISSION_SEVERITY.find((permission) => events.some((event) => event.permission === permission));
31562
+ var IAM_OUTCOME = { allowed: "allowed", error: "denied", none: void 0, warning: "warning" };
31563
+ var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ jsxs132(Box17, { children: [
31564
+ /* @__PURE__ */ jsx143(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
31565
+ /* @__PURE__ */ jsxs132(Stack4, { alignItems: "center", "data-testid": testIdOn === "row" ? testId : void 0, direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31566
+ /* @__PURE__ */ jsx143(Typography13, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
31567
+ /* @__PURE__ */ jsx143(CopyButton, { value: copy ?? children })
31441
31568
  ] })
31442
31569
  ] });
31443
- var EmptyTab = ({ children }) => /* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", variant: "body2", children });
31570
+ var EmptyTab = ({ children }) => /* @__PURE__ */ jsx143(Typography13, { color: "text.secondary", variant: "body2", children });
31444
31571
  var EventDetails = ({ onClose, selectedEvent }) => {
31445
31572
  const eventGroups = useMemo10(
31446
31573
  () => getEventGroupsByType(selectedEvent?.events ?? []),
@@ -31448,8 +31575,9 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31448
31575
  );
31449
31576
  const [parseNestedJson, setParseNestedJson] = useState13(true);
31450
31577
  const [tab, setTab] = useState13("details");
31578
+ const { operationStatus: variant } = useDevSettings();
31451
31579
  if (!selectedEvent) {
31452
- return /* @__PURE__ */ jsx142(Box16, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
31580
+ return /* @__PURE__ */ jsx143(Box17, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ jsx143(Typography13, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
31453
31581
  }
31454
31582
  const isLambdaInvoke = checkIsLambdaInvoke(selectedEvent);
31455
31583
  const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
@@ -31475,27 +31603,48 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31475
31603
  }
31476
31604
  }
31477
31605
  const exceptionPayload = tryParseJson(selectedEvent.attributes?.["localstack.aws.service.exception"]);
31606
+ const functionError = isLambdaInvoke ? getLambdaFunctionError(selectedEvent.attributes?.["localstack.aws.service.response"]) : void 0;
31607
+ const errorType = functionError?.errorType ?? issues.errorType;
31478
31608
  const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
31479
31609
  const resource = shortResourceName(selectedEvent.resource_name, selectedEvent.arn);
31480
31610
  const showError = issues.error;
31481
31611
  const showPermissions = selectedEvent.iam_errors_suppressed === true || eventGroups.permissions !== void 0;
31482
31612
  const showLogs = isLambdaInvoke && requestId !== void 0;
31483
31613
  const activeTab = tab === "error" && !showError || tab === "permissions" && !showPermissions || tab === "logs" && !showLogs ? "details" : tab;
31484
- const errorMessages = [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !== issues.errorType);
31485
- const rawDataSwitch = /* @__PURE__ */ jsx142(
31614
+ const errorMessages = functionError?.errorMessage === void 0 ? [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !== errorType) : [functionError.errorMessage];
31615
+ const iamEvents = getIamEvents(selectedEvent);
31616
+ const iamPermission = getWorstPermission(iamEvents);
31617
+ const iamOutcome = selectedEvent.iam_errors_suppressed === true ? "suppressed" : IAM_OUTCOME[iam.level ?? (iamEvents.length > 0 ? "allowed" : "none")];
31618
+ const statusBadges = /* @__PURE__ */ jsx143(
31619
+ OperationStatusBadges,
31620
+ {
31621
+ iam: iamOutcome,
31622
+ iamPermission,
31623
+ onIamClick: showPermissions ? () => {
31624
+ setTab("permissions");
31625
+ } : void 0,
31626
+ onStatusClick: () => {
31627
+ setTab(showError ? "error" : "response");
31628
+ },
31629
+ status: issues.error ? "error" : selectedEvent.status_code === 1 ? "ok" : "unset",
31630
+ statusLabel: errorType,
31631
+ variant
31632
+ }
31633
+ );
31634
+ const rawDataSwitch = /* @__PURE__ */ jsx143(
31486
31635
  FormControlLabel,
31487
31636
  {
31488
- control: /* @__PURE__ */ jsx142(Switch, { checked: !parseNestedJson, onChange: (event) => {
31637
+ control: /* @__PURE__ */ jsx143(Switch, { checked: !parseNestedJson, onChange: (event) => {
31489
31638
  setParseNestedJson(!event.target.checked);
31490
31639
  }, size: "small" }),
31491
- label: /* @__PURE__ */ jsx142(Typography12, { variant: "caption", children: "View raw data" }),
31640
+ label: /* @__PURE__ */ jsx143(Typography13, { variant: "caption", children: "View raw data" }),
31492
31641
  sx: { mb: 1, mr: 0 }
31493
31642
  }
31494
31643
  );
31495
- const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ jsx142(Cancel5, { color: "error", fontSize: "small" }) : iam.level === "warning" ? /* @__PURE__ */ jsx142(ErrorIcon3, { color: "warning", fontSize: "small" }) : void 0;
31496
- return /* @__PURE__ */ jsxs131(Box16, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
31497
- /* @__PURE__ */ jsxs131(
31498
- Box16,
31644
+ const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ jsx143(GppBad2, { color: "error", sx: { fontSize: 16 } }) : iam.level === "warning" ? /* @__PURE__ */ jsx143(GppMaybe7, { color: "warning", sx: { fontSize: 16 } }) : void 0;
31645
+ return /* @__PURE__ */ jsxs132(Box17, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
31646
+ /* @__PURE__ */ jsxs132(
31647
+ Box17,
31499
31648
  {
31500
31649
  sx: {
31501
31650
  alignItems: "center",
@@ -31507,22 +31656,21 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31507
31656
  py: 1
31508
31657
  },
31509
31658
  children: [
31510
- /* @__PURE__ */ jsxs131(Box16, { sx: { flex: 1, minWidth: 0 }, children: [
31511
- /* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
31512
- /* @__PURE__ */ jsxs131(Box16, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
31513
- /* @__PURE__ */ jsx142(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
31514
- /* @__PURE__ */ jsx142(Typography12, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
31515
- resource !== "" && resource !== "*" && /* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource }),
31516
- duration !== void 0 && // A fixed box, so a screenshot can mask the varying value without the mask edge moving.
31517
- /* @__PURE__ */ jsx142(Typography12, { color: "text.secondary", "data-testid": EVENT_DETAILS_HEADING_DURATION_TEST_ID, sx: { flex: "none", ml: "auto", textAlign: "right", width: 64 }, variant: "body2", children: formatDuration(Number(duration)) })
31659
+ /* @__PURE__ */ jsxs132(Box17, { sx: { containerType: "inline-size", flex: 1, minWidth: 0 }, children: [
31660
+ /* @__PURE__ */ jsx143(Typography13, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
31661
+ /* @__PURE__ */ jsxs132(Box17, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { "@container (min-width: 560px)": { flexWrap: "nowrap" }, "alignItems": "center", "columnGap": 1, "display": "flex", "flexWrap": variant.startsWith("subtitle") ? "wrap" : "nowrap", "minWidth": 0 }, children: [
31662
+ /* @__PURE__ */ jsx143(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
31663
+ /* @__PURE__ */ jsx143(Typography13, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: selectedEvent.operation_name, variant: "subtitle1", children: selectedEvent.operation_name }),
31664
+ /* @__PURE__ */ jsx143(Box17, { sx: variant.startsWith("subtitle") ? { "@container (min-width: 560px)": { flexBasis: "auto", order: 0 }, "display": "flex", "flex": "none", "flexBasis": "100%", "order": 1 } : { display: "flex", flex: "none" }, children: statusBadges }),
31665
+ resource !== "" && resource !== "*" && /* @__PURE__ */ jsx143(Typography13, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource })
31518
31666
  ] })
31519
31667
  ] }),
31520
- onClose && /* @__PURE__ */ jsx142(IconButton6, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx142(Close3, {}) })
31668
+ onClose && /* @__PURE__ */ jsx143(IconButton6, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx143(Close3, {}) })
31521
31669
  ]
31522
31670
  }
31523
31671
  ),
31524
- /* @__PURE__ */ jsxs131(Box16, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
31525
- /* @__PURE__ */ jsxs131(
31672
+ /* @__PURE__ */ jsxs132(Box17, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
31673
+ /* @__PURE__ */ jsxs132(
31526
31674
  Tabs,
31527
31675
  {
31528
31676
  onChange: (_event, value) => {
@@ -31542,87 +31690,94 @@ var EventDetails = ({ onClose, selectedEvent }) => {
31542
31690
  value: activeTab,
31543
31691
  variant: "scrollable",
31544
31692
  children: [
31545
- /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
31546
- /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "request" }),
31547
- /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
31548
- showError && /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ jsx142(Cancel5, { color: "error", fontSize: "small" }), iconPosition: "end", label: "Error", value: "error" }),
31549
- showPermissions && /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
31550
- showLogs && /* @__PURE__ */ jsx142(Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" })
31693
+ /* @__PURE__ */ jsx143(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
31694
+ /* @__PURE__ */ jsx143(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "request" }),
31695
+ /* @__PURE__ */ jsx143(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
31696
+ showError && /* @__PURE__ */ jsx143(Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ jsx143(Cancel6, { color: "error", sx: { fontSize: 16 } }), iconPosition: "end", label: "Error", value: "error" }),
31697
+ showPermissions && /* @__PURE__ */ jsx143(Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
31698
+ showLogs && /* @__PURE__ */ jsx143(Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" })
31551
31699
  ]
31552
31700
  }
31553
31701
  ),
31554
- /* @__PURE__ */ jsxs131(Box16, { sx: { p: 2 }, children: [
31555
- activeTab === "details" && /* @__PURE__ */ jsxs131(Stack4, { spacing: 2, children: [
31556
- /* @__PURE__ */ jsxs131(Stack4, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
31557
- /* @__PURE__ */ jsxs131(Box16, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31558
- /* @__PURE__ */ jsx142(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
31559
- /* @__PURE__ */ jsx142(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: selectedEvent.operation_name })
31702
+ /* @__PURE__ */ jsxs132(Box17, { sx: { p: 2 }, children: [
31703
+ activeTab === "details" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
31704
+ /* @__PURE__ */ jsxs132(Stack4, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
31705
+ /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31706
+ /* @__PURE__ */ jsx143(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
31707
+ /* @__PURE__ */ jsx143(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: selectedEvent.operation_name })
31560
31708
  ] }),
31561
- /* @__PURE__ */ jsxs131(Box16, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
31562
- /* @__PURE__ */ jsx142(Field, { label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name }),
31563
- Boolean(cfnResourceType) && /* @__PURE__ */ jsx142(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
31709
+ /* @__PURE__ */ jsxs132(Box17, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
31710
+ /* @__PURE__ */ jsx143(Field, { label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name }),
31711
+ Boolean(cfnResourceType) && /* @__PURE__ */ jsx143(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
31564
31712
  ] }),
31565
- Boolean(resourceArn) && /* @__PURE__ */ jsx142(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
31566
- /* @__PURE__ */ jsxs131(Box16, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
31567
- /* @__PURE__ */ jsx142(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
31568
- /* @__PURE__ */ jsx142(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
31713
+ Boolean(resourceArn) && /* @__PURE__ */ jsx143(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
31714
+ /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
31715
+ /* @__PURE__ */ jsx143(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
31716
+ /* @__PURE__ */ jsx143(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
31569
31717
  ] }),
31570
- /* @__PURE__ */ jsxs131(Box16, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
31571
- /* @__PURE__ */ jsx142(
31718
+ /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
31719
+ /* @__PURE__ */ jsx143(
31572
31720
  Field,
31573
31721
  {
31574
31722
  copy: unixNanoToDate(selectedEvent.start_time_unix_nano)?.toISOString(),
31575
31723
  label: "Start Time",
31576
31724
  testId: EVENT_DETAILS_START_TIME_TEST_ID,
31577
31725
  testIdOn: "row",
31578
- children: /* @__PURE__ */ jsx142(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
31726
+ children: /* @__PURE__ */ jsx143(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
31579
31727
  }
31580
31728
  ),
31581
- duration !== void 0 && /* @__PURE__ */ jsxs131(Field, { copy: `${duration}ms`, label: "Duration", testId: EVENT_DETAILS_DURATION_TEST_ID, testIdOn: "row", children: [
31729
+ duration !== void 0 && /* @__PURE__ */ jsxs132(Field, { copy: `${duration}ms`, label: "Duration", testId: EVENT_DETAILS_DURATION_TEST_ID, testIdOn: "row", children: [
31582
31730
  duration,
31583
31731
  "ms"
31584
31732
  ] })
31585
- ] }),
31586
- /* @__PURE__ */ jsxs131(Box16, { children: [
31587
- /* @__PURE__ */ jsx142(Typography12, { sx: { fontWeight: 600 }, variant: "caption", children: "Status" }),
31588
- /* @__PURE__ */ jsx142(Stack4, { alignItems: "center", direction: "row", flexWrap: "wrap", gap: 1, sx: { mb: eventGroups.errors || eventGroups.warnings ? 1 : 0 }, children: /* @__PURE__ */ jsx142(
31589
- Chip3,
31590
- {
31591
- color: selectedEvent.status_code === 2 ? "error" : selectedEvent.status_code === 1 ? "success" : "default",
31592
- "data-testid": EVENT_DETAILS_STATUS_TEST_ID,
31593
- label: selectedEvent.status_code === 2 ? "Error" : selectedEvent.status_code === 1 ? "OK" : "Unset",
31594
- size: "small"
31595
- }
31596
- ) })
31597
31733
  ] })
31598
31734
  ] }),
31599
- eventGroups.errors && /* @__PURE__ */ jsx142(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
31600
- eventGroups.warnings && /* @__PURE__ */ jsx142(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
31601
- eventGroups.info && /* @__PURE__ */ jsx142(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
31735
+ eventGroups.errors && /* @__PURE__ */ jsx143(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
31736
+ eventGroups.warnings && /* @__PURE__ */ jsx143(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
31737
+ eventGroups.info && /* @__PURE__ */ jsx143(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
31602
31738
  ] }),
31603
- activeTab === "request" && (requestPayload === void 0 ? /* @__PURE__ */ jsx142(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ jsxs131(Fragment10, { children: [
31739
+ activeTab === "request" && (requestPayload === void 0 ? /* @__PURE__ */ jsx143(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ jsxs132(Fragment10, { children: [
31604
31740
  rawDataSwitch,
31605
- /* @__PURE__ */ jsx142(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
31741
+ /* @__PURE__ */ jsx143(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
31606
31742
  ] })),
31607
- activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ jsx142(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ jsxs131(Fragment10, { children: [
31743
+ activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ jsx143(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ jsxs132(Fragment10, { children: [
31608
31744
  rawDataSwitch,
31609
- isResponseSuppressed ? /* @__PURE__ */ jsx142(Alert4, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ jsx142(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
31745
+ isResponseSuppressed ? /* @__PURE__ */ jsx143(Alert4, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ jsx143(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
31610
31746
  ] })),
31611
- activeTab === "error" && /* @__PURE__ */ jsxs131(Stack4, { spacing: 2, children: [
31612
- /* @__PURE__ */ jsxs131(Stack4, { spacing: 1, children: [
31613
- /* @__PURE__ */ jsx142(Field, { label: "Type", children: issues.errorType }),
31614
- errorMessages.length > 0 && /* @__PURE__ */ jsx142(Field, { label: "Message", children: errorMessages.join(" \xB7 ") })
31747
+ activeTab === "error" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
31748
+ /* @__PURE__ */ jsxs132(Stack4, { spacing: 1, children: [
31749
+ /* @__PURE__ */ jsx143(Field, { label: "Type", children: errorType }),
31750
+ errorMessages.length > 0 && /* @__PURE__ */ jsx143(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
31751
+ functionError && /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31752
+ functionError.requestId !== void 0 && /* @__PURE__ */ jsx143(Field, { label: "Request ID", children: functionError.requestId }),
31753
+ /* @__PURE__ */ jsx143(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
31754
+ ] })
31755
+ ] }),
31756
+ functionError?.stackTrace !== void 0 && /* @__PURE__ */ jsxs132(Box17, { children: [
31757
+ /* @__PURE__ */ jsxs132(Stack4, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31758
+ /* @__PURE__ */ jsx143(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
31759
+ /* @__PURE__ */ jsx143(CopyButton, { value: functionError.stackTrace })
31760
+ ] }),
31761
+ /* @__PURE__ */ jsx143(
31762
+ Box17,
31763
+ {
31764
+ component: "pre",
31765
+ "data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
31766
+ sx: { backgroundColor: "background.default", borderRadius: 1, fontFamily: "monospace", fontSize: 12, m: 0, overflow: "auto", p: 1 },
31767
+ children: functionError.stackTrace
31768
+ }
31769
+ )
31615
31770
  ] }),
31616
- exceptionPayload !== void 0 && /* @__PURE__ */ jsxs131(Box16, { children: [
31617
- /* @__PURE__ */ jsx142(Typography12, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
31618
- /* @__PURE__ */ jsx142(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
31771
+ exceptionPayload !== void 0 && /* @__PURE__ */ jsxs132(Box17, { children: [
31772
+ /* @__PURE__ */ jsx143(Typography13, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
31773
+ /* @__PURE__ */ jsx143(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
31619
31774
  ] })
31620
31775
  ] }),
31621
- activeTab === "permissions" && /* @__PURE__ */ jsxs131(Fragment10, { children: [
31622
- selectedEvent.iam_errors_suppressed && /* @__PURE__ */ jsx142(Alert4, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
31623
- eventGroups.permissions && /* @__PURE__ */ jsx142(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, spanStatusCode: selectedEvent.status_code, type: "permission" })
31776
+ activeTab === "permissions" && /* @__PURE__ */ jsxs132(Fragment10, { children: [
31777
+ selectedEvent.iam_errors_suppressed && /* @__PURE__ */ jsx143(Alert4, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
31778
+ eventGroups.permissions && /* @__PURE__ */ jsx143(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" })
31624
31779
  ] }),
31625
- activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ jsx142(
31780
+ activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ jsx143(
31626
31781
  LambdaInvokeLogsSection,
31627
31782
  {
31628
31783
  endTimeNano: selectedEvent.end_time_unix_nano ?? selectedEvent.start_time_unix_nano,
@@ -31644,13 +31799,13 @@ import { Background, MarkerType, MiniMap, Position as Position2, ReactFlow, useE
31644
31799
  import { useCallback as useCallback7, useEffect as useEffect16, useRef as useRef13, useState as useState15 } from "react";
31645
31800
 
31646
31801
  // src/components/trace-graph/service-node.tsx
31647
- import { Cancel as Cancel6, Error as ErrorIcon4 } from "@mui/icons-material";
31648
- import { Box as Box17, Divider as Divider4, Stack as Stack5, Tooltip as Tooltip6, Typography as Typography13, useTheme as useTheme4 } from "@mui/material";
31802
+ import { Cancel as Cancel7, GppMaybe as GppMaybe8 } from "@mui/icons-material";
31803
+ import { Box as Box18, Divider as Divider4, Stack as Stack5, Tooltip as Tooltip7, Typography as Typography14, useTheme as useTheme4 } from "@mui/material";
31649
31804
  import { Handle, Position } from "@xyflow/react";
31650
31805
  import "@xyflow/react/dist/style.css";
31651
31806
  import "react";
31652
31807
  import { memo as memo11, useRef as useRef12, useState as useState14 } from "react";
31653
- import { Fragment as Fragment11, jsx as jsx143, jsxs as jsxs132 } from "react/jsx-runtime";
31808
+ import { Fragment as Fragment11, jsx as jsx144, jsxs as jsxs133 } from "react/jsx-runtime";
31654
31809
  var handleStyle = {
31655
31810
  backgroundColor: "white",
31656
31811
  borderColor: "lightgray",
@@ -31658,20 +31813,20 @@ var handleStyle = {
31658
31813
  };
31659
31814
  var NodeContent = ({ event, expanded, issues }) => {
31660
31815
  const theme = useTheme4();
31661
- return /* @__PURE__ */ jsxs132(Fragment11, { children: [
31662
- /* @__PURE__ */ jsx143(Handle, { position: Position.Left, style: handleStyle, type: "target" }),
31663
- /* @__PURE__ */ jsx143(Handle, { position: Position.Right, style: handleStyle, type: "source" }),
31664
- /* @__PURE__ */ jsxs132(
31816
+ return /* @__PURE__ */ jsxs133(Fragment11, { children: [
31817
+ /* @__PURE__ */ jsx144(Handle, { position: Position.Left, style: handleStyle, type: "target" }),
31818
+ /* @__PURE__ */ jsx144(Handle, { position: Position.Right, style: handleStyle, type: "source" }),
31819
+ /* @__PURE__ */ jsxs133(
31665
31820
  Stack5,
31666
31821
  {
31667
31822
  alignItems: "center",
31668
31823
  direction: "row",
31669
31824
  sx: { gap: "8px", pb: "2px", pt: "6px", px: "8px" },
31670
31825
  children: [
31671
- /* @__PURE__ */ jsx143(Box17, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsx143(AwsServiceIcon, { hideTooltip: true, service: event.service_name, size: "medium" }) }),
31672
- /* @__PURE__ */ jsxs132(Stack5, { sx: expanded ? void 0 : { minWidth: 0 }, children: [
31673
- /* @__PURE__ */ jsx143(
31674
- Typography13,
31826
+ /* @__PURE__ */ jsx144(Box18, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsx144(AwsServiceIcon, { hideTooltip: true, service: event.service_name, size: "medium" }) }),
31827
+ /* @__PURE__ */ jsxs133(Stack5, { sx: expanded ? void 0 : { minWidth: 0 }, children: [
31828
+ /* @__PURE__ */ jsx144(
31829
+ Typography14,
31675
31830
  {
31676
31831
  noWrap: !expanded,
31677
31832
  sx: { fontWeight: 700, lineHeight: 1.25, ...expanded && { whiteSpace: "nowrap" } },
@@ -31679,8 +31834,8 @@ var NodeContent = ({ event, expanded, issues }) => {
31679
31834
  children: getServiceDisplayName(event.service_name)
31680
31835
  }
31681
31836
  ),
31682
- event.resource_name != "" && /* @__PURE__ */ jsx143(
31683
- Typography13,
31837
+ event.resource_name != "" && /* @__PURE__ */ jsx144(
31838
+ Typography14,
31684
31839
  {
31685
31840
  color: "text.secondary",
31686
31841
  noWrap: !expanded,
@@ -31693,16 +31848,16 @@ var NodeContent = ({ event, expanded, issues }) => {
31693
31848
  ]
31694
31849
  }
31695
31850
  ),
31696
- /* @__PURE__ */ jsx143(Divider4, { sx: { ml: "38px", mr: "8px", my: "5px" } }),
31697
- /* @__PURE__ */ jsxs132(
31851
+ /* @__PURE__ */ jsx144(Divider4, { sx: { ml: "38px", mr: "8px", my: "5px" } }),
31852
+ /* @__PURE__ */ jsxs133(
31698
31853
  Stack5,
31699
31854
  {
31700
31855
  alignItems: "center",
31701
31856
  direction: "row",
31702
31857
  sx: expanded ? { pb: "5px", pr: "8px", pt: "1px" } : { minWidth: 0, pb: "5px", pr: "8px", pt: "1px" },
31703
31858
  children: [
31704
- /* @__PURE__ */ jsxs132(
31705
- Box17,
31859
+ /* @__PURE__ */ jsxs133(
31860
+ Box18,
31706
31861
  {
31707
31862
  sx: {
31708
31863
  alignItems: "center",
@@ -31712,13 +31867,13 @@ var NodeContent = ({ event, expanded, issues }) => {
31712
31867
  width: "38px"
31713
31868
  },
31714
31869
  children: [
31715
- issues.error && /* @__PURE__ */ jsx143(Tooltip6, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ jsx143(Box17, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx143(Cancel6, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
31716
- issues.warning && /* @__PURE__ */ jsx143(Tooltip6, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ jsx143(Box17, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx143(ErrorIcon4, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
31870
+ issues.error && /* @__PURE__ */ jsx144(Tooltip7, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ jsx144(Box18, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx144(Cancel7, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
31871
+ issues.warning && /* @__PURE__ */ jsx144(Tooltip7, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ jsx144(Box18, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx144(GppMaybe8, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
31717
31872
  ]
31718
31873
  }
31719
31874
  ),
31720
- /* @__PURE__ */ jsx143(
31721
- Typography13,
31875
+ /* @__PURE__ */ jsx144(
31876
+ Typography14,
31722
31877
  {
31723
31878
  "data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID,
31724
31879
  noWrap: !expanded,
@@ -31763,8 +31918,8 @@ var ServiceNode = memo11(({ data, selected }) => {
31763
31918
  const xyNode = nodeRef.current?.closest(".react-flow__node");
31764
31919
  if (xyNode) xyNode.style.zIndex = "";
31765
31920
  };
31766
- return /* @__PURE__ */ jsxs132(
31767
- Box17,
31921
+ return /* @__PURE__ */ jsxs133(
31922
+ Box18,
31768
31923
  {
31769
31924
  "data-testid": SERVICE_NODE_TEST_ID,
31770
31925
  onMouseEnter: handleMouseEnter,
@@ -31774,8 +31929,8 @@ var ServiceNode = memo11(({ data, selected }) => {
31774
31929
  sx: { display: "inline-block", position: "relative" },
31775
31930
  tabIndex: 0,
31776
31931
  children: [
31777
- /* @__PURE__ */ jsx143(
31778
- Box17,
31932
+ /* @__PURE__ */ jsx144(
31933
+ Box18,
31779
31934
  {
31780
31935
  sx: {
31781
31936
  ...sharedBoxSx,
@@ -31783,11 +31938,11 @@ var ServiceNode = memo11(({ data, selected }) => {
31783
31938
  maxWidth: 220,
31784
31939
  overflow: "hidden"
31785
31940
  },
31786
- children: /* @__PURE__ */ jsx143(NodeContent, { ...contentProps, expanded: false })
31941
+ children: /* @__PURE__ */ jsx144(NodeContent, { ...contentProps, expanded: false })
31787
31942
  }
31788
31943
  ),
31789
- /* @__PURE__ */ jsx143(
31790
- Box17,
31944
+ /* @__PURE__ */ jsx144(
31945
+ Box18,
31791
31946
  {
31792
31947
  onMouseLeave: handleMouseLeave,
31793
31948
  sx: {
@@ -31801,7 +31956,7 @@ var ServiceNode = memo11(({ data, selected }) => {
31801
31956
  width: "max-content",
31802
31957
  zIndex: 10
31803
31958
  },
31804
- children: /* @__PURE__ */ jsx143(NodeContent, { ...contentProps, expanded: true })
31959
+ children: /* @__PURE__ */ jsx144(NodeContent, { ...contentProps, expanded: true })
31805
31960
  }
31806
31961
  )
31807
31962
  ]
@@ -31896,11 +32051,11 @@ var getLayoutedNodesAndEdges = (inputNodes, inputEdges) => {
31896
32051
 
31897
32052
  // src/components/trace-graph/xyflow/controls.tsx
31898
32053
  import { Add, FitScreen, Remove } from "@mui/icons-material";
31899
- import { Box as Box18, IconButton as IconButton7 } from "@mui/material";
32054
+ import { Box as Box19, IconButton as IconButton7 } from "@mui/material";
31900
32055
  import { useReactFlow, useStore as useStore2 } from "@xyflow/react";
31901
32056
  import { memo as memo12 } from "react";
31902
32057
  import { shallow } from "zustand/shallow";
31903
- import { jsx as jsx144, jsxs as jsxs133 } from "react/jsx-runtime";
32058
+ import { jsx as jsx145, jsxs as jsxs134 } from "react/jsx-runtime";
31904
32059
  var selector = (s) => ({
31905
32060
  isInteractive: s.nodesDraggable || s.nodesConnectable || s.elementsSelectable,
31906
32061
  maxZoomReached: s.transform[2] >= s.maxZoom,
@@ -31918,8 +32073,8 @@ var Controls = memo12(() => {
31918
32073
  const onFitViewHandler = () => {
31919
32074
  void fitView();
31920
32075
  };
31921
- return /* @__PURE__ */ jsxs133(
31922
- Box18,
32076
+ return /* @__PURE__ */ jsxs134(
32077
+ Box19,
31923
32078
  {
31924
32079
  sx: {
31925
32080
  bottom: 0,
@@ -31932,33 +32087,33 @@ var Controls = memo12(() => {
31932
32087
  zIndex: 5
31933
32088
  },
31934
32089
  children: [
31935
- /* @__PURE__ */ jsx144(
32090
+ /* @__PURE__ */ jsx145(
31936
32091
  IconButton7,
31937
32092
  {
31938
32093
  className: "react-flow__controls-zoomin",
31939
32094
  disabled: maxZoomReached,
31940
32095
  onClick: onZoomInHandler,
31941
32096
  size: "small",
31942
- children: /* @__PURE__ */ jsx144(Add, {})
32097
+ children: /* @__PURE__ */ jsx145(Add, {})
31943
32098
  }
31944
32099
  ),
31945
- /* @__PURE__ */ jsx144(
32100
+ /* @__PURE__ */ jsx145(
31946
32101
  IconButton7,
31947
32102
  {
31948
32103
  className: "react-flow__controls-zoomout",
31949
32104
  disabled: minZoomReached,
31950
32105
  onClick: onZoomOutHandler,
31951
32106
  size: "small",
31952
- children: /* @__PURE__ */ jsx144(Remove, {})
32107
+ children: /* @__PURE__ */ jsx145(Remove, {})
31953
32108
  }
31954
32109
  ),
31955
- /* @__PURE__ */ jsx144(
32110
+ /* @__PURE__ */ jsx145(
31956
32111
  IconButton7,
31957
32112
  {
31958
32113
  className: "react-flow__controls-fitview",
31959
32114
  onClick: onFitViewHandler,
31960
32115
  size: "small",
31961
- children: /* @__PURE__ */ jsx144(FitScreen, {})
32116
+ children: /* @__PURE__ */ jsx145(FitScreen, {})
31962
32117
  }
31963
32118
  )
31964
32119
  ]
@@ -31970,7 +32125,7 @@ var Controls = memo12(() => {
31970
32125
  import { useTheme as useTheme5 } from "@mui/material";
31971
32126
  import { useStore as useStore3 } from "@xyflow/react";
31972
32127
  import { memo as memo13 } from "react";
31973
- import { jsx as jsx145, jsxs as jsxs134 } from "react/jsx-runtime";
32128
+ import { jsx as jsx146, jsxs as jsxs135 } from "react/jsx-runtime";
31974
32129
  var ICON_FRACTION = 0.35;
31975
32130
  var PADDING_FRACTION = 0.18;
31976
32131
  var ICON_NATIVE_SIZE = 80;
@@ -31999,10 +32154,10 @@ var MinimapServiceNode = memo13(({
31999
32154
  const dotY = y + height - padding - dotRadius;
32000
32155
  const outlineColor = selected ? isError ? errorColor : "#1a73e8" : "#cccccc";
32001
32156
  const outlineWidth = selected ? 2 : 1;
32002
- return /* @__PURE__ */ jsxs134("g", { onClick: onClick ? (event2) => {
32157
+ return /* @__PURE__ */ jsxs135("g", { onClick: onClick ? (event2) => {
32003
32158
  onClick(event2, id2);
32004
32159
  } : void 0, children: [
32005
- /* @__PURE__ */ jsx145(
32160
+ /* @__PURE__ */ jsx146(
32006
32161
  "rect",
32007
32162
  {
32008
32163
  fill: theme.palette.background.paper,
@@ -32016,7 +32171,7 @@ var MinimapServiceNode = memo13(({
32016
32171
  y
32017
32172
  }
32018
32173
  ),
32019
- isError && /* @__PURE__ */ jsx145(
32174
+ isError && /* @__PURE__ */ jsx146(
32020
32175
  "rect",
32021
32176
  {
32022
32177
  fill: errorColor,
@@ -32028,8 +32183,8 @@ var MinimapServiceNode = memo13(({
32028
32183
  y: y + 3
32029
32184
  }
32030
32185
  ),
32031
- Icon && /* @__PURE__ */ jsx145("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ jsx145(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
32032
- isError && Icon && /* @__PURE__ */ jsx145(
32186
+ Icon && /* @__PURE__ */ jsx146("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ jsx146(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
32187
+ isError && Icon && /* @__PURE__ */ jsx146(
32033
32188
  "circle",
32034
32189
  {
32035
32190
  cx: dotX,
@@ -32042,7 +32197,7 @@ var MinimapServiceNode = memo13(({
32042
32197
  });
32043
32198
 
32044
32199
  // src/components/trace-graph/trace-graph.tsx
32045
- import { Fragment as Fragment12, jsx as jsx146, jsxs as jsxs135 } from "react/jsx-runtime";
32200
+ import { Fragment as Fragment12, jsx as jsx147, jsxs as jsxs136 } from "react/jsx-runtime";
32046
32201
  var nodeTypes = {
32047
32202
  service: ServiceNode
32048
32203
  };
@@ -32154,11 +32309,11 @@ var TraceGraph = ({
32154
32309
  }
32155
32310
  }, [spans.data, initialFocusEventId, setNodes, setEdges, updateExtent]);
32156
32311
  const theme = useTheme6();
32157
- return /* @__PURE__ */ jsxs135(Fragment12, { children: [
32158
- spans.error && /* @__PURE__ */ jsxs135(
32312
+ return /* @__PURE__ */ jsxs136(Fragment12, { children: [
32313
+ spans.error && /* @__PURE__ */ jsxs136(
32159
32314
  Alert5,
32160
32315
  {
32161
- action: /* @__PURE__ */ jsx146(Button6, { onClick: () => {
32316
+ action: /* @__PURE__ */ jsx147(Button6, { onClick: () => {
32162
32317
  onRefresh();
32163
32318
  }, children: "Retry" }),
32164
32319
  severity: "error",
@@ -32170,7 +32325,7 @@ var TraceGraph = ({
32170
32325
  ]
32171
32326
  }
32172
32327
  ),
32173
- /* @__PURE__ */ jsxs135(
32328
+ /* @__PURE__ */ jsxs136(
32174
32329
  ReactFlow,
32175
32330
  {
32176
32331
  colorMode: theme.palette.mode,
@@ -32190,9 +32345,9 @@ var TraceGraph = ({
32190
32345
  selectNodesOnDrag: false,
32191
32346
  translateExtent,
32192
32347
  children: [
32193
- /* @__PURE__ */ jsx146(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
32194
- /* @__PURE__ */ jsx146(Controls, {}),
32195
- !hideMiniMap && /* @__PURE__ */ jsx146(
32348
+ /* @__PURE__ */ jsx147(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
32349
+ /* @__PURE__ */ jsx147(Controls, {}),
32350
+ !hideMiniMap && /* @__PURE__ */ jsx147(
32196
32351
  MiniMap,
32197
32352
  {
32198
32353
  nodeComponent: MinimapServiceNode,
@@ -32200,7 +32355,7 @@ var TraceGraph = ({
32200
32355
  zoomable: true
32201
32356
  }
32202
32357
  ),
32203
- /* @__PURE__ */ jsx146(
32358
+ /* @__PURE__ */ jsx147(
32204
32359
  Background,
32205
32360
  {
32206
32361
  bgColor: theme.palette.background.default,
@@ -32259,9 +32414,9 @@ function useLocalStorage(key, initialValue) {
32259
32414
  }
32260
32415
 
32261
32416
  // src/components/trace-panel/waterfall.tsx
32262
- import { AccountTreeOutlined, Cancel as Cancel7, Error as ErrorIcon5, FormatListBulleted, KeyboardArrowDown as KeyboardArrowDown2, KeyboardArrowRight as KeyboardArrowRight2 } from "@mui/icons-material";
32263
- import { Box as Box19, ButtonBase, ToggleButton as ToggleButton2, ToggleButtonGroup as ToggleButtonGroup2, Typography as Typography14 } from "@mui/material";
32264
- import { alpha as alpha5 } from "@mui/material/styles";
32417
+ import { AccountTreeOutlined, Cancel as Cancel8, FormatListBulleted, GppMaybe as GppMaybe9, KeyboardArrowDown as KeyboardArrowDown2, KeyboardArrowRight as KeyboardArrowRight2 } from "@mui/icons-material";
32418
+ import { Box as Box20, ButtonBase as ButtonBase2, ToggleButton as ToggleButton2, ToggleButtonGroup as ToggleButtonGroup2, Typography as Typography15 } from "@mui/material";
32419
+ import { alpha as alpha6 } from "@mui/material/styles";
32265
32420
  import * as React124 from "react";
32266
32421
 
32267
32422
  // src/components/trace-panel/axis-ticks.ts
@@ -32277,7 +32432,7 @@ var getAxisTicks = (durationMs, maxIntervals) => {
32277
32432
  var MIN_TICK_SPACING_PX = 56;
32278
32433
  var LABEL_GAP_PX = 8;
32279
32434
  var CHAR_WIDTH_PX = 6;
32280
- var estimateWidth = (text2) => text2.length * CHAR_WIDTH_PX;
32435
+ var estimateWidth = (text3) => text3.length * CHAR_WIDTH_PX;
32281
32436
  var layoutAxis = (durationMs, width) => {
32282
32437
  if (width <= 0) return { labels: [], marks: [] };
32283
32438
  const start = { align: "start", text: formatDuration(0), x: 0 };
@@ -32292,10 +32447,10 @@ var layoutAxis = (durationMs, width) => {
32292
32447
  if (tick <= 0 || tick >= durationMs) continue;
32293
32448
  const x = tick / durationMs * width;
32294
32449
  marks.push(x);
32295
- const text2 = formatDuration(tick);
32296
- const half = estimateWidth(text2) / 2;
32450
+ const text3 = formatDuration(tick);
32451
+ const half = estimateWidth(text3) / 2;
32297
32452
  if (x - half >= previousRight + LABEL_GAP_PX && x + half <= endLeft) {
32298
- labels.push({ align: "center", text: text2, x });
32453
+ labels.push({ align: "center", text: text3, x });
32299
32454
  previousRight = x + half;
32300
32455
  }
32301
32456
  }
@@ -32303,7 +32458,7 @@ var layoutAxis = (durationMs, width) => {
32303
32458
  };
32304
32459
 
32305
32460
  // src/components/trace-panel/waterfall.tsx
32306
- import { Fragment as Fragment13, jsx as jsx147, jsxs as jsxs136 } from "react/jsx-runtime";
32461
+ import { Fragment as Fragment13, jsx as jsx148, jsxs as jsxs137 } from "react/jsx-runtime";
32307
32462
  var SERVICE_COLORS = {
32308
32463
  apigateway: "#7048E8",
32309
32464
  dynamodb: "#3B5BDB",
@@ -32341,12 +32496,12 @@ var flatten = (nodes2, collapsed, depth = 0, branches = [], parent) => nodes2.fl
32341
32496
  ];
32342
32497
  });
32343
32498
  var flattenAll = (nodes2) => flatten(nodes2, /* @__PURE__ */ new Set()).map((row) => ({ ...row, branches: [], depth: 0, last: true })).toSorted((left, right) => compareNano(left.node.span.start_time_unix_nano, right.node.span.start_time_unix_nano));
32344
- var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ jsxs136(Fragment13, { children: [
32345
- error && /* @__PURE__ */ jsx147(Cancel7, { sx: { color: "error.main", fontSize: 14 } }),
32346
- warning2 && /* @__PURE__ */ jsx147(ErrorIcon5, { sx: { color: "warning.main", fontSize: 14 } })
32499
+ var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ jsxs137(Fragment13, { children: [
32500
+ error && /* @__PURE__ */ jsx148(Cancel8, { sx: { color: "error.main", fontSize: 14 } }),
32501
+ warning2 && /* @__PURE__ */ jsx148(GppMaybe9, { sx: { color: "warning.main", fontSize: 14 } })
32347
32502
  ] });
32348
- var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ jsx147(
32349
- Box19,
32503
+ var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ jsx148(
32504
+ Box20,
32350
32505
  {
32351
32506
  "aria-hidden": "true",
32352
32507
  sx: { backgroundColor: "divider", height: height === void 0 ? `calc(100% - ${String(top)}px)` : `${String(height)}px`, left: `${String(left)}px`, pointerEvents: "none", position: "absolute", top: `${String(top)}px`, width: `${String(width)}px` }
@@ -32374,8 +32529,8 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
32374
32529
  const trackRef = React124.useRef(null);
32375
32530
  const width = useWidth(trackRef);
32376
32531
  const { labels, marks } = layoutAxis(durationMs, width);
32377
- return /* @__PURE__ */ jsxs136(
32378
- Box19,
32532
+ return /* @__PURE__ */ jsxs137(
32533
+ Box20,
32379
32534
  {
32380
32535
  "data-testid": WATERFALL_AXIS_TEST_ID,
32381
32536
  sx: {
@@ -32390,7 +32545,7 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
32390
32545
  zIndex: 1
32391
32546
  },
32392
32547
  children: [
32393
- /* @__PURE__ */ jsx147(Box19, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ jsxs136(
32548
+ /* @__PURE__ */ jsx148(Box20, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ jsxs137(
32394
32549
  ToggleButtonGroup2,
32395
32550
  {
32396
32551
  "aria-label": "Operations layout",
@@ -32402,21 +32557,21 @@ var WaterfallAxis = ({ durationMs, flat, gridColumns: gridColumns2, onFlatChange
32402
32557
  sx: { "& .MuiToggleButton-root": { fontSize: 11, gap: "3px", height: 18, lineHeight: 1, px: "6px", py: 0, textTransform: "none" } },
32403
32558
  value: flat ? "list" : "tree",
32404
32559
  children: [
32405
- /* @__PURE__ */ jsxs136(ToggleButton2, { "data-testid": WATERFALL_TREE_VIEW_BUTTON_TEST_ID, value: "tree", children: [
32406
- /* @__PURE__ */ jsx147(AccountTreeOutlined, { sx: { fontSize: 13 } }),
32560
+ /* @__PURE__ */ jsxs137(ToggleButton2, { "data-testid": WATERFALL_TREE_VIEW_BUTTON_TEST_ID, value: "tree", children: [
32561
+ /* @__PURE__ */ jsx148(AccountTreeOutlined, { sx: { fontSize: 13 } }),
32407
32562
  "Tree"
32408
32563
  ] }),
32409
- /* @__PURE__ */ jsxs136(ToggleButton2, { "data-testid": WATERFALL_LIST_VIEW_BUTTON_TEST_ID, value: "list", children: [
32410
- /* @__PURE__ */ jsx147(FormatListBulleted, { sx: { fontSize: 13 } }),
32564
+ /* @__PURE__ */ jsxs137(ToggleButton2, { "data-testid": WATERFALL_LIST_VIEW_BUTTON_TEST_ID, value: "list", children: [
32565
+ /* @__PURE__ */ jsx148(FormatListBulleted, { sx: { fontSize: 13 } }),
32411
32566
  "List"
32412
32567
  ] })
32413
32568
  ]
32414
32569
  }
32415
32570
  ) }),
32416
- /* @__PURE__ */ jsxs136(Box19, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
32417
- marks.map((x) => /* @__PURE__ */ jsx147(Box19, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
32418
- labels.map((label) => /* @__PURE__ */ jsx147(
32419
- Typography14,
32571
+ /* @__PURE__ */ jsxs137(Box20, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
32572
+ marks.map((x) => /* @__PURE__ */ jsx148(Box20, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
32573
+ labels.map((label) => /* @__PURE__ */ jsx148(
32574
+ Typography15,
32420
32575
  {
32421
32576
  color: "text.secondary",
32422
32577
  component: "span",
@@ -32481,11 +32636,11 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32481
32636
  else if (event.key === "ArrowLeft" && !flat && node.children.length > 0) setExpanded(spanId, false);
32482
32637
  };
32483
32638
  if (spans.length === 0) {
32484
- return /* @__PURE__ */ jsx147(Typography14, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
32639
+ return /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
32485
32640
  }
32486
32641
  const percentAt = (nano) => bounds.durationMs > 0 ? Number(BigInt(nano) - bounds.startNano) / 1e6 / bounds.durationMs * 100 : 0;
32487
- return /* @__PURE__ */ jsxs136(Box19, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
32488
- /* @__PURE__ */ jsx147(WaterfallAxis, { durationMs: bounds.durationMs, flat, gridColumns: gridColumns(statusIconsFirst), onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
32642
+ return /* @__PURE__ */ jsxs137(Box20, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
32643
+ /* @__PURE__ */ jsx148(WaterfallAxis, { durationMs: bounds.durationMs, flat, gridColumns: gridColumns(statusIconsFirst), onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
32489
32644
  rows.map(({ branches, depth, last, node, parent }) => {
32490
32645
  const { span } = node;
32491
32646
  const issues = getSpanIssues(span);
@@ -32503,8 +32658,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32503
32658
  const label = formatDuration(durationMs);
32504
32659
  const resource = shortResourceName(span.resource_name, span.arn);
32505
32660
  const serviceColor = getServiceColor(span.service_name);
32506
- return /* @__PURE__ */ jsxs136(
32507
- Box19,
32661
+ return /* @__PURE__ */ jsxs137(
32662
+ Box20,
32508
32663
  {
32509
32664
  "aria-expanded": hasChildren ? !isCollapsed : void 0,
32510
32665
  "aria-level": depth + 1,
@@ -32523,14 +32678,14 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32523
32678
  // Tints over the paper, all in one opaque background: the duration label repeats it
32524
32679
  // to cover the lead line behind it, which a translucent tint would let through. The
32525
32680
  // hover is translucent too (the theme's is an opaque grey), so issue tints show through.
32526
- "&:hover": { "--row-tint": selected ? alpha5(theme.palette.primary.main, 0.16) : alpha5(theme.palette.text.primary, 0.04) },
32681
+ "&:hover": { "--row-tint": selected ? alpha6(theme.palette.primary.main, 0.16) : alpha6(theme.palette.text.primary, 0.04) },
32527
32682
  // Only the content fades for a row the filters don't match: its background (selection, hover,
32528
32683
  // issue tint) keeps its contrast.
32529
32684
  "& > *": { opacity: spanMatches && !spanMatches(span.span_id) ? 0.4 : 1 },
32530
32685
  "--row-bg": `linear-gradient(var(--row-tint), var(--row-tint)), linear-gradient(var(--row-issue), var(--row-issue)), ${theme.palette.background.paper}`,
32531
32686
  // Under the hover and selection tints: an error wins over a warning.
32532
- "--row-issue": issueBackgrounds && issues.error ? alpha5(theme.palette.error.main, 0.08) : issueBackgrounds && issues.warning ? alpha5(theme.palette.warning.main, 0.1) : "transparent",
32533
- "--row-tint": selected ? alpha5(theme.palette.primary.main, 0.12) : "transparent",
32687
+ "--row-issue": issueBackgrounds && issues.error ? alpha6(theme.palette.error.main, 0.08) : issueBackgrounds && issues.warning ? alpha6(theme.palette.warning.main, 0.1) : "transparent",
32688
+ "--row-tint": selected ? alpha6(theme.palette.primary.main, 0.12) : "transparent",
32534
32689
  "background": "var(--row-bg)",
32535
32690
  "cursor": "pointer",
32536
32691
  "display": "grid",
@@ -32542,10 +32697,10 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32542
32697
  "scrollMarginTop": AXIS_HEIGHT
32543
32698
  }),
32544
32699
  children: [
32545
- /* @__PURE__ */ jsxs136(Box19, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
32546
- statusIconsFirst && /* @__PURE__ */ jsx147(Box19, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ jsx147(StatusIcons, { error: issues.error, warning: issues.warning }) }),
32547
- /* @__PURE__ */ jsxs136(
32548
- Typography14,
32700
+ /* @__PURE__ */ jsxs137(Box20, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
32701
+ statusIconsFirst && /* @__PURE__ */ jsx148(Box20, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ jsx148(StatusIcons, { error: issues.error, warning: issues.warning }) }),
32702
+ /* @__PURE__ */ jsxs137(
32703
+ Typography15,
32549
32704
  {
32550
32705
  color: "text.secondary",
32551
32706
  component: "span",
@@ -32554,21 +32709,21 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32554
32709
  sx: { display: "flex", flex: 1, fontSize: 11, fontVariantNumeric: "tabular-nums", lineHeight: `${String(ROW_HEIGHT)}px` },
32555
32710
  title: "Since the first operation of the trace",
32556
32711
  children: [
32557
- /* @__PURE__ */ jsx147(Box19, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
32558
- /* @__PURE__ */ jsx147(Box19, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
32712
+ /* @__PURE__ */ jsx148(Box20, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
32713
+ /* @__PURE__ */ jsx148(Box20, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
32559
32714
  ]
32560
32715
  }
32561
32716
  )
32562
32717
  ] }),
32563
- /* @__PURE__ */ jsxs136(Box19, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
32564
- branches.map((runs, level) => runs && /* @__PURE__ */ jsx147(Line, { left: lineX(level) }, level)),
32565
- depth > 0 && /* @__PURE__ */ jsxs136(Fragment13, { children: [
32566
- /* @__PURE__ */ jsx147(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
32567
- /* @__PURE__ */ jsx147(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
32718
+ /* @__PURE__ */ jsxs137(Box20, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
32719
+ branches.map((runs, level) => runs && /* @__PURE__ */ jsx148(Line, { left: lineX(level) }, level)),
32720
+ depth > 0 && /* @__PURE__ */ jsxs137(Fragment13, { children: [
32721
+ /* @__PURE__ */ jsx148(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
32722
+ /* @__PURE__ */ jsx148(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
32568
32723
  ] }),
32569
- hasChildren && !isCollapsed && /* @__PURE__ */ jsx147(Line, { left: lineX(depth), top: 19 }),
32570
- hasChildren ? /* @__PURE__ */ jsx147(
32571
- ButtonBase,
32724
+ hasChildren && !isCollapsed && /* @__PURE__ */ jsx148(Line, { left: lineX(depth), top: 19 }),
32725
+ hasChildren ? /* @__PURE__ */ jsx148(
32726
+ ButtonBase2,
32572
32727
  {
32573
32728
  "aria-label": isCollapsed ? "Expand" : "Collapse",
32574
32729
  "data-testid": WATERFALL_ROW_TOGGLE_TEST_ID,
@@ -32579,7 +32734,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32579
32734
  sx: (theme) => ({
32580
32735
  // A tint of the text colour: the theme's hover and selected shades match the
32581
32736
  // row's own hover, so they wouldn't show on a hovered row.
32582
- "&:hover": { backgroundColor: alpha5(theme.palette.text.primary, 0.12), color: "text.primary" },
32737
+ "&:hover": { backgroundColor: alpha6(theme.palette.text.primary, 0.12), color: "text.primary" },
32583
32738
  "borderRadius": "3px",
32584
32739
  "color": "text.secondary",
32585
32740
  "flex": "none",
@@ -32587,21 +32742,21 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32587
32742
  "width": 14
32588
32743
  }),
32589
32744
  tabIndex: -1,
32590
- children: isCollapsed ? /* @__PURE__ */ jsx147(KeyboardArrowRight2, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx147(KeyboardArrowDown2, { sx: { fontSize: 16 } })
32745
+ children: isCollapsed ? /* @__PURE__ */ jsx148(KeyboardArrowRight2, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx148(KeyboardArrowDown2, { sx: { fontSize: 16 } })
32591
32746
  }
32592
- ) : !flat && /* @__PURE__ */ jsx147(Box19, { sx: { flex: "none", width: 14 } }),
32593
- /* @__PURE__ */ jsx147(Box19, { sx: { display: "flex", flex: "none" }, children: /* @__PURE__ */ jsx147(AwsServiceIcon, { hideTooltip: true, service: span.service_name, size: "small" }) }),
32594
- /* @__PURE__ */ jsx147(Typography14, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontSize: "inherit", fontWeight: 600, minWidth: 0 }, title: span.operation_name, children: span.operation_name }),
32595
- resource !== "" && resource !== "*" && /* @__PURE__ */ jsx147(Typography14, { color: "text.secondary", component: "span", noWrap: true, sx: { flex: "1 1 0", fontSize: 11, minWidth: 0 }, title: resource, children: resource }),
32596
- !statusIconsFirst && (issues.error || issues.warning) && /* @__PURE__ */ jsx147(Box19, { sx: { display: "inline-flex", flex: "none", ml: "auto" }, children: /* @__PURE__ */ jsx147(StatusIcons, { error: issues.error, warning: issues.warning }) })
32747
+ ) : !flat && /* @__PURE__ */ jsx148(Box20, { sx: { flex: "none", width: 14 } }),
32748
+ /* @__PURE__ */ jsx148(Box20, { sx: { display: "flex", flex: "none" }, children: /* @__PURE__ */ jsx148(AwsServiceIcon, { hideTooltip: true, service: span.service_name, size: "small" }) }),
32749
+ /* @__PURE__ */ jsx148(Typography15, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontSize: "inherit", fontWeight: 600, minWidth: 0 }, title: span.operation_name, children: span.operation_name }),
32750
+ resource !== "" && resource !== "*" && /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", component: "span", noWrap: true, sx: { flex: "1 1 0", fontSize: 11, minWidth: 0 }, title: resource, children: resource }),
32751
+ !statusIconsFirst && (issues.error || issues.warning) && /* @__PURE__ */ jsx148(Box20, { sx: { display: "inline-flex", flex: "none", ml: "auto" }, children: /* @__PURE__ */ jsx148(StatusIcons, { error: issues.error, warning: issues.warning }) })
32597
32752
  ] }),
32598
- /* @__PURE__ */ jsxs136(Box19, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
32599
- parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ jsx147(Box19, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
32600
- /* @__PURE__ */ jsx147(
32601
- Box19,
32753
+ /* @__PURE__ */ jsxs137(Box20, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
32754
+ parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ jsx148(Box20, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
32755
+ /* @__PURE__ */ jsx148(
32756
+ Box20,
32602
32757
  {
32603
32758
  sx: (theme) => ({
32604
- background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${alpha5(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
32759
+ background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${alpha6(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
32605
32760
  borderRadius: "1px",
32606
32761
  height: 10,
32607
32762
  left: `${String(startPercent)}%`,
@@ -32612,8 +32767,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32612
32767
  })
32613
32768
  }
32614
32769
  ),
32615
- /* @__PURE__ */ jsx147(
32616
- Typography14,
32770
+ /* @__PURE__ */ jsx148(
32771
+ Typography15,
32617
32772
  {
32618
32773
  color: placement === "inside" ? "#fff" : "text.secondary",
32619
32774
  component: "span",
@@ -32642,7 +32797,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32642
32797
  };
32643
32798
 
32644
32799
  // src/components/trace-panel/trace-sidebar.tsx
32645
- import { jsx as jsx148, jsxs as jsxs137 } from "react/jsx-runtime";
32800
+ import { jsx as jsx149, jsxs as jsxs138 } from "react/jsx-runtime";
32646
32801
  var DEFAULT_WIDTH = 560;
32647
32802
  var MIN_WIDTH = 360;
32648
32803
  var MAX_WIDTH_SHARE = 0.8;
@@ -32711,8 +32866,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32711
32866
  };
32712
32867
  }, [spans, selectedSpanId]);
32713
32868
  const rootResource = root2 ? shortResourceName(root2.resource_name, root2.arn) : "";
32714
- return /* @__PURE__ */ jsxs137(
32715
- Box20,
32869
+ return /* @__PURE__ */ jsxs138(
32870
+ Box21,
32716
32871
  {
32717
32872
  "data-testid": TRACE_SIDEBAR_TEST_ID,
32718
32873
  ref: sidebarRef,
@@ -32734,8 +32889,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32734
32889
  width: storedWidth
32735
32890
  },
32736
32891
  children: [
32737
- /* @__PURE__ */ jsx148(
32738
- Box20,
32892
+ /* @__PURE__ */ jsx149(
32893
+ Box21,
32739
32894
  {
32740
32895
  "aria-label": "Resize the sidebar",
32741
32896
  "aria-orientation": "vertical",
@@ -32762,22 +32917,22 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32762
32917
  tabIndex: 0
32763
32918
  }
32764
32919
  ),
32765
- /* @__PURE__ */ jsxs137(Box20, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
32766
- /* @__PURE__ */ jsxs137(Box20, { sx: { flex: 1, minWidth: 0 }, children: [
32767
- /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: requestTerms === "on" ? "Request" : "Trace root" }),
32768
- root2 && /* @__PURE__ */ jsxs137(Box20, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
32769
- /* @__PURE__ */ jsx148(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
32770
- /* @__PURE__ */ jsx148(Typography15, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
32771
- rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
32920
+ /* @__PURE__ */ jsxs138(Box21, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
32921
+ /* @__PURE__ */ jsxs138(Box21, { sx: { flex: 1, minWidth: 0 }, children: [
32922
+ /* @__PURE__ */ jsx149(Typography16, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: requestTerms === "on" ? "Request" : "Trace root" }),
32923
+ root2 && /* @__PURE__ */ jsxs138(Box21, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
32924
+ /* @__PURE__ */ jsx149(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
32925
+ /* @__PURE__ */ jsx149(Typography16, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, title: root2.operation_name, variant: "subtitle1", children: root2.operation_name }),
32926
+ rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ jsx149(Typography16, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
32772
32927
  ] }),
32773
- /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", variant: "caption", children: [
32928
+ /* @__PURE__ */ jsx149(Typography16, { color: "text.secondary", variant: "caption", children: [
32774
32929
  formatDuration(stats.durationMs),
32775
32930
  pluralize(spans.length, "op"),
32776
32931
  ...stats.errors > 0 ? [pluralize(stats.errors, "error")] : [],
32777
32932
  ...stats.warnings > 0 ? [pluralize(stats.warnings, "warning")] : []
32778
32933
  ].join(" \xB7 ") })
32779
32934
  ] }),
32780
- /* @__PURE__ */ jsxs137(
32935
+ /* @__PURE__ */ jsxs138(
32781
32936
  ToggleButtonGroup3,
32782
32937
  {
32783
32938
  "aria-label": "Trace view",
@@ -32788,14 +32943,14 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32788
32943
  size: "small",
32789
32944
  value: view,
32790
32945
  children: [
32791
- /* @__PURE__ */ jsx148(ToggleButton3, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" }),
32792
- /* @__PURE__ */ jsx148(ToggleButton3, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" })
32946
+ /* @__PURE__ */ jsx149(ToggleButton3, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" }),
32947
+ /* @__PURE__ */ jsx149(ToggleButton3, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" })
32793
32948
  ]
32794
32949
  }
32795
32950
  ),
32796
- /* @__PURE__ */ jsx148(IconButton8, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx148(Close4, {}) })
32951
+ /* @__PURE__ */ jsx149(IconButton8, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx149(Close4, {}) })
32797
32952
  ] }),
32798
- /* @__PURE__ */ jsx148(Box20, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ jsx148(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ jsx148(Box20, { sx: { height: "100%" }, children: /* @__PURE__ */ jsx148(ReactFlowProvider, { children: /* @__PURE__ */ jsx148(
32953
+ /* @__PURE__ */ jsx149(Box21, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ jsx149(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ jsx149(Box21, { sx: { height: "100%" }, children: /* @__PURE__ */ jsx149(ReactFlowProvider, { children: /* @__PURE__ */ jsx149(
32799
32954
  TraceGraph,
32800
32955
  {
32801
32956
  hideMiniMap: true,
@@ -32805,8 +32960,8 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32805
32960
  spans: { data: spans, error: void 0, loading: false }
32806
32961
  }
32807
32962
  ) }) }) }),
32808
- /* @__PURE__ */ jsx148(Box20, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ jsx148(
32809
- Box20,
32963
+ /* @__PURE__ */ jsx149(Box21, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ jsx149(
32964
+ Box21,
32810
32965
  {
32811
32966
  "aria-label": "Resize the operation details",
32812
32967
  "aria-orientation": "horizontal",
@@ -32834,7 +32989,7 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32834
32989
  tabIndex: 0
32835
32990
  }
32836
32991
  ) }),
32837
- /* @__PURE__ */ jsx148(Box20, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ jsx148(EventDetails, { selectedEvent: selectedSpan }) : /* @__PURE__ */ jsx148(Typography15, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
32992
+ /* @__PURE__ */ jsx149(Box21, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ jsx149(EventDetails, { selectedEvent: selectedSpan }) : /* @__PURE__ */ jsx149(Typography16, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
32838
32993
  ]
32839
32994
  }
32840
32995
  );
@@ -32842,10 +32997,10 @@ var TraceSidebar = ({ onClose, onSelectSpan, selectedSpanId, spanMatches, spans
32842
32997
 
32843
32998
  // src/components/worker-error-message/worker-error-message.tsx
32844
32999
  import { ErrorOutline as ErrorOutline2 } from "@mui/icons-material";
32845
- import { Alert as Alert6, AlertTitle as AlertTitle2, Box as Box21, Button as Button7, Typography as Typography16 } from "@mui/material";
32846
- import { jsx as jsx149, jsxs as jsxs138 } from "react/jsx-runtime";
32847
- var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ jsx149(
32848
- Box21,
33000
+ import { Alert as Alert6, AlertTitle as AlertTitle2, Box as Box22, Button as Button7, Typography as Typography17 } from "@mui/material";
33001
+ import { jsx as jsx150, jsxs as jsxs139 } from "react/jsx-runtime";
33002
+ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ jsx150(
33003
+ Box22,
32849
33004
  {
32850
33005
  sx: {
32851
33006
  alignItems: "center",
@@ -32855,17 +33010,17 @@ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ jsx149(
32855
33010
  justifyContent: "center",
32856
33011
  p: 4
32857
33012
  },
32858
- children: /* @__PURE__ */ jsxs138(
33013
+ children: /* @__PURE__ */ jsxs139(
32859
33014
  Alert6,
32860
33015
  {
32861
- icon: /* @__PURE__ */ jsx149(ErrorOutline2, { fontSize: "large" }),
33016
+ icon: /* @__PURE__ */ jsx150(ErrorOutline2, { fontSize: "large" }),
32862
33017
  severity: "error",
32863
33018
  sx: { maxWidth: 600, width: "100%" },
32864
33019
  children: [
32865
- /* @__PURE__ */ jsx149(AlertTitle2, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
32866
- /* @__PURE__ */ jsx149(Typography16, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
32867
- /* @__PURE__ */ jsx149(Typography16, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
32868
- onRetry && /* @__PURE__ */ jsx149(Box21, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx149(
33020
+ /* @__PURE__ */ jsx150(AlertTitle2, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
33021
+ /* @__PURE__ */ jsx150(Typography17, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
33022
+ /* @__PURE__ */ jsx150(Typography17, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
33023
+ onRetry && /* @__PURE__ */ jsx150(Box22, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx150(
32869
33024
  Button7,
32870
33025
  {
32871
33026
  "aria-label": "Retry starting the spans filter worker",
@@ -33583,7 +33738,7 @@ var useSpans = () => {
33583
33738
  };
33584
33739
 
33585
33740
  // src/pages/spans-list-page.tsx
33586
- import { jsx as jsx150, jsxs as jsxs139 } from "react/jsx-runtime";
33741
+ import { jsx as jsx151, jsxs as jsxs140 } from "react/jsx-runtime";
33587
33742
  var SpansListPage = () => {
33588
33743
  const api = useAppInspectorApi();
33589
33744
  const {
@@ -33669,10 +33824,10 @@ var SpansListPage = () => {
33669
33824
  switch (phase) {
33670
33825
  case "CHECKING_STATUS":
33671
33826
  case "CONNECTING_WS": {
33672
- return /* @__PURE__ */ jsx150(StatusMessage, { phase });
33827
+ return /* @__PURE__ */ jsx151(StatusMessage, { phase });
33673
33828
  }
33674
33829
  case "DISABLED": {
33675
- return /* @__PURE__ */ jsx150(
33830
+ return /* @__PURE__ */ jsx151(
33676
33831
  StatusMessage,
33677
33832
  {
33678
33833
  onEnable: handleEnable,
@@ -33681,7 +33836,7 @@ var SpansListPage = () => {
33681
33836
  );
33682
33837
  }
33683
33838
  case "INCOMPATIBLE": {
33684
- return /* @__PURE__ */ jsx150(
33839
+ return /* @__PURE__ */ jsx151(
33685
33840
  StatusMessage,
33686
33841
  {
33687
33842
  localstackVersion,
@@ -33692,12 +33847,12 @@ var SpansListPage = () => {
33692
33847
  }
33693
33848
  case "LIVE": {
33694
33849
  if (workerError) {
33695
- return /* @__PURE__ */ jsx150(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
33850
+ return /* @__PURE__ */ jsx151(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
33696
33851
  }
33697
33852
  break;
33698
33853
  }
33699
33854
  case "UNREACHABLE": {
33700
- return /* @__PURE__ */ jsx150(
33855
+ return /* @__PURE__ */ jsx151(
33701
33856
  StatusMessage,
33702
33857
  {
33703
33858
  onRetry: handleRetry,
@@ -33706,9 +33861,9 @@ var SpansListPage = () => {
33706
33861
  );
33707
33862
  }
33708
33863
  }
33709
- return /* @__PURE__ */ jsxs139(Paper2, { square: true, sx: { ...NATIVE_SCROLLBARS, display: "flex", flexDirection: "row", flexGrow: 1, minHeight: 0, overflow: "hidden" }, children: [
33710
- /* @__PURE__ */ jsxs139(
33711
- Box22,
33864
+ return /* @__PURE__ */ jsxs140(Paper2, { square: true, sx: { ...NATIVE_SCROLLBARS, display: "flex", flexDirection: "row", flexGrow: 1, minHeight: 0, overflow: "hidden" }, children: [
33865
+ /* @__PURE__ */ jsxs140(
33866
+ Box23,
33712
33867
  {
33713
33868
  "data-testid": SPANS_LIST_PAGE_TEST_ID,
33714
33869
  sx: {
@@ -33719,7 +33874,7 @@ var SpansListPage = () => {
33719
33874
  minWidth: 0
33720
33875
  },
33721
33876
  children: [
33722
- /* @__PURE__ */ jsx150(
33877
+ /* @__PURE__ */ jsx151(
33723
33878
  EmulatorVersionBanner,
33724
33879
  {
33725
33880
  compatibility: bannerDismissed && versionCompatibility === "warning" ? "ok" : versionCompatibility,
@@ -33729,7 +33884,7 @@ var SpansListPage = () => {
33729
33884
  } : void 0
33730
33885
  }
33731
33886
  ),
33732
- /* @__PURE__ */ jsx150(
33887
+ /* @__PURE__ */ jsx151(
33733
33888
  SpansList,
33734
33889
  {
33735
33890
  clearingSpans,
@@ -33756,7 +33911,7 @@ var SpansListPage = () => {
33756
33911
  ]
33757
33912
  }
33758
33913
  ),
33759
- selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ jsx150(
33914
+ selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ jsx151(
33760
33915
  TraceSidebar,
33761
33916
  {
33762
33917
  onClose: closeSidebar,