-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SharedUxChromeNavigation] Use deeplink id instead of href #159125
Merged
sebelga
merged 66 commits into
elastic:main
from
sebelga:sharedux-chrome-nav/deeplinks-packages
Jun 13, 2023
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
f44964b
Sort imports
sebelga 898b805
Add devTools deeplinks
sebelga 4d96353
Add analytics deeplink ids and update TS types
sebelga 4a1a7f3
Replace ChromeProjectNavigationLink with AppDeepLinkId & AppId
sebelga 39a2334
Update package.json and tsconfig.base.jfon
sebelga 3f4fb41
Add generic to AppDeepLink to define ids
sebelga 553dec8
Add machine learning deeplinks
sebelga 015c81a
Move ml default navigation to the deeplinks package
sebelga 9b785f8
Update types
sebelga 0a3d98d
Move analytics default navigation to package
sebelga d051dd2
Add i18n to defaultNavigation ml
sebelga 04228b5
Move devtools default navigation to package
sebelga 8421ee4
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 8fba7f8
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine 496e525
Move NodeDefinition and NodeDefinitionWithChildren to core-chrome-bro…
sebelga 9bbbd9c
Create default-nav packages to avoid circular dependencies
sebelga cbf36bc
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 87b16fd
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 23548ca
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine 0a2657d
Only expose deepLink ids from dev tool package
sebelga 15248fa
Update imports
sebelga f500afe
Only expose deepLink ids from dev tool package (2)
sebelga 0318001
Clear kbn_references
sebelga e51cc59
Update stories path
sebelga 8552514
Create deeplinks package for management
sebelga 46f7609
Create deeplinks package for management (2)
sebelga bb0a091
Create default nav package for management
sebelga 2759c63
Create default nav package for management (2)
sebelga 9ddb14c
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine d2b0c6c
Update kbn_references
sebelga 0da001a
WIP management deep links
sebelga 43c5ffa
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine a6597f9
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine 891d550
Fix TS issues
sebelga 90abdc6
Update management deeplinks
sebelga 7c345cc
Fix TS issues
sebelga 582ab5a
Fix i18n
sebelga ba675f5
Fix i18n issue
sebelga 7e86d83
Fix dashboard app id
sebelga 0b45a40
Update search navigation
sebelga 060974c
Add deeplink package for search
sebelga 61a02e1
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 61f0001
Fix jest tests
sebelga f658658
Fix TS issue
sebelga 6e75241
Update serverless observability nav
sebelga 07334e8
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine d241738
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine e1b3a1b
Move nav_tree_presets out of folder
sebelga 0348ec2
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 84a6997
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine 29a4b0a
Fix import path
sebelga 0f14231
Allow href for absolute links only
sebelga 9f1abfb
Remove unused model folder
sebelga df15ed9
Use deeplink url instead of href
sebelga e526ec8
Hidden deeplink marked as hidden
sebelga 4bd600f
Merge branch 'main' into sharedux-chrome-nav/deeplinks-packages
sebelga 08c1eef
Merge branch 'main' into sharedux-chrome-nav/deeplinks-packages
sebelga 6d3e673
Update mock deeplink href and url
sebelga d4d285f
Update stories to add mocked deeplinks
sebelga 98ca9ae
Don't render group that don't have a link or children with links
sebelga a67f6a2
Merge remote-tracking branch 'upstream/main' into sharedux-chrome-nav…
sebelga dc87c6a
Merge branch 'sharedux-chrome-nav/deeplinks-packages' of github.com:s…
sebelga 151cf15
Merge remote-tracking branch 'upstream/main' into sharedux-chrome-nav…
sebelga 7686eb2
Mark apm Services deeplink visible in side nav
sebelga 8bb98a5
Revert "Mark apm Services deeplink visible in side nav"
sebelga a35f4ce
Merge branch 'main' into sharedux-chrome-nav/deeplinks-packages
sebelga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,3 @@ | ||
# @kbn/deeplinks-analytics | ||
|
||
Empty package generated by @kbn/generate |
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,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export const DISCOVER_APP_ID = 'discover'; | ||
|
||
export const DASHBOARD_APP_ID = 'dashboards'; | ||
|
||
export const VISUALIZE_APP_ID = 'visualize'; |
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,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { DASHBOARD_APP_ID, DISCOVER_APP_ID, VISUALIZE_APP_ID } from './constants'; | ||
|
||
export type AppId = typeof DISCOVER_APP_ID | typeof DASHBOARD_APP_ID | typeof VISUALIZE_APP_ID; | ||
|
||
export type DeepLinkId = AppId; |
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,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export { DASHBOARD_APP_ID, DISCOVER_APP_ID, VISUALIZE_APP_ID } from './constants'; | ||
|
||
export type { AppId, DeepLinkId } from './deep_links'; |
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,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
module.exports = { | ||
preset: '@kbn/test', | ||
rootDir: '../../..', | ||
roots: ['<rootDir>/packages/deeplinks/analytics'], | ||
}; |
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,5 @@ | ||
{ | ||
"type": "shared-common", | ||
"id": "@kbn/deeplinks-analytics", | ||
"owner": "@elastic/kibana-data-discovery" | ||
} |
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,6 @@ | ||
{ | ||
"name": "@kbn/deeplinks-analytics", | ||
"private": true, | ||
"version": "1.0.0", | ||
"license": "SSPL-1.0 OR Elastic License 2.0" | ||
} |
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,20 @@ | ||
{ | ||
"extends": "../../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"outDir": "target/types", | ||
"types": [ | ||
"jest", | ||
"node", | ||
"react" | ||
] | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.tsx", | ||
], | ||
"exclude": [ | ||
"target/**/*" | ||
], | ||
"kbn_references": [ | ||
] | ||
} |
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,3 @@ | ||
# @kbn/deeplinks-devtools | ||
|
||
Empty package generated by @kbn/generate |
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,12 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
import type { LinkId } from './deep_links'; | ||
|
||
export const DEV_TOOLS_APP_ID = 'dev_tools'; | ||
|
||
export const deepLinkIds: LinkId[] = ['searchprofiler', 'painless_lab', 'grokdebugger', 'console']; |
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 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { DEV_TOOLS_APP_ID } from './constants'; | ||
|
||
export type AppId = typeof DEV_TOOLS_APP_ID; | ||
|
||
export type LinkId = 'searchprofiler' | 'painless_lab' | 'grokdebugger' | 'console'; | ||
|
||
export type DeepLinkId = AppId | `${AppId}:${LinkId}`; |
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,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
export { DEV_TOOLS_APP_ID, deepLinkIds } from './constants'; | ||
|
||
export type { AppId, LinkId, DeepLinkId } from './deep_links'; |
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,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
module.exports = { | ||
preset: '@kbn/test', | ||
rootDir: '../../..', | ||
roots: ['<rootDir>/packages/deeplinks/devtools'], | ||
}; |
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,5 @@ | ||
{ | ||
"type": "shared-common", | ||
"id": "@kbn/deeplinks-devtools", | ||
"owner": "@elastic/platform-deployment-management" | ||
} |
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,6 @@ | ||
{ | ||
"name": "@kbn/deeplinks-devtools", | ||
"private": true, | ||
"version": "1.0.0", | ||
"license": "SSPL-1.0 OR Elastic License 2.0" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the
NodeDefinition
andNodeDefinitionWithChildren
from theshared-ux/chrome/navigation
package to avoid a circular dependency.