kibana/test
Catherine Liu 1f265f6a2b
[Dashboard] UI Refresh (#178139)
## Summary

Closes https://github.com/elastic/kibana/issues/177925.

This gives a light refresh to the Dashboard UI, primarily around panel
styling.

#### View mode

| Before | After |
|--------|--------|
| <img width="1409" alt="Screenshot 2024-03-12 at 8 29 40 AM"
src="aeac42dd-9dd4-4885-ba6c-9d5fd407522d">
|<img width="1407" alt="Screenshot 2024-03-12 at 8 40 26 AM"
src="d96d5b0d-d79c-44cc-baa1-0d21a52ac01f">|


#### Edit Mode
| Before | After |
|--------|--------|
| <img width="1408" alt="Screenshot 2024-03-12 at 8 29 31 AM"
src="a7694c17-8cda-4392-b396-e2bce1bbdc16">|
<img width="1407" alt="Screenshot 2024-03-12 at 8 40 19 AM"
src="a3e3e316-c339-4c7b-bd1b-f24c997ac3c9">
|

### Changes:
- Replaces shadows surrounding panels with thin borders

| Before | After |
|--------|--------|
| <img width="703" alt="Screenshot 2024-03-12 at 6 57 50 PM"
src="9da34f91-6e76-41a9-9526-2d9a593241a1">
| <img width="703" alt="Screenshot 2024-03-12 at 1 08 04 PM"
src="b4f0c7d6-8d3f-4ac9-a80b-a813d4288db1">
|

- Increases space between panel title and panel description icon

| Before | After |
|--------|--------|
| <img width="326" alt="Screenshot 2024-03-12 at 1 08 53 PM"
src="a6568436-0936-4b57-b897-4bfb21425990">
| <img width="324" alt="Screenshot 2024-03-12 at 1 10 54 PM"
src="e9315987-8dd1-475a-8788-f7fecdec3dc8">
|

- Adds spacer after title/description form in panel settings

| Before | After |
|--------|--------|
| ![Screenshot 2024-03-07 at 10 51
44 AM](66c33661-5f8f-4fc4-b0ef-c39fd40eb905)
| ![Screenshot 2024-03-07 at 10 52
00 AM](7d77b77d-fa3f-41dc-bcf0-223c521f749f)
|

- Reduces left padding with no title and has a badge 

| Before | After |
|--------|--------|
| <img width="353" alt="Screenshot 2024-03-12 at 7 00 00 PM"
src="27061ce3-575d-4c66-96ac-0818fb438d42">
| <img width="352" alt="Screenshot 2024-03-12 at 7 00 56 PM"
src="e973cfbf-f1d7-45cd-9adb-a15882ffe3de">
|

- Removes dashed border in edit mode

| Before | After |
|--------|--------|
| <img width="353" alt="Screenshot 2024-03-12 at 7 03 28 PM"
src="ddb31b14-5ff7-4089-b4cf-3fc28733f360">
| <img width="354" alt="Screenshot 2024-03-12 at 7 03 11 PM"
src="da3a99c9-6aa5-49c1-ae96-2babebcc6c16">
|

- Adds title to tooltip when a panel has a description

| Before | After |
|--------|--------|
| <img width="338" alt="Screenshot 2024-03-12 at 7 04 15 PM"
src="23d7c0ef-9a58-41cc-a0e7-38b5f1adbe7d">
| <img width="339" alt="Screenshot 2024-03-12 at 1 10 59 PM"
src="4b92bd3e-db0a-49e7-bfaa-751a846a4545">
|

- Enables edits to panel description when title is disabled (because the
panel description icon/tooltip shows even when title is hidden)

| Before | After |
|--------|--------|
| <img width="389" alt="Screenshot 2024-03-12 at 7 15 16 PM"
src="e1ff2532-33f0-4bf8-980f-18d59dcf6b7c">
| <img width="398" alt="Screenshot 2024-03-12 at 7 13 51 PM"
src="72e6761e-f0dd-4c5d-8c61-2bdcabd65f1d">
|

### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### 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&mdash;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&mdash;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](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-03-26 11:55:16 -07:00
..
accessibility [FTR] Refactor toasts svc (#174222) 2024-02-14 09:24:20 +00:00
analytics async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
api_integration [DataViewField] Allow to add a custom description for data view fields (#168577) 2024-03-19 17:30:59 +01:00
common [FTR] Mv test subjs svc to shared location (#174048) 2024-01-09 11:43:39 +00:00
examples [Data Views] Fix flaky test skipped in #170047 (#178915) 2024-03-19 20:36:17 -03:00
functional [Dashboard] UI Refresh (#178139) 2024-03-26 11:55:16 -07:00
harden Add test to ensure security related eslint rules are applied (#151434) 2023-02-24 16:48:11 +01:00
health_gateway async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_api_integration async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_functional Unskip interactive setup functional tests (#157863) 2023-05-16 09:20:00 -04:00
interpreter_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
node_roles_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
package [artifacts/package testing] Update apt cache (#175789) 2024-01-29 07:51:00 -06:00
plugin_functional Rename Management team name in codeowners file (#178626) 2024-03-18 15:46:31 +00:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration Inject initial "not reported" to prevent blocking /api/status (#173371) 2023-12-14 09:31:58 -07:00
ui_capabilities/newsfeed_err [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
tsconfig.json Update Kibana code editor dependencies (#171720) 2024-01-25 10:30:02 +01:00