diff --git a/src/Explorer/Tabs/QueryTab/QueryResultSection.tsx b/src/Explorer/Tabs/QueryTab/QueryResultSection.tsx index 428c4a2c5..8bfacd59c 100644 --- a/src/Explorer/Tabs/QueryTab/QueryResultSection.tsx +++ b/src/Explorer/Tabs/QueryTab/QueryResultSection.tsx @@ -2,15 +2,17 @@ import { DetailsList, DetailsListLayoutMode, IColumn, + Icon, + Link, Pivot, PivotItem, SelectionMode, Stack, Text, + TooltipHost, } from "@fluentui/react"; import { HttpHeaders, NormalizedEventKey } from "Common/Constants"; import MongoUtility from "Common/MongoUtility"; -import { InfoTooltip } from "Common/Tooltip/InfoTooltip"; import { QueryMetrics } from "Contracts/DataModels"; import { EditorReact } from "Explorer/Controls/Editor/EditorReact"; import { IDocument } from "Explorer/Tabs/QueryTab/QueryTabComponent"; @@ -51,11 +53,33 @@ export const QueryResultSection: React.FC = ({ const onRender = (item: IDocument): JSX.Element => ( <> - {`${item.toolTip}`} {`${item.metric}`} ); const columns: IColumn[] = [ + { + key: "column1", + name: "", + minWidth: 10, + maxWidth: 12, + data: String, + fieldName: "", + onRender: (item: IDocument) => { + if (item.toolTip !== "") { + return ( + <> + + + + + + + ); + } else { + return undefined; + } + }, + }, { key: "column2", name: "METRIC",