-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Samples, help text, standardized tables (#217)
* added new samples and modified workspace height Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * updated documentation links and help text Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * standardized empty table buttons Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * merged add samples logic Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * updated panel tests, added sample modal Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
- Loading branch information
Showing
36 changed files
with
7,725 additions
and
254 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
38 changes: 38 additions & 0 deletions
38
dashboards-observability/public/components/common/helpers/add_sample_modal.tsx
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,38 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiOverlayMask, EuiConfirmModal } from '@elastic/eui'; | ||
|
||
export const getSampleDataModal = ( | ||
onCancel: ( | ||
event?: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLButtonElement, MouseEvent> | ||
) => void, | ||
onConfirm: (event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | ||
) => { | ||
return ( | ||
<EuiOverlayMask> | ||
<EuiConfirmModal | ||
title="Add samples" | ||
onCancel={onCancel} | ||
onConfirm={onConfirm} | ||
cancelButtonText="Cancel" | ||
confirmButtonText="Yes" | ||
defaultFocusedButton="confirm" | ||
> | ||
<p> | ||
Do you want to add sample data? This will also add Dashboards sample flights and logs | ||
data if they have not been added. | ||
</p> | ||
</EuiConfirmModal> | ||
</EuiOverlayMask> | ||
); | ||
}; |
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.