-
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
[Security Solution][Unified IA] New sections with landing page #163102
Conversation
@elasticmachine merge upstream |
...k/packages/security-solution/navigation/src/landing_links/landing_links_icons_categories.tsx
Show resolved
Hide resolved
x-pack/packages/security-solution/navigation/src/landing_links/landing_links.tsx
Show resolved
Hide resolved
x-pack/packages/security-solution/navigation/src/landing_links/landing_links.tsx
Show resolved
Hide resolved
x-pack/packages/security-solution/navigation/src/landing_links/landing_links_icons.tsx
Outdated
Show resolved
Hide resolved
...ges/security-solution/navigation/src/landing_links/landing_links_icons_categories_groups.tsx
Outdated
Show resolved
Hide resolved
x-pack/packages/security-solution/navigation/src/landing_links/landing_links_images.tsx
Outdated
Show resolved
Hide resolved
x-pack/packages/security-solution/side_nav/src/solution_side_nav_panel.tsx
Outdated
Show resolved
Hide resolved
This is caused by having a different layout on serverless, probably those pages miss the |
I noticed that the new pages don't render |
@@ -40,6 +41,8 @@ export class SecuritySolutionServerlessPlugin | |||
setupDeps: SecuritySolutionServerlessPluginSetupDeps | |||
): SecuritySolutionServerlessPluginSetup { | |||
registerUpsellings(setupDeps.securitySolution.upselling, this.config.productTypes); | |||
setupDeps.securitySolution.setAppLinksSwitcher(projectAppLinksSwitcher); |
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 like how it adjusts the links for serverless and has permission checked. I also like that we've moved all the serverless relevent flags to plugin contract, very well organised. 👍
|
||
export const isCloudLink = (linkId: string): boolean => linkId.startsWith('cloud:'); | ||
export const getCloudLinkKey = (linkId: string): string => linkId.replace('cloud:', ''); | ||
export const getCloudUrl = (cloudUrlKey: string, cloud: CloudStart): string | undefined => { |
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.
👍
Since I am not sure how telemetry is going to work in serverless I've just omited tracking for now, I added a task here to do it later #162072 |
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.
Thanks for the large set of changes. 🔥 I have got a few suggestions and notes.
I also tested it out. I think that the menu panel floating over the sub-header in serverless mode looks funky. It should be attached to the bottom of the subheader. It's not how it behaves in the ESS mode. Not sure if this is by design?
<KibanaPageTemplate restrictWidth={false} contentBorder={false} grow={true}> | ||
<KibanaPageTemplate.Section> | ||
<EuiPageHeader pageTitle={title} /> | ||
<EuiSpacer size="l" /> | ||
<EuiSpacer size="xl" /> |
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.
Looks like the template props, title and spacer values are same for all the pages. Consider extracting it into a common page/wrapper component that can be used for all the pages. Something like,
<PageWrapper>
<LandingLinksIcons items={links} />
</PageWrapper>
<PageWrapper>
<LandingLinksIconsCategories links={links} categories={categories} />
</PageWrapper>
and so on
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.
That's a good suggestion! But I am on PTO for the next two weeks, would you mind if we do this on a follow-up PR? So we can merge the main changes.
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.
Sounds good @semd
x-pack/plugins/security_solution_serverless/public/navigation/links/util.ts
Show resolved
Hide resolved
This is a known issue on the serverless top header bar, it is fixed here #162002. merging main should fix it. |
@elasticmachine merge upstream |
💛 Build succeeded, but was flakyFailed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @semd |
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.
🚀
## Summary closes: #157847 The new links and pages in Security Solution for Serverless: - `Investigations` - `Timelines` - `Osquery` - `Assets` - `Fleet` (and all its sub-links) - `Endpoints` (and all its sub-links) - `Cloud defend` (and all its sub-links) - Callout with button linking `Integrations` in Project Setting - `Project settings` - `Users & roles` (Cloud UI) - `Billing & consumption` (Cloud UI) - `Integrations` (link to integrations with _/browse/security_ path parameter) - `Entity risk score` (link currently under the `riskScoringRoutesEnabled` experimental flag) - `Management` accordion with a set of (stack) management categories and pages links Sections updated: (ESS & Serverless) `Rules` links have been updated according to new specs. (ESS) The `Settings` page was renamed back to `Manage`. (Serverless) The `Dev tools` link was moved to the bottom of the side navigation. #### Cypress tests for serverless: They will be implemented in a follow-up PR when the infrastructure is ready #162698 ## Screenshots ### Serverless Investigations: ![investigations](https://github.com/elastic/kibana/assets/17747913/19b602ab-53bb-4280-b0c3-dc69255ea3ab) ![investigations_panel](https://github.com/elastic/kibana/assets/17747913/8be036fc-6095-4234-8b07-1a7149c8a92b) Assets: ![assets](https://github.com/elastic/kibana/assets/17747913/963723d5-16da-45dd-955c-a7d7b61099e6) ![assets_panel](https://github.com/elastic/kibana/assets/17747913/977c0716-7cc3-4369-acdf-0787e264a912) Rules: ![rules](https://github.com/elastic/kibana/assets/17747913/5bafbd08-508c-4b50-bd28-dc052371e76a) ![rules_panel](https://github.com/elastic/kibana/assets/17747913/ea47f8d9-4b68-44f3-8a42-6f795d05b982) Project Settings: ![project_settings](https://github.com/elastic/kibana/assets/17747913/36dbb446-3354-4519-b59c-e8b5005fbb71) ![project_settings_panel](https://github.com/elastic/kibana/assets/17747913/1315b54b-4423-41a2-b0ed-997ee77c1f6d) ## ESS Side Navigation: ![ess_side_nav](https://github.com/elastic/kibana/assets/17747913/a3687a47-3ccb-4ce8-aa53-9e962a6ef1cf) --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Tomasz Ciecierski <[email protected]> Co-authored-by: Tomasz Ciecierski <[email protected]>
Summary
closes: #157847
The new links and pages in Security Solution for Serverless:
Investigations
Timelines
Osquery
Assets
Fleet
(and all its sub-links)Endpoints
(and all its sub-links)Cloud defend
(and all its sub-links)Integrations
in Project SettingProject settings
Users & roles
(Cloud UI)Billing & consumption
(Cloud UI)Integrations
(link to integrations with /browse/security path parameter)Entity risk score
(link currently under theriskScoringRoutesEnabled
experimental flag)Management
accordion with a set of (stack) management categories and pages linksSections updated:
(ESS & Serverless)
Rules
links have been updated according to new specs.(ESS) The
Settings
page was renamed back toManage
.(Serverless) The
Dev tools
link was moved to the bottom of the side navigation.Cypress tests for serverless:
They will be implemented in a follow-up PR when the infrastructure is ready #162698
Screenshots
Serverless
Investigations:
Assets:
Rules:
Project Settings:
ESS
Side Navigation:
![ess_side_nav](https://private-user-images.githubusercontent.com/17747913/258941761-a3687a47-3ccb-4ce8-aa53-9e962a6ef1cf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDY5MzgsIm5iZiI6MTczOTIwNjYzOCwicGF0aCI6Ii8xNzc0NzkxMy8yNTg5NDE3NjEtYTM2ODdhNDctM2NjYi00Y2U4LWFhNTMtOWU5NjJhNmVmMWNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE2NTcxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjZDQ2OGU4MDdmMTUzMDRjNjQ3ZTAxYWM3OTNkODI3OWFhZTIwZWNlNGFiZGRmMGRlNmFmNmU3MjFiN2M5MTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.v3CRT_ebP1ngjNln0amZyypU_H1hV0qkItWq7hDMstE)