kibana/test
Julia Rechkunova 811a23830b
[OneDiscover] Contextual App Menu Extension Point (#195448)
- Closes https://github.com/elastic/kibana/issues/194269

## Summary

This PR introduces a new extension point `getAppMenu` which allows to:
- add custom App Menu items (as a button or a submenu with more actions)
- extend Alerts menu item with more custom actions

Additionally, this PR rearranges the existing Discover menu items. The
primary actions are rendered as an icon only now.

![Oct-16-2024
17-43-29](https://github.com/user-attachments/assets/dbb67513-05bb-43a4-bd7b-cf958c58a167)


The example usage of the new extension point can be found in
e7964f08e3/src/plugins/discover/public/context_awareness/profile_providers/example/example_data_source_profile/profile.tsx (L81-L168)

### For testing with the example profile

1. Add `discover.experimental.enabledProfiles: ['example-root-profile',
'example-data-source-profile', 'example-document-profile']` to
`kibana.dev.yml`
2. Run the following in DevTools
```
POST _aliases
{
  "actions": [
    {
      "add": {
        "index": "kibana_sample_data_logs",
        "alias": "my-example-logs"
      }
    }
  ]
}
```
3. Create and use Data View with `my-custom-logs` index pattern

### Checklist

- [x] [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
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Davis McPhee <davis.mcphee@elastic.co>
Co-authored-by: Davis McPhee <davismcphee@hotmail.com>
2024-10-30 13:35:15 +01:00
..
accessibility [Console] UX Improvements for phase 2 (#190698) 2024-09-17 16:35:20 +03:00
analytics Add filters option to ftr_helper api (#196886) 2024-10-23 19:18:05 +02:00
api_integration Drop integration tiles for connectors in Enterprise Search (#196173) 2024-10-22 17:04:44 +02:00
common Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
examples [OneDiscover] Contextual App Menu Extension Point (#195448) 2024-10-30 13:35:15 +01:00
functional [OneDiscover] Contextual App Menu Extension Point (#195448) 2024-10-30 13:35:15 +01:00
harden Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
health_gateway Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
interactive_setup_api_integration FIPS FTR Overrides and test skips (#192053) 2024-09-10 13:17:40 -04:00
interactive_setup_functional chore(security, eslint): apply platform security-specific rules to all exclusively owned paths. (#195711) 2024-10-11 09:49:12 +02:00
interpreter_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
node_roles_functional Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional [AI Assistant] Add assistant to Serverless Search (#196832) 2024-10-25 05:03:04 -05:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration [http] api_integration tests handle internal route restriction (#192407) 2024-09-12 09:23:10 +02:00
ui_capabilities/newsfeed_err Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [CODEOWNERS] fix appex-qa ownership (#189602) 2024-07-31 14:20:47 +02:00
tsconfig.json [LogsUI] Add UI setting to hide Logs Stream and dashboard panel option (#194519) 2024-10-09 10:14:06 +02:00