Skip to content

Commit

Permalink
added dummy search field, panel push button (#1227)
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>

Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 authored Nov 2, 2022
1 parent f61d18b commit ff0b28c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
4 changes: 4 additions & 0 deletions public/components/metrics/top_menu/top_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@

.resolutionSelectText {
width: 100px;
}

.search-bar-top-menu{
width:25vw;
}
22 changes: 17 additions & 5 deletions public/components/metrics/top_menu/top_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ import {
ShortDate,
OnTimeChangeProps,
EuiButton,
EuiFieldSearch,
EuiButtonIcon,
} from '@elastic/eui';
import { DurationRange } from '@elastic/eui/src/components/date_picker/types';
import { uiSettingsService } from '../../../../common/utils';
import React, { useState } from 'react';

import './top_menu.scss';
import { MetricType } from '../../../../common/types/metrics';
import { resolutionOptions } from '../../../../common/constants/metrics';

import './top_menu.scss';

interface TopMenuProps {
IsTopPanelDisabled: boolean;
startTime: ShortDate;
Expand Down Expand Up @@ -106,9 +108,19 @@ export const TopMenu = ({
<>
<EuiPageHeader>
<EuiPageHeaderSection>
<EuiTitle size="l">
<h1>Metrics</h1>
</EuiTitle>
<EuiFlexGroup className="search-bar-top-menu">
<EuiFlexItem>
<EuiFieldSearch
placeholder="Search metrics"
isClearable={true}
aria-label="Use aria labels when no actual label is in use"
fullWidth={true}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon iconType="menuLeft"></EuiButtonIcon>
</EuiFlexItem>
</EuiFlexGroup>
</EuiPageHeaderSection>
<EuiPageHeaderSection>
<EuiFlexGroup gutterSize="s">
Expand Down

0 comments on commit ff0b28c

Please sign in to comment.