Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.9`: - [[Infra UI] Fix theme passed in to charts (#162114)](#162114) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Carlos Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-19T17:09:05Z","message":"[Infra UI] Fix theme passed in to charts (#162114)\n\ncloses [#110217](https://github.com/elastic/kibana/issues/110217)\r\n## Summary\r\n\r\nThis PR addresses an issue with how the infra sets the theme in charts.\r\nIt replaces the previous implementation with the use of\r\n`useChartsBaseTheme` and `useChartsTheme` provided by the charts\r\nservice, ensuring consistent behavior for both light and dark modes.\r\nFrom a UI perspective, this change doesn't introduce any alterations,\r\nbut it solves the problem related to dark mode.\r\n\r\n### Screenshots\r\n\r\n#### Node Details\r\n<img width=\"899\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/7ec8b9e9-c440-44d1-86ac-45dbab76a8a9\">\r\n\r\n<img width=\"899\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/c6aac4a6-8982-47cc-b08e-ee5d8af0391f\">\r\n\r\n\r\n#### Infra\r\n##### Timeline\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/cd4a1a3c-b5a4-47d5-bbde-5bf54dfac262\">\r\n\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/839ccaf0-02a5-401e-957a-137d0ef25605\">\r\n\r\n\r\n##### Metrics\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/69138a89-21ff-4f17-bcbd-64ac609dd9e7\">\r\n\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/63b02a7a-397e-451e-b4d7-7b37fdc4f6a9\">\r\n\r\n\r\n##### Processes\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/01e7d050-0103-4de6-8215-e93b9f80751b\">\r\n\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/bd1ce95a-1944-411f-abc4-8f2a998f7643\">\r\n\r\n\r\n### Metrics Explorer\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/60d2857a-3b97-4fd6-8cc7-8b7ab757b3d5\">\r\n\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/98bba0ea-27db-48a2-ae20-ff4162212c6e\">\r\n\r\n\r\n### Alert\r\n#### Inventory rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/8b787e53-cb47-4254-ab69-69ab22ff0388\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a952bf6b-e22f-4753-8db6-f2deb213b22a\">\r\n\r\n\r\n#### Metric Threshold rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/db3d1448-5faa-4e20-bda8-7351d9b52144\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a11bc2de-f042-4d4f-9adc-d376205bc23f\">\r\n\r\n\r\n#### Logs rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/b703e972-2d47-485e-a2f5-4cfca0c982cd\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a98d3827-d930-4ef2-90f9-f336583f15da\">\r\n\r\n\r\n\r\n\r\n### How to tests\r\n- Set up a local Kibana instance.\r\n- Navigate to the pages mentioned above.\r\n - Change the user settings to both dark and light mode.\r\n- In light mode, ensure that there are no differences in the charts when\r\ncompared to the edge cluster.\r\n- In dark mode, confirm that the issue described in the ticket is\r\nresolved (no horizontal line in white).\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"c2249aa0b7d6ca6cf4e826c768b6912b62db9a51","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Metrics UI","Team:Infra Monitoring UI","release_note:skip","backport:prev-minor","v8.9.0","v8.10.0"],"number":162114,"url":"https://github.com/elastic/kibana/pull/162114","mergeCommit":{"message":"[Infra UI] Fix theme passed in to charts (#162114)\n\ncloses [#110217](https://github.com/elastic/kibana/issues/110217)\r\n## Summary\r\n\r\nThis PR addresses an issue with how the infra sets the theme in charts.\r\nIt replaces the previous implementation with the use of\r\n`useChartsBaseTheme` and `useChartsTheme` provided by the charts\r\nservice, ensuring consistent behavior for both light and dark modes.\r\nFrom a UI perspective, this change doesn't introduce any alterations,\r\nbut it solves the problem related to dark mode.\r\n\r\n### Screenshots\r\n\r\n#### Node Details\r\n<img width=\"899\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/7ec8b9e9-c440-44d1-86ac-45dbab76a8a9\">\r\n\r\n<img width=\"899\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/c6aac4a6-8982-47cc-b08e-ee5d8af0391f\">\r\n\r\n\r\n#### Infra\r\n##### Timeline\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/cd4a1a3c-b5a4-47d5-bbde-5bf54dfac262\">\r\n\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/839ccaf0-02a5-401e-957a-137d0ef25605\">\r\n\r\n\r\n##### Metrics\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/69138a89-21ff-4f17-bcbd-64ac609dd9e7\">\r\n\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/63b02a7a-397e-451e-b4d7-7b37fdc4f6a9\">\r\n\r\n\r\n##### Processes\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/01e7d050-0103-4de6-8215-e93b9f80751b\">\r\n\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/bd1ce95a-1944-411f-abc4-8f2a998f7643\">\r\n\r\n\r\n### Metrics Explorer\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/60d2857a-3b97-4fd6-8cc7-8b7ab757b3d5\">\r\n\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/98bba0ea-27db-48a2-ae20-ff4162212c6e\">\r\n\r\n\r\n### Alert\r\n#### Inventory rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/8b787e53-cb47-4254-ab69-69ab22ff0388\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a952bf6b-e22f-4753-8db6-f2deb213b22a\">\r\n\r\n\r\n#### Metric Threshold rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/db3d1448-5faa-4e20-bda8-7351d9b52144\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a11bc2de-f042-4d4f-9adc-d376205bc23f\">\r\n\r\n\r\n#### Logs rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/b703e972-2d47-485e-a2f5-4cfca0c982cd\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a98d3827-d930-4ef2-90f9-f336583f15da\">\r\n\r\n\r\n\r\n\r\n### How to tests\r\n- Set up a local Kibana instance.\r\n- Navigate to the pages mentioned above.\r\n - Change the user settings to both dark and light mode.\r\n- In light mode, ensure that there are no differences in the charts when\r\ncompared to the edge cluster.\r\n- In dark mode, confirm that the issue described in the ticket is\r\nresolved (no horizontal line in white).\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"c2249aa0b7d6ca6cf4e826c768b6912b62db9a51"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162114","number":162114,"mergeCommit":{"message":"[Infra UI] Fix theme passed in to charts (#162114)\n\ncloses [#110217](https://github.com/elastic/kibana/issues/110217)\r\n## Summary\r\n\r\nThis PR addresses an issue with how the infra sets the theme in charts.\r\nIt replaces the previous implementation with the use of\r\n`useChartsBaseTheme` and `useChartsTheme` provided by the charts\r\nservice, ensuring consistent behavior for both light and dark modes.\r\nFrom a UI perspective, this change doesn't introduce any alterations,\r\nbut it solves the problem related to dark mode.\r\n\r\n### Screenshots\r\n\r\n#### Node Details\r\n<img width=\"899\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/7ec8b9e9-c440-44d1-86ac-45dbab76a8a9\">\r\n\r\n<img width=\"899\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/c6aac4a6-8982-47cc-b08e-ee5d8af0391f\">\r\n\r\n\r\n#### Infra\r\n##### Timeline\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/cd4a1a3c-b5a4-47d5-bbde-5bf54dfac262\">\r\n\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/839ccaf0-02a5-401e-957a-137d0ef25605\">\r\n\r\n\r\n##### Metrics\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/69138a89-21ff-4f17-bcbd-64ac609dd9e7\">\r\n\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/63b02a7a-397e-451e-b4d7-7b37fdc4f6a9\">\r\n\r\n\r\n##### Processes\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/01e7d050-0103-4de6-8215-e93b9f80751b\">\r\n\r\n<img width=\"541\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/bd1ce95a-1944-411f-abc4-8f2a998f7643\">\r\n\r\n\r\n### Metrics Explorer\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/60d2857a-3b97-4fd6-8cc7-8b7ab757b3d5\">\r\n\r\n<img width=\"720\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/98bba0ea-27db-48a2-ae20-ff4162212c6e\">\r\n\r\n\r\n### Alert\r\n#### Inventory rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/8b787e53-cb47-4254-ab69-69ab22ff0388\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a952bf6b-e22f-4753-8db6-f2deb213b22a\">\r\n\r\n\r\n#### Metric Threshold rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/db3d1448-5faa-4e20-bda8-7351d9b52144\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a11bc2de-f042-4d4f-9adc-d376205bc23f\">\r\n\r\n\r\n#### Logs rule\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/b703e972-2d47-485e-a2f5-4cfca0c982cd\">\r\n\r\n<img width=\"450\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2767137/a98d3827-d930-4ef2-90f9-f336583f15da\">\r\n\r\n\r\n\r\n\r\n### How to tests\r\n- Set up a local Kibana instance.\r\n- Navigate to the pages mentioned above.\r\n - Change the user settings to both dark and light mode.\r\n- In light mode, ensure that there are no differences in the charts when\r\ncompared to the edge cluster.\r\n- In dark mode, confirm that the issue described in the ticket is\r\nresolved (no horizontal line in white).\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine <[email protected]>","sha":"c2249aa0b7d6ca6cf4e826c768b6912b62db9a51"}}]}] BACKPORT-->
- Loading branch information