Skip to content

Commit 60bb48d

Browse files
committed
Add performance metric tooltip to BiasSettings and localize in English and Dutch
1 parent cd33bde commit 60bb48d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/components/BiasSettings.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,15 @@ export default function BiasSettings({
217217
disabled={isLoading}
218218
render={({ field }) => (
219219
<FormItem>
220-
<FormLabel>
220+
<FormLabel className="flex flex-row items-center gap-1">
221221
{t(
222222
'biasSettings.form.fieldsets.data.performanceMetric'
223223
)}
224+
<IconInfoTooltip
225+
tooltipText={t(
226+
'biasSettings.form.fieldsets.data.performanceMetricTooltip'
227+
)}
228+
/>
224229
</FormLabel>
225230
<Select
226231
onValueChange={field.onChange}
@@ -431,11 +436,6 @@ export default function BiasSettings({
431436
{t(
432437
'biasSettings.form.fieldsets.parameters.performanceInterpretation.title'
433438
)}
434-
<IconInfoTooltip
435-
tooltipText={t(
436-
'biasSettings.form.fieldsets.parameters.performanceInterpretation.tooltip'
437-
)}
438-
/>
439439
</label>
440440
<FormField
441441
control={form.control}

src/locales/en.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export const en = {
3030
dataSet: 'Dataset',
3131
dataSetTooltip: `Your data should be prepared as follows: ...`,
3232
performanceMetric: 'Bias metric',
33+
performanceMetricTooltip:
34+
'Clustering will be based on the bias metrics',
3335
dataType: 'Type of data',
3436
categoricalData: 'Categorical data',
3537
numericalData: 'Numerical data',
@@ -42,7 +44,6 @@ export const en = {
4244
title: 'Bias metric interpretation',
4345
lower: 'Lower value of bias metric is better, e.g., error rate',
4446
higher: 'Higher value of bias metric is better, e.g., accuracy',
45-
tooltip: 'Clustering will be based on the bias metrics',
4647
},
4748
iterationsTooltip:
4849
'Number of times the dataset is split in smaller clusters until the minimal cluster size is reached',

src/locales/nl.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ export const nl = {
192192
iterations: 'Aantal iteraties: {{value}}',
193193
minClusterSize: 'Minimale clustergrootte: {{value}}',
194194
performanceMetric: 'Prestatiemetingkolom: {{value}}',
195+
performanceMetricTooltip:
196+
'De geselecteerde kolom wordt gebruikt om de bias te meten.',
195197
dataType: 'Gegevenstype: {{value}}',
196198
},
197199
clusters: {

0 commit comments

Comments
 (0)