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

[ML][UX]: Consistent Layout and UI Enhancements for ML Pages #203813

Merged
merged 28 commits into from
Dec 23, 2024

Conversation

rbrtj
Copy link
Contributor

@rbrtj rbrtj commented Dec 11, 2024

Summary

Exploration around new Add to actions buttons - the right column is the most recent one, see: #184109 :

Before After (add_to button) After (icon button) - current
Screenshot 2024-12-12 at 11 45 14 Screenshot 2024-12-12 at 11 37 38 Screenshot 2024-12-12 at 12 42 58
Screenshot 2024-12-12 at 11 45 49 Screenshot 2024-12-12 at 11 39 34 Screenshot 2024-12-12 at 12 44 58
Screenshot 2024-12-12 at 11 46 30 Screenshot 2024-12-12 at 11 40 18 image
Screenshot 2024-12-12 at 11 48 07 Screenshot 2024-12-12 at 11 42 03 Screenshot 2024-12-12 at 12 46 14
Screenshot 2024-12-12 at 11 49 05 Screenshot 2024-12-12 at 11 43 40 image

Toasts:

Before After
image image

Other changes:

Before After
Screenshot 2024-12-13 at 17 57 36 Screenshot 2024-12-13 at 18 00 26
Screenshot 2024-12-13 at 18 06 59 Screenshot 2024-12-13 at 18 02 04
Screenshot 2024-12-13 at 18 08 20 Screenshot 2024-12-13 at 18 09 30
Screenshot 2024-12-13 at 18 11 52 Screenshot 2024-12-13 at 18 10 34
Screenshot 2024-12-13 at 18 30 32 Screenshot 2024-12-13 at 18 32 59
Screenshot 2024-12-13 at 18 35 56 Screenshot 2024-12-13 at 18 34 25
image image

@rbrtj rbrtj requested a review from joana-cps December 12, 2024 10:49
@rbrtj rbrtj marked this pull request as ready for review December 17, 2024 09:35
@rbrtj rbrtj requested review from a team as code owners December 17, 2024 09:35
Copy link
Contributor

@adcoelho adcoelho left a comment

Choose a reason for hiding this comment

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

response-ops changes ok

@rbrtj rbrtj self-assigned this Dec 17, 2024
@rbrtj rbrtj added :ml v9.0.0 Team:ML Team label for ML (also use :ml) backport:version Backport to applied version labels v8.18.0 labels Dec 17, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@rbrtj rbrtj changed the title [ML][UX]: Updates to ML embeddable 'Add to' action [ML][UX]: Consistent Layout and UI Enhancements for ML Pages Dec 17, 2024
Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Code LGTM, just added some minor suggestions.

@@ -90,10 +90,6 @@ interface DatePickerWrapperProps {
/**
* Boolean flag to set use of flex group wrapper
*/
flexGroup?: boolean;
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you accidentaly removed the comment for the next prop and not flexGroup.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, done in: #d73ab5d

/**
* Titles for the cases toast messages
*/
export const TITLES = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest to make this a bit more specific like CASES_TOAST_MESSAGES_TITLES.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree, done in: #7f47fad

/**
* Titles for the cases toast messages
*/
export const TITLES = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, suggest to make this const more specific like CASES_TOAST_MESSAGES_TITLES.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in: #7f47fad

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested latest changes and LGTM.
Just left one suggestion about a plural case for the change point charts. Would be good to get that in too.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
aiops 630 631 +1
ml 2141 2142 +1
total +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiops 621.4KB 623.3KB +2.0KB
dataVisualizer 615.4KB 614.9KB -436.0B
ml 4.7MB 4.7MB -3.3KB
transform 476.4KB 476.4KB -8.0B
total -1.7KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cases 160.3KB 160.4KB +88.0B
ml 77.8KB 77.8KB +1.0B
total +89.0B
Unknown metric groups

async chunk count

id before after diff
ml 110 111 +1

ESLint disabled line counts

id before after diff
aiops 40 39 -1
ml 557 556 -1
total -2

Total ESLint disabled count

id before after diff
aiops 40 39 -1
ml 560 559 -1
total -2

History

cc @rbrtj

@rbrtj rbrtj merged commit 0cc887b into elastic:main Dec 23, 2024
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12465668093

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 203813

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Dec 25, 2024
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 203813 locally

4 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 203813 locally

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 203813 locally

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 203813 locally

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 203813 locally

@rbrtj
Copy link
Contributor Author

rbrtj commented Dec 31, 2024

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

rbrtj added a commit to rbrtj/kibana that referenced this pull request Dec 31, 2024
…#203813)

## Summary

* Updated alignment for `Add to` action buttons across various ML pages
- see: elastic#184109
* Fixed the overflowing date picker on `Anomaly Detection` pages - see:
[elastic#204394](elastic#204394)
* Standardized gaps around items on pages to maintain consistent values
of `8px` (`gutterSize = 's'`)
* Fixed the header on the Data Visualizer page - see:
[elastic#204393](elastic#204393)
* Adjusted the layout for Change Point Detection
* Updated toast messages & toast action button - see: elastic#184109
* Added icons for attachments actions

Exploration around new `Add to` actions buttons - the right column is
the most recent one, see: elastic#184109 :

| Before  | After (add_to button) | After (icon button) - current |
| ------------- | ------------- | ------------- |
| ![Screenshot 2024-12-12 at 11 45
14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)
| ![Screenshot 2024-12-12 at 11 37
38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)
| ![Screenshot 2024-12-12 at 12 42
58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)
|
| ![Screenshot 2024-12-12 at 11 45
49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)
| ![Screenshot 2024-12-12 at 11 39
34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)
| ![Screenshot 2024-12-12 at 12 44
58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)
|
| ![Screenshot 2024-12-12 at 11 46
30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)
| ![Screenshot 2024-12-12 at 11 40
18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)
|
![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)
|
| ![Screenshot 2024-12-12 at 11 48
07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)
| ![Screenshot 2024-12-12 at 11 42
03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)
| ![Screenshot 2024-12-12 at 12 46
14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)
|
| ![Screenshot 2024-12-12 at 11 49
05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)
| ![Screenshot 2024-12-12 at 11 43
40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)
|
![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)
|

Toasts:
| Before | After |
| ------ | ------ |
| <img width="376" alt="image"
src="https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6"
/> |
![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)
|

Other changes:

| Before | After |
| ------ | ------ |
| ![Screenshot 2024-12-13 at 17 57
36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)
| ![Screenshot 2024-12-13 at 18 00
26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)
|
| ![Screenshot 2024-12-13 at 18 06
59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)
| ![Screenshot 2024-12-13 at 18 02
04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)
|
| ![Screenshot 2024-12-13 at 18 08
20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)
| ![Screenshot 2024-12-13 at 18 09
30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)
|
| ![Screenshot 2024-12-13 at 18 11
52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)
| ![Screenshot 2024-12-13 at 18 10
34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)
|
| ![Screenshot 2024-12-13 at 18 30
32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)
| ![Screenshot 2024-12-13 at 18 32
59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)
|
| ![Screenshot 2024-12-13 at 18 35
56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)
| ![Screenshot 2024-12-13 at 18 34
25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)
|
| <img width="342" alt="image"
src="https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610"
/> | <img width="323" alt="image"
src="https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a"
/> |

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 0cc887b)

# Conflicts:
#	x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

stratoula pushed a commit to stratoula/kibana that referenced this pull request Jan 2, 2025
…#203813)

## Summary

* Updated alignment for `Add to` action buttons across various ML pages
- see: elastic#184109
* Fixed the overflowing date picker on `Anomaly Detection` pages - see:
[elastic#204394](elastic#204394)
* Standardized gaps around items on pages to maintain consistent values
of `8px` (`gutterSize = 's'`)
* Fixed the header on the Data Visualizer page - see:
[elastic#204393](elastic#204393)
* Adjusted the layout for Change Point Detection
* Updated toast messages & toast action button - see: elastic#184109
* Added icons for attachments actions

Exploration around new `Add to` actions buttons - the right column is
the most recent one, see: elastic#184109 :

| Before  | After (add_to button) | After (icon button) - current |
| ------------- | ------------- | ------------- |
| ![Screenshot 2024-12-12 at 11 45
14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)
| ![Screenshot 2024-12-12 at 11 37
38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)
| ![Screenshot 2024-12-12 at 12 42
58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)
|
| ![Screenshot 2024-12-12 at 11 45
49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)
| ![Screenshot 2024-12-12 at 11 39
34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)
| ![Screenshot 2024-12-12 at 12 44
58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)
|
| ![Screenshot 2024-12-12 at 11 46
30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)
| ![Screenshot 2024-12-12 at 11 40
18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)
|
![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)
|
| ![Screenshot 2024-12-12 at 11 48
07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)
| ![Screenshot 2024-12-12 at 11 42
03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)
| ![Screenshot 2024-12-12 at 12 46
14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)
|
| ![Screenshot 2024-12-12 at 11 49
05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)
| ![Screenshot 2024-12-12 at 11 43
40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)
|
![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)
|

Toasts:
| Before | After |
| ------ | ------ | 
| <img width="376" alt="image"
src="https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6"
/> |
![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)
|



Other changes:

| Before | After |
| ------ | ------ | 
| ![Screenshot 2024-12-13 at 17 57
36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)
| ![Screenshot 2024-12-13 at 18 00
26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)
|
| ![Screenshot 2024-12-13 at 18 06
59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)
| ![Screenshot 2024-12-13 at 18 02
04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)
|
| ![Screenshot 2024-12-13 at 18 08
20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)
| ![Screenshot 2024-12-13 at 18 09
30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)
|
| ![Screenshot 2024-12-13 at 18 11
52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)
| ![Screenshot 2024-12-13 at 18 10
34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)
|
| ![Screenshot 2024-12-13 at 18 30
32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)
| ![Screenshot 2024-12-13 at 18 32
59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)
|
| ![Screenshot 2024-12-13 at 18 35
56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)
| ![Screenshot 2024-12-13 at 18 34
25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)
|
| <img width="342" alt="image"
src="https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610"
/> | <img width="323" alt="image"
src="https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a"
/> |

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)

---------

Co-authored-by: kibanamachine <[email protected]>
benakansara pushed a commit to benakansara/kibana that referenced this pull request Jan 2, 2025
…#203813)

## Summary

* Updated alignment for `Add to` action buttons across various ML pages
- see: elastic#184109
* Fixed the overflowing date picker on `Anomaly Detection` pages - see:
[elastic#204394](elastic#204394)
* Standardized gaps around items on pages to maintain consistent values
of `8px` (`gutterSize = 's'`)
* Fixed the header on the Data Visualizer page - see:
[elastic#204393](elastic#204393)
* Adjusted the layout for Change Point Detection
* Updated toast messages & toast action button - see: elastic#184109
* Added icons for attachments actions

Exploration around new `Add to` actions buttons - the right column is
the most recent one, see: elastic#184109 :

| Before  | After (add_to button) | After (icon button) - current |
| ------------- | ------------- | ------------- |
| ![Screenshot 2024-12-12 at 11 45
14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)
| ![Screenshot 2024-12-12 at 11 37
38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)
| ![Screenshot 2024-12-12 at 12 42
58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)
|
| ![Screenshot 2024-12-12 at 11 45
49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)
| ![Screenshot 2024-12-12 at 11 39
34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)
| ![Screenshot 2024-12-12 at 12 44
58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)
|
| ![Screenshot 2024-12-12 at 11 46
30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)
| ![Screenshot 2024-12-12 at 11 40
18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)
|
![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)
|
| ![Screenshot 2024-12-12 at 11 48
07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)
| ![Screenshot 2024-12-12 at 11 42
03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)
| ![Screenshot 2024-12-12 at 12 46
14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)
|
| ![Screenshot 2024-12-12 at 11 49
05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)
| ![Screenshot 2024-12-12 at 11 43
40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)
|
![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)
|

Toasts:
| Before | After |
| ------ | ------ | 
| <img width="376" alt="image"
src="https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6"
/> |
![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)
|



Other changes:

| Before | After |
| ------ | ------ | 
| ![Screenshot 2024-12-13 at 17 57
36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)
| ![Screenshot 2024-12-13 at 18 00
26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)
|
| ![Screenshot 2024-12-13 at 18 06
59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)
| ![Screenshot 2024-12-13 at 18 02
04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)
|
| ![Screenshot 2024-12-13 at 18 08
20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)
| ![Screenshot 2024-12-13 at 18 09
30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)
|
| ![Screenshot 2024-12-13 at 18 11
52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)
| ![Screenshot 2024-12-13 at 18 10
34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)
|
| ![Screenshot 2024-12-13 at 18 30
32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)
| ![Screenshot 2024-12-13 at 18 32
59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)
|
| ![Screenshot 2024-12-13 at 18 35
56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)
| ![Screenshot 2024-12-13 at 18 34
25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)
|
| <img width="342" alt="image"
src="https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610"
/> | <img width="323" alt="image"
src="https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a"
/> |

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)

---------

Co-authored-by: kibanamachine <[email protected]>
rbrtj added a commit that referenced this pull request Jan 2, 2025
…203813) (#205328)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ML][UX]: Consistent Layout and UI Enhancements for ML Pages
(#203813)](#203813)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Robert
Jaszczurek","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-23T10:56:12Z","message":"[ML][UX]:
Consistent Layout and UI Enhancements for ML Pages (#203813)\n\n##
Summary\n\n* Updated alignment for `Add to` action buttons across
various ML pages\n- see: #184109\n* Fixed the overflowing date picker on
`Anomaly Detection` pages -
see:\n[#204394](https://github.com/elastic/kibana/issues/204394)\n*
Standardized gaps around items on pages to maintain consistent
values\nof `8px` (`gutterSize = 's'`)\n* Fixed the header on the Data
Visualizer page -
see:\n[#204393](https://github.com/elastic/kibana/issues/204393)\n*
Adjusted the layout for Change Point Detection\n* Updated toast messages
& toast action button - see: #184109\n* Added icons for attachments
actions\n\nExploration around new `Add to` actions buttons - the right
column is\nthe most recent one, see: #184109 :\n\n| Before | After
(add_to button) | After (icon button) - current |\n| ------------- |
------------- | ------------- |\n| ![Screenshot 2024-12-12 at 11
45\n14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)\n|
![Screenshot 2024-12-12 at 11
37\n38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)\n|
![Screenshot 2024-12-12 at 12
42\n58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)\n|\n|
![Screenshot 2024-12-12 at 11
45\n49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)\n|
![Screenshot 2024-12-12 at 11
39\n34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)\n|
![Screenshot 2024-12-12 at 12
44\n58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)\n|\n|
![Screenshot 2024-12-12 at 11
46\n30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)\n|
![Screenshot 2024-12-12 at 11
40\n18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)\n|\n![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)\n|\n|
![Screenshot 2024-12-12 at 11
48\n07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)\n|
![Screenshot 2024-12-12 at 11
42\n03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)\n|
![Screenshot 2024-12-12 at 12
46\n14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)\n|\n|
![Screenshot 2024-12-12 at 11
49\n05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)\n|
![Screenshot 2024-12-12 at 11
43\n40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)\n|\n![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)\n|\n\nToasts:\n|
Before | After |\n| ------ | ------ | \n| <img width=\"376\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6\"\n/>
|\n![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)\n|\n\n\n\nOther
changes:\n\n| Before | After |\n| ------ | ------ | \n| ![Screenshot
2024-12-13 at 17
57\n36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)\n|
![Screenshot 2024-12-13 at 18
00\n26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)\n|\n|
![Screenshot 2024-12-13 at 18
06\n59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)\n|
![Screenshot 2024-12-13 at 18
02\n04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)\n|\n|
![Screenshot 2024-12-13 at 18
08\n20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)\n|
![Screenshot 2024-12-13 at 18
09\n30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)\n|\n|
![Screenshot 2024-12-13 at 18
11\n52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)\n|
![Screenshot 2024-12-13 at 18
10\n34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)\n|\n|
![Screenshot 2024-12-13 at 18
30\n32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)\n|
![Screenshot 2024-12-13 at 18
32\n59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)\n|\n|
![Screenshot 2024-12-13 at 18
35\n56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)\n|
![Screenshot 2024-12-13 at 18
34\n25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)\n|\n|
<img width=\"342\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610\"\n/>
| <img width=\"323\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a\"\n/>
|\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"0cc887be92df434671ad37fe89cb4ebcc0d5af3d","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement",":ml","backport
missing","v9.0.0","Team:ML","backport:version","v8.18.0"],"number":203813,"url":"https://github.com/elastic/kibana/pull/203813","mergeCommit":{"message":"[ML][UX]:
Consistent Layout and UI Enhancements for ML Pages (#203813)\n\n##
Summary\n\n* Updated alignment for `Add to` action buttons across
various ML pages\n- see: #184109\n* Fixed the overflowing date picker on
`Anomaly Detection` pages -
see:\n[#204394](https://github.com/elastic/kibana/issues/204394)\n*
Standardized gaps around items on pages to maintain consistent
values\nof `8px` (`gutterSize = 's'`)\n* Fixed the header on the Data
Visualizer page -
see:\n[#204393](https://github.com/elastic/kibana/issues/204393)\n*
Adjusted the layout for Change Point Detection\n* Updated toast messages
& toast action button - see: #184109\n* Added icons for attachments
actions\n\nExploration around new `Add to` actions buttons - the right
column is\nthe most recent one, see: #184109 :\n\n| Before | After
(add_to button) | After (icon button) - current |\n| ------------- |
------------- | ------------- |\n| ![Screenshot 2024-12-12 at 11
45\n14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)\n|
![Screenshot 2024-12-12 at 11
37\n38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)\n|
![Screenshot 2024-12-12 at 12
42\n58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)\n|\n|
![Screenshot 2024-12-12 at 11
45\n49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)\n|
![Screenshot 2024-12-12 at 11
39\n34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)\n|
![Screenshot 2024-12-12 at 12
44\n58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)\n|\n|
![Screenshot 2024-12-12 at 11
46\n30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)\n|
![Screenshot 2024-12-12 at 11
40\n18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)\n|\n![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)\n|\n|
![Screenshot 2024-12-12 at 11
48\n07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)\n|
![Screenshot 2024-12-12 at 11
42\n03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)\n|
![Screenshot 2024-12-12 at 12
46\n14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)\n|\n|
![Screenshot 2024-12-12 at 11
49\n05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)\n|
![Screenshot 2024-12-12 at 11
43\n40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)\n|\n![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)\n|\n\nToasts:\n|
Before | After |\n| ------ | ------ | \n| <img width=\"376\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6\"\n/>
|\n![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)\n|\n\n\n\nOther
changes:\n\n| Before | After |\n| ------ | ------ | \n| ![Screenshot
2024-12-13 at 17
57\n36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)\n|
![Screenshot 2024-12-13 at 18
00\n26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)\n|\n|
![Screenshot 2024-12-13 at 18
06\n59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)\n|
![Screenshot 2024-12-13 at 18
02\n04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)\n|\n|
![Screenshot 2024-12-13 at 18
08\n20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)\n|
![Screenshot 2024-12-13 at 18
09\n30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)\n|\n|
![Screenshot 2024-12-13 at 18
11\n52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)\n|
![Screenshot 2024-12-13 at 18
10\n34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)\n|\n|
![Screenshot 2024-12-13 at 18
30\n32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)\n|
![Screenshot 2024-12-13 at 18
32\n59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)\n|\n|
![Screenshot 2024-12-13 at 18
35\n56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)\n|
![Screenshot 2024-12-13 at 18
34\n25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)\n|\n|
<img width=\"342\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610\"\n/>
| <img width=\"323\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a\"\n/>
|\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"0cc887be92df434671ad37fe89cb4ebcc0d5af3d"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203813","number":203813,"mergeCommit":{"message":"[ML][UX]:
Consistent Layout and UI Enhancements for ML Pages (#203813)\n\n##
Summary\n\n* Updated alignment for `Add to` action buttons across
various ML pages\n- see: #184109\n* Fixed the overflowing date picker on
`Anomaly Detection` pages -
see:\n[#204394](https://github.com/elastic/kibana/issues/204394)\n*
Standardized gaps around items on pages to maintain consistent
values\nof `8px` (`gutterSize = 's'`)\n* Fixed the header on the Data
Visualizer page -
see:\n[#204393](https://github.com/elastic/kibana/issues/204393)\n*
Adjusted the layout for Change Point Detection\n* Updated toast messages
& toast action button - see: #184109\n* Added icons for attachments
actions\n\nExploration around new `Add to` actions buttons - the right
column is\nthe most recent one, see: #184109 :\n\n| Before | After
(add_to button) | After (icon button) - current |\n| ------------- |
------------- | ------------- |\n| ![Screenshot 2024-12-12 at 11
45\n14](https://github.com/user-attachments/assets/08dc0be5-0b98-481d-9906-d3434f03f634)\n|
![Screenshot 2024-12-12 at 11
37\n38](https://github.com/user-attachments/assets/0b2cbdcd-cad0-49aa-842f-123eebec1716)\n|
![Screenshot 2024-12-12 at 12
42\n58](https://github.com/user-attachments/assets/c0a0c732-bbc0-4007-998e-df413fae612b)\n|\n|
![Screenshot 2024-12-12 at 11
45\n49](https://github.com/user-attachments/assets/9ff45cf8-1c24-4ef4-ab59-2b54f1569c6e)\n|
![Screenshot 2024-12-12 at 11
39\n34](https://github.com/user-attachments/assets/293255eb-eba5-4d90-a10b-0f41de0cc195)\n|
![Screenshot 2024-12-12 at 12
44\n58](https://github.com/user-attachments/assets/740da2fb-ceed-4e6a-add6-9a8d695776a6)\n|\n|
![Screenshot 2024-12-12 at 11
46\n30](https://github.com/user-attachments/assets/71cea9f4-7658-4776-865d-0f7c5682e67a)\n|
![Screenshot 2024-12-12 at 11
40\n18](https://github.com/user-attachments/assets/b03e8a75-68d3-4c26-942c-1d41072a62ee)\n|\n![image](https://github.com/user-attachments/assets/6a259924-7081-426c-8bd2-346e4f0ae152)\n|\n|
![Screenshot 2024-12-12 at 11
48\n07](https://github.com/user-attachments/assets/2b340d38-26a5-45bc-851e-8b1956503500)\n|
![Screenshot 2024-12-12 at 11
42\n03](https://github.com/user-attachments/assets/ecef0b37-a43c-42a3-911f-31d4acf9ac7b)\n|
![Screenshot 2024-12-12 at 12
46\n14](https://github.com/user-attachments/assets/f9dddfe0-7296-4394-bb2f-94d702361f49)\n|\n|
![Screenshot 2024-12-12 at 11
49\n05](https://github.com/user-attachments/assets/d670ad40-58d4-40fb-a88d-7ac5e6c1fbbd)\n|
![Screenshot 2024-12-12 at 11
43\n40](https://github.com/user-attachments/assets/856f9476-c6ff-4405-8865-fb8784f3d818)\n|\n![image](https://github.com/user-attachments/assets/b18f624b-e648-403f-9595-442b2723bdde)\n|\n\nToasts:\n|
Before | After |\n| ------ | ------ | \n| <img width=\"376\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c58000c2-30d4-4312-be53-0e3e9a6e3ae6\"\n/>
|\n![image](https://github.com/user-attachments/assets/36955456-026a-4abe-b872-c72c115a2dbe)\n|\n\n\n\nOther
changes:\n\n| Before | After |\n| ------ | ------ | \n| ![Screenshot
2024-12-13 at 17
57\n36](https://github.com/user-attachments/assets/263940ea-9396-4f82-b14e-c9086c6d36e8)\n|
![Screenshot 2024-12-13 at 18
00\n26](https://github.com/user-attachments/assets/49430be4-356b-4902-b855-7fc1b252fbdb)\n|\n|
![Screenshot 2024-12-13 at 18
06\n59](https://github.com/user-attachments/assets/67ad0faf-42f7-44e1-9290-857e28a9d5e4)\n|
![Screenshot 2024-12-13 at 18
02\n04](https://github.com/user-attachments/assets/357d7296-7b5f-4df5-b664-8bd99c93205b)\n|\n|
![Screenshot 2024-12-13 at 18
08\n20](https://github.com/user-attachments/assets/819a7c33-9c7a-4423-be1b-cbec30dd8a97)\n|
![Screenshot 2024-12-13 at 18
09\n30](https://github.com/user-attachments/assets/c4b3cb40-f572-4828-888b-4cfff6b565b9)\n|\n|
![Screenshot 2024-12-13 at 18
11\n52](https://github.com/user-attachments/assets/c63ccdf3-aeaa-4047-a3b5-f67c11690020)\n|
![Screenshot 2024-12-13 at 18
10\n34](https://github.com/user-attachments/assets/6a6343d5-a7f7-45da-bf40-46b14b257e41)\n|\n|
![Screenshot 2024-12-13 at 18
30\n32](https://github.com/user-attachments/assets/7aa13ad8-ba6f-4801-b0fe-ff90dd9038c1)\n|
![Screenshot 2024-12-13 at 18
32\n59](https://github.com/user-attachments/assets/17774c78-003d-46fd-b7bb-d21cdee7df47)\n|\n|
![Screenshot 2024-12-13 at 18
35\n56](https://github.com/user-attachments/assets/b7b003c6-11a6-4a1d-97c2-c1b920c0fd1a)\n|
![Screenshot 2024-12-13 at 18
34\n25](https://github.com/user-attachments/assets/5af49323-cb9c-433d-aa6f-91af21dfa5bf)\n|\n|
<img width=\"342\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6529eebe-510e-4688-81e6-4cf3e880c610\"\n/>
| <img width=\"323\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6dada83e-252f-45d5-95d2-a03fa856d70a\"\n/>
|\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"0cc887be92df434671ad37fe89cb4ebcc0d5af3d"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels :ml release_note:enhancement Team:ML Team label for ML (also use :ml) v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants