diff --git a/packages/jaeger-ui/src/components/TracePage/KeyboardShortcutsHelp.js b/packages/jaeger-ui/src/components/TracePage/KeyboardShortcutsHelp.js index 30328eef43..98a282d2ca 100644 --- a/packages/jaeger-ui/src/components/TracePage/KeyboardShortcutsHelp.js +++ b/packages/jaeger-ui/src/components/TracePage/KeyboardShortcutsHelp.js @@ -53,6 +53,8 @@ const descriptions = { expandAll: 'Expand All', collapseOne: 'Collapse One Level', expandOne: 'Expand One Level', + searchSpans: 'Search Spans', + clearSearch: 'Clear Search', }; function convertKeys(keyConfig: string | string[]): string[][] { diff --git a/packages/jaeger-ui/src/components/TracePage/TracePageHeader.js b/packages/jaeger-ui/src/components/TracePage/TracePageHeader.js index f5ca48b299..f308d852f0 100644 --- a/packages/jaeger-ui/src/components/TracePage/TracePageHeader.js +++ b/packages/jaeger-ui/src/components/TracePage/TracePageHeader.js @@ -21,9 +21,9 @@ import IoChevronRight from 'react-icons/lib/io/chevron-right'; import IoIosFilingOutline from 'react-icons/lib/io/ios-filing-outline'; import { Link } from 'react-router-dom'; -import * as markers from './TracePageHeader.markers'; -import { trackAltViewOpen } from './TracePageHeader.track'; import KeyboardShortcutsHelp from './KeyboardShortcutsHelp'; +import { trackAltViewOpen } from './TracePageHeader.track'; +import TracePageSearchBar from './TracePageSearchBar'; import LabeledList from '../common/LabeledList'; import { FALLBACK_TRACE_NAME } from '../../constants'; import { formatDatetime, formatDuration } from '../../utils/date'; @@ -37,7 +37,12 @@ type TracePageHeaderProps = { slimView: boolean, onSlimViewClicked: () => void, updateTextFilter: string => void, - textFilter: ?string, + textFilter: string, + prevResult: () => void, + nextResult: () => void, + clearSearch: () => void, + forwardedRef: { current: Input | null }, + resultCount: number, archiveButtonVisible: boolean, onArchiveClicked: () => void, // these props are used by the `HEADER_ITEMS` @@ -86,7 +91,7 @@ export const HEADER_ITEMS = [ }, ]; -export default function TracePageHeader(props: TracePageHeaderProps) { +export function TracePageHeaderFn(props: TracePageHeaderProps) { const { archiveButtonVisible, onArchiveClicked, @@ -101,6 +106,11 @@ export default function TracePageHeader(props: TracePageHeaderProps) { onSlimViewClicked, updateTextFilter, textFilter, + prevResult, + nextResult, + clearSearch, + resultCount, + forwardedRef, } = props; if (!traceID) { @@ -170,15 +180,15 @@ export default function TracePageHeader(props: TracePageHeaderProps) { -
- updateTextFilter(event.target.value)} - defaultValue={textFilter} - data-test={markers.IN_TRACE_SEARCH} - /> -
+