Explore: Remove Drilldowns banner (#110329)
* Explore: Remove Drilldowns banner Removing banner added in https://github.com/grafana/grafana/pull/100409. It's been 6 months since it was added and we can remove it now. * Update translations file
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
import { useLocalStorage } from 'react-use';
|
||||
|
||||
import { Trans, t } from '@grafana/i18n';
|
||||
import { Alert, LinkButton, Stack } from '@grafana/ui';
|
||||
|
||||
type Props = {
|
||||
datasourceType: string;
|
||||
};
|
||||
|
||||
export function DrilldownAlertBox(props: Props) {
|
||||
const isDsCompatibleWithDrilldown = [
|
||||
'prometheus',
|
||||
'grafana-amazonprometheus-datasource',
|
||||
'grafana-azureprometheus-datasource',
|
||||
'loki',
|
||||
'tempo',
|
||||
'grafana-pyroscope-datasource',
|
||||
].includes(props.datasourceType);
|
||||
|
||||
const [dismissed, setDismissed] = useLocalStorage('grafana.explore.drilldownsBoxDismissed', false);
|
||||
|
||||
return (
|
||||
isDsCompatibleWithDrilldown &&
|
||||
!dismissed && (
|
||||
<Alert
|
||||
severity={'info'}
|
||||
title={t('explore.drilldownInfo.title', 'Explore Metrics, Logs, Traces and Profiles have moved!')}
|
||||
onRemove={() => {
|
||||
setDismissed(true);
|
||||
}}
|
||||
>
|
||||
<Stack gap={1} alignItems="flex-end" justifyContent={'space-between'}>
|
||||
<span>
|
||||
<Trans i18nKey={'explore.drilldownInfo.description'}>
|
||||
Looking for the Grafana Explore apps? They are now called the Grafana Drilldown apps and can be found
|
||||
under <b>Menu > Drilldown</b>
|
||||
</Trans>
|
||||
</span>
|
||||
<LinkButton variant={'secondary'} href="/drilldown">
|
||||
<Trans i18nKey={'explore.drilldownInfo.action'}>Go to Grafana Drilldown</Trans>
|
||||
</LinkButton>
|
||||
</Stack>
|
||||
</Alert>
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -42,7 +42,6 @@ import { ContentOutlineContextProvider } from './ContentOutline/ContentOutlineCo
|
||||
import { ContentOutlineItem } from './ContentOutline/ContentOutlineItem';
|
||||
import { CorrelationHelper } from './CorrelationHelper';
|
||||
import { CustomContainer } from './CustomContainer';
|
||||
import { DrilldownAlertBox } from './DrilldownAlertBox';
|
||||
import { ExploreToolbar } from './ExploreToolbar';
|
||||
import { FlameGraphExploreContainer } from './FlameGraph/FlameGraphExploreContainer';
|
||||
import { GraphContainer } from './Graph/GraphContainer';
|
||||
@@ -578,7 +577,6 @@ export class Explore extends PureComponent<Props, ExploreState> {
|
||||
correlationEditorHelperData,
|
||||
showQueryInspector,
|
||||
setShowQueryInspector,
|
||||
splitted,
|
||||
compact,
|
||||
queryLibraryRef,
|
||||
} = this.props;
|
||||
@@ -639,7 +637,6 @@ export class Explore extends PureComponent<Props, ExploreState> {
|
||||
mergeSingleChild={true}
|
||||
>
|
||||
<PanelContainer className={styles.queryContainer}>
|
||||
{!splitted && <DrilldownAlertBox datasourceType={datasourceInstance?.type || ''} />}
|
||||
{correlationsBox}
|
||||
<QueryRows
|
||||
exploreId={exploreId}
|
||||
|
||||
@@ -6942,11 +6942,6 @@
|
||||
"dragging-a-sub-region": "Dragging a sub-region",
|
||||
"value": "Value: {{ dividerPos }}"
|
||||
},
|
||||
"drilldownInfo": {
|
||||
"action": "Go to Grafana Drilldown",
|
||||
"description": "Looking for the Grafana Explore apps? They are now called the Grafana Drilldown apps and can be found under <1>Menu > Drilldown</1>",
|
||||
"title": "Explore Metrics, Logs, Traces and Profiles have moved!"
|
||||
},
|
||||
"drop-down-menu": {
|
||||
"aria-label-links": "Links",
|
||||
"links": "Links"
|
||||
|
||||
Reference in New Issue
Block a user