diff --git a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index 284a2e51a..7f1fe91c9 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -89,6 +89,12 @@ exports[`Log Config component renders empty log config 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -712,6 +718,12 @@ exports[`Log Config component renders with query 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], diff --git a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap index 73f87a2de..22f894095 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap @@ -89,6 +89,12 @@ exports[`Service Config component renders empty service config 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -1282,6 +1288,12 @@ exports[`Service Config component renders with one service selected 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], diff --git a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap index 8b70a1a6a..e1ef99b5b 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap @@ -88,6 +88,12 @@ exports[`Trace Config component renders empty trace config 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -994,6 +1000,12 @@ exports[`Trace Config component renders with one trace selected 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], diff --git a/public/components/common/search/query_area.tsx b/public/components/common/search/query_area.tsx index b176f4559..dde77d60b 100644 --- a/public/components/common/search/query_area.tsx +++ b/public/components/common/search/query_area.tsx @@ -74,7 +74,7 @@ export function QueryArea({ Get started} + title={ +

+ +

+ } body={

- Run a query to view results, or use the Natural Language Query Generator to - automatically generate complex queries using simple conversational prompts. +

} /> diff --git a/public/components/event_analytics/explorer/query_assist/input.tsx b/public/components/event_analytics/explorer/query_assist/input.tsx index b0520fa36..f1f984e56 100644 --- a/public/components/event_analytics/explorer/query_assist/input.tsx +++ b/public/components/event_analytics/explorer/query_assist/input.tsx @@ -127,6 +127,10 @@ export const QueryAssistInput: React.FC> = (props const inputRef = useRef(null); const selectedIndex = props.selectedIndex[0]?.label || ''; + useEffect(() => { + if (inputRef.current) inputRef.current.focus(); + }, []); + useEffect(() => { if ( props.nlqInput.trim().length === 0 || @@ -321,17 +325,21 @@ export const QueryAssistInput: React.FC> = (props return ( <> - + + + + { @@ -342,7 +350,6 @@ export const QueryAssistInput: React.FC> = (props // listen to enter key manually. the cursor jumps to CodeEditor with EuiForm's onSubmit if (e.key === 'Enter') runAndSummarize(); }} - prepend={} fullWidth onFocus={() => { props.setNeedsUpdate(false); @@ -359,8 +366,9 @@ export const QueryAssistInput: React.FC> = (props }} > - {HARDCODED_SUGGESTIONS[selectedIndex]?.map((question) => ( + {HARDCODED_SUGGESTIONS[selectedIndex]?.map((question, i) => ( { props.setNlqInput(question); inputRef.current?.focus(); diff --git a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap index 1b862c66c..2cfb21425 100644 --- a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap +++ b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap @@ -99,6 +99,12 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -261,6 +267,12 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], diff --git a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap index d50f36ca0..e85278a15 100644 --- a/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap +++ b/public/components/trace_analytics/components/dashboard/__tests__/__snapshots__/dashboard.test.tsx.snap @@ -102,6 +102,12 @@ exports[`Dashboard component renders dashboard 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -441,6 +447,12 @@ exports[`Dashboard component renders dashboard 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -1259,6 +1271,12 @@ exports[`Dashboard component renders empty dashboard 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -1597,6 +1615,12 @@ exports[`Dashboard component renders empty dashboard 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -2415,6 +2439,12 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -2755,6 +2785,12 @@ exports[`Dashboard component renders empty jaeger dashboard 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], diff --git a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap index 265e4e057..4964f087c 100644 --- a/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap +++ b/public/components/trace_analytics/components/services/__tests__/__snapshots__/services.test.tsx.snap @@ -102,6 +102,12 @@ exports[`Services component renders empty services page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -429,6 +435,12 @@ exports[`Services component renders empty services page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -2268,6 +2280,12 @@ exports[`Services component renders jaeger services page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -2596,6 +2614,12 @@ exports[`Services component renders jaeger services page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -3868,6 +3892,12 @@ exports[`Services component renders services page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -4195,6 +4225,12 @@ exports[`Services component renders services page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], diff --git a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap index 3521c7e23..d8c9e2d64 100644 --- a/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap +++ b/public/components/trace_analytics/components/traces/__tests__/__snapshots__/traces.test.tsx.snap @@ -102,6 +102,12 @@ exports[`Traces component renders empty traces page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -428,6 +434,12 @@ exports[`Traces component renders empty traces page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -1719,6 +1731,12 @@ exports[`Traces component renders jaeger traces page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -2046,6 +2064,12 @@ exports[`Traces component renders jaeger traces page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -3342,6 +3366,12 @@ exports[`Traces component renders traces page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction], @@ -3668,6 +3698,12 @@ exports[`Traces component renders traces page 1`] = ` "registerLeft": [MockFunction], "registerRight": [MockFunction], }, + "navGroup": Object { + "getCurrentNavGroup$": [MockFunction], + "getNavGroupEnabled": [MockFunction], + "getNavGroupsMap$": [MockFunction], + "setCurrentNavGroup": [MockFunction], + }, "navLinks": Object { "enableForcedAppSwitcherNavigation": [MockFunction], "get": [MockFunction],