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

[maps] fix Maps don't display darktheme when user has dark theme enabled in profile #158219

Merged
merged 2 commits into from
May 23, 2023

Conversation

nreese
Copy link
Contributor

@nreese nreese commented May 22, 2023

Fixes #158050

PR updates getIsDarkMode to read value from theme$ instead of UiSettings, since UiSettings does not contain profile theming. Part of #158201

@nreese nreese added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Feature:Maps v8.9.0 v8.8.1 labels May 22, 2023
@nreese nreese requested a review from a team as a code owner May 22, 2023 21:20
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese
Copy link
Contributor Author

nreese commented May 22, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

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

id before after diff
maps 45.2KB 45.3KB +30.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 399 403 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 479 483 +4
total +6

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

Copy link
Member

@jsanz jsanz left a comment

Choose a reason for hiding this comment

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

Tested locally 👍. Code looks good to me.

@nreese nreese merged commit bb1cf66 into elastic:main May 23, 2023
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 23, 2023
…led in profile (elastic#158219)

Fixes elastic#158050

PR updates `getIsDarkMode` to read value from theme$ instead of
UiSettings, since UiSettings does not contain profile theming. Part of
elastic#158201

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit bb1cf66)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.8

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request May 23, 2023
…e enabled in profile (#158219) (#158272)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[maps] fix Maps don't display darktheme when user has dark theme
enabled in profile
(#158219)](#158219)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2023-05-23T14:33:41Z","message":"[maps]
fix Maps don't display darktheme when user has dark theme enabled in
profile (#158219)\n\nFixes
https://github.com/elastic/kibana/issues/158050\r\n\r\nPR updates
`getIsDarkMode` to read value from theme$ instead of\r\nUiSettings,
since UiSettings does not contain profile theming. Part
of\r\nhttps://github.com//issues/158201\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"bb1cf6609a4cf5c8208318b803f6a7cdc0f2e913","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","Feature:Maps","v8.9.0","v8.8.1"],"number":158219,"url":"https://github.com/elastic/kibana/pull/158219","mergeCommit":{"message":"[maps]
fix Maps don't display darktheme when user has dark theme enabled in
profile (#158219)\n\nFixes
https://github.com/elastic/kibana/issues/158050\r\n\r\nPR updates
`getIsDarkMode` to read value from theme$ instead of\r\nUiSettings,
since UiSettings does not contain profile theming. Part
of\r\nhttps://github.com//issues/158201\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"bb1cf6609a4cf5c8208318b803f6a7cdc0f2e913"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158219","number":158219,"mergeCommit":{"message":"[maps]
fix Maps don't display darktheme when user has dark theme enabled in
profile (#158219)\n\nFixes
https://github.com/elastic/kibana/issues/158050\r\n\r\nPR updates
`getIsDarkMode` to read value from theme$ instead of\r\nUiSettings,
since UiSettings does not contain profile theming. Part
of\r\nhttps://github.com//issues/158201\r\n\r\nCo-authored-by:
Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"bb1cf6609a4cf5c8208318b803f6a7cdc0f2e913"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
delanni pushed a commit to delanni/kibana that referenced this pull request May 25, 2023
…led in profile (elastic#158219)

Fixes elastic#158050

PR updates `getIsDarkMode` to read value from theme$ instead of
UiSettings, since UiSettings does not contain profile theming. Part of
elastic#158201

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@mistic
Copy link
Member

mistic commented May 25, 2023

Those changes didn't make it into the latest BC8 of 8.8.0. Updating the labels.

@mistic mistic removed the v8.8.0 label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Maps release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.8.1 v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maps don't display darktheme when user has dark theme enabled in profile
6 participants