From 48dac26cf953edb534b754c9285529d549429e37 Mon Sep 17 00:00:00 2001 From: Kelly Tran Date: Tue, 5 Nov 2024 16:44:39 -0700 Subject: [PATCH] fix: weird spacing for nav components + rerport UI tweaks --- .../components/educator/dashboard/Reports.vue | 102 ++++++++++-------- client/src/views/EducatorPrivacy.vue | 4 - shared/src/types.ts | 6 ++ 3 files changed, 63 insertions(+), 49 deletions(-) diff --git a/client/src/components/educator/dashboard/Reports.vue b/client/src/components/educator/dashboard/Reports.vue index b3476f732..e073e5b4f 100644 --- a/client/src/components/educator/dashboard/Reports.vue +++ b/client/src/components/educator/dashboard/Reports.vue @@ -3,7 +3,7 @@

Reports will display once games have concluded.

- +

Completed Games

@@ -20,7 +20,7 @@ :sort-desc="true" > +
- -
+ +
-
+
-
+
+

Chat History

+
+
@@ -145,6 +157,7 @@ export default class TeacherDashboard extends Vue { completedGames: AdminGameData[] = []; inspectedCompletedGame: AdminGameData | null = null; + // inspectedChatLogs: StudentChatMessageData[] = []; completedGameFields = [ { key: "id", label: "Game ID" }, @@ -173,16 +186,21 @@ export default class TeacherDashboard extends Vue { ], }; playerChartOptions = { - responsive: true, - maintainAspectRatio: false, plugins: { title: { display: true, - font: { size: 24 }, + font: { size: 22 }, padding: { bottom: 10 }, text: "Total Player Points per Round", }, - legend: {}, + legend: { labels: { boxWidth: 30, padding: 15 } }, + tooltip: { + callbacks: { + title: function (tooltipItems: any) { + return `Round: ${tooltipItems[0].label}`; + }, + }, + }, }, scales: { x: { @@ -192,13 +210,6 @@ export default class TeacherDashboard extends Vue { font: { size: 14 }, }, }, - y: { - title: { - display: true, - text: "Points", - font: { size: 14 }, - }, - }, }, }; @@ -210,16 +221,24 @@ export default class TeacherDashboard extends Vue { ], }; systemChartOptions = { - responsive: true, - maintainAspectRatio: false, plugins: { title: { display: true, - font: { size: 24 }, + font: { size: 22 }, padding: { bottom: 10 }, text: "System Health Status per Round", }, legend: { display: false }, + tooltip: { + callbacks: { + title: function (tooltipItems: any) { + return `Round: ${tooltipItems[0].label}`; + }, + label: function (tooltipItem: any) { + return `${tooltipItem.dataset.label}: ${tooltipItem.raw}%`; + }, + }, + }, }, scales: { x: { @@ -229,13 +248,6 @@ export default class TeacherDashboard extends Vue { font: { size: 14 }, }, }, - y: { - title: { - display: true, - text: "Health (%)", - font: { size: 14 }, - }, - }, }, }; diff --git a/client/src/views/EducatorPrivacy.vue b/client/src/views/EducatorPrivacy.vue index 7bcbfd82d..111115924 100644 --- a/client/src/views/EducatorPrivacy.vue +++ b/client/src/views/EducatorPrivacy.vue @@ -61,8 +61,4 @@ ul, p { color: #fff; } - -ul { - padding-left: 2rem; -} diff --git a/shared/src/types.ts b/shared/src/types.ts index 0eb4375a2..164d66398 100644 --- a/shared/src/types.ts +++ b/shared/src/types.ts @@ -561,3 +561,9 @@ export interface TeacherData { name: string; email?: string; } + +// export interface StudentChatMessageData { +// dateCreated: string; +// roomId: string; +// message: string; +// }