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

[Observability Onboarding] Link all “Add data” buttons in observability to onboarding landing page #179459

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 @@ -81,7 +81,7 @@ export const LogsPageContent: React.FunctionComponent = () => {
</EuiHeaderLink>
<LazyAlertDropdownWrapper />
<EuiHeaderLink
href={getUrlForApp('/integrations/browse')}
href={getUrlForApp('/observabilityOnboarding')}
color="primary"
iconType="indexOpen"
>
Expand All @@ -104,7 +104,15 @@ export const LogsPageContent: React.FunctionComponent = () => {
<RedirectWithQueryParams from={'/analysis'} to={anomaliesTab.pathname} exact />
<RedirectWithQueryParams from={'/log-rate'} to={anomaliesTab.pathname} exact />
<RedirectWithQueryParams from={'/'} to={streamTab.pathname} exact />
<Route render={() => <NotFoundPage title="Logs" />} />
<Route
render={() => (
<NotFoundPage
title={i18n.translate('xpack.infra.logs.index.logsLabel', {
defaultMessage: 'Logs',
})}
/>
)}
/>
</Routes>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export const InfrastructurePage = () => {
<MetricsAlertDropdown />
)}
<EuiHeaderLink
href={kibana.services?.application?.getUrlForApp('/integrations/browse')}
href={kibana.services?.application?.getUrlForApp(
'/observabilityOnboarding'
)}
color="primary"
iconType="indexOpen"
>
Expand Down Expand Up @@ -144,7 +146,15 @@ export const InfrastructurePage = () => {
<RedirectWithQueryParams from="/metrics-explorer" exact to="/explorer" />
<RedirectWithQueryParams from="/" exact to="/inventory" />

<Route render={() => <NotFoundPage title="Infrastructure" />} />
<Route
render={() => (
<NotFoundPage
title={i18n.translate('xpack.infra.header.infrastructureLabel', {
defaultMessage: 'Infrastructure',
})}
/>
)}
/>
</Routes>
</InfraMLCapabilitiesProvider>
</AlertPrefillProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
EuiFlexGrid,
EuiAvatar,
useEuiTheme,
useGeneratedHtmlId,
} from '@elastic/eui';

interface UseCaseOption {
Expand Down Expand Up @@ -159,6 +160,7 @@ export const OnboardingFlowForm: FunctionComponent = () => {
},
];

const radioGroupId = useGeneratedHtmlId({ prefix: 'onboardingUseCase' });
const [selectedId, setSelectedId] = useState<string>();
const [hoveredId, setHoveredId] = useState<string>();

Expand Down Expand Up @@ -194,7 +196,8 @@ export const OnboardingFlowForm: FunctionComponent = () => {
{/* Using EuiSpacer instead of EuiFlexGroup to ensure spacing is part of hit area for mouse hover effect */}
{index > 0 && <EuiSpacer size="m" />}
<EuiCheckableCard
id={option.id}
id={`${radioGroupId}_${option.id}`}
name={radioGroupId}
label={option.label}
checked={selectedId === option.id}
onChange={() => setSelectedId(option.id)}
Expand Down