forked from opensearch-project/dashboards-observability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] OverviewPage made with Content Management (opensearch-proje…
…ct#2077) * overview page with content management Signed-off-by: Adam Tackett <[email protected]> * Changed dashboard picker modal to be flyout Signed-off-by: Dan Dong <[email protected]> * Changed cards to be scrollable Signed-off-by: Dan Dong <[email protected]> * Deep linked dashboard from overview page Signed-off-by: Dan Dong <[email protected]> * Updated jest testing Signed-off-by: Dan Dong <[email protected]> * Fixed bugs Signed-off-by: Dan Dong <[email protected]> * validates the dashboard exsit before loading, clears if it is and resets user setting Signed-off-by: Adam Tackett <[email protected]> * Add Observability Overview breadcrumb to display title Signed-off-by: Adam Tackett <[email protected]> * Update snapshots, small ui changes Signed-off-by: Adam Tackett <[email protected]> * Ui adjustments, moved header wrapper to helper folder Signed-off-by: Adam Tackett <[email protected]> * fix linting error Signed-off-by: Adam Tackett <[email protected]> * remove comments Signed-off-by: Adam Tackett <[email protected]> * adding dashboard manager for state mgmt Signed-off-by: Shenoy Pratik <[email protected]> * refine observables Signed-off-by: Shenoy Pratik <[email protected]> * update tests and rename components Signed-off-by: Shenoy Pratik <[email protected]> * add comment to move away from rxjs Signed-off-by: Shenoy Pratik <[email protected]> * searchable selectable box added for dashboard selection Signed-off-by: Adam Tackett <[email protected]> * updated shared variables, update text for cards Signed-off-by: Adam Tackett <[email protected]> * rename variables Signed-off-by: Adam Tackett <[email protected]> --------- Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: Dan Dong <[email protected]> Signed-off-by: Adam Tackett <[email protected]> Signed-off-by: Shenoy Pratik <[email protected]> Co-authored-by: Adam Tackett <[email protected]> Co-authored-by: Dan Dong <[email protected]> Co-authored-by: Shenoy Pratik <[email protected]>
- Loading branch information
1 parent
c655eb5
commit 881e56a
Showing
36 changed files
with
2,698 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const alertsPluginID = 'alerting'; | ||
export const anomalyPluginID = 'anomalyDetection'; | ||
export const observabilityDashboardsKey = 'observability:defaultDashboard'; |
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,20 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export interface DashboardState { | ||
startDate: string; | ||
endDate: string; | ||
dashboardTitle: string; | ||
dashboardId: string; | ||
} | ||
|
||
export interface DashboardSavedObjectsType { | ||
[key: string]: { | ||
value: string; | ||
label: string; | ||
startDate: string; | ||
endDate: string; | ||
}; | ||
} |
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
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
146 changes: 146 additions & 0 deletions
146
...omponents/overview/components/__tests__/__snapshots__/add_dashboard_callout.test.tsx.snap
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,146 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Add dashboard callout renders add dashboard callout 1`] = ` | ||
<AddDashboardCallout> | ||
<EuiCallOut | ||
color="primary" | ||
iconType="gear" | ||
title="Select your dashboard" | ||
> | ||
<div | ||
className="euiCallOut euiCallOut--primary" | ||
> | ||
<div | ||
className="euiCallOutHeader" | ||
> | ||
<EuiIcon | ||
aria-hidden="true" | ||
className="euiCallOutHeader__icon" | ||
color="inherit" | ||
size="m" | ||
type="gear" | ||
> | ||
<EuiIconBeaker | ||
aria-hidden={true} | ||
className="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiCallOutHeader__icon" | ||
focusable="false" | ||
role="img" | ||
style={null} | ||
> | ||
<svg | ||
aria-hidden={true} | ||
className="euiIcon euiIcon--medium euiIcon--inherit euiIcon-isLoading euiCallOutHeader__icon" | ||
focusable="false" | ||
height={16} | ||
role="img" | ||
style={null} | ||
viewBox="0 0 16 16" | ||
width={16} | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M5.277 10.088c.02.014.04.03.057.047.582.55 1.134.812 1.666.812.586 0 1.84-.293 3.713-.88L9 6.212V2H7v4.212l-1.723 3.876Zm-.438.987L3.539 14h8.922l-1.32-2.969C9.096 11.677 7.733 12 7 12c-.74 0-1.463-.315-2.161-.925ZM6 2H5V1h6v1h-1v4l3.375 7.594A1 1 0 0 1 12.461 15H3.54a1 1 0 0 1-.914-1.406L6 6V2Z" | ||
/> | ||
</svg> | ||
</EuiIconBeaker> | ||
</EuiIcon> | ||
<span | ||
className="euiCallOutHeader__title" | ||
> | ||
Select your dashboard | ||
</span> | ||
</div> | ||
<EuiText | ||
color="default" | ||
size="s" | ||
> | ||
<div | ||
className="euiText euiText--small" | ||
> | ||
<EuiTextColor | ||
color="default" | ||
component="div" | ||
> | ||
<div | ||
className="euiTextColor euiTextColor--default" | ||
> | ||
<EuiText | ||
size="s" | ||
> | ||
<div | ||
className="euiText euiText--small" | ||
> | ||
<p> | ||
Select a dashboard to be displayed on this Overview page, or complete the steps described in | ||
<EuiLink | ||
onClick={[Function]} | ||
> | ||
<button | ||
className="euiLink euiLink--primary" | ||
disabled={false} | ||
onClick={[Function]} | ||
type="button" | ||
> | ||
Getting Started Guide | ||
</button> | ||
</EuiLink> | ||
to re-populate the dashboard with your log data. This dashboard can later be changed in advanced settings. | ||
</p> | ||
</div> | ||
</EuiText> | ||
<EuiSpacer> | ||
<div | ||
className="euiSpacer euiSpacer--l" | ||
/> | ||
</EuiSpacer> | ||
<EuiButton> | ||
<EuiButtonDisplay | ||
baseClassName="euiButton" | ||
disabled={false} | ||
element="button" | ||
isDisabled={false} | ||
type="button" | ||
> | ||
<button | ||
className="euiButton euiButton--primary" | ||
disabled={false} | ||
style={ | ||
Object { | ||
"minWidth": undefined, | ||
} | ||
} | ||
type="button" | ||
> | ||
<EuiButtonContent | ||
className="euiButton__content" | ||
iconGap="m" | ||
iconSide="left" | ||
textProps={ | ||
Object { | ||
"className": "euiButton__text", | ||
} | ||
} | ||
> | ||
<span | ||
className="euiButtonContent euiButton__content" | ||
> | ||
<span | ||
className="euiButton__text" | ||
> | ||
Select | ||
</span> | ||
</span> | ||
</EuiButtonContent> | ||
</button> | ||
</EuiButtonDisplay> | ||
</EuiButton> | ||
</div> | ||
</EuiTextColor> | ||
</div> | ||
</EuiText> | ||
</div> | ||
</EuiCallOut> | ||
</AddDashboardCallout> | ||
`; |
Oops, something went wrong.