-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[serverless] Create the Serverless Plugin #155582
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
Merged
clintandrewhall
merged 13 commits into
elastic:main
from
clintandrewhall:serverless/plugin
Apr 26, 2023
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2cecc0c
Add chrome style option to Chrome service, new header component
clintandrewhall 3d29029
Create Serverless plugin; add project type switcher.
clintandrewhall e3bff46
Merge branch 'main' into serverless/plugin
clintandrewhall 8957629
Fixing storybook config, addressing feedback
clintandrewhall 2000a21
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine e01af17
Addressing more feedback
clintandrewhall 30615b2
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 30cb4b2
[CI] Auto-commit changed files from 'node scripts/generate codeowners'
kibanamachine ac9a213
[CI] Auto-commit changed files from 'node scripts/build_plugin_list_d…
kibanamachine 9ba80a6
Fix switcher test after changes
clintandrewhall cbad866
Merge branch 'main' into serverless/plugin
clintandrewhall 6d8044f
Fix Storybook upload for new Serverless project
clintandrewhall 06c74bc
Merge branch 'main' into serverless/plugin
clintandrewhall 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| xpack.serverless.plugin.developer.projectSwitcher.currentType: 'search' |
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| xpack.infra.logs.app_target: discover | ||
| xpack.serverless.plugin.developer.projectSwitcher.currentType: 'observability' |
This file contains hidden or 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 @@ | ||
| xpack.serverless.plugin.developer.projectSwitcher.currentType: 'security' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
90 changes: 90 additions & 0 deletions
90
packages/core/chrome/core-chrome-browser-internal/src/ui/project/header.tsx
This file contains hidden or 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,90 @@ | ||
| /* | ||
| * 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 { Router } from 'react-router-dom'; | ||
| import { EuiHeader, EuiHeaderLogo, EuiHeaderSection, EuiHeaderSectionItem } from '@elastic/eui'; | ||
| import { | ||
| ChromeBreadcrumb, | ||
| ChromeGlobalHelpExtensionMenuLink, | ||
| ChromeHelpExtension, | ||
| ChromeNavControl, | ||
| } from '@kbn/core-chrome-browser/src'; | ||
| import { Observable } from 'rxjs'; | ||
| import { MountPoint } from '@kbn/core-mount-utils-browser'; | ||
| import { InternalApplicationStart } from '@kbn/core-application-browser-internal'; | ||
| import { HeaderBreadcrumbs } from '../header/header_breadcrumbs'; | ||
| import { HeaderActionMenu } from '../header/header_action_menu'; | ||
| import { HeaderHelpMenu } from '../header/header_help_menu'; | ||
| import { HeaderNavControls } from '../header/header_nav_controls'; | ||
| import { ProjectNavigation } from './navigation'; | ||
|
|
||
| interface Props { | ||
| breadcrumbs$: Observable<ChromeBreadcrumb[]>; | ||
| actionMenu$: Observable<MountPoint | undefined>; | ||
| kibanaDocLink: string; | ||
| globalHelpExtensionMenuLinks$: Observable<ChromeGlobalHelpExtensionMenuLink[]>; | ||
| helpExtension$: Observable<ChromeHelpExtension | undefined>; | ||
| helpSupportUrl$: Observable<string>; | ||
| kibanaVersion: string; | ||
| application: InternalApplicationStart; | ||
| navControlsRight$: Observable<ChromeNavControl[]>; | ||
| } | ||
|
|
||
| export const ProjectHeader = ({ | ||
| application, | ||
| kibanaDocLink, | ||
| kibanaVersion, | ||
| ...observables | ||
| }: Props) => { | ||
| const renderLogo = () => ( | ||
| <EuiHeaderLogo | ||
| iconType="logoElastic" | ||
| href="#" | ||
| onClick={(e) => e.preventDefault()} | ||
| aria-label="Go to home page" | ||
| /> | ||
| ); | ||
|
|
||
| return ( | ||
| <> | ||
| <EuiHeader position="fixed"> | ||
| <EuiHeaderSection grow={false}> | ||
| <EuiHeaderSectionItem border="right">{renderLogo()}</EuiHeaderSectionItem> | ||
| <EuiHeaderSectionItem> | ||
| <HeaderBreadcrumbs breadcrumbs$={observables.breadcrumbs$} /> | ||
| </EuiHeaderSectionItem> | ||
| </EuiHeaderSection> | ||
| <EuiHeaderSection side="right"> | ||
| <EuiHeaderSectionItem> | ||
| <HeaderHelpMenu | ||
| globalHelpExtensionMenuLinks$={observables.globalHelpExtensionMenuLinks$} | ||
| helpExtension$={observables.helpExtension$} | ||
| helpSupportUrl$={observables.helpSupportUrl$} | ||
| kibanaDocLink={kibanaDocLink} | ||
| kibanaVersion={kibanaVersion} | ||
| navigateToUrl={application.navigateToUrl} | ||
| /> | ||
| </EuiHeaderSectionItem> | ||
| <EuiHeaderSectionItem border="left"> | ||
| <HeaderActionMenu actionMenu$={observables.actionMenu$} /> | ||
| </EuiHeaderSectionItem> | ||
|
|
||
| <EuiHeaderSectionItem> | ||
| <HeaderNavControls navControls$={observables.navControlsRight$} /> | ||
| </EuiHeaderSectionItem> | ||
| </EuiHeaderSection> | ||
| </EuiHeader> | ||
| <Router history={application.history}> | ||
| <ProjectNavigation> | ||
| <span /> | ||
| </ProjectNavigation> | ||
| </Router> | ||
| </> | ||
| ); | ||
| }; |
9 changes: 9 additions & 0 deletions
9
packages/core/chrome/core-chrome-browser-internal/src/ui/project/index.ts
This file contains hidden or 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,9 @@ | ||
| /* | ||
| * 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 { ProjectHeader } from './header'; |
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.
Uh oh!
There was an error while loading. Please reload this page.