@localstack/appinspector-ui 1.0.108 → 1.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +144 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +144 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12263,6 +12263,138 @@ var ResponsiveTimestampCell = (0, import_react35.memo)(({ date, locale }) => {
|
|
|
12263
12263
|
var import_material4 = require("@mui/material");
|
|
12264
12264
|
var import_react40 = require("react");
|
|
12265
12265
|
|
|
12266
|
+
// src/utils/service-display-name.ts
|
|
12267
|
+
var SERVICE_DISPLAY_NAME = {
|
|
12268
|
+
"account": "Account",
|
|
12269
|
+
"acm": "Certificate Manager",
|
|
12270
|
+
"acm-pca": "Private Certificate Authority",
|
|
12271
|
+
"amplify": "Amplify",
|
|
12272
|
+
"apigateway": "API Gateway",
|
|
12273
|
+
"apigatewaymanagementapi": "API Gateway Management API",
|
|
12274
|
+
"apigatewayv2": "API Gateway v2",
|
|
12275
|
+
"appconfig": "AppConfig",
|
|
12276
|
+
"appconfigdata": "AppConfig Data",
|
|
12277
|
+
"application-autoscaling": "Application Auto Scaling",
|
|
12278
|
+
"appsync": "AppSync",
|
|
12279
|
+
"athena": "Athena",
|
|
12280
|
+
"autoscaling": "EC2 Auto Scaling",
|
|
12281
|
+
"backup": "Backup",
|
|
12282
|
+
"batch": "Batch",
|
|
12283
|
+
"bedrock": "Bedrock",
|
|
12284
|
+
"bedrock-runtime": "Bedrock Runtime",
|
|
12285
|
+
"ce": "Cost Explorer",
|
|
12286
|
+
"cloudcontrol": "Cloud Control API",
|
|
12287
|
+
"cloudformation": "CloudFormation",
|
|
12288
|
+
"cloudfront": "CloudFront",
|
|
12289
|
+
"cloudtrail": "CloudTrail",
|
|
12290
|
+
"cloudwatch": "CloudWatch",
|
|
12291
|
+
"codeartifact": "CodeArtifact",
|
|
12292
|
+
"codebuild": "CodeBuild",
|
|
12293
|
+
"codecommit": "CodeCommit",
|
|
12294
|
+
"codeconnections": "CodeConnections",
|
|
12295
|
+
"codedeploy": "CodeDeploy",
|
|
12296
|
+
"codepipeline": "CodePipeline",
|
|
12297
|
+
"codestar-connections": "CodeStar Connections",
|
|
12298
|
+
"cognito-identity": "Cognito Identity Pools",
|
|
12299
|
+
"cognito-idp": "Cognito User Pools",
|
|
12300
|
+
"config": "Config",
|
|
12301
|
+
"dms": "Database Migration Service",
|
|
12302
|
+
"docdb": "DocumentDB",
|
|
12303
|
+
"dynamodb": "DynamoDB",
|
|
12304
|
+
"dynamodbstreams": "DynamoDB Streams",
|
|
12305
|
+
"ec2": "EC2",
|
|
12306
|
+
"ecr": "ECR",
|
|
12307
|
+
"ecs": "ECS",
|
|
12308
|
+
"efs": "EFS",
|
|
12309
|
+
"eks": "EKS",
|
|
12310
|
+
"elasticache": "ElastiCache",
|
|
12311
|
+
"elasticbeanstalk": "Elastic Beanstalk",
|
|
12312
|
+
"elastictranscoder": "Elastic Transcoder",
|
|
12313
|
+
"elb": "ELB",
|
|
12314
|
+
"elbv2": "ELB v2",
|
|
12315
|
+
"emr": "EMR",
|
|
12316
|
+
"emr-serverless": "EMR Serverless",
|
|
12317
|
+
"es": "OpenSearch Service",
|
|
12318
|
+
"events": "EventBridge",
|
|
12319
|
+
"firehose": "Firehose",
|
|
12320
|
+
"fis": "Fault Injection Service",
|
|
12321
|
+
"glacier": "Amazon Glacier",
|
|
12322
|
+
"glue": "Glue",
|
|
12323
|
+
"iam": "IAM",
|
|
12324
|
+
"identitystore": "Identity Store",
|
|
12325
|
+
"infrastructure": "Infrastructure",
|
|
12326
|
+
"iot": "IoT",
|
|
12327
|
+
"iot-data": "IoT Data",
|
|
12328
|
+
"iotanalytics": "IoT Analytics",
|
|
12329
|
+
"iotwireless": "IoT Wireless",
|
|
12330
|
+
"kafka": "MSK",
|
|
12331
|
+
"kinesis": "Kinesis Data Streams",
|
|
12332
|
+
"kinesisanalytics": "Kinesis Data Analytics",
|
|
12333
|
+
"kinesisanalyticsv2": "Managed Service for Apache Flink",
|
|
12334
|
+
"kms": "KMS",
|
|
12335
|
+
"lakeformation": "Lake Formation",
|
|
12336
|
+
"lambda": "Lambda",
|
|
12337
|
+
"logs": "CloudWatch Logs",
|
|
12338
|
+
"managedblockchain": "Managed Blockchain",
|
|
12339
|
+
"mediaconvert": "MediaConvert",
|
|
12340
|
+
"mediastore": "Elemental MediaStore",
|
|
12341
|
+
"mediastore-data": "Elemental MediaStore Data",
|
|
12342
|
+
"memorydb": "MemoryDB",
|
|
12343
|
+
"mq": "MQ",
|
|
12344
|
+
"mwaa": "Managed Workflows for Apache Airflow",
|
|
12345
|
+
"neptune": "Neptune",
|
|
12346
|
+
"opensearch": "OpenSearch Service",
|
|
12347
|
+
"organizations": "Organizations",
|
|
12348
|
+
"pinpoint": "Pinpoint",
|
|
12349
|
+
"pipes": "EventBridge Pipes",
|
|
12350
|
+
"qldb": "QLDB",
|
|
12351
|
+
"qldb-session": "QLDB Session",
|
|
12352
|
+
"ram": "Resource Access Manager",
|
|
12353
|
+
"rds": "RDS",
|
|
12354
|
+
"rds-data": "RDS Data",
|
|
12355
|
+
"redshift": "Redshift",
|
|
12356
|
+
"redshift-data": "Redshift Data",
|
|
12357
|
+
"resource-groups": "Resource Groups",
|
|
12358
|
+
"resourcegroupstaggingapi": "Resource Groups Tagging API",
|
|
12359
|
+
"route53": "Route 53",
|
|
12360
|
+
"route53resolver": "Route 53 Resolver",
|
|
12361
|
+
"s3": "S3",
|
|
12362
|
+
"s3control": "S3 Control",
|
|
12363
|
+
"sagemaker": "SageMaker AI",
|
|
12364
|
+
"sagemaker-runtime": "SageMaker AI Runtime",
|
|
12365
|
+
"scheduler": "EventBridge Scheduler",
|
|
12366
|
+
"secretsmanager": "Secrets Manager",
|
|
12367
|
+
"serverlessrepo": "Serverless Application Repository",
|
|
12368
|
+
"servicediscovery": "Cloud Map",
|
|
12369
|
+
"ses": "SES",
|
|
12370
|
+
"sesv2": "SES v2",
|
|
12371
|
+
"sfn": "Step Functions",
|
|
12372
|
+
"shield": "Shield",
|
|
12373
|
+
"sns": "SNS",
|
|
12374
|
+
"sqs": "SQS",
|
|
12375
|
+
"ssm": "Systems Manager",
|
|
12376
|
+
"sso-admin": "IAM Identity Center",
|
|
12377
|
+
"stepfunctions": "Step Functions",
|
|
12378
|
+
"sts": "STS",
|
|
12379
|
+
"support": "Support",
|
|
12380
|
+
"swf": "SWF",
|
|
12381
|
+
"textract": "Textract",
|
|
12382
|
+
"timestream": "Timestream",
|
|
12383
|
+
"timestream-query": "Timestream Query",
|
|
12384
|
+
"timestream-write": "Timestream Write",
|
|
12385
|
+
"transcribe": "Transcribe",
|
|
12386
|
+
"transfer": "Transfer Family",
|
|
12387
|
+
"translate": "Translate",
|
|
12388
|
+
"verifiedpermissions": "Verified Permissions",
|
|
12389
|
+
"waf": "WAF Classic",
|
|
12390
|
+
"wafv2": "WAF",
|
|
12391
|
+
"xray": "X-Ray"
|
|
12392
|
+
};
|
|
12393
|
+
var getServiceDisplayName = (code) => {
|
|
12394
|
+
if (!code) return "";
|
|
12395
|
+
return SERVICE_DISPLAY_NAME[code] ?? code;
|
|
12396
|
+
};
|
|
12397
|
+
|
|
12266
12398
|
// src/components/aws-service-icon/aws-service-icon.tsx
|
|
12267
12399
|
var import_material2 = require("@mui/material");
|
|
12268
12400
|
var import_react38 = require("react");
|
|
@@ -14685,8 +14817,9 @@ var ServiceCell = (0, import_react40.memo)(({
|
|
|
14685
14817
|
import_material4.Typography,
|
|
14686
14818
|
{
|
|
14687
14819
|
sx: {
|
|
14688
|
-
flexShrink:
|
|
14820
|
+
flexShrink: 1,
|
|
14689
14821
|
fontWeight: "bold",
|
|
14822
|
+
minWidth: 0,
|
|
14690
14823
|
overflow: "hidden",
|
|
14691
14824
|
padding: "1px 8px",
|
|
14692
14825
|
textOverflow: "ellipsis",
|
|
@@ -14701,7 +14834,7 @@ var ServiceCell = (0, import_react40.memo)(({
|
|
|
14701
14834
|
}
|
|
14702
14835
|
},
|
|
14703
14836
|
variant: "body2",
|
|
14704
|
-
children: service
|
|
14837
|
+
children: getServiceDisplayName(service)
|
|
14705
14838
|
}
|
|
14706
14839
|
),
|
|
14707
14840
|
resource ? /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_jsx_runtime125.Fragment, { children: [
|
|
@@ -18251,7 +18384,11 @@ var useSpans = () => {
|
|
|
18251
18384
|
}
|
|
18252
18385
|
}
|
|
18253
18386
|
});
|
|
18387
|
+
const clearFetchError = (0, import_react52.useCallback)(() => {
|
|
18388
|
+
setFetchError(void 0);
|
|
18389
|
+
}, []);
|
|
18254
18390
|
return {
|
|
18391
|
+
clearFetchError,
|
|
18255
18392
|
clearingSpans,
|
|
18256
18393
|
clearSpans,
|
|
18257
18394
|
errorCount,
|
|
@@ -30504,7 +30641,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
30504
30641
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
30505
30642
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { children: [
|
|
30506
30643
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Service" }),
|
|
30507
|
-
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { "data-testid": EVENT_DETAILS_SERVICE_NAME_TEST_ID, variant: "body2", children: selectedEvent.service_name })
|
|
30644
|
+
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { "data-testid": EVENT_DETAILS_SERVICE_NAME_TEST_ID, variant: "body2", children: getServiceDisplayName(selectedEvent.service_name) })
|
|
30508
30645
|
] }),
|
|
30509
30646
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material17.Box, { children: [
|
|
30510
30647
|
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material17.Typography, { sx: { fontWeight: 600 }, variant: "caption", children: "Action" }),
|
|
@@ -30748,7 +30885,7 @@ var ServiceNode = (0, import_react62.memo)(({ data, selected }) => {
|
|
|
30748
30885
|
noWrap: true,
|
|
30749
30886
|
sx: { fontWeight: 700, lineHeight: 1.25 },
|
|
30750
30887
|
variant: "body2",
|
|
30751
|
-
children: data.event.service_name
|
|
30888
|
+
children: getServiceDisplayName(data.event.service_name)
|
|
30752
30889
|
}
|
|
30753
30890
|
),
|
|
30754
30891
|
data.event.resource_name != "" && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
@@ -31274,6 +31411,7 @@ var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
|
31274
31411
|
var SpansListPage = () => {
|
|
31275
31412
|
const api = useAppInspectorApi();
|
|
31276
31413
|
const {
|
|
31414
|
+
clearFetchError,
|
|
31277
31415
|
clearingSpans,
|
|
31278
31416
|
clearSpans,
|
|
31279
31417
|
errorCount,
|
|
@@ -31312,8 +31450,9 @@ var SpansListPage = () => {
|
|
|
31312
31450
|
}, [checkStatus, fetchForward]);
|
|
31313
31451
|
const handleEnable = (0, import_react69.useCallback)(async () => {
|
|
31314
31452
|
await api.setStatus({ status: "ENABLED" });
|
|
31453
|
+
clearFetchError();
|
|
31315
31454
|
void checkStatus();
|
|
31316
|
-
}, [api, checkStatus]);
|
|
31455
|
+
}, [api, checkStatus, clearFetchError]);
|
|
31317
31456
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
31318
31457
|
return /* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(import_jsx_runtime146.Fragment, { children: [
|
|
31319
31458
|
/* @__PURE__ */ (0, import_jsx_runtime146.jsxs)(
|