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

[Canvas] Use compressed forms in sidebar #49419

Merged
merged 13 commits into from
Nov 15, 2019
Prev Previous commit
Next Next commit
add back metric help, style no datasource msg
  • Loading branch information
ryankeairns committed Nov 15, 2019
commit dbaa39bb644a06b8d78818ae14ab1c50f8162650
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const math = () => ({
{
name: '_',
displayName: strings.getValueDisplayName(),
help: '',
help: strings.getValueHelp(),
argType: 'datacolumn',
options: {
onlyMath: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export const metric = () => ({
{
name: 'metricFormat',
displayName: strings.getMetricFormatDisplayName(),
help: '',
help: strings.getMetricFormatHelp(),
argType: 'numberFormat',
default: `"${AdvancedSettings.get('format:number:defaultPattern')}"`,
},
{
name: '_',
displayName: strings.getLabelDisplayName(),
help: '',
help: strings.getLabelHelp(),
argType: 'string',
default: '""',
},
Expand Down
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/canvas/i18n/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ export const ViewStrings = {
}),
getLabelHelp: () =>
i18n.translate('xpack.canvas.uis.views.metric.args.labelArgLabel', {
defaultMessage: 'Describes the metric',
defaultMessage: 'Enter a text label for the metric value',
}),
getMetricFontDisplayName: () =>
i18n.translate('xpack.canvas.uis.views.metric.args.metricFontTitle', {
Expand All @@ -651,7 +651,7 @@ export const ViewStrings = {
}),
getMetricFormatHelp: () =>
i18n.translate('xpack.canvas.uis.views.metric.args.metricFormatLabel', {
defaultMessage: 'Fonts, alignment and color',
defaultMessage: 'Select a format for the metric value',
}),
},
Pie: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@

import React from 'react';
import PropTypes from 'prop-types';
import { EuiPanel, EuiText } from '@elastic/eui';
import { EuiCallOut } from '@elastic/eui';

import { ComponentStrings } from '../../../i18n';
const { DatasourceNoDatasource: strings } = ComponentStrings;

export const NoDatasource = () => (
<EuiPanel>
<EuiText>
<h4>{strings.getPanelTitle()}</h4>
<div className="canvasDataSource__section">
<EuiCallOut title={strings.getPanelTitle()} iconType="iInCircle">
<p>{strings.getPanelDescription()}</p>
</EuiText>
</EuiPanel>
</EuiCallOut>
</div>
);

NoDatasource.propTypes = {
Expand Down