Skip to content

Commit

Permalink
refined labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Advitya17 committed Nov 20, 2023
1 parent f2ecb05 commit 09f03d2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion libs/core-ui/src/lib/Cohort/ShiftCohort/ShiftCohort.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class ShiftCohort extends React.Component<
maxWidth={1000}
>
<Dropdown
placeholder="Select a cohort"
placeholder={localization.Core.ShiftCohort.selectCohort}
label={localization.Core.ShiftCohort.cohortList}
selectedKey={this.state.selectedCohort}
options={this.state.options}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class TableList extends React.Component<
setKey="set"
onItemInvoked={this.props.selectItem}
ariaLabel={
localization.InterpretVision.Dashboard.tableListAriaLabel
localization.InterpretVision.Dashboard.tabOptionSecond
}
/>
</MarqueeSelection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class VisionExplanationDashboardCommon extends React.Component<
id="dataExplorerThumbnailSize"
className={this.props.classNames.slider}
ariaLabel={
localization.InterpretVision.Dashboard.thumbnailSizeAriaLabel
localization.InterpretVision.Dashboard.thumbnailSize
}
label={localization.InterpretVision.Dashboard.thumbnailSize}
defaultValue={50}
Expand Down
9 changes: 3 additions & 6 deletions libs/localization/src/lib/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"title": "Switch Cohort",
"subText": "Select a cohort from the cohort list. Apply the cohort to the dashboard.",
"selectCohort": "Select a cohort",
"cohortList": "Cohort list"
"cohortList": "Cohort"
},
"PreBuiltCohort": {
"featureNameNotFound": "Feature name not found in the dataset",
Expand All @@ -129,7 +129,7 @@
}
},
"Counterfactuals": {
"AriaLabel": "Counterfactual list",
"AriaLabel": "Counterfactual",
"CurrentTreatment": "Current treatment",
"EffectLowerBound": "CI lower",
"EffectOfTreatment": "Effect of recommendation",
Expand Down Expand Up @@ -1471,9 +1471,7 @@
"tabOptionFirst": "Image explorer view",
"tabOptionSecond": "Table view",
"tabOptionThird": "Class view",
"tableListAriaLabel": "Table view list",
"thumbnailSize": "Thumbnail size",
"thumbnailSizeAriaLabel": "Slider for image thumbnail size",
"titleBarError": "Error instances",
"titleBarSuccess": "Success instances",
"trueY": "Ground truth: "
Expand Down Expand Up @@ -1843,7 +1841,6 @@
"description": "Intersection over Union quantifies the degree of overlap between the prediction and ground truth bounding box of a detected object in an image. For example, setting an IoU threshold of 70% means that a prediction with greater than 70% overlap with ground truth is True, thus influencing the definition of prediction correctness and calculation of other performance metrics.",
"iconId": "iouThresholdIconId",
"title": "Learn about the IoU threshold",
"AriaLabel": "Slider for IoU threshold"
},
"notAvailable": "N/A",
"countColumnHeader": "Sample size",
Expand Down Expand Up @@ -1913,7 +1910,7 @@
"flyoutSubHeader": "Along which features would you like to evaluate your model's fairness?",
"flyoutDescription": "Fairness is evaluated in terms of disparities in your model's behavior. We will split your data according to values of each selected feature, and evaluate how your model's performance metrics differ across these splits.",
"selectAllRowsAriaLabel": "Select all rows",
"flyoutAriaLabel": "Aggregate balance measures list",
"flyoutAriaLabel": "Aggregate balance measures",
"featureColumnHeader": "Features",
"featureSelectionAriaLabel": "Feature selection table",
"metricSelectionAriaLabel": "Metric selection table",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class ObjectDetectionWidgets extends React.PureComponent<IObjectDetection
id="modelOverviewIoUThreshold"
ariaLabel={
localization.ModelAssessment.ModelOverview.iouThresholdDropdown
.AriaLabel
.name
}
label={
localization.ModelAssessment.ModelOverview.iouThresholdDropdown.name
Expand Down

0 comments on commit 09f03d2

Please sign in to comment.