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

[Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviour #86922

Merged
merged 10 commits into from
Jan 7, 2021

Conversation

ThomThomson
Copy link
Contributor

Summary

Fixes #81246 by aligning the wording and behaviour of the top nav buttons between lens and visualize.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@ThomThomson ThomThomson added release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Feature:Vis Editor Visualization editor issues v8.0.0 Project:TimeToVisualize v7.12.0 labels Dec 23, 2020
@ThomThomson ThomThomson changed the title [Time to Visualize] Aligned Lens & Visualize Top nav Buttons & Behaviour [Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviour Dec 24, 2020
@ThomThomson
Copy link
Contributor Author

@elasticmachine merge upstream

@ThomThomson ThomThomson marked this pull request as ready for review January 4, 2021 18:13
@ThomThomson ThomThomson requested a review from a team January 4, 2021 18:13
@elasticmachine
Copy link
Contributor

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

@flash1293
Copy link
Contributor

@elasticmachine merge upstream

@stratoula
Copy link
Contributor

@elasticmachine merge upstream

@stratoula
Copy link
Contributor

@ThomThomson I have seen something that is weird but has to do with the breadcrumbs PR. Sorry about that, I should have reported it there but I saw it now. I have the flag set to true and I create a Lens chart. Everything is fine. When I set the flag to false and edit the Lens viz I see the Visualize link in breadcrumb which works ok as it redirects me to the list. But when I go back to history then it redirects me to the Lens Create page and not to the edit lens page.

Screenshot 2021-01-07 at 2 34 47 PM

Screenshot 2021-01-07 at 2 35 02 PM

Is it something expected? (and ofc is irrelevant with this PR, I am just asking and if you feel that is sthg that should be fixed then I will create an issue)

((originatingApp && originatingApp === 'dashboards') || originatingApp === 'canvas') &&
(hasUnappliedChanges || hasUnsavedChanges)
originatingApp &&
(hasUnappliedChanges || hasUnsavedChanges) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Much cleaner!

@kibanamachine
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
visualize 131.6KB 131.7KB +108.0B

History

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

@ThomThomson
Copy link
Contributor Author

ThomThomson commented Jan 7, 2021

@stratoula

Is it something expected? (and ofc is irrelevant with this PR, I am just asking and if you feel that is sthg that should be fixed then I will create an issue)

What's happening here is that you are getting into an undefined state by editing a previously created by value visualization with the dashboard.allowByValueEmbeddables flag set to false. It seems to me that we should make this more transparent by throwing an error toast and redirecting to the visualize listing page any time there is value input but by value embeddables are not allowed.

It is probably worth raising an issue for this, even though it's a fairly unlikely edge case. Thanks for the review!

@stratoula
Copy link
Contributor

I agree @ThomThomson. I will raise an issue. Thanx for explaining this.

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested it locally and it works fine 👏

@ThomThomson ThomThomson merged commit cdee859 into elastic:master Jan 7, 2021
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Jan 7, 2021
elastic#86922)

* Aligned Lens & Visualize Top nav behaviour and look
ThomThomson added a commit that referenced this pull request Jan 7, 2021
#86922) (#87677)

* Aligned Lens & Visualize Top nav behaviour and look
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Vis Editor Visualization editor issues Project:TimeToVisualize release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Time To Visualize] Unify Top Nav Between Lens & Visualize
5 participants