From 1e7d8b9d1ef648266947b8395de5a57c5b49e58c Mon Sep 17 00:00:00 2001 From: sirsamueljoseph Date: Mon, 16 Sep 2024 08:37:51 -0600 Subject: [PATCH] feat: [#188283234] Enable contextual info in non essential questions --- content/src/roadmaps/nonEssentialQuestions.json | 4 ++-- web/public/mgmt/config.yml | 2 +- .../non-essential-questions/NonEssentialQuestion.tsx | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/content/src/roadmaps/nonEssentialQuestions.json b/content/src/roadmaps/nonEssentialQuestions.json index d479c17953..08366dbbfd 100644 --- a/content/src/roadmaps/nonEssentialQuestions.json +++ b/content/src/roadmaps/nonEssentialQuestions.json @@ -47,7 +47,7 @@ }, { "id": "freestanding-residential-health-care-license", - "questionText": "Do you plan to own and/or operate a free-standing residential health care facility?", + "questionText": "Do you plan to own and/or operate a `free-standing residential health care facility?|residential-health-care-facility`", "addOn": "healthcare-freestanding-facility-license" }, { @@ -66,4 +66,4 @@ "id": "electrologist" } ] -} \ No newline at end of file +} diff --git a/web/public/mgmt/config.yml b/web/public/mgmt/config.yml index 54aa79a82d..fbe11d30ab 100644 --- a/web/public/mgmt/config.yml +++ b/web/public/mgmt/config.yml @@ -1988,7 +1988,7 @@ collections: widget: string - label: Question name: questionText - widget: string + widget: markdown - label: Add On name: addOn widget: "relation" diff --git a/web/src/components/data-fields/non-essential-questions/NonEssentialQuestion.tsx b/web/src/components/data-fields/non-essential-questions/NonEssentialQuestion.tsx index 0c76734e3a..c68f27c23b 100644 --- a/web/src/components/data-fields/non-essential-questions/NonEssentialQuestion.tsx +++ b/web/src/components/data-fields/non-essential-questions/NonEssentialQuestion.tsx @@ -1,3 +1,4 @@ +import { Content } from "@/components/Content"; import { ProfileDataContext } from "@/contexts/profileDataContext"; import { useConfig } from "@/lib/data-hooks/useConfig"; import { getNonEssentialQuestionText } from "@/lib/domain-logic/getNonEssentialQuestionText"; @@ -28,7 +29,9 @@ export const NonEssentialQuestion = (props: Props): ReactElement => { {nonEssentialQuestionText && ( <>
- {nonEssentialQuestionText} +
+ {nonEssentialQuestionText} +
{Config.profileDefaults.fields.nonEssentialQuestions.default.optionalText}