Skip to content

Commit ee2dbb9

Browse files
committed
add tooltips for custom checks
1 parent c833d34 commit ee2dbb9

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

builder-frontend/src/components/homeScreen/eligibilityCheckList/EligibilityChecksList.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import eligibilityCheckResource from "./eligibilityCheckResource";
77

88
import type { EligibilityCheck } from "@/types";
99
import ConfirmationModal from "@/components/shared/ConfirmationModal";
10+
import Tooltip from "@/components/shared/Tooltip";
1011

1112
const EligibilityChecksList = () => {
1213
const { checks, actions, actionInProgress, initialLoadStatus } =
@@ -16,7 +17,7 @@ const EligibilityChecksList = () => {
1617
const [addingNewCheck, setAddingNewCheck] = createSignal<boolean>(false);
1718

1819
const [checkIdToRemove, setCheckIdToRemove] = createSignal<null | string>(
19-
null
20+
null,
2021
);
2122

2223
const navigateToCheck = (check: EligibilityCheck) => {
@@ -28,7 +29,21 @@ const EligibilityChecksList = () => {
2829
<Show when={initialLoadStatus.loading() || actionInProgress()}>
2930
<Loading />
3031
</Show>
31-
<div class="text-xl font-bold mb-2">Eligibility Checks</div>
32+
<div class="flex flex-row gap-2 items-baseline">
33+
<div class="text-xl font-bold mb-2">Eligibility Checks</div>
34+
<Tooltip>
35+
<p>
36+
If the public checks do not cover a requirement specific to your use
37+
case, BDT allows you to build your own reusable custom eligibility
38+
checks.
39+
</p>
40+
<p>
41+
<a href="https://bdt-docs.web.app/custom-checks/" target="_blank">
42+
Read about custom eligibility checks in the docs
43+
</a>
44+
</p>
45+
</Tooltip>
46+
</div>
3247
<div class="text-md mb-3">
3348
Manage your custom eligibility checks here. Click on a check to view or
3449
edit its details.

builder-frontend/src/components/homeScreen/eligibilityCheckList/eligibilityCheckDetail/ParametersConfiguration.tsx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import ParameterModal from "./modals/ParameterModal";
44

55
import ConfirmationModal from "@/components/shared/ConfirmationModal";
66
import type { EligibilityCheck, ParameterDefinition } from "@/types";
7+
import Tooltip from "@/components/shared/Tooltip";
78

89
const ParametersConfiguration = ({
910
eligibilityCheck,
@@ -15,7 +16,7 @@ const ParametersConfiguration = ({
1516
addParameter: (parameter: ParameterDefinition) => Promise<void>;
1617
editParameter: (
1718
parameterIndex: number,
18-
parameter: ParameterDefinition
19+
parameter: ParameterDefinition,
1920
) => Promise<void>;
2021
removeParameter: (parameterIndex: number) => Promise<void>;
2122
}) => {
@@ -34,8 +35,24 @@ const ParametersConfiguration = ({
3435

3536
return (
3637
<div class="p-12">
37-
<div class="text-3xl font-bold tracking-wide mb-2">
38-
{eligibilityCheck().name}
38+
<div class="flex flex-row gap-2 items-baseline">
39+
<div class="text-3xl font-bold tracking-wide mb-2">
40+
{eligibilityCheck().name}
41+
</div>
42+
<Tooltip>
43+
<p>
44+
When you open a custom check, you are taken to the Custom Check
45+
Editor.
46+
</p>
47+
<p>
48+
<a
49+
href="https://bdt-docs.web.app/custom-checks/#4-the-custom-check-editor"
50+
target="_blank"
51+
>
52+
Read about the custom check editor in the docs
53+
</a>
54+
</p>
55+
</Tooltip>
3956
</div>
4057
<p class="text-xl mb-4">{eligibilityCheck().description}</p>
4158
<div class="p-2">

0 commit comments

Comments
 (0)