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

Upgrade EUI to v14.9.0 #49678

Merged
merged 23 commits into from
Nov 13, 2019
Merged

Upgrade EUI to v14.9.0 #49678

merged 23 commits into from
Nov 13, 2019

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Oct 29, 2019

Summary

Upgrade EUI from 14.8.0 to 14.9.0

EuiSwitch makes up most of the noise here. It changed from being an input to a button with a shimmed event. This was done for accessibility reasons, and should be generally unnoticeable to users. Functional test eventing, however, required quite a few updates.

14.9.0

  • Added new euiTreeView component for rendering recursive objects such as folder structures. (#2409)
  • Added euiXScrollWithShadows() mixin and .eui-xScrollWithShadows utility class (#2458)
  • Fixed EuiColorStops where empty string values would cause range min or max to be NaN (#2496)
  • Improved EuiSwitch a11y by aligning to aria roles (#2491)
  • Converted EuiSwitch to TypeScript (#2491)
  • Added an accessible label-less EuiSwitch variation (#2491)

Bug fixes

  • Normalized button moz-focus-inner (#2445)
  • Fixed typo to correct aria-modal attribute inEuiPopover (#2488)
  • Fixed position of EuiCodeBlock controls and added more tests (#2459)
  • Changed EuiCodeBlock so that overflowHeight now applies a maxHeight instead of a height on the block (#2487)
  • Fixed potentially inconsistent state update (#2481)
  • Fixed EuiSwitch form behavior by adding a default button type of 'button' (#2491)

@thompsongl thompsongl added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes EUI v7.6.0 labels Oct 29, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@thompsongl thompsongl marked this pull request as ready for review October 30, 2019 16:11
@thompsongl thompsongl requested a review from a team October 30, 2019 16:11
@thompsongl thompsongl requested review from a team as code owners October 30, 2019 16:11
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Test & snapshot changes regarding EuiSwitch look sane

@legrego legrego self-requested a review October 31, 2019 15:42
Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces changes LGTM!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@myasonik myasonik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM assuming appropriate strings are added to the switches where I added comments (approving now to not be a bottleneck)

@@ -59,6 +59,8 @@ export const JobSwitch = React.memo<JobSwitchProps>(
setIsLoading(true);
onJobStateChange(job, job.latestTimestampMs || 0, e.target.checked);
}}
showLabel={false}
label="" // TODO: Add label for a11y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging this TODO as something to be resolved before merge

@@ -247,6 +247,8 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
useDedicatedIndex: checked,
});
}}
showLabel={false}
label="" // TODO: Add label for a11y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging this TODO as something to be resolved before merge

@@ -43,6 +43,8 @@ export const SparseDataSwitch: FC = () => {
checked={sparseData}
onChange={toggleSparseData}
data-test-subj="mlJobWizardSwitchSparseData"
showLabel={false}
label="" // TODO: Add label for a11y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging this TODO as something to be resolved before merge

@@ -29,6 +29,8 @@ export const ModelPlotSwitch: FC = () => {
checked={modelPlotEnabled}
onChange={toggleModelPlot}
data-test-subj="mlJobWizardSwitchModelPlot"
showLabel={false}
label="" // TODO: Add label for a11y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging this TODO as something to be resolved before merge

@@ -29,6 +29,8 @@ export const DedicatedIndexSwitch: FC = () => {
checked={useDedicatedIndex}
onChange={toggleModelPlot}
data-test-subj="mlJobWizardSwitchUseDedicatedIndex"
showLabel={false}
label="" // TODO: Add label for a11y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging this TODO as something to be resolved before merge

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@thompsongl thompsongl merged commit 998b0e6 into elastic:master Nov 13, 2019
thompsongl added a commit to thompsongl/kibana that referenced this pull request Nov 13, 2019
* eui to 14.9.0

* euiswitch updtates

* misc snapshot

* x-pack functional fixes

* more euiswitch functional test fixes

* label-less switches for spaces management

* more euiswitch fixes

* telemetry form a11y

* snapshot update

* label updates

* more switch updates

* lint
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Nov 14, 2019
* eui to 14.9.0

* euiswitch updtates

* misc snapshot

* x-pack functional fixes

* more euiswitch functional test fixes

* label-less switches for spaces management

* more euiswitch fixes

* telemetry form a11y

* snapshot update

* label updates

* more switch updates

* lint
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 14, 2019
* 'master' of github.com:elastic/kibana: (27 commits)
  [Rollup] Fix for clone job workflow (elastic#50501)
  Empty message "No data available" for Labels and User metadata sections missing (elastic#49846)
  [APM] Duration by Country map doesn't take `transactionName` into account (elastic#50315)
  Remove react references from core `Notifications` apis (elastic#49573)
  Updated APM Indices endpoints to use the SavedObjectsClient from the legacy request context, and set the apm-indices schema object to be namspace-agnostic
  [Metrics UI] Calculate interval based on the dataset's period (elastic#50194)
  chore(NA): add new platform discovered plugins as entry points to check for dependencies on clean dll tasks (elastic#50610)
  [Telemetry] change of optin status telemetry (elastic#50158)
  [SIEM][Detection Engine] REST API Additions (elastic#50514)
  [DOCS] Removes dashboard-only mode doc (elastic#50441)
  [Filters] Fix operator overflowing out popover (elastic#50030)
  Change telemetry optIn to default to true (elastic#50490)
  [Maps] make grid rectangles the default symbolization for geo grid source (elastic#50169)
  Allow registered applications to hide Kibana chrome (elastic#49795)
  Upgrade EUI to v14.9.0 (elastic#49678)
  [Metrics UI] Convert layouts to use React components (elastic#49134)
  [Search service] Add support for ES request preference (elastic#49424)
  [Newsfeed/Lint] fix chained fn lint (elastic#50515)
  [Monitoring] Fix logstash pipelines page in multi-cluster environment (elastic#50166)
  [SIEM] Events viewer fixes (elastic#50175)
  ...
thompsongl added a commit that referenced this pull request Nov 14, 2019
* eui to 14.9.0

* euiswitch updtates

* misc snapshot

* x-pack functional fixes

* more euiswitch functional test fixes

* label-less switches for spaces management

* more euiswitch fixes

* telemetry form a11y

* snapshot update

* label updates

* more switch updates

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EUI release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants