[7.5] Upgrade EUI to 14.5.1 (#49091)

* eui 14.5.1

* infraApp -> metricsApp icon

* loggingApp -> logsApp icon
This commit is contained in:
Greg Thompson 2019-10-23 16:21:17 -05:00 committed by GitHub
parent 970c7e451e
commit 126bdfc849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 54 additions and 54 deletions

View file

@ -107,7 +107,7 @@
"@elastic/charts": "^13.5.1",
"@elastic/datemath": "5.0.2",
"@elastic/ems-client": "1.0.5",
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.3",

View file

@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"react": "^16.8.0",
"react-dom": "^16.8.0"
}

View file

@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"react": "^16.8.0"
}
}

View file

@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"react": "^16.8.0"
},
"scripts": {

View file

@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"react": "^16.8.0"
},
"scripts": {

View file

@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"react": "^16.8.0",
"react-dom": "^16.8.0"
}

View file

@ -81,7 +81,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
const infraConfigItems: InfraConfigItem[] = [
{
icon: 'loggingApp',
icon: 'logsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showPodLogsLinkLabel',
{ defaultMessage: 'Show pod logs' }
@ -91,7 +91,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
query: { time }
},
{
icon: 'loggingApp',
icon: 'logsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showContainerLogsLinkLabel',
{ defaultMessage: 'Show container logs' }
@ -101,7 +101,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
query: { time }
},
{
icon: 'loggingApp',
icon: 'logsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showHostLogsLinkLabel',
{ defaultMessage: 'Show host logs' }
@ -111,7 +111,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
query: { time }
},
{
icon: 'loggingApp',
icon: 'logsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showTraceLogsLinkLabel',
{ defaultMessage: 'Show trace logs' }
@ -124,7 +124,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
}
},
{
icon: 'infraApp',
icon: 'metricsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showPodMetricsLinkLabel',
{ defaultMessage: 'Show pod metrics' }
@ -134,7 +134,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
query: infraMetricsQuery
},
{
icon: 'infraApp',
icon: 'metricsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showContainerMetricsLinkLabel',
{ defaultMessage: 'Show container metrics' }
@ -144,7 +144,7 @@ export const TransactionActionMenu: FunctionComponent<Props> = (
query: infraMetricsQuery
},
{
icon: 'infraApp',
icon: 'metricsApp',
label: i18n.translate(
'xpack.apm.transactionActionMenu.showHostMetricsLinkLabel',
{ defaultMessage: 'Show host metrics' }

View file

@ -43,7 +43,7 @@ export function infra(kibana: any) {
defaultMessage: 'Explore your metrics',
}),
icon: 'plugins/infra/images/infra_mono_white.svg',
euiIconType: 'infraApp',
euiIconType: 'metricsApp',
id: 'infra:home',
order: 8000,
title: i18n.translate('xpack.infra.linkInfrastructureTitle', {
@ -56,7 +56,7 @@ export function infra(kibana: any) {
defaultMessage: 'Explore your logs',
}),
icon: 'plugins/infra/images/logging_mono_white.svg',
euiIconType: 'loggingApp',
euiIconType: 'logsApp',
id: 'infra:logs',
order: 8001,
title: i18n.translate('xpack.infra.linkLogsTitle', {
@ -76,7 +76,7 @@ export function infra(kibana: any) {
{
path: `/app/${APP_ID}#/logs`,
label: logsSampleDataLinkLabel,
icon: 'loggingApp',
icon: 'logsApp',
},
]);
},

View file

@ -96,7 +96,7 @@ export const MetricsExplorerChartContextMenu = ({
name: i18n.translate('xpack.infra.metricsExplorer.filterByLabel', {
defaultMessage: 'Add filter',
}),
icon: 'infraApp',
icon: 'metricsApp',
onClick: handleFilter,
'data-test-subj': 'metricsExplorerAction-AddFilter',
},
@ -111,7 +111,7 @@ export const MetricsExplorerChartContextMenu = ({
defaultMessage: 'View metrics for {name}',
values: { name: nodeType },
}),
icon: 'infraApp',
icon: 'metricsApp',
href: createNodeDetailLink(nodeType, series.id, timeRange.from, timeRange.to),
'data-test-subj': 'metricsExplorerAction-ViewNodeMetrics',
},

View file

@ -21,7 +21,7 @@ FeatureCatalogueRegistryProvider.register((i18n: I18nServiceType) => ({
defaultMessage:
'Explore infrastructure metrics and logs for common servers, containers, and services.',
}),
icon: 'infraApp',
icon: 'metricsApp',
path: `/app/${APP_ID}#infrastructure`,
showOnHomePage: true,
category: FeatureCatalogueCategory.DATA,
@ -36,7 +36,7 @@ FeatureCatalogueRegistryProvider.register((i18n: I18nServiceType) => ({
defaultMessage:
'Stream logs in real time or scroll through historical views in a console-like experience.',
}),
icon: 'loggingApp',
icon: 'logsApp',
path: `/app/${APP_ID}#logs`,
showOnHomePage: true,
category: FeatureCatalogueCategory.DATA,

View file

@ -35,7 +35,7 @@ export const initServerWithKibana = (kbnServer: KbnServer) => {
name: i18n.translate('xpack.infra.featureRegistry.linkInfrastructureTitle', {
defaultMessage: 'Metrics',
}),
icon: 'infraApp',
icon: 'metricsApp',
navLinkId: 'infra:home',
app: ['infra', 'kibana'],
catalogue: ['infraops'],
@ -73,7 +73,7 @@ export const initServerWithKibana = (kbnServer: KbnServer) => {
name: i18n.translate('xpack.infra.featureRegistry.linkLogsTitle', {
defaultMessage: 'Logs',
}),
icon: 'loggingApp',
icon: 'logsApp',
navLinkId: 'infra:logs',
app: ['infra', 'kibana'],
catalogue: ['infralogging'],

View file

@ -1,3 +1,3 @@
{
"icon": "loggingApp"
"icon": "logsApp"
}

View file

@ -2,7 +2,7 @@
exports[`Logs should render a link to filter by cluster uuid 1`] = `
<EuiCallOut
iconType="loggingApp"
iconType="logsApp"
size="m"
title="Want to see more log entries?"
>
@ -26,7 +26,7 @@ exports[`Logs should render a link to filter by cluster uuid 1`] = `
exports[`Logs should render a link to filter by cluster uuid and index uuid 1`] = `
<EuiCallOut
iconType="loggingApp"
iconType="logsApp"
size="m"
title="Want to see more log entries?"
>
@ -50,7 +50,7 @@ exports[`Logs should render a link to filter by cluster uuid and index uuid 1`]
exports[`Logs should render a link to filter by cluster uuid and node uuid 1`] = `
<EuiCallOut
iconType="loggingApp"
iconType="logsApp"
size="m"
title="Want to see more log entries?"
>
@ -275,7 +275,7 @@ exports[`Logs should render normally 1`] = `
size="m"
/>
<EuiCallOut
iconType="loggingApp"
iconType="logsApp"
size="m"
title="Want to see more log entries?"
>

View file

@ -169,7 +169,7 @@ export class Logs extends PureComponent {
title={i18n.translate('xpack.monitoring.logs.listing.calloutTitle', {
defaultMessage: 'Want to see more log entries?'
})}
iconType="loggingApp"
iconType="logsApp"
>
<p>
<FormattedMessage

View file

@ -7,7 +7,7 @@ exports[`IntegrationGroup will not display APM links when APM is unavailable 1`]
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Infrastructure UI for this montor's ip address"
iconType="infraApp"
iconType="metricsApp"
message="Show host metrics"
tooltipContent="Check Infrastructure UI for the IP \\"\\""
/>
@ -15,7 +15,7 @@ exports[`IntegrationGroup will not display APM links when APM is unavailable 1`]
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Infrastructure UI for this monitor's pod UID"
iconType="infraApp"
iconType="metricsApp"
message="Show pod metrics"
tooltipContent="Check Infrastructure UI for pod UID \\"\\"."
/>
@ -23,7 +23,7 @@ exports[`IntegrationGroup will not display APM links when APM is unavailable 1`]
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Infrastructure UI for this monitor's container ID"
iconType="infraApp"
iconType="metricsApp"
message="Show container metrics"
tooltipContent="Check Infrastructure UI for container ID \\"\\""
/>
@ -31,7 +31,7 @@ exports[`IntegrationGroup will not display APM links when APM is unavailable 1`]
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Logging UI for this monitor's ip address"
iconType="loggingApp"
iconType="logsApp"
message="Show host logs"
tooltipContent="Check Logging UI for the IP \\"\\""
/>
@ -39,7 +39,7 @@ exports[`IntegrationGroup will not display APM links when APM is unavailable 1`]
<EuiFlexItem>
<IntegrationLink
ariaLabel="Show pod logs"
iconType="loggingApp"
iconType="logsApp"
message="Show pod logs"
tooltipContent="Check for logs for pod UID \\"\\""
/>
@ -47,7 +47,7 @@ exports[`IntegrationGroup will not display APM links when APM is unavailable 1`]
<EuiFlexItem>
<IntegrationLink
ariaLabel="Show container logs"
iconType="loggingApp"
iconType="logsApp"
message="Show container logs"
tooltipContent="Check Logging UI for container ID \\"\\""
/>
@ -71,7 +71,7 @@ exports[`IntegrationGroup will not display infra links when infra is unavailable
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Logging UI for this monitor's ip address"
iconType="loggingApp"
iconType="logsApp"
message="Show host logs"
tooltipContent="Check Logging UI for the IP \\"\\""
/>
@ -79,7 +79,7 @@ exports[`IntegrationGroup will not display infra links when infra is unavailable
<EuiFlexItem>
<IntegrationLink
ariaLabel="Show pod logs"
iconType="loggingApp"
iconType="logsApp"
message="Show pod logs"
tooltipContent="Check for logs for pod UID \\"\\""
/>
@ -87,7 +87,7 @@ exports[`IntegrationGroup will not display infra links when infra is unavailable
<EuiFlexItem>
<IntegrationLink
ariaLabel="Show container logs"
iconType="loggingApp"
iconType="logsApp"
message="Show container logs"
tooltipContent="Check Logging UI for container ID \\"\\""
/>
@ -111,7 +111,7 @@ exports[`IntegrationGroup will not display logging links when logging is unavail
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Infrastructure UI for this montor's ip address"
iconType="infraApp"
iconType="metricsApp"
message="Show host metrics"
tooltipContent="Check Infrastructure UI for the IP \\"\\""
/>
@ -119,7 +119,7 @@ exports[`IntegrationGroup will not display logging links when logging is unavail
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Infrastructure UI for this monitor's pod UID"
iconType="infraApp"
iconType="metricsApp"
message="Show pod metrics"
tooltipContent="Check Infrastructure UI for pod UID \\"\\"."
/>
@ -127,7 +127,7 @@ exports[`IntegrationGroup will not display logging links when logging is unavail
<EuiFlexItem>
<IntegrationLink
ariaLabel="Check Infrastructure UI for this monitor's container ID"
iconType="infraApp"
iconType="metricsApp"
message="Show container metrics"
tooltipContent="Check Infrastructure UI for container ID \\"\\""
/>

View file

@ -87,7 +87,7 @@ export const IntegrationGroup = ({
}
)}
href={getInfraIpHref(summary, basePath)}
iconType="infraApp"
iconType="metricsApp"
message={i18n.translate(
'xpack.uptime.monitorList.infraIntegrationAction.ip.message',
{
@ -116,7 +116,7 @@ export const IntegrationGroup = ({
}
)}
href={getInfraKubernetesHref(summary, basePath)}
iconType="infraApp"
iconType="metricsApp"
message={i18n.translate(
'xpack.uptime.monitorList.infraIntegrationAction.kubernetes.message',
{
@ -145,7 +145,7 @@ export const IntegrationGroup = ({
}
)}
href={getInfraContainerHref(summary, basePath)}
iconType="infraApp"
iconType="metricsApp"
message={i18n.translate(
'xpack.uptime.monitorList.infraIntegrationAction.container.message',
{
@ -177,7 +177,7 @@ export const IntegrationGroup = ({
}
)}
href={getLoggingIpHref(summary, basePath)}
iconType="loggingApp"
iconType="logsApp"
message={i18n.translate(
'xpack.uptime.monitorList.loggingIntegrationAction.ip.message',
{
@ -200,7 +200,7 @@ export const IntegrationGroup = ({
}
)}
href={getLoggingKubernetesHref(summary, basePath)}
iconType="loggingApp"
iconType="logsApp"
message={i18n.translate(
'xpack.uptime.monitorList.loggingIntegrationAction.kubernetes.message',
{
@ -227,7 +227,7 @@ export const IntegrationGroup = ({
}
)}
href={getLoggingContainerHref(summary, basePath)}
iconType="loggingApp"
iconType="logsApp"
message={i18n.translate(
'xpack.uptime.monitorList.loggingIntegrationAction.container.message',
{

View file

@ -11,7 +11,7 @@ import { i18n } from '@kbn/i18n';
interface IntegrationLinkProps {
ariaLabel: string;
href: string | undefined;
iconType: 'apmApp' | 'infraApp' | 'loggingApp';
iconType: 'apmApp' | 'metricsApp' | 'logsApp';
message: string;
tooltipContent: string;
}

View file

@ -34,7 +34,7 @@ export interface EmailAction extends BaseAction {
export interface LoggingAction extends BaseAction {
type: LoggingActionType;
iconClass: 'loggingApp';
iconClass: 'logsApp';
text: string;
}

View file

@ -68,7 +68,7 @@ export class LoggingAction extends BaseAction {
static typeName = i18n.translate('xpack.watcher.models.loggingAction.typeName', {
defaultMessage: 'Logging',
});
static iconClass = 'loggingApp';
static iconClass = 'logsApp';
static selectMessage = i18n.translate('xpack.watcher.models.loggingAction.selectMessageText', {
defaultMessage: 'Add an item to the logs.',
});

View file

@ -194,7 +194,7 @@
"@elastic/datemath": "5.0.2",
"@elastic/ems-client": "1.0.5",
"@elastic/filesaver": "1.1.2",
"@elastic/eui": "14.5.0",
"@elastic/eui": "14.5.1",
"@elastic/javascript-typescript-langserver": "^0.3.3",
"@elastic/lsp-extension": "^0.1.2",
"@elastic/maki": "6.1.0",

View file

@ -1153,10 +1153,10 @@
tabbable "^1.1.0"
uuid "^3.1.0"
"@elastic/eui@14.5.0":
version "14.5.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-14.5.0.tgz#1b27559cd644403e2692cab1549082cbd3421dab"
integrity sha512-QpmfO6Unt4evb4P18CyWzassLFrw/4CUPFYZXQK12IChDOs6GrwQ6xZM8f0wjN/NXwjRjlWzMhtCWHYmrI6NGg==
"@elastic/eui@14.5.1":
version "14.5.1"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-14.5.1.tgz#40c3cef866e6aae26cc3892ffbf9d6645d6b4dea"
integrity sha512-HuNKFfJq+tV6s+D8KAXCQfZW5PAeQqt/HzeAva6DbGduoRzk+SyCxJ0D0Ppm9dMBEiL7CuMAijWq3nxQH0SYUA==
dependencies:
"@types/lodash" "^4.14.116"
"@types/numeral" "^0.0.25"