Skip to content

Conversation

@walterra
Copy link
Contributor

@walterra walterra commented Jul 8, 2020

Backports the following commits to 7.x:

…ount after button click. (elastic#70555)

Related to elastic#70383 and elastic#63455.

Refactors the action buttons of the transform and data frame analytics jobs list:

Previously custom actions included state and JSX for e.g. confirmation modals. Problem with that: If the actions list popover hides, the modal would unmount too. Since EUI's behaviour will change with the release/merge of elastic#70383, we needed a refactor that solves that issue right now.

With this PR, state management for UI behaviour that follows after a button click like the confirmation modals was moved to a custom hook which is part of the outer level of the buttons itself. The modal now also gets mounted on the outer level. This way we won't loose the modals state and DOM rendering when the action button hides.

Note that this PR doesn't fix the nested buttons issue (elastic#63455) yet. For that we need EUI issue elastic#70383 to be in Kibana which will arrive with EUI v26.3.0 via elastic#70243. So there will be one follow up to that which will focus on getting rid of the nested button structure.
@walterra walterra added the backport This PR is a backport of another PR label Jul 8, 2020
@walterra walterra self-assigned this Jul 8, 2020
@walterra walterra added the :ml label Jul 8, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@walterra
Copy link
Contributor Author

walterra commented Jul 8, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
ml 386 -2 388

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@walterra walterra merged commit d4a2c79 into elastic:7.x Jul 8, 2020
@walterra walterra deleted the backport/7.x/pr-70555 branch July 8, 2020 14:51
@walterra walterra mentioned this pull request Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants