@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.js
CHANGED
|
@@ -12276,6 +12276,138 @@ var ResponsiveTimestampCell = memo2(({ date, locale }) => {
|
|
|
12276
12276
|
import { Box as Box2, Divider, Typography, useTheme } from "@mui/material";
|
|
12277
12277
|
import { memo as memo7 } from "react";
|
|
12278
12278
|
|
|
12279
|
+
// src/utils/service-display-name.ts
|
|
12280
|
+
var SERVICE_DISPLAY_NAME = {
|
|
12281
|
+
"account": "Account",
|
|
12282
|
+
"acm": "Certificate Manager",
|
|
12283
|
+
"acm-pca": "Private Certificate Authority",
|
|
12284
|
+
"amplify": "Amplify",
|
|
12285
|
+
"apigateway": "API Gateway",
|
|
12286
|
+
"apigatewaymanagementapi": "API Gateway Management API",
|
|
12287
|
+
"apigatewayv2": "API Gateway v2",
|
|
12288
|
+
"appconfig": "AppConfig",
|
|
12289
|
+
"appconfigdata": "AppConfig Data",
|
|
12290
|
+
"application-autoscaling": "Application Auto Scaling",
|
|
12291
|
+
"appsync": "AppSync",
|
|
12292
|
+
"athena": "Athena",
|
|
12293
|
+
"autoscaling": "EC2 Auto Scaling",
|
|
12294
|
+
"backup": "Backup",
|
|
12295
|
+
"batch": "Batch",
|
|
12296
|
+
"bedrock": "Bedrock",
|
|
12297
|
+
"bedrock-runtime": "Bedrock Runtime",
|
|
12298
|
+
"ce": "Cost Explorer",
|
|
12299
|
+
"cloudcontrol": "Cloud Control API",
|
|
12300
|
+
"cloudformation": "CloudFormation",
|
|
12301
|
+
"cloudfront": "CloudFront",
|
|
12302
|
+
"cloudtrail": "CloudTrail",
|
|
12303
|
+
"cloudwatch": "CloudWatch",
|
|
12304
|
+
"codeartifact": "CodeArtifact",
|
|
12305
|
+
"codebuild": "CodeBuild",
|
|
12306
|
+
"codecommit": "CodeCommit",
|
|
12307
|
+
"codeconnections": "CodeConnections",
|
|
12308
|
+
"codedeploy": "CodeDeploy",
|
|
12309
|
+
"codepipeline": "CodePipeline",
|
|
12310
|
+
"codestar-connections": "CodeStar Connections",
|
|
12311
|
+
"cognito-identity": "Cognito Identity Pools",
|
|
12312
|
+
"cognito-idp": "Cognito User Pools",
|
|
12313
|
+
"config": "Config",
|
|
12314
|
+
"dms": "Database Migration Service",
|
|
12315
|
+
"docdb": "DocumentDB",
|
|
12316
|
+
"dynamodb": "DynamoDB",
|
|
12317
|
+
"dynamodbstreams": "DynamoDB Streams",
|
|
12318
|
+
"ec2": "EC2",
|
|
12319
|
+
"ecr": "ECR",
|
|
12320
|
+
"ecs": "ECS",
|
|
12321
|
+
"efs": "EFS",
|
|
12322
|
+
"eks": "EKS",
|
|
12323
|
+
"elasticache": "ElastiCache",
|
|
12324
|
+
"elasticbeanstalk": "Elastic Beanstalk",
|
|
12325
|
+
"elastictranscoder": "Elastic Transcoder",
|
|
12326
|
+
"elb": "ELB",
|
|
12327
|
+
"elbv2": "ELB v2",
|
|
12328
|
+
"emr": "EMR",
|
|
12329
|
+
"emr-serverless": "EMR Serverless",
|
|
12330
|
+
"es": "OpenSearch Service",
|
|
12331
|
+
"events": "EventBridge",
|
|
12332
|
+
"firehose": "Firehose",
|
|
12333
|
+
"fis": "Fault Injection Service",
|
|
12334
|
+
"glacier": "Amazon Glacier",
|
|
12335
|
+
"glue": "Glue",
|
|
12336
|
+
"iam": "IAM",
|
|
12337
|
+
"identitystore": "Identity Store",
|
|
12338
|
+
"infrastructure": "Infrastructure",
|
|
12339
|
+
"iot": "IoT",
|
|
12340
|
+
"iot-data": "IoT Data",
|
|
12341
|
+
"iotanalytics": "IoT Analytics",
|
|
12342
|
+
"iotwireless": "IoT Wireless",
|
|
12343
|
+
"kafka": "MSK",
|
|
12344
|
+
"kinesis": "Kinesis Data Streams",
|
|
12345
|
+
"kinesisanalytics": "Kinesis Data Analytics",
|
|
12346
|
+
"kinesisanalyticsv2": "Managed Service for Apache Flink",
|
|
12347
|
+
"kms": "KMS",
|
|
12348
|
+
"lakeformation": "Lake Formation",
|
|
12349
|
+
"lambda": "Lambda",
|
|
12350
|
+
"logs": "CloudWatch Logs",
|
|
12351
|
+
"managedblockchain": "Managed Blockchain",
|
|
12352
|
+
"mediaconvert": "MediaConvert",
|
|
12353
|
+
"mediastore": "Elemental MediaStore",
|
|
12354
|
+
"mediastore-data": "Elemental MediaStore Data",
|
|
12355
|
+
"memorydb": "MemoryDB",
|
|
12356
|
+
"mq": "MQ",
|
|
12357
|
+
"mwaa": "Managed Workflows for Apache Airflow",
|
|
12358
|
+
"neptune": "Neptune",
|
|
12359
|
+
"opensearch": "OpenSearch Service",
|
|
12360
|
+
"organizations": "Organizations",
|
|
12361
|
+
"pinpoint": "Pinpoint",
|
|
12362
|
+
"pipes": "EventBridge Pipes",
|
|
12363
|
+
"qldb": "QLDB",
|
|
12364
|
+
"qldb-session": "QLDB Session",
|
|
12365
|
+
"ram": "Resource Access Manager",
|
|
12366
|
+
"rds": "RDS",
|
|
12367
|
+
"rds-data": "RDS Data",
|
|
12368
|
+
"redshift": "Redshift",
|
|
12369
|
+
"redshift-data": "Redshift Data",
|
|
12370
|
+
"resource-groups": "Resource Groups",
|
|
12371
|
+
"resourcegroupstaggingapi": "Resource Groups Tagging API",
|
|
12372
|
+
"route53": "Route 53",
|
|
12373
|
+
"route53resolver": "Route 53 Resolver",
|
|
12374
|
+
"s3": "S3",
|
|
12375
|
+
"s3control": "S3 Control",
|
|
12376
|
+
"sagemaker": "SageMaker AI",
|
|
12377
|
+
"sagemaker-runtime": "SageMaker AI Runtime",
|
|
12378
|
+
"scheduler": "EventBridge Scheduler",
|
|
12379
|
+
"secretsmanager": "Secrets Manager",
|
|
12380
|
+
"serverlessrepo": "Serverless Application Repository",
|
|
12381
|
+
"servicediscovery": "Cloud Map",
|
|
12382
|
+
"ses": "SES",
|
|
12383
|
+
"sesv2": "SES v2",
|
|
12384
|
+
"sfn": "Step Functions",
|
|
12385
|
+
"shield": "Shield",
|
|
12386
|
+
"sns": "SNS",
|
|
12387
|
+
"sqs": "SQS",
|
|
12388
|
+
"ssm": "Systems Manager",
|
|
12389
|
+
"sso-admin": "IAM Identity Center",
|
|
12390
|
+
"stepfunctions": "Step Functions",
|
|
12391
|
+
"sts": "STS",
|
|
12392
|
+
"support": "Support",
|
|
12393
|
+
"swf": "SWF",
|
|
12394
|
+
"textract": "Textract",
|
|
12395
|
+
"timestream": "Timestream",
|
|
12396
|
+
"timestream-query": "Timestream Query",
|
|
12397
|
+
"timestream-write": "Timestream Write",
|
|
12398
|
+
"transcribe": "Transcribe",
|
|
12399
|
+
"transfer": "Transfer Family",
|
|
12400
|
+
"translate": "Translate",
|
|
12401
|
+
"verifiedpermissions": "Verified Permissions",
|
|
12402
|
+
"waf": "WAF Classic",
|
|
12403
|
+
"wafv2": "WAF",
|
|
12404
|
+
"xray": "X-Ray"
|
|
12405
|
+
};
|
|
12406
|
+
var getServiceDisplayName = (code) => {
|
|
12407
|
+
if (!code) return "";
|
|
12408
|
+
return SERVICE_DISPLAY_NAME[code] ?? code;
|
|
12409
|
+
};
|
|
12410
|
+
|
|
12279
12411
|
// src/components/aws-service-icon/aws-service-icon.tsx
|
|
12280
12412
|
import { Tooltip } from "@mui/material";
|
|
12281
12413
|
import { memo as memo5 } from "react";
|
|
@@ -14698,8 +14830,9 @@ var ServiceCell = memo7(({
|
|
|
14698
14830
|
Typography,
|
|
14699
14831
|
{
|
|
14700
14832
|
sx: {
|
|
14701
|
-
flexShrink:
|
|
14833
|
+
flexShrink: 1,
|
|
14702
14834
|
fontWeight: "bold",
|
|
14835
|
+
minWidth: 0,
|
|
14703
14836
|
overflow: "hidden",
|
|
14704
14837
|
padding: "1px 8px",
|
|
14705
14838
|
textOverflow: "ellipsis",
|
|
@@ -14714,7 +14847,7 @@ var ServiceCell = memo7(({
|
|
|
14714
14847
|
}
|
|
14715
14848
|
},
|
|
14716
14849
|
variant: "body2",
|
|
14717
|
-
children: service
|
|
14850
|
+
children: getServiceDisplayName(service)
|
|
14718
14851
|
}
|
|
14719
14852
|
),
|
|
14720
14853
|
resource ? /* @__PURE__ */ jsxs119(Fragment3, { children: [
|
|
@@ -18264,7 +18397,11 @@ var useSpans = () => {
|
|
|
18264
18397
|
}
|
|
18265
18398
|
}
|
|
18266
18399
|
});
|
|
18400
|
+
const clearFetchError = useCallback8(() => {
|
|
18401
|
+
setFetchError(void 0);
|
|
18402
|
+
}, []);
|
|
18267
18403
|
return {
|
|
18404
|
+
clearFetchError,
|
|
18268
18405
|
clearingSpans,
|
|
18269
18406
|
clearSpans,
|
|
18270
18407
|
errorCount,
|
|
@@ -30517,7 +30654,7 @@ var EventDetails = ({ onClose, selectedEvent }) => {
|
|
|
30517
30654
|
/* @__PURE__ */ jsxs130(Box15, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
|
|
30518
30655
|
/* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30519
30656
|
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Service" }),
|
|
30520
|
-
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_SERVICE_NAME_TEST_ID, variant: "body2", children: selectedEvent.service_name })
|
|
30657
|
+
/* @__PURE__ */ jsx140(Typography10, { "data-testid": EVENT_DETAILS_SERVICE_NAME_TEST_ID, variant: "body2", children: getServiceDisplayName(selectedEvent.service_name) })
|
|
30521
30658
|
] }),
|
|
30522
30659
|
/* @__PURE__ */ jsxs130(Box15, { children: [
|
|
30523
30660
|
/* @__PURE__ */ jsx140(Typography10, { sx: { fontWeight: 600 }, variant: "caption", children: "Action" }),
|
|
@@ -30761,7 +30898,7 @@ var ServiceNode = memo11(({ data, selected }) => {
|
|
|
30761
30898
|
noWrap: true,
|
|
30762
30899
|
sx: { fontWeight: 700, lineHeight: 1.25 },
|
|
30763
30900
|
variant: "body2",
|
|
30764
|
-
children: data.event.service_name
|
|
30901
|
+
children: getServiceDisplayName(data.event.service_name)
|
|
30765
30902
|
}
|
|
30766
30903
|
),
|
|
30767
30904
|
data.event.resource_name != "" && /* @__PURE__ */ jsx142(
|
|
@@ -31287,6 +31424,7 @@ import { Fragment as Fragment13, jsx as jsx146, jsxs as jsxs135 } from "react/js
|
|
|
31287
31424
|
var SpansListPage = () => {
|
|
31288
31425
|
const api = useAppInspectorApi();
|
|
31289
31426
|
const {
|
|
31427
|
+
clearFetchError,
|
|
31290
31428
|
clearingSpans,
|
|
31291
31429
|
clearSpans,
|
|
31292
31430
|
errorCount,
|
|
@@ -31325,8 +31463,9 @@ var SpansListPage = () => {
|
|
|
31325
31463
|
}, [checkStatus, fetchForward]);
|
|
31326
31464
|
const handleEnable = useCallback11(async () => {
|
|
31327
31465
|
await api.setStatus({ status: "ENABLED" });
|
|
31466
|
+
clearFetchError();
|
|
31328
31467
|
void checkStatus();
|
|
31329
|
-
}, [api, checkStatus]);
|
|
31468
|
+
}, [api, checkStatus, clearFetchError]);
|
|
31330
31469
|
const shouldShowStatusMessage = Boolean(statusError) || status?.status === "DISABLED";
|
|
31331
31470
|
return /* @__PURE__ */ jsxs135(Fragment13, { children: [
|
|
31332
31471
|
/* @__PURE__ */ jsxs135(
|