Skip to content

Commit

Permalink
[8.x] [Cloud Security] Move @kbn/cloud-security-posture-storybook-con…
Browse files Browse the repository at this point in the history
…fig for Kibana sustainability (#204500) (#204736)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Move @kbn/cloud-security-posture-storybook-config
for Kibana sustainability
(#204500)](#204500)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-18T12:09:38Z","message":"[Cloud
Security] Move @kbn/cloud-security-posture-storybook-config for Kibana
sustainability (#204500)\n\n## Summary\r\n\r\nMove
@kbn/cloud-security-posture-storybook-config package
to\r\n`x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook`\r\n\r\nRenamed
removed the `config` folder to align with the
`.storybook`\r\n[naming\r\nconvention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21).\r\n\r\n![Screenshot
2024-12-16 at 5
50\r\n53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43)\r\n\r\n###
Related Issues\r\n-
https://github.com/elastic/kibana/pull/202862\r\n\r\n---------\r\n\r\nCo-authored-by:
Brad White
<[email protected]>","sha":"d6cb398d1ab09af93369e84f0aa13f0688357082","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud
Security","backport:prev-minor","ci:build-storybooks"],"title":"[Cloud
Security] Move @kbn/cloud-security-posture-storybook-config for Kibana
sustainability
","number":204500,"url":"https://github.com/elastic/kibana/pull/204500","mergeCommit":{"message":"[Cloud
Security] Move @kbn/cloud-security-posture-storybook-config for Kibana
sustainability (#204500)\n\n## Summary\r\n\r\nMove
@kbn/cloud-security-posture-storybook-config package
to\r\n`x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook`\r\n\r\nRenamed
removed the `config` folder to align with the
`.storybook`\r\n[naming\r\nconvention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21).\r\n\r\n![Screenshot
2024-12-16 at 5
50\r\n53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43)\r\n\r\n###
Related Issues\r\n-
https://github.com/elastic/kibana/pull/202862\r\n\r\n---------\r\n\r\nCo-authored-by:
Brad White
<[email protected]>","sha":"d6cb398d1ab09af93369e84f0aa13f0688357082"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204500","number":204500,"mergeCommit":{"message":"[Cloud
Security] Move @kbn/cloud-security-posture-storybook-config for Kibana
sustainability (#204500)\n\n## Summary\r\n\r\nMove
@kbn/cloud-security-posture-storybook-config package
to\r\n`x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook`\r\n\r\nRenamed
removed the `config` folder to align with the
`.storybook`\r\n[naming\r\nconvention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21).\r\n\r\n![Screenshot
2024-12-16 at 5
50\r\n53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43)\r\n\r\n###
Related Issues\r\n-
https://github.com/elastic/kibana/pull/202862\r\n\r\n---------\r\n\r\nCo-authored-by:
Brad White
<[email protected]>","sha":"d6cb398d1ab09af93369e84f0aa13f0688357082"}}]}]
BACKPORT-->

Co-authored-by: seanrathier <[email protected]>
  • Loading branch information
kibanamachine and seanrathier authored Dec 18, 2024
1 parent c7ffde5 commit 7cd2ace
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 23 deletions.
3 changes: 2 additions & 1 deletion src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const storybookAliases = {
canvas: 'x-pack/plugins/canvas/storybook',
cases: 'packages/kbn-cases-components/.storybook',
cell_actions: 'src/platform/packages/shared/kbn-cell-actions/.storybook',
cloud_security_posture_packages: 'x-pack/packages/kbn-cloud-security-posture/storybook/config',
cloud_security_posture_packages:
'x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook',
cloud: 'packages/cloud/.storybook',
coloring: 'packages/kbn-coloring/.storybook',
language_documentation_popover:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { defaultConfig } from '@kbn/storybook';

module.exports = {
...defaultConfig,
stories: ['../../**/*.stories.+(tsx|mdx)'],
stories: ['../**/*.stories.+(tsx|mdx)'],
reactOptions: {
strictMode: true,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": ["jest", "node", "@kbn/ambient-storybook-types"]
},
"include": ["**/*.ts"],
"kbn_references": ["@kbn/storybook"],
"exclude": ["target/**/*"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
rootDir: '../../../../../..',
transform: {
'^.+\\.(js|tsx?)$':
'<rootDir>/x-pack/packages/kbn-cloud-security-posture/storybook/config/babel_with_emotion.ts',
'<rootDir>/x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook/babel_with_emotion.ts',
},
setupFiles: ['jest-canvas-mock'],
setupFilesAfterEnv: [
Expand Down

0 comments on commit 7cd2ace

Please sign in to comment.