diff --git a/src/bot/events/healthcheck/healthcheck-modal-builder.ts b/src/bot/events/healthcheck/healthcheck-modal-builder.ts index a6ba5f8..c243a9b 100644 --- a/src/bot/events/healthcheck/healthcheck-modal-builder.ts +++ b/src/bot/events/healthcheck/healthcheck-modal-builder.ts @@ -51,6 +51,14 @@ export function createHealthCheckModalBlocks( plainHeader(questionTypeToText(QuestionType.TEAM_HEALTH)), ...teamHealth.map((question) => createSelectSectionBlock(question, existingAnswers)), ]), + ...addIfArray(grouped.ME, (me) => [ + plainHeader(questionTypeToText(QuestionType.ME)), + ...me.map((question) => createSelectSectionBlock(question, existingAnswers)), + ]), + ...addIfArray(grouped.SURROUNDINGS, (surroundings) => [ + plainHeader(questionTypeToText(QuestionType.SURROUNDINGS)), + ...surroundings.map((question) => createSelectSectionBlock(question, existingAnswers)), + ]), ...addIfArray(grouped.SPEED, (speed) => [ plainHeader(questionTypeToText(QuestionType.SPEED)), ...speed.map((question) => createSelectSectionBlock(question, existingAnswers)), diff --git a/src/components/graphs/GlobalScoreGraph.tsx b/src/components/graphs/GlobalScoreGraph.tsx index 18e3213..5f66101 100644 --- a/src/components/graphs/GlobalScoreGraph.tsx +++ b/src/components/graphs/GlobalScoreGraph.tsx @@ -21,6 +21,8 @@ type Props = { const colors = { score: 'rgba(0, 103, 197, 0.65)', [QuestionType.TEAM_HEALTH]: 'rgba(139, 69, 19, 0.65)', + [QuestionType.ME]: 'rgba(255,116,12,0.65)', + [QuestionType.SURROUNDINGS]: 'rgba(136,0,4,0.65)', [QuestionType.SPEED]: 'rgba(102, 102, 51, 0.65)', [QuestionType.TECH]: 'rgba(128, 0, 128, 0.65)', [QuestionType.OTHER]: 'rgba(255, 140, 0, 0.65)', diff --git a/src/safe-types.ts b/src/safe-types.ts index 57e73a6..f957ff9 100644 --- a/src/safe-types.ts +++ b/src/safe-types.ts @@ -1,5 +1,7 @@ export enum QuestionType { TEAM_HEALTH = 'TEAM_HEALTH', + ME = 'ME', + SURROUNDINGS = 'SURROUNDINGS', SPEED = 'SPEED', TECH = 'TECH', OTHER = 'OTHER', diff --git a/src/utils/asked.ts b/src/utils/asked.ts index 2140c9f..9b5693f 100644 --- a/src/utils/asked.ts +++ b/src/utils/asked.ts @@ -2,6 +2,10 @@ import { QuestionType } from '../safe-types' export function questionTypeToText(type: QuestionType): string { switch (type) { + case QuestionType.ME: + return 'Meg' + case QuestionType.SURROUNDINGS: + return 'Omgivelsene' case QuestionType.TEAM_HEALTH: return 'Teamhelse' case QuestionType.SPEED: