Skip to content

Commit

Permalink
[discover] update query assist icon (opensearch-project#7898)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 authored Aug 28, 2024
1 parent 9b8266f commit 7a8e427
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
38 changes: 21 additions & 17 deletions src/plugins/query_enhancements/public/assets/query_assist_mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { i18n } from '@osd/i18n';
import { HttpSetup } from 'opensearch-dashboards/public';
import React, { useEffect, useState } from 'react';
import { distinctUntilChanged, map, startWith, switchMap } from 'rxjs/operators';
Expand All @@ -14,8 +15,8 @@ import {
} from '../../../../data/public';
import { API } from '../../../common';
import { ConfigSchema } from '../../../common/config';
import { QueryAssistBanner, QueryAssistBar } from '../components';
import assistantMark from '../../assets/query_assist_mark.svg';
import { QueryAssistBanner, QueryAssistBar } from '../components';

const [getAvailableLanguagesForDataSource, clearCache] = (() => {
const availableLanguagesByDataSource: Map<string | undefined, string[]> = new Map();
Expand Down Expand Up @@ -90,7 +91,9 @@ export const createQueryAssistExtension = (
return {
type: DATA_STRUCTURE_META_TYPES.FEATURE,
icon: { type: assistantMark },
tooltip: 'Query assist is available',
tooltip: i18n.translate('queryAssist.meta.icon.tooltip', {
defaultMessage: 'Query assist is available',
}),
};
}
},
Expand Down

0 comments on commit 7a8e427

Please sign in to comment.