diff --git a/src/Frontend/src/views/throughputreport/EndpointsView.vue b/src/Frontend/src/views/throughputreport/EndpointsView.vue index 81c7a4f89..54c594094 100644 --- a/src/Frontend/src/views/throughputreport/EndpointsView.vue +++ b/src/Frontend/src/views/throughputreport/EndpointsView.vue @@ -3,18 +3,26 @@ import routeLinks from "@/router/routeLinks"; import isRouteSelected from "@/composables/isRouteSelected"; import { UserIndicator } from "@/views/throughputreport/endpoints/userIndicator"; import { userIndicatorMapper } from "@/views/throughputreport/endpoints/userIndicatorMapper"; -import { ref } from "vue"; +import { ref, type Component } from "vue"; import { useThroughputStore } from "@/stores/ThroughputStore"; import { storeToRefs } from "pinia"; +import LegendNServiceBusEndpoint from "./LegendNServiceBusEndpoint.vue"; +import LegendNServiceBusEndpointNoLongerInUse from "./LegendNServiceBusEndpointNoLongerInUse.vue"; +import LegendTransactionalSessionProcessorEndpoint from "./LegendTransactionalSessionProcessorEndpoint.vue"; +import LegendSendOnlyEndpoint from "./LegendSendOnlyEndpoint.vue"; +import LegendPlannedToDecommission from "./LegendPlannedToDecommission.vue"; +import LegendNotNServiceBusEndpoint from "./LegendNotNServiceBusEndpoint.vue"; const { isBrokerTransport } = storeToRefs(useThroughputStore()); const showLegend = ref(true); -const legendOptions = new Map([ - [UserIndicator.NServiceBusEndpoint, "Known NServiceBus Endpoint"], - [UserIndicator.NServiceBusEndpointNoLongerInUse, "NServiceBus Endpoint that is no longer in use, usually this would have zero throughput"], - [UserIndicator.SendOnlyOrTransactionSessionEndpoint, "If the endpoint has no throughput or the endpoint has Transactional Session feature enabled"], - [UserIndicator.PlannedToDecommission, "If the endpoint is planned to no longer be used in the next 30 days"], - [UserIndicator.NotNServiceBusEndpoint, "Not an NServiceBus Endpoint"], + +const legendOptions = new Map([ + [UserIndicator.NServiceBusEndpoint, LegendNServiceBusEndpoint], + [UserIndicator.NServiceBusEndpointNoLongerInUse, LegendNServiceBusEndpointNoLongerInUse], + [UserIndicator.TransactionalSessionProcessorEndpoint, LegendTransactionalSessionProcessorEndpoint], + [UserIndicator.SendOnlyEndpoint, LegendSendOnlyEndpoint], + [UserIndicator.PlannedToDecommission, LegendPlannedToDecommission], + [UserIndicator.NotNServiceBusEndpoint, LegendNotNServiceBusEndpoint], ]); function toggleOptionsLegendVisible() { @@ -32,8 +40,8 @@ function toggleOptionsLegendVisible() { {{ showLegend ? "Hide" : "Show" }} Endpoint Types meaning.

-
- {{ userIndicatorMapper.get(key) }} - {{ value }}. +
+ {{ userIndicatorMapper.get(key) }} - .
diff --git a/src/Frontend/src/views/throughputreport/LegendNServiceBusEndpoint.vue b/src/Frontend/src/views/throughputreport/LegendNServiceBusEndpoint.vue new file mode 100644 index 000000000..b7c05df42 --- /dev/null +++ b/src/Frontend/src/views/throughputreport/LegendNServiceBusEndpoint.vue @@ -0,0 +1,6 @@ + diff --git a/src/Frontend/src/views/throughputreport/LegendNServiceBusEndpointNoLongerInUse.vue b/src/Frontend/src/views/throughputreport/LegendNServiceBusEndpointNoLongerInUse.vue new file mode 100644 index 000000000..742f3211b --- /dev/null +++ b/src/Frontend/src/views/throughputreport/LegendNServiceBusEndpointNoLongerInUse.vue @@ -0,0 +1,3 @@ + diff --git a/src/Frontend/src/views/throughputreport/LegendNotNServiceBusEndpoint.vue b/src/Frontend/src/views/throughputreport/LegendNotNServiceBusEndpoint.vue new file mode 100644 index 000000000..4ec904329 --- /dev/null +++ b/src/Frontend/src/views/throughputreport/LegendNotNServiceBusEndpoint.vue @@ -0,0 +1,3 @@ + diff --git a/src/Frontend/src/views/throughputreport/LegendPlannedToDecommission.vue b/src/Frontend/src/views/throughputreport/LegendPlannedToDecommission.vue new file mode 100644 index 000000000..02393eb69 --- /dev/null +++ b/src/Frontend/src/views/throughputreport/LegendPlannedToDecommission.vue @@ -0,0 +1,3 @@ + diff --git a/src/Frontend/src/views/throughputreport/LegendSendOnlyEndpoint.vue b/src/Frontend/src/views/throughputreport/LegendSendOnlyEndpoint.vue new file mode 100644 index 000000000..020ee7650 --- /dev/null +++ b/src/Frontend/src/views/throughputreport/LegendSendOnlyEndpoint.vue @@ -0,0 +1,3 @@ + diff --git a/src/Frontend/src/views/throughputreport/LegendTransactionalSessionProcessorEndpoint.vue b/src/Frontend/src/views/throughputreport/LegendTransactionalSessionProcessorEndpoint.vue new file mode 100644 index 000000000..1aad0b0b6 --- /dev/null +++ b/src/Frontend/src/views/throughputreport/LegendTransactionalSessionProcessorEndpoint.vue @@ -0,0 +1,3 @@ + diff --git a/src/Frontend/src/views/throughputreport/endpoints/DetectedBrokerQueuesView.vue b/src/Frontend/src/views/throughputreport/endpoints/DetectedBrokerQueuesView.vue index db093096d..7d01dc34f 100644 --- a/src/Frontend/src/views/throughputreport/endpoints/DetectedBrokerQueuesView.vue +++ b/src/Frontend/src/views/throughputreport/endpoints/DetectedBrokerQueuesView.vue @@ -22,7 +22,14 @@ const { testResults } = storeToRefs(store); ([ [UserIndicator.NServiceBusEndpoint, "NServiceBus Endpoint"], [UserIndicator.NServiceBusEndpointNoLongerInUse, "No longer in use"], - [UserIndicator.SendOnlyOrTransactionSessionEndpoint, "SendOnly or Transactional Session Endpoint"], + [UserIndicator.TransactionalSessionProcessorEndpoint, "Transactional Session Processor Endpoint"], + [UserIndicator.SendOnlyEndpoint, "Send-Only Endpoint"], [UserIndicator.PlannedToDecommission, "Planned to be decommissioned"], [UserIndicator.NotNServiceBusEndpoint, "Not an NServiceBus Endpoint"], ]);