forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add application deep links to global search (elastic#83380)
- Loading branch information
Showing
21 changed files
with
503 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
docs/development/core/public/kibana-plugin-core-public.app.searchdeeplinks.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [App](./kibana-plugin-core-public.app.md) > [searchDeepLinks](./kibana-plugin-core-public.app.searchdeeplinks.md) | ||
|
||
## App.searchDeepLinks property | ||
|
||
Array of links that represent secondary in-app locations for the app. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
searchDeepLinks?: AppSearchDeepLink[]; | ||
``` | ||
|
||
## Remarks | ||
|
||
Used to populate navigational search results (where available). Can be updated using the [App.updater$](./kibana-plugin-core-public.app.updater_.md) observable. See for more details. | ||
|
||
## Example | ||
|
||
The `path` property on deep links should not include the application's `appRoute`<!-- -->: | ||
|
||
```ts | ||
core.application.register({ | ||
id: 'my_app', | ||
title: 'My App', | ||
searchDeepLinks: [ | ||
{ id: 'sub1', title: 'Sub1', path: '/sub1' }, | ||
{ | ||
id: 'sub2', | ||
title: 'Sub2', | ||
searchDeepLinks: [ | ||
{ id: 'subsub', title: 'SubSub', path: '/sub2/sub' } | ||
] | ||
} | ||
], | ||
mount: () => { ... }, | ||
}) | ||
|
||
``` | ||
Will produce deep links on these paths: - `/app/my_app/sub1` - `/app/my_app/sub2/sub` | ||
|
24 changes: 24 additions & 0 deletions
24
docs/development/core/public/kibana-plugin-core-public.appsearchdeeplink.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [AppSearchDeepLink](./kibana-plugin-core-public.appsearchdeeplink.md) | ||
|
||
## AppSearchDeepLink type | ||
|
||
Input type for registering secondary in-app locations for an application. | ||
|
||
Deep links must include at least one of `path` or `searchDeepLinks`<!-- -->. A deep link that does not have a `path` represents a topological level in the application's hierarchy, but does not have a destination URL that is user-accessible. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type AppSearchDeepLink = { | ||
id: string; | ||
title: string; | ||
} & ({ | ||
path: string; | ||
searchDeepLinks?: AppSearchDeepLink[]; | ||
} | { | ||
path?: string; | ||
searchDeepLinks: AppSearchDeepLink[]; | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...evelopment/core/public/kibana-plugin-core-public.publicappsearchdeeplinkinfo.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [PublicAppSearchDeepLinkInfo](./kibana-plugin-core-public.publicappsearchdeeplinkinfo.md) | ||
|
||
## PublicAppSearchDeepLinkInfo type | ||
|
||
Public information about a registered app's [searchDeepLinks](./kibana-plugin-core-public.appsearchdeeplink.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type PublicAppSearchDeepLinkInfo = Omit<AppSearchDeepLink, 'searchDeepLinks'> & { | ||
searchDeepLinks: PublicAppSearchDeepLinkInfo[]; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.