-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 Usability] Add unsaved filters to app state to url #197313
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/kibana-presentation (Team:Presentation) |
It looks like filters were not transferred when opening a map in a new tap from "Recently viewed" left nav. Is this supposed to be resolve in this PR since its part of the issue? |
sessionStorage.getItem(DASHBOARD_STATE_SESSION_KEY) ?? '[]' | ||
); | ||
|
||
const unsavedFilters = spaceId && unsavedFiltersToUrl ? unsavedFiltersToUrl[spaceId] : undefined; |
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.
Should unsaved queries also be forwarded to be consistent?
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.
They should be, yes :) I honestly wonder if... all unsaved changes should be forwarded? I can't think of a good argument for why opening a dashboard in a new tab would have different behaviour than the onClick
behaviour....
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.
Maybe we can re-use the code that generates the share link so they are the same
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
cc @rshen91 |
Summary
Closes #188914
This PR allows users to open dashboards in a new tab from the dashboard listing page with unsaved and unpinned filters. Previously, filters needed to be pinned or the dashboard needed to be saved for filters to persist across tabs.
Checklist