mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Revert "[8.18] [Oblt Onboarding] Add breadcrumbs for quick start flow… (#217686)
Revert of the
5c5d8e3638
because it's a non-essential change and it was merged too close to the
BC.
This commit is contained in:
parent
e22d45a7a1
commit
c220d2938c
7 changed files with 0 additions and 58 deletions
|
@ -21,7 +21,6 @@ import {
|
|||
FirehosePage,
|
||||
} from './pages';
|
||||
import { ObservabilityOnboardingAppServices } from '..';
|
||||
import { useFlowBreadcrumb } from './shared/use_flow_breadcrumbs';
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
|
@ -33,8 +32,6 @@ export function ObservabilityOnboardingFlow() {
|
|||
},
|
||||
} = useKibana<ObservabilityOnboardingAppServices>();
|
||||
|
||||
useFlowBreadcrumb(null);
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
}, [pathname]);
|
||||
|
|
|
@ -37,15 +37,8 @@ import { isSupportedLogo, LogoIcon } from '../../shared/logo_icon';
|
|||
import { FeedbackButtons } from '../shared/feedback_buttons';
|
||||
import { ObservabilityOnboardingContextValue } from '../../../plugin';
|
||||
import { SupportedIntegrationsList } from './supported_integrations_list';
|
||||
import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs';
|
||||
|
||||
export const AutoDetectPanel: FunctionComponent = () => {
|
||||
useFlowBreadcrumb({
|
||||
text: i18n.translate(
|
||||
'xpack.observability_onboarding.autoDetectPanel.breadcrumbs.autoDetectLabel',
|
||||
{ defaultMessage: 'Elastic Agent: Logs & Metrics' }
|
||||
),
|
||||
});
|
||||
const { status, data, error, refetch, installedIntegrations } = useOnboardingFlow();
|
||||
const command = data ? getAutoDetectCommand(data) : undefined;
|
||||
const accordionId = useGeneratedHtmlId({ prefix: 'accordion' });
|
||||
|
|
|
@ -34,7 +34,6 @@ import { ObservabilityOnboardingAppServices } from '../../..';
|
|||
import { useWindowBlurDataMonitoringTrigger } from '../shared/use_window_blur_data_monitoring_trigger';
|
||||
import { ExistingDataCallout } from './existing_data_callout';
|
||||
import { usePopulatedAWSIndexList } from './use_populated_aws_index_list';
|
||||
import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs';
|
||||
|
||||
const OPTIONS = [
|
||||
{
|
||||
|
@ -56,12 +55,6 @@ const OPTIONS = [
|
|||
];
|
||||
|
||||
export function FirehosePanel() {
|
||||
useFlowBreadcrumb({
|
||||
text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.firehose', {
|
||||
defaultMessage: 'AWS Firehose',
|
||||
}),
|
||||
});
|
||||
|
||||
const [selectedOptionId, setSelectedOptionId] = useState<CreateStackOption>(
|
||||
CreateStackOption.AWS_CONSOLE_UI
|
||||
);
|
||||
|
|
|
@ -23,14 +23,8 @@ import { DataIngestStatus } from './data_ingest_status';
|
|||
import { FeedbackButtons } from '../shared/feedback_buttons';
|
||||
import { useKubernetesFlow } from './use_kubernetes_flow';
|
||||
import { useWindowBlurDataMonitoringTrigger } from '../shared/use_window_blur_data_monitoring_trigger';
|
||||
import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs';
|
||||
|
||||
export const KubernetesPanel: React.FC = () => {
|
||||
useFlowBreadcrumb({
|
||||
text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.k8s', {
|
||||
defaultMessage: 'Kubernetes: Logs & Metrics',
|
||||
}),
|
||||
});
|
||||
const { data, status, error, refetch } = useKubernetesFlow();
|
||||
const { onPageReady } = usePerformanceContext();
|
||||
|
||||
|
|
|
@ -33,18 +33,12 @@ import { FeedbackButtons } from '../shared/feedback_buttons';
|
|||
import { CopyToClipboardButton } from '../shared/copy_to_clipboard_button';
|
||||
import { ObservabilityOnboardingContextValue } from '../../../plugin';
|
||||
import { useKubernetesFlow } from '../kubernetes/use_kubernetes_flow';
|
||||
import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs';
|
||||
|
||||
const OTEL_HELM_CHARTS_REPO = 'https://open-telemetry.github.io/opentelemetry-helm-charts';
|
||||
const OTEL_KUBE_STACK_VERSION = '0.3.9';
|
||||
const CLUSTER_OVERVIEW_DASHBOARD_ID = 'kubernetes_otel-cluster-overview';
|
||||
|
||||
export const OtelKubernetesPanel: React.FC = () => {
|
||||
useFlowBreadcrumb({
|
||||
text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.k8sOtel', {
|
||||
defaultMessage: 'Kubernetes: OpenTelemetry',
|
||||
}),
|
||||
});
|
||||
const { data, error, refetch } = useKubernetesFlow('kubernetes_otel');
|
||||
const [idSelected, setIdSelected] = useState('nodejs');
|
||||
const {
|
||||
|
|
|
@ -35,7 +35,6 @@ import { useFetcher } from '../../../hooks/use_fetcher';
|
|||
import { MultiIntegrationInstallBanner } from './multi_integration_install_banner';
|
||||
import { EmptyPrompt } from '../shared/empty_prompt';
|
||||
import { FeedbackButtons } from '../shared/feedback_buttons';
|
||||
import { useFlowBreadcrumb } from '../../shared/use_flow_breadcrumbs';
|
||||
|
||||
const HOST_COMMAND = i18n.translate(
|
||||
'xpack.observability_onboarding.otelLogsPanel.p.runTheCommandOnYourHostLabel',
|
||||
|
@ -46,11 +45,6 @@ const HOST_COMMAND = i18n.translate(
|
|||
);
|
||||
|
||||
export const OtelLogsPanel: React.FC = () => {
|
||||
useFlowBreadcrumb({
|
||||
text: i18n.translate('xpack.observability_onboarding.autoDetectPanel.breadcrumbs.otelHost', {
|
||||
defaultMessage: 'OpenTelemetry: Logs & Metrics',
|
||||
}),
|
||||
});
|
||||
const { onPageReady } = usePerformanceContext();
|
||||
const {
|
||||
data: apiKeyData,
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ChromeBreadcrumb } from '@kbn/core/public';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { useBreadcrumbs } from '@kbn/observability-shared-plugin/public';
|
||||
|
||||
export function useFlowBreadcrumb(breadcrumb: ChromeBreadcrumb | null) {
|
||||
useBreadcrumbs(breadcrumb !== null ? [breadcrumb] : [], {
|
||||
app: {
|
||||
id: 'observabilityOnboarding',
|
||||
label: i18n.translate(
|
||||
'xpack.observability_onboarding.otelKubernetesPanel.breadcrumbs.addDataLabel',
|
||||
{ defaultMessage: 'Add Data' }
|
||||
),
|
||||
},
|
||||
absoluteProjectStyleBreadcrumbs: false,
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue