-
Notifications
You must be signed in to change notification settings - Fork 916
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
[OSCI] removed KUI usage in visualizations #5462
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,28 +29,35 @@ | |
*/ | ||
|
||
import { FormattedMessage } from '@osd/i18n/react'; | ||
import React from 'react'; | ||
import { EuiEmptyPrompt, EuiLink } from '@elastic/eui'; | ||
import React, { Fragment } from 'react'; | ||
|
||
export function DisabledLabVisualization({ title }: { title: string }) { | ||
return ( | ||
<div className="visDisabledLabVisualization"> | ||
<div | ||
className="kuiVerticalRhythm visDisabledLabVisualization__icon kuiIcon fa-flask" | ||
aria-hidden="true" | ||
<EuiEmptyPrompt | ||
iconType="database" | ||
titleSize="s" | ||
data-test-subj="visDisabledLabVisualization" | ||
title={ | ||
<FormattedMessage | ||
id="visualizations.disabledLabVisualizationTitle" | ||
defaultMessage="{title} is an experimental visualization." | ||
values={{ title: <em className="visDisabledLabVisualizationtitle">{title}</em> }} | ||
/> | ||
} | ||
body={ | ||
<Fragment> | ||
<p> | ||
Enable experimental visualizations within{' '} | ||
<EuiLink href="https://github.com/app/management/opensearch-dashboards/settings"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a url directly seems not the best way to do this? According to #3208, doc links should be from
The links seems not correct to me as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you! I wasn't completely sure about what I was supposed to link to. I'll make the appropriate changes. |
||
Advanced Settings | ||
</EuiLink> | ||
. | ||
</p> | ||
</Fragment> | ||
} | ||
/> | ||
<div className="kuiVerticalRhythm"> | ||
<FormattedMessage | ||
id="visualizations.disabledLabVisualizationTitle" | ||
defaultMessage="{title} is a lab visualization." | ||
values={{ title: <em className="visDisabledLabVisualization__title">{title}</em> }} | ||
/> | ||
</div> | ||
<div className="kuiVerticalRhythm"> | ||
<FormattedMessage | ||
id="visualizations.disabledLabVisualizationMessage" | ||
defaultMessage="Please turn on lab-mode in the advanced settings to see lab visualizations." | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems icon "beaker" makes a bit more sense here? cuz it is experimental?