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

[dashboard] fix Chrome no longer hidden for reports #206988

Merged
merged 4 commits into from
Jan 20, 2025

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jan 16, 2025

Fixes #205794

#196275 removed setIsVisible because https://github.com/elastic/kibana/pull/196275/files#r1811034594. I could not reproduce the top nav disappearing and reappearing issue.

@nreese nreese marked this pull request as ready for review January 16, 2025 17:48
@nreese nreese requested a review from a team as a code owner January 16, 2025 17:48
@nreese nreese added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v9.0.0 v8.16.0 backport:version Backport to applied version labels v8.17.0 v8.18.0 labels Jan 16, 2025
@elasticmachine
Copy link
Contributor

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

@ThomThomson
Copy link
Contributor

I was able to reproduce the bug by opening a Dashboard in a new tab with the fullscreen mode param set.

I think we need to update the useEffect to the following:

  /*
   * Manage chrome visibility when dashboard is in print mode.
   */
  useEffect(() => {
    if (!embedSettings && viewMode === 'print') coreServices.chrome.setIsVisible(false);
  }, [embedSettings, viewMode]);

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
dashboard 624.2KB 624.3KB +75.0B

@nreese
Copy link
Contributor Author

nreese commented Jan 19, 2025

@elasticmachine merge upstream

@nreese nreese merged commit 583b852 into elastic:main Jan 20, 2025
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 20, 2025
Fixes elastic#205794

elastic#196275 removed `setIsVisible`
because https://github.com/elastic/kibana/pull/196275/files#r1811034594.
I could not reproduce the top nav disappearing and reappearing issue.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 583b852)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 20, 2025
Fixes elastic#205794

elastic#196275 removed `setIsVisible`
because https://github.com/elastic/kibana/pull/196275/files#r1811034594.
I could not reproduce the top nav disappearing and reappearing issue.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 583b852)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 20, 2025
Fixes elastic#205794

elastic#196275 removed `setIsVisible`
because https://github.com/elastic/kibana/pull/196275/files#r1811034594.
I could not reproduce the top nav disappearing and reappearing issue.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 583b852)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.17
8.x

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 Jan 20, 2025
…207266)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[dashboard] fix Chrome no longer hidden for reports
(#206988)](#206988)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-20T21:01:13Z","message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","v9.0.0","backport:version","v8.18.0","v8.16.4","v8.17.2"],"title":"[dashboard]
fix Chrome no longer hidden for
reports","number":206988,"url":"https://github.com/elastic/kibana/pull/206988","mergeCommit":{"message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206988","number":206988,"mergeCommit":{"message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
kibanamachine added a commit that referenced this pull request Jan 20, 2025
…207264)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[dashboard] fix Chrome no longer hidden for reports
(#206988)](#206988)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-20T21:01:13Z","message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","v9.0.0","backport:version","v8.18.0","v8.16.4","v8.17.2"],"title":"[dashboard]
fix Chrome no longer hidden for
reports","number":206988,"url":"https://github.com/elastic/kibana/pull/206988","mergeCommit":{"message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206988","number":206988,"mergeCommit":{"message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
kibanamachine added a commit that referenced this pull request Jan 20, 2025
…207265)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[dashboard] fix Chrome no longer hidden for reports
(#206988)](#206988)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-20T21:01:13Z","message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","v9.0.0","backport:version","v8.18.0","v8.16.4","v8.17.2"],"title":"[dashboard]
fix Chrome no longer hidden for
reports","number":206988,"url":"https://github.com/elastic/kibana/pull/206988","mergeCommit":{"message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206988","number":206988,"mergeCommit":{"message":"[dashboard]
fix Chrome no longer hidden for reports (#206988)\n\nFixes
https://github.com/elastic/kibana/issues/205794\r\n\r\nhttps://github.com/elastic/kibana/pull/196275
removed `setIsVisible`\r\nbecause
https://github.com/elastic/kibana/pull/196275/files#r1811034594.\r\nI
could not reproduce the top nav disappearing and reappearing
issue.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<[email protected]>","sha":"583b8522510102c15b175f4aff772484b689869f"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <[email protected]>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Jan 21, 2025
Fixes elastic#205794

elastic#196275 removed `setIsVisible`
because https://github.com/elastic/kibana/pull/196275/files#r1811034594.
I could not reproduce the top nav disappearing and reappearing issue.

---------

Co-authored-by: Elastic Machine <[email protected]>
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
Fixes elastic#205794

elastic#196275 removed `setIsVisible`
because https://github.com/elastic/kibana/pull/196275/files#r1811034594.
I could not reproduce the top nav disappearing and reappearing issue.

---------

Co-authored-by: Elastic Machine <[email protected]>
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 release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.16.4 v8.17.2 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] [Reporting] Chrome no longer hidden for reports
5 participants