Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Session View] Beta badge removed from Session View component #141145

Merged
merged 5 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
EuiPanel,
EuiHorizontalRule,
EuiFlexGroup,
EuiBetaBadge,
EuiButtonIcon,
EuiToolTip,
} from '@elastic/eui';
Expand All @@ -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.
Expand Down Expand Up @@ -259,9 +258,6 @@ export const SessionView = ({
<div css={styles.sessionViewerComponent}>
<EuiPanel hasShadow={false} borderRadius="none" className="sessionViewerToolbar">
<EuiFlexGroup alignItems="center" gutterSize="s">
<EuiFlexItem grow={false}>
<EuiBetaBadge label={BETA} size="s" css={styles.betaBadge} />
mitodrummer marked this conversation as resolved.
Show resolved Hide resolved
</EuiFlexItem>
<EuiFlexItem data-test-subj="sessionView:sessionViewProcessEventsSearch">
<SessionViewSearchBar
searchQuery={searchQuery}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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]);

Expand Down