[Security Solution][Unified IA] New sections with landing page#163102
[Security Solution][Unified IA] New sections with landing page#163102semd merged 33 commits intoelastic:mainfrom
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 |
| setupDeps: SecuritySolutionServerlessPluginSetupDeps | ||
| ): SecuritySolutionServerlessPluginSetup { | ||
| registerUpsellings(setupDeps.securitySolution.upselling, this.config.productTypes); | ||
| setupDeps.securitySolution.setAppLinksSwitcher(projectAppLinksSwitcher); |
There was a problem hiding this comment.
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 => { |
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 |
ashokaditya
left a comment
There was a problem hiding this comment.
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.
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.
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.
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 |
## 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:   Assets:   Rules:   Project Settings:   ## ESS Side Navigation:  --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Tomasz Ciecierski <ciecierskitomek@gmail.com> Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>





Summary
closes: #157847
The new links and pages in Security Solution for Serverless:
InvestigationsTimelinesOsqueryAssetsFleet(and all its sub-links)Endpoints(and all its sub-links)Cloud defend(and all its sub-links)Integrationsin Project SettingProject settingsUsers & roles(Cloud UI)Billing & consumption(Cloud UI)Integrations(link to integrations with /browse/security path parameter)Entity risk score(link currently under theriskScoringRoutesEnabledexperimental flag)Managementaccordion with a set of (stack) management categories and pages linksSections updated:
(ESS & Serverless)
Ruleslinks have been updated according to new specs.(ESS) The
Settingspage was renamed back toManage.(Serverless) The
Dev toolslink 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:
