Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"@elastic/elasticsearch": "9.4.0",
"@elastic/ems-client": "8.7.0",
"@elastic/esql": "4.1.0",
"@elastic/eui": "116.0.0",
"@elastic/eui": "116.1.0",
"@elastic/eui-theme-borealis": "8.0.0",
"@elastic/filesaver": "1.1.2",
"@elastic/kibana-d3-color": "npm:@elastic/kibana-d3-color@2.0.1",
Expand Down Expand Up @@ -1606,7 +1606,7 @@
"@cypress/debugging-proxy": "2.0.1",
"@cypress/grep": "5.1.0",
"@cypress/webpack-preprocessor": "6.0.2",
"@elastic/eslint-plugin-eui": "2.12.0",
"@elastic/eslint-plugin-eui": "2.13.0",
"@elastic/makelogs": "6.1.1",
"@emotion/babel-preset-css-prop": "11.11.0",
"@emotion/jest": "11.11.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@elastic/esql@4.1.0
@elastic/eui-theme-borealis@8.0.0
@elastic/eui-theme-common@10.0.0
@elastic/eui@116.0.0
@elastic/eui@116.1.0
@elastic/numeral@2.5.1
@elastic/prismjs-esql@1.1.2
@emotion/babel-plugin@11.13.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const SpaNoRouterLink: React.FC<React.PropsWithChildren<SpaNoRouterLinkPr
...rest
}) => {
return (
/* eslint-disable-next-line @elastic/eui/href-or-on-click */
<EuiLink
{...rest}
href={url}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ConnectionDetailsFlyoutContent: React.FC<{ headerId?: string }> = (
{!!ctx.links?.learnMore && (
// Below onClick is used only for telemetry, but `href` is the real
// semantic action.
// eslint-disable-next-line @elastic/eui/href-or-on-click

<EuiLink
external
href={ctx.links.learnMore}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export const NameCellTitle = ({ item, shouldUseHref, onClick }: NameCellTitlePro

return (
<EuiText size="s">
{/* eslint-disable-next-line @elastic/eui/href-or-on-click -- Intentional when `shouldUseHref` preserves native link affordances while `onClick` handles plain clicks. */}
<EuiLink href={href} onClick={handleClick} data-test-subj="content-list-table-item-link">
{title}
</EuiLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export function ItemDetails<T extends UserContentCommonSchema>({

return (
<>
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiLink
href={getDetailViewLink?.(item)}
onClick={onClickTitleHandler}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const NameColumnText = ({
);

return (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink href={href} onClick={onClick} data-test-subj="sessionManagementNameLink">
{children}
</EuiLink>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const OptInMessage: React.FC<OptInMessageProps> = ({
</strong>
),
privacyStatementLink: (
/* eslint-disable-next-line @elastic/eui/href-or-on-click */
<EuiLink
onClick={(e: React.MouseEvent) => {
if (hasActiveModifierKey(e)) return;
Expand Down Expand Up @@ -99,7 +98,6 @@ function renderTelemetryEnabledOrDisabledText(
);

return (
/* eslint-disable-next-line @elastic/eui/href-or-on-click */
<EuiLink
href={addBasePath(PATH_TO_ADVANCED_SETTINGS)}
onClick={(e: React.MouseEvent) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ export const WorkflowStepExecutionDetails = React.memo<WorkflowStepExecutionDeta
<EuiFlexItem grow={false}>
<EuiTitle size="xs">
<h3>
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiLink href={workflowNav.href} onClick={handleWorkflowLinkClick}>
{`${stepExecution?.stepType}: ${childWorkflowExecution.workflowName}`}
</EuiLink>
Expand All @@ -239,7 +238,6 @@ export const WorkflowStepExecutionDetails = React.memo<WorkflowStepExecutionDeta
<EuiFlexItem grow={false}>
<EuiTitle size="xs">
<h3>
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiLink
href={parentWorkflowNav.href}
onClick={handleParentWorkflowLinkClick}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ const DiscoverAppLink: FunctionComponent<Omit<Props, 'showInfoParagraph'>> = ({
{content}
</EuiButton>
) : (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink href={discoveryUrl} onClick={handleClick} data-test-subj="viewDiscoverLogs">
<EuiText> {content}</EuiText>
</EuiLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ export const CreateIntegrationSideCardButton = React.memo(() => {
defaultMessage="Use AI to create a new one or {uploadLink}"
values={{
uploadLink: (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink
href={uploadHref}
onClick={navigateToUpload}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import '../../../__mocks__/shallow_useeffect.mock';
import { setMockActions, setMockValues } from '../../../__mocks__';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ export const AddFleetServerHostStepContent = ({
values={{
host: submittedFleetServerHost.host_urls[0],
fleetSettingsLink: (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink href={getHref('settings')} onClick={onClose}>
<FormattedMessage
id="xpack.fleet.fleetServerSetup.fleetSettingsLink"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ const GettingStartedStepContent: React.FunctionComponent<QuickStartCreateForm> =
values={{
hostUrl: <EuiCode>{selectedFleetServerHost?.host_urls[0]}</EuiCode>,
fleetSettingsLink: (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink href={getHref('settings')} onClick={onClose}>
<FormattedMessage
id="xpack.fleet.fleetServerSetup.fleetSettingsLink"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const AgentsPolicyLinkComponent: React.FC<AgentsPolicyLinkProps> = ({ policyId }
);

return (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink href={href} onClick={handleClick} css={euiLinkCss}>
{data?.name ?? policyId}
</EuiLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export const TagTable: FC<TagTableProps> = ({
);

return capabilities.viewConnections ? (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink
data-test-subj="tagsTableRowConnectionsLink"
href={getTagRelationUrl(tag)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const DashboardLink: React.FC<Props> = ({
return dashboardUrl != null ? (
// href gives us right click -> open in new tab
// onclick prevents page reload
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink data-test-subj="link-gen-ai-token-dashboard" onClick={onClick} href={dashboardUrl}>
{i18n.USAGE_DASHBOARD_LINK(selectedProvider, connectorName)}
</EuiLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export const DashboardLink: React.FC<Props> = ({
return dashboardUrl != null ? (
// href gives us right click -> open in new tab
// onclick prevents page reload
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink data-test-subj="link-gen-ai-token-dashboard" onClick={onClick} href={dashboardUrl}>
{i18n.USAGE_DASHBOARD_LINK(selectedProvider, connectorName)}
</EuiLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export const MetricsNodeDetailsLink = ({
]);

return (
// eslint-disable-next-line @elastic/eui/href-or-on-click -- onClick for programmatic navigation; href for "Open in new tab" and fallback
<EuiLink
data-test-subj="infraMetricsNodeDetailsLinkLink"
href={linkProps.href}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ export function DashboardTile({
<>
<EuiFlexGroup gutterSize="xs" responsive={false} key={dashboard.id} alignItems="center">
<EuiFlexGroup key={dashboard.id} gutterSize="s" direction="column">
{/* Allowing both href and onClick to allow telemetry to be reported */}
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiLink
data-test-subj={`alertDetails_viewLinkedDashboard_${actionButtonProps?.ruleType}`}
href={dashboardLocator?.getRedirectUrl({
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* 2.0.
*/

import '../../../../__mocks__/shallow_useeffect.mock';
import { setMockValues, setMockActions } from '../../../../__mocks__/kea_logic';

import React from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export const QueryRuleFlyout: React.FC<QueryRuleFlyoutProps> = ({
id="xpack.search.queryRulesetDetail.queryRuleFlyout.findDocuments"
defaultMessage="Find your documents IDs into "
/>
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiLink
data-test-subj="searchQueryRulesQueryRuleFlyoutLink"
external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const EndpointEventLink = ({ target, actionText, remainingTargets }: EndpointEve
return (
<>
{actionText}
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiLink
onClick={onLinkClick}
href={linkHref}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading