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] Editing toolbar update #154966

Merged
merged 13 commits into from Jul 5, 2023

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Apr 13, 2023

Summary

Related to #144418.
Closes #160800.

This makes all of the buttons in the editor toolbar small/compressed for a slightly sleeker look. These changes only affect the toolbar in Dashboard and don't change the toolbar appearance in Canvas. I've also removed the quick actions and renamed Select type to Add panel.

Before

Screenshot 2023-04-13 at 1 54 47 PM

After

Screenshot 2023-06-28 at 10 20 55 AM

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@cqliu1 cqliu1 requested review from a team as code owners April 13, 2023 20:58
@cqliu1 cqliu1 added Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Apr 13, 2023
@elasticmachine
Copy link
Contributor

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

@cqliu1 cqliu1 added v8.8.0 Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) labels Apr 13, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@cqliu1 cqliu1 added release_note:enhancement loe:medium Medium Level of Effort impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort and removed loe:medium Medium Level of Effort labels Apr 13, 2023
@Heenawter
Copy link
Contributor

Heenawter commented Apr 13, 2023

Hmm... Do we want to do this for just Dashboard? It seems out of place that only one app would use a compressed version of the toolbar while all other apps (Canvas, Lens, etc) use the full height buttons 👀 Maybe I misunderstood in our meeting, but I assumed the requests for a compressed layout were referring to horizontal space and not vertical?

@vadimkibana vadimkibana self-requested a review April 17, 2023 15:32
@cqliu1 cqliu1 removed the v8.8.0 label Apr 18, 2023
@ryankeairns
Copy link
Contributor

While you are in the neighborhood, can we remove that double border between the icon-only set of buttons? It was not there originally and was the result of some other change along the way.

@cqliu1
Copy link
Contributor Author

cqliu1 commented Apr 24, 2023

While you are in the neighborhood, can we remove that double border between the icon-only set of buttons? It was not there originally and was the result of some other change along the way.

@ryankeairns I'm gonna hold off on merging this until we land on a design for #144418, but I can open a PR just to fix that double border bc it's been bothering me too haha. The border radius also slightly differs between the button group and the rest of the toolbar buttons. I'll see if I can fix that too.

@cqliu1 cqliu1 added the blocked label Apr 24, 2023
@cqliu1 cqliu1 removed the blocked label Jun 28, 2023
@cqliu1 cqliu1 force-pushed the dashboard/compressed-toolbar-buttons branch from 6afab5f to 1df3a93 Compare June 28, 2023 17:16
@cqliu1 cqliu1 changed the title [Dashboard] Compressed toolbar buttons [Dashboard] Editing toolbar update Jun 28, 2023
Copy link
Contributor

@andreadelrio andreadelrio left a comment

Choose a reason for hiding this comment

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

LGTM!

@cqliu1
Copy link
Contributor Author

cqliu1 commented Jun 30, 2023

@teresaalvarezsoler I've updated the add panel menu order. Is this correct?

Screenshot 2023-06-30 at 2 52 09 PM

@teresaalvarezsoler
Copy link

@teresaalvarezsoler I've updated the add panel menu order. Is this correct?
Looks good! Thanks

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Great looking and straightforward changes! Tested locally and looked through the code and everything LGTM!

type,
label,
iconType,
size = 'm',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice call to have the size here default to medium. That way we don't have to change Canvas at all.

@cqliu1 cqliu1 enabled auto-merge (squash) July 5, 2023 17:40
@kibana-ci
Copy link
Collaborator

💚 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
canvas 994.1KB 994.1KB +60.0B
dashboard 357.3KB 355.6KB -1.7KB
total -1.7KB
Unknown metric groups

API count

id before after diff
@kbn/shared-ux-button-toolbar 27 28 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 410 414 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 489 493 +4
total +6

History

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

@cqliu1 cqliu1 merged commit 112a0f9 into elastic:main Jul 5, 2023
19 checks passed
@kibanamachine kibanamachine added v8.10.0 backport:skip This commit does not require backporting labels Jul 5, 2023
@cqliu1 cqliu1 deleted the dashboard/compressed-toolbar-buttons branch July 5, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Dashboard Dashboard related features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:enhancement Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard] Editing toolbar updates
10 participants