Skip to content

Commit

Permalink
added placeholder change for metrics picker (#1906)
Browse files Browse the repository at this point in the history
* added placeholder change for metrics picker

Signed-off-by: sumukhswamy <[email protected]>

* updated release notes

Signed-off-by: sumukhswamy <[email protected]>

* updated tests

Signed-off-by: sumukhswamy <[email protected]>

---------

Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy authored Jun 12, 2024
1 parent 9864ef2 commit 3da9814
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = `
},
]
}
placeholder="Select a data source"
placeholder="Select a metric source"
selectedOptions={Array []}
singleSelection={
Object {
Expand Down Expand Up @@ -216,7 +216,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = `
onFocus={[Function]}
onOpenListClick={[Function]}
onRemoveOption={[Function]}
placeholder="Select a data source"
placeholder="Select a metric source"
rootId={[Function]}
searchValue=""
selectedOptions={Array []}
Expand Down Expand Up @@ -259,7 +259,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = `
<p
className="euiComboBoxPlaceholder"
>
Select a data source
Select a metric source
</p>
<AutosizeInput
aria-controls=""
Expand Down
6 changes: 3 additions & 3 deletions public/components/metrics/sidebar/data_source_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const DataSourcePicker = ({
selectedDataSource,
setSelectedDataSource,
}: DataSourcePickerMenuProps) => {
const onChange = (selectedDataSource) => {
setSelectedDataSource(selectedDataSource);
const onChange = (selectedMetricSource) => {
setSelectedDataSource(selectedMetricSource);
};

return (
Expand All @@ -27,7 +27,7 @@ export const DataSourcePicker = ({
<h5>Metrics source</h5>
</EuiTitle>
<EuiComboBox
placeholder="Select a data source"
placeholder="Select a metric source"
singleSelection={{ asPlainText: true }}
options={DATASOURCE_OPTIONS}
selectedOptions={selectedDataSource || []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Compatible with OpenSearch and OpenSearch Dashboards version 2.15.0
* [Bug fix] Add conditional rendering for data connection page's tabs ([#1756](https://github.com/opensearch-project/dashboards-observability/pull/1756))
* removed update button from explorer ([#1755](https://github.com/opensearch-project/dashboards-observability/pull/1755))
* (query assist) remove caching agent id ([#1734](https://github.com/opensearch-project/dashboards-observability/pull/1734))
* added placeholder change for metrics picker ([#1906](https://github.com/opensearch-project/dashboards-observability/pull/1906))

### Maintenance
* Remove mocha from dependencies ([#1890](https://github.com/opensearch-project/dashboards-observability/pull/1890))
Expand Down

0 comments on commit 3da9814

Please sign in to comment.