Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Sep 5, 2023
1 parent ca1f86e commit cd2111b
Show file tree
Hide file tree
Showing 76 changed files with 160 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function HelpPopoverButton({

return (
<EuiButtonIcon
data-test-subj="apmHelpPopoverButtonButton"
className="apmHelpPopover__buttonIcon"
size="s"
iconType="help"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function ConfigurationValueColumn({
</EuiText>
{value && (
<EuiButtonIcon
data-test-subj="apmConfigurationValueColumnButton"
aria-label={i18n.translate(
'xpack.apm.onboarding.column.value.copyIconText',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ function ConfigurationValueColumn({
</EuiText>
{value && (
<EuiButtonIcon
data-test-subj="apmConfigurationValueColumnButton"
aria-label={i18n.translate(
'xpack.apm.onboarding.otel.column.value.copyIconText',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export function AgentConfigurationList({
name: '',
render: (config: Config) => (
<EuiButtonIcon
data-test-subj="apmColumnsButton"
aria-label="Edit"
iconType="pencil"
href={apmRouter.link('/settings/agent-configuration/edit', {
Expand All @@ -218,6 +219,7 @@ export function AgentConfigurationList({
name: '',
render: (config: Config) => (
<EuiButtonIcon
data-test-subj="apmColumnsButton"
aria-label="Delete"
iconType="trash"
onClick={() => setConfigToBeDeleted(config)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function AgentKeyCallOut({ name, token }: Props) {
<EuiCopy textToCopy={token}>
{(copy) => (
<EuiButtonIcon
data-test-subj="apmAgentKeyCallOutButton"
iconType="copyClipboard"
onClick={copy}
color="success"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export function DiscoveryRule({
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="apmDiscoveryRuleButton"
iconType="pencil"
color="primary"
onClick={() => {
Expand All @@ -108,6 +109,7 @@ export function DiscoveryRule({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="apmDiscoveryRuleButton"
iconType="trash"
color="danger"
onClick={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function PopoverTooltip({
closePopover={() => setIsPopoverOpen(false)}
button={
<EuiButtonIcon
data-test-subj="apmPopoverTooltipButton"
aria-label={ariaLabel}
onClick={(event: React.MouseEvent<HTMLButtonElement>) => {
setIsPopoverOpen(!isPopoverOpen);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export function SpanLinksTable({ items }: Props) {
<EuiPopover
button={
<EuiButtonIcon
data-test-subj="apmColumnsButton"
aria-label="Edit"
iconType="boxesHorizontal"
onClick={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export function OpenTelemetryInstructions({
</EuiText>
{value && (
<EuiButtonIcon
data-test-subj="apmColumnsButton"
aria-label={i18n.translate(
'xpack.apm.tutorial.config_otel.column.value.copyIconText',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export function SelectableUrlList({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="exploratoryViewPopOverTitleButton"
color="text"
onClick={() => closePopover()}
aria-label={i18n.translate('xpack.exploratoryView.search.url.close', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export function SeriesActions({ seriesId, series, seriesConfig, onEditClick }: P

const popoverButton = (
<EuiButtonIcon
data-test-subj="exploratoryViewSeriesActionsButton"
iconType="boxesHorizontal"
onClick={changePopoverVisibility}
color="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export function SeriesName({ series, seriesId }: Props) {
)}
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="exploratoryViewSeriesNameButton"
onClick={() => setIsEditingEnabled(!isEditingEnabled)}
iconType="pencil"
aria-label={i18n.translate('xpack.exploratoryView.expView.seriesEditor.editName', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = (props) => {
<EuiFlexGroup gutterSize="xs">
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraExpressionRowButton"
iconType={isExpanded ? 'arrowDown' : 'arrowRight'}
onClick={toggle}
aria-label={i18n.translate('xpack.infra.metrics.alertFlyout.expandRowLabel', {
Expand Down Expand Up @@ -629,6 +630,7 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = (props) => {
/>
</StyledHealth>
<EuiButtonIcon
data-test-subj="infraExpressionRowButton"
aria-label={i18n.translate(
'xpack.infra.metrics.alertFlyout.removeWarningThreshold',
{
Expand Down Expand Up @@ -668,6 +670,7 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = (props) => {
{canDelete && (
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraExpressionRowButton"
aria-label={i18n.translate('xpack.infra.metrics.alertFlyout.removeCondition', {
defaultMessage: 'Remove condition',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export const ClosablePopoverTitle = ({ children, onClose }: ClosablePopoverTitle
<EuiFlexItem>{children}</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraClosablePopoverTitleButton"
iconType="cross"
color="danger"
aria-label={i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const ClosablePopoverTitle = ({ children, onClose }: ClosablePopoverTitle
<EuiFlexItem>{children}</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraClosablePopoverTitleButton"
iconType="cross"
color="danger"
aria-label={i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ export const Criterion: React.FC<Props> = ({
{canDelete && (
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraCriterionButton"
aria-label={i18n.translate('xpack.infra.logs.alertFlyout.removeCondition', {
defaultMessage: 'Remove condition',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const ClosablePopoverTitle = ({ children, onClose }: ClosablePopoverTitle
<EuiFlexItem>{children}</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraClosablePopoverTitleButton"
iconType="cross"
color="danger"
aria-label={i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const ClosablePopoverTitle = ({ children, onClose }: ClosablePopoverTitle
<EuiFlexItem>{children}</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraClosablePopoverTitleButton"
iconType="cross"
color="danger"
aria-label={i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const MetricRowControls = ({ onDelete, disableDelete }: MetricRowControlP
<>
<EuiFlexItem grow={0}>
<EuiButtonIcon
data-test-subj="infraMetricRowControlsButton"
iconType="trash"
color="danger"
style={{ marginBottom: '0.2em' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = (props) => {
/>
</StyledHealth>
<EuiButtonIcon
data-test-subj="infraExpressionRowButton"
aria-label={i18n.translate(
'xpack.infra.metrics.alertFlyout.removeWarningThreshold',
{
Expand Down Expand Up @@ -350,6 +351,7 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = (props) => {
{canDelete && (
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraExpressionRowButton"
aria-label={i18n.translate('xpack.infra.metrics.alertFlyout.removeCondition', {
defaultMessage: 'Remove condition',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const RowExpansionButton = <Item extends any>({

return (
<EuiButtonIcon
data-test-subj="infraRowExpansionButtonButton"
onClick={handleClick}
aria-label={isExpanded ? collapseAriaLabel : expandAriaLabel}
iconType={isExpanded ? 'arrowUp' : 'arrowDown'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const LogHighlightsMenu: React.FC<LogHighlightsMenuProps> = ({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraLogHighlightsMenuButton"
aria-label={goToPreviousHighlightLabel}
iconType="arrowUp"
onClick={goToPreviousHighlight}
Expand All @@ -123,6 +124,7 @@ export const LogHighlightsMenu: React.FC<LogHighlightsMenuProps> = ({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraLogHighlightsMenuButton"
aria-label={goToNextHighlightLabel}
iconType="arrowDown"
onClick={goToNextHighlight}
Expand All @@ -132,6 +134,7 @@ export const LogHighlightsMenu: React.FC<LogHighlightsMenuProps> = ({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="infraLogHighlightsMenuButton"
aria-label={clearTermsButtonLabel}
color="danger"
isDisabled={highlightTerm === ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function HideableReactQueryDevTools() {
return !isHidden ? (
<div>
<EuiButtonIcon
data-test-subj="infraHideableReactQueryDevToolsButton"
iconType="cross"
color="primary"
style={{ zIndex: 99999, position: 'fixed', bottom: '40px', left: '40px' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ const PaginationControls = ({
<EuiFlexItem grow={false}>
<EuiFlexGroup>
<EuiButtonIcon
data-test-subj="infraPaginationControlsButton"
iconType="arrowLeft"
isDisabled={!fetchPreviousPage || isLoading}
onClick={fetchPreviousPage}
Expand All @@ -308,6 +309,7 @@ const PaginationControls = ({
<strong>{page}</strong>
</span>
<EuiButtonIcon
data-test-subj="infraPaginationControlsButton"
iconType="arrowRight"
isDisabled={!fetchNextPage || isLoading}
onClick={fetchNextPage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const AnomalyActionMenu = ({
panelPaddingSize="none"
button={
<EuiButtonIcon
data-test-subj="infraAnomalyActionMenuButton"
iconType="boxesHorizontal"
onClick={handleToggleMenu}
aria-label={i18n.translate('xpack.infra.ml.anomalyFlyout.actions.openActionMenu', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const PaginationControls = ({
<EuiFlexItem grow={false}>
<EuiFlexGroup>
<EuiButtonIcon
data-test-subj="infraPaginationControlsButton"
iconType="arrowLeft"
isDisabled={!fetchPreviousPage || isLoading}
onClick={fetchPreviousPage}
Expand All @@ -45,6 +46,7 @@ export const PaginationControls = ({
<strong>{page}</strong>
</span>
<EuiButtonIcon
data-test-subj="infraPaginationControlsButton"
iconType="arrowRight"
isDisabled={!fetchNextPage || isLoading}
onClick={fetchNextPage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ export const NodeContextPopover = ({
</EuiButtonEmpty>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon size="s" onClick={onClose} iconType="cross" />
<EuiButtonIcon
data-test-subj="infraNodeContextPopoverButton"
size="s"
onClick={onClose}
iconType="cross"
/>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const Table = (props: Props) => {
)}
>
<EuiButtonIcon
data-test-subj="infraColumnsButton"
color="text"
size="s"
iconType="filter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const MetricsEditMode = withTheme(
>
<EuiFlexItem grow={false} style={{ width: ICON_WIDTH }}>
<EuiButtonIcon
data-test-subj="infraMetricsEditModeButton"
iconType="pencil"
onClick={() => onEdit(metric)}
aria-label={i18n.translate(
Expand All @@ -55,6 +56,7 @@ export const MetricsEditMode = withTheme(
</EuiFlexItem>
<EuiFlexItem grow={false} style={{ width: ICON_WIDTH, textAlign: 'right' }}>
<EuiButtonIcon
data-test-subj="infraMetricsEditModeButton"
iconType="trash"
color="danger"
onClick={() => onDelete(metric)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export const MetadataDetails = (props: Props) => {
{filteredFields.length > NUMBER_OF_COLUMNS ? (
<Controls>
<EuiButtonIcon
data-test-subj="infraMetadataDetailsButton"
iconType={isOpen ? 'arrowUp' : 'arrowDown'}
onClick={toggleIsOpen}
aria-label={i18n.translate('xpack.infra.nodeDetails.labels.showMoreDetails', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function ClosablePopoverTitle({ children, onClose }: ClosablePopoverTitle
<EuiFlexItem>{children}</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="o11yClosablePopoverTitleButton"
iconType="cross"
color="danger"
aria-label={i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function MetricRowControls({ onDelete, disableDelete }: MetricRowControlP
<>
<EuiFlexItem grow={0}>
<EuiButtonIcon
data-test-subj="o11yMetricRowControlsButton"
aria-label={DELETE_LABEL}
iconType="trash"
color="danger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export const ExpressionRow: React.FC<ExpressionRowProps> = (props) => {
{canDelete && (
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="o11yExpressionRowButton"
aria-label={i18n.translate(
'xpack.observability.threshold.rule.alertFlyout.removeCondition',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export function AlertActions({
})}
>
<EuiButtonIcon
data-test-subj="o11yAlertActionsButton"
aria-label={i18n.translate('xpack.observability.alertsTable.viewInAppTextLabel', {
defaultMessage: 'View in app',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function WebCoreVitalsTitle({
isOpen={isPopoverOpen}
button={
<EuiButtonIcon
data-test-subj="o11yWebCoreVitalsTitleButton"
aria-label={helpAriaLabel}
onClick={() => setIsPopoverOpen(true)}
color={'text'}
Expand Down Expand Up @@ -110,6 +111,7 @@ export function WebCoreVitalsTitle({
isOpen={isBrowserPopoverOpen}
button={
<EuiButtonIcon
data-test-subj="o11yWebCoreVitalsTitleButton"
aria-label={helpAriaLabel}
onClick={() => setIsBrowserPopoverOpen(true)}
color={'text'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export function MetricIndicator({ type, indexFields, isLoadingIndex }: MetricInd
</EuiFlexItem>
<EuiFlexItem grow={0}>
<EuiButtonIcon
data-test-subj="o11yMetricIndicatorButton"
iconType="trash"
color="danger"
style={{ marginTop: '1.5em' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export function SloListItem({
anchorPosition="downLeft"
button={
<EuiButtonIcon
data-test-subj="o11ySloListItemButton"
aria-label={i18n.translate('xpack.observability.slo.item.actions.button', {
defaultMessage: 'Actions',
})}
Expand Down
Loading

0 comments on commit cd2111b

Please sign in to comment.