Skip to content

Commit 00aa23f

Browse files
committed
Add KMT dashboards
1 parent 70a2876 commit 00aa23f

File tree

2 files changed

+77
-3
lines changed

2 files changed

+77
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<template>
2+
<DashboardPage
3+
db-name="perfintDev"
4+
table="kmt"
5+
persistent-id="kmt_performance_dashboard"
6+
initial-machine="Mac Cidr Performance"
7+
:charts="charts"
8+
:with-installer="false"
9+
>
10+
<section>
11+
<GroupProjectsWithClientChart
12+
v-for="chart in charts"
13+
:key="chart.definition.label"
14+
:label="chart.definition.label"
15+
:measure="chart.definition.measure"
16+
:projects="chart.projects"
17+
:aliases="chart.aliases"
18+
/>
19+
</section>
20+
</DashboardPage>
21+
</template>
22+
23+
<script setup lang="ts">
24+
import { ChartDefinition, combineCharts } from "../charts/DashboardCharts"
25+
import DashboardPage from "../common/DashboardPage.vue"
26+
import GroupProjectsWithClientChart from "../charts/GroupProjectsWithClientChart.vue"
27+
28+
const chartsDeclaration: ChartDefinition[] = [
29+
{
30+
labels: ["Startup"],
31+
measures: ["totalOpeningTime/timeFromAppStartTillAnalysisFinished"],
32+
projects: ["KMT_Basic/measureStartup"],
33+
},
34+
{
35+
labels: ["Inspections"],
36+
measures: ["globalInspections"],
37+
projects: ["KMT_Basic/inspection/KMT_Basic"],
38+
},
39+
{
40+
labels: ["Indexing"],
41+
measures: [["indexingTimeWithoutPauses", "scanningTimeWithoutPauses"]],
42+
projects: ["KMT_Basic/indexingKMT_Basic"],
43+
},
44+
]
45+
46+
const charts = combineCharts(chartsDeclaration)
47+
</script>

dashboard/new-dashboard/src/routes.ts

+30-3
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ enum ROUTES {
219219
AIAChatCodeGenerationDashboard = `${ROUTE_PREFIX.AIA}/chatCodeGeneration`,
220220
AIANameSuggestionDashboard = `${ROUTE_PREFIX.AIA}/nameSuggestion`,
221221
AIATestGenerationDashboard = `${ROUTE_PREFIX.AIA}/testGeneration`,
222-
KMTTests = `${ROUTE_PREFIX.KMT}/${TEST_ROUTE}`,
222+
KMTTests = `${ROUTE_PREFIX.KMT}/unitTests`,
223+
KMTIntegrationTests = `${ROUTE_PREFIX.KMT}/${TEST_ROUTE}`,
224+
KMTDashboard = `${ROUTE_PREFIX.KMT}/${DASHBOARD_ROUTE}`,
223225
DiogenTests = `${ROUTE_PREFIX.Diogen}/${TEST_ROUTE}`,
224226
ToolboxTests = `${ROUTE_PREFIX.Toolbox}/${TEST_ROUTE}`,
225227
ReportDegradations = "/degradations/report",
@@ -1177,9 +1179,17 @@ const KMT: Product = {
11771179
url: ROUTE_PREFIX.KMT,
11781180
label: "",
11791181
tabs: [
1182+
{
1183+
url: ROUTES.KMTDashboard,
1184+
label: "Dashboard",
1185+
},
1186+
{
1187+
url: ROUTES.KMTIntegrationTests,
1188+
label: "Integration Tests",
1189+
},
11801190
{
11811191
url: ROUTES.KMTTests,
1182-
label: "All",
1192+
label: "Unit Tests",
11831193
},
11841194
],
11851195
},
@@ -2392,7 +2402,24 @@ export function getNewDashboardRoutes(): ParentRouteRecord[] {
23922402
branch: null,
23932403
initialMachine: "Mac Cidr Performance",
23942404
},
2395-
meta: { pageTitle: "AIA Tests" },
2405+
meta: { pageTitle: "KMT Unit Tests" },
2406+
},
2407+
{
2408+
path: ROUTES.KMTIntegrationTests,
2409+
component: () => import("./components/common/PerformanceTests.vue"),
2410+
props: {
2411+
dbName: "perfintDev",
2412+
table: "kmt",
2413+
withInstaller: false,
2414+
branch: "master",
2415+
initialMachine: "Mac Cidr Performance",
2416+
},
2417+
meta: { pageTitle: "KMT Integration Tests" },
2418+
},
2419+
{
2420+
path: ROUTES.KMTDashboard,
2421+
component: () => import("./components/kmt/PerformanceDashboard.vue"),
2422+
meta: { pageTitle: "KMT Dashboard" },
23962423
},
23972424
{
23982425
path: ROUTES.DiogenTests,

0 commit comments

Comments
 (0)