From f94c920c56247c0244ff82042ea6b8c9ac855a7a Mon Sep 17 00:00:00 2001 From: Ricky Ang Date: Tue, 20 Sep 2022 10:28:18 -0700 Subject: [PATCH 1/3] removed beta tag on session view component --- .../session_view/public/components/session_view/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x-pack/plugins/session_view/public/components/session_view/index.tsx b/x-pack/plugins/session_view/public/components/session_view/index.tsx index 01f072f5c52b5..07626d090bd2b 100644 --- a/x-pack/plugins/session_view/public/components/session_view/index.tsx +++ b/x-pack/plugins/session_view/public/components/session_view/index.tsx @@ -13,7 +13,6 @@ import { EuiPanel, EuiHorizontalRule, EuiFlexGroup, - EuiBetaBadge, EuiButtonIcon, EuiToolTip, } from '@elastic/eui'; @@ -40,7 +39,7 @@ import { useFetchGetTotalIOBytes, } from './hooks'; import { LOCAL_STORAGE_DISPLAY_OPTIONS_KEY } from '../../../common/constants'; -import { BETA, REFRESH_SESSION, TOGGLE_TTY_PLAYER, DETAIL_PANEL } from './translations'; +import { REFRESH_SESSION, TOGGLE_TTY_PLAYER, DETAIL_PANEL } from './translations'; /** * The main wrapper component for the session view. @@ -259,9 +258,6 @@ export const SessionView = ({
- - - Date: Tue, 20 Sep 2022 11:18:09 -0700 Subject: [PATCH 2/3] removed beta badge styles as it is not used anymore --- .../session_view/public/components/session_view/styles.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/x-pack/plugins/session_view/public/components/session_view/styles.ts b/x-pack/plugins/session_view/public/components/session_view/styles.ts index 74ce5ec072141..62ef299f6de9e 100644 --- a/x-pack/plugins/session_view/public/components/session_view/styles.ts +++ b/x-pack/plugins/session_view/public/components/session_view/styles.ts @@ -55,17 +55,12 @@ export const useStyles = ({ height = 500, isFullScreen }: StylesDeps) => { }, }; - const betaBadge: CSSObject = { - backgroundColor: `${colors.emptyShade}`, - }; - return { processTree, detailPanel, nonGrowGroup, resizeHandle, sessionViewerComponent, - betaBadge, }; }, [euiTheme, isFullScreen, height, euiVars]); From a53e79bb4ce56154303d29038417a80f1f416249 Mon Sep 17 00:00:00 2001 From: Ricky Ang Date: Tue, 20 Sep 2022 11:40:53 -0700 Subject: [PATCH 3/3] removed unused variable on style --- .../session_view/public/components/session_view/styles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/session_view/public/components/session_view/styles.ts b/x-pack/plugins/session_view/public/components/session_view/styles.ts index 62ef299f6de9e..ec13547fac2e4 100644 --- a/x-pack/plugins/session_view/public/components/session_view/styles.ts +++ b/x-pack/plugins/session_view/public/components/session_view/styles.ts @@ -18,7 +18,7 @@ export const useStyles = ({ height = 500, isFullScreen }: StylesDeps) => { const { euiTheme, euiVars } = useEuiTheme(); const cached = useMemo(() => { - const { border, colors, size } = euiTheme; + const { border, size } = euiTheme; // 118px = Session View Toolbar height + Close Session button height + spacing margin at the bottom const sessionView: CSSObject = {