-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix 'workpad flash' when loading new workpad #44387
Fix 'workpad flash' when loading new workpad #44387
Conversation
Pinging @elastic/kibana-canvas |
💔 Build Failed |
@elasticmachine run elasticsearch-ci/docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SCSS changes are minor and moves. Did not test functionality.
💔 Build Failed |
jenkins test this |
💔 Build Failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Works as described, and now it only shows a blank workpad before loading the active workpad. Thanks for fixing that flash!
💚 Build Succeeded |
…-to-np-ready * 'master' of github.com:elastic/kibana: (409 commits) [ML] Data frame analytics: Fix source index checks. (elastic#44479) [Code] try fix this test (elastic#43692) skip flaky suite (elastic#44572) (elastic#42111) (elastic#44286) (elastic#43557) (elastic#42567) skip flaky suite (elastic#44560) skip flaky suite (elastic#44250) disable flaky suite (elastic#41336) [code] Update download URLs for go lsp. (elastic#44581) disable flaky suite (elastic#44575) disable flaky suite (elastic#44576) [Code] add functional test to verify lang server full api symbol/reference counts (elastic#44051) Improve Storybook scripts and load time (elastic#44511) Update Dependencies (elastic#44519) Remove use of injecti18n in Embeddables plugin (elastic#44043) [SIEM] Adds a configuraton option for the default SIEM date time range (elastic#44540) [Uptime]Fix/issue 40584 section headline should be inside panel (elastic#43468) disable flaky suite (elastic#22322) Changes network to use ECS fields (elastic#44392) Fix 'workpad flash' when loading new workpad (elastic#44387) [renovate] bump new PR version labels Update dependency cmd-shim to ^2.1.0 (elastic#44034) ... # Conflicts: # src/legacy/core_plugins/console/public/index.html
Summary
Fixes #29956.
The workpad state is not "reset" when visiting the home page of Canvas. As a result, the previously-loaded workpad stays active until the user chooses another workpad to load. When the do so, the previous workpad "flashes" in place before the next is loaded. This has some awkward consequences, including re-saving the newly-loaded workpad, (because the persist middleware catches the change in workpad), and the link to load the previously-loaded workpad is bold, which is a feature reserved for the loading workpad dialog, not the home page.
This fix resets the workpad state back to the "default" workpad when visiting the home page. It also instructs the persist middleware to ignore
resetWorkpad
as well asappReady
, (why persist the workpad when the app just loaded?)