-
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
[SecuritySolution] Security Solution Dashboard edit mode #159486
Merged
Merged
Changes from all commits
Commits
Show all changes
142 commits
Select commit
Hold shift + click to select a range
92bae1c
add to library
angorayc b3f7f76
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 13b9323
add edit mode
angorayc c3a1e5c
actions
angorayc 49b90f1
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 359158d
export top nav
angorayc 02353fc
dashboard top nav styling
angorayc debeedd
styling
angorayc 0c15e35
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 4a1ea0a
styling
angorayc 28b1ff0
types
angorayc 875b411
set view mode on container load
angorayc 8beb62e
allow no sticky top nav
angorayc 2444f9a
Merge branch 'main' into edit-mode
angorayc 6ffcd0c
lint
angorayc 3769910
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 92ffcf4
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 854196f
add originatingApp and originatingPath
angorayc 91f0f0a
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc b61e354
add getStateTransfer
angorayc 27ce42e
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc af6c770
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 6b7bac5
fix missing tool bar
angorayc 73359e2
add from lens editor
angorayc 99ee686
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc d888c16
creation options
angorayc 95310b6
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc f5d671c
check is managed dashboard
angorayc e68b150
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 363cbc3
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 59a727d
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 315de70
dashboard creation
angorayc a4d75d8
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 7947e20
useDashboardRenderer hook
angorayc a6311ef
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc d52c958
unit tests
angorayc 64289cc
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 9e0a48b
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine ff3b6c9
unit tests
angorayc a99c548
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 2513569
Merge branch 'main' into edit-mode
angorayc 670a129
update limits
angorayc 89bee44
Merge branch 'main' into edit-mode
angorayc e3c90d0
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc a6ec841
rm add to library actions
angorayc 5f3fdde
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 7bd943e
dashboard updated title
angorayc 77f3f3e
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc d7a57aa
dashboard updated title
angorayc e51a31d
fix update from settings
angorayc cad4508
revert actions change
angorayc 64baad8
unit tests
angorayc 6889ed3
unit tests
angorayc b50cc51
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 2176061
fix breadcrumbs
angorayc b223193
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 72a222f
Merge branch 'main' into edit-mode
angorayc 814d44e
unit tests
angorayc f75afdb
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc af66475
Merge branch 'main' into edit-mode
angorayc b53836d
update bundle size
angorayc 5b0d8ac
Merge branch 'main' into edit-mode
angorayc 431aef1
Merge branch 'main' into edit-mode
angorayc 166aa08
Merge branch 'main' into edit-mode
angorayc bfe13da
Merge branch 'main' into edit-mode
angorayc c2394c2
serverless breadcrumb
angorayc 4142d0b
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 39bc769
Merge branch 'main' into edit-mode
angorayc f3ad2df
fix flaky cypress tests
angorayc 1fb58e5
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc ea44fc5
Merge branch 'main' into edit-mode
angorayc 4dda0c6
dashboard tags
angorayc b71ca7d
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc c380c3b
update css
angorayc 61c8b57
fix return from map
angorayc 33d31dd
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine b710595
rm originalApp and originalPath from DashboardTopNav
angorayc 88eb719
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 51218f5
Merge branch 'main' into edit-mode
angorayc 7e9f488
Merge branch 'main' into edit-mode
angorayc 417bc2f
Merge branch 'main' into edit-mode
angorayc 1be6482
add badges and remove align right
angorayc 2fa6ebb
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 68ce921
Merge branch 'main' into edit-mode
angorayc fb81162
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc cff552b
i18n
angorayc 1ff57f4
i18n
angorayc fc62f31
fix tags
angorayc 81991a1
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc b09ca64
Merge branch 'main' into edit-mode
angorayc cad9a11
Merge branch 'main' into edit-mode
angorayc 9786e0c
Merge branch 'main' into edit-mode
angorayc 61d31d3
Merge branch 'main' into edit-mode
angorayc c9d61f0
get managed info from dashboard state
angorayc 0008540
align managed tag behaviour with kibana dashboard
angorayc 86bc355
revert unnecessary changes
angorayc f5afe7c
align dashboard tool bar styles with kibana dashboard
angorayc 82aa6f4
revert style changes
angorayc b1a6085
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc 2d10a03
fix header actions
angorayc 57d1743
fix create Lens from empty panel
angorayc 17b5171
unit tests
angorayc f4e579c
Merge branch 'main' into edit-mode
angorayc 54e9958
clean up DashboardEmbedSettings
angorayc e79290a
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 8de11cd
fix tool bar
angorayc 89b5987
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine e901852
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine dfd70c0
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc de3cbdb
remove unused import
angorayc 5dd3ce1
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 3a6cb1d
remove originateApp from top nav
angorayc 2d461d8
Merge branch 'main' into edit-mode
angorayc eebbd69
hide reset change from actions
angorayc f8d9cfc
hide reset change from actions
angorayc 9032024
types
angorayc 3402568
Update x-pack/plugins/security_solution/public/dashboards/components/…
angorayc f4af650
review
angorayc 61a2f32
Merge branch 'edit-mode' of github.com:angorayc/kibana into edit-mode
angorayc 6b06b87
review
angorayc 8c660ca
Merge branch 'main' of github.com:elastic/kibana into edit-mode
angorayc a779e84
review changes
angorayc 9660eed
Update x-pack/plugins/security_solution/public/dashboards/components/…
angorayc 78b2587
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 82b7438
remove unused import
angorayc 4ca438d
review
angorayc 05ec497
fix unit tests
angorayc 237a1aa
fix types
angorayc 738b4e9
rename embeddable container context to embeddable app context. Use it…
ThomThomson 528600a
Merge remote-tracking branch 'angorayc/edit-mode' into edit-mode
ThomThomson 3b863c1
Merge pull request #4 from ThomThomson/security/edit-mode/appContext
angorayc 017927c
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 5fb8252
add forceHideUnifiedSearch
angorayc 5ae45d6
fix tests
angorayc a368344
fix types
angorayc 2da03b1
Merge branch 'main' into edit-mode
angorayc 3348b38
unit tests
angorayc 2c8113e
review
angorayc e9cc346
revert dashboard container renderer
angorayc 0083b75
remove ref
angorayc 61bf111
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 6716411
Merge branch 'main' into edit-mode
kibanamachine 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
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
src/plugins/dashboard/public/dashboard_top_nav/dashboard_top_nav_with_context.tsx
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,27 @@ | ||
/* | ||
* 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 React from 'react'; | ||
import { DashboardAPIContext } from '../dashboard_app/dashboard_app'; | ||
import { DashboardContainer } from '../dashboard_container'; | ||
import { | ||
InternalDashboardTopNav, | ||
InternalDashboardTopNavProps, | ||
} from './internal_dashboard_top_nav'; | ||
export interface DashboardTopNavProps extends InternalDashboardTopNavProps { | ||
dashboardContainer: DashboardContainer; | ||
} | ||
|
||
export const DashboardTopNavWithContext = (props: DashboardTopNavProps) => ( | ||
<DashboardAPIContext.Provider value={props.dashboardContainer}> | ||
<InternalDashboardTopNav {...props} /> | ||
</DashboardAPIContext.Provider> | ||
); | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default DashboardTopNavWithContext; |
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,29 @@ | ||
/* | ||
* 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 React, { Suspense } from 'react'; | ||
import { servicesReady } from '../plugin'; | ||
import { DashboardTopNavProps } from './dashboard_top_nav_with_context'; | ||
|
||
const LazyDashboardTopNav = React.lazy(() => | ||
(async () => { | ||
const modulePromise = import('./dashboard_top_nav_with_context'); | ||
const [module] = await Promise.all([modulePromise, servicesReady]); | ||
|
||
return { | ||
default: module.DashboardTopNavWithContext, | ||
}; | ||
})().then((module) => module) | ||
); | ||
|
||
export const DashboardTopNav = (props: DashboardTopNavProps) => { | ||
return ( | ||
<Suspense fallback={<div />}> | ||
<LazyDashboardTopNav {...props} /> | ||
</Suspense> | ||
); | ||
}; |
Oops, something went wrong.
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.
Nice call exporting the top nav + its lazy wrapper like this 🔥