-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Actionable Observability] - Hide the alert details page behind a fea…
…ture flag (#139806) * WIP - feature flag alert details page * Add tests * Add comment for upcoming tests * Fix tests * fix test and add mocks for usePluginContext * Fix failing test * Fix wording * Fix test * Update readme and kibana-docker * Fix tests permissions * Restore tests * Fix flaky test * Fix flaky * Fix flaky * wait to display the button * Fix flaky * Fix flaky * Add 404 page and skip the flaky test * re-enable tests * Put message for the flaky test * Update comment
- Loading branch information
Showing
21 changed files
with
235 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import { EuiCallOut } from '@elastic/eui'; | ||
import { usePluginContext } from '../hooks/use_plugin_context'; | ||
|
||
function PageNotFound() { | ||
const { ObservabilityPageTemplate } = usePluginContext(); | ||
|
||
return ( | ||
<ObservabilityPageTemplate data-test-subj="pageNotFound"> | ||
<EuiCallOut | ||
color="warning" | ||
iconType="iInCircle" | ||
title={ | ||
<FormattedMessage | ||
id="xpack.observability.notFoundPage.title" | ||
defaultMessage="Page Not Found" | ||
/> | ||
} | ||
data-test-subj={'observabilityPageNotFoundBanner'} | ||
> | ||
<p data-test-subj={'observabilityPageNotFoundBannerText'}> | ||
<FormattedMessage | ||
id="xpack.observability.notFoundPage.bannerText" | ||
defaultMessage="The Observability application doesn't recognize this route" | ||
/> | ||
</p> | ||
</EuiCallOut> | ||
</ObservabilityPageTemplate> | ||
); | ||
} | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default PageNotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.