kibana/x-pack/plugins
Nathan L Smith 564a7b1a17
Storybook 6 and config changes (#75357)
Upgrade to Storybook 6 and attempt to use the declarative configuration.

The goals of this PR (as part of Kibana's Storybook roadmap, are:

Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:

In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:

Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx
2020-09-29 19:34:05 -05:00
..
actions [Actions] Migrate cases configuration object (#77998) 2020-09-29 21:10:57 +03:00
alerting_builtins Grouped features for space management (#74151) 2020-09-18 12:30:59 -04:00
alerts [Alerting] retry internal OCC calls within alertsClient (#77838) 2020-09-28 16:42:13 -04:00
apm Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
audit_trail Adding KibanaRequest#uuid (#76822) 2020-09-21 09:41:09 -07:00
beats_management Hide management sections based on cluster/index privileges (#67791) 2020-09-14 09:30:47 -04:00
canvas Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
case [Alerting][Connectors] Refactor IBM Resilient: Generic Implementation (phase one) (#74357) 2020-09-11 10:24:46 +03:00
cloud
code
console_extensions
cross_cluster_replication Hide management sections based on cluster/index privileges (#67791) 2020-09-14 09:30:47 -04:00
dashboard_enhanced Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
dashboard_mode Separate url forwarding logic and legacy services (#76892) 2020-09-14 11:08:59 +02:00
data_enhanced [Search] Error notification alignment (#77788) 2020-09-28 18:33:48 +03:00
discover_enhanced Update to TS v4 (#73924) 2020-08-27 10:28:02 +02:00
drilldowns/url_drilldown [Drilldowns] Config to disable URL Drilldown (#77887) 2020-09-23 11:12:12 +02:00
embeddable_enhanced [Drilldowns] Config to disable URL Drilldown (#77887) 2020-09-23 11:12:12 +02:00
encrypted_saved_objects [Alerting & Actions] Overwrite SOs when updating instead of partially updating (#73688) 2020-09-18 09:53:35 +01:00
enterprise_search [Enterprise Search] Move header actions menu to be rendered after the main app + share its store (#78691) 2020-09-29 13:28:13 -07:00
event_log Migrate data folder creation from legacy to KP (#75527) 2020-08-26 21:40:03 +02:00
features Grouped features for space management (#74151) 2020-09-18 12:30:59 -04:00
file_upload Index pattern - refactor constructor (#77791) 2020-09-22 20:01:36 -05:00
global_search Exclude SO results without appropriate view permission (#78106) 2020-09-24 19:36:16 +02:00
global_search_bar Use more specific rule skipping for a11y tests (#77647) 2020-09-29 10:56:25 -05:00
global_search_providers Exclude SO results without appropriate view permission (#78106) 2020-09-24 19:36:16 +02:00
graph Grouped features for space management (#74151) 2020-09-18 12:30:59 -04:00
grokdebugger Adding comment about importing lodash library (#78156) 2020-09-24 11:38:11 -05:00
index_lifecycle_management Adding comment about importing lodash library (#78156) 2020-09-24 11:38:11 -05:00
index_management Add support for runtime field types to mappings editor. (#77420) 2020-09-25 08:25:49 -07:00
infra Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
ingest_manager [Ingest Manager] Add namespace max length limit (#78522) 2020-09-29 09:28:43 -07:00
ingest_pipelines [Ingest pipelines] Add ability to stop pipeline simulation (#78183) 2020-09-29 09:29:07 -04:00
lens [Lens] Reduce initial bundle size (#78142) 2020-09-29 19:00:29 +02:00
license_management Hide management sections based on cluster/index privileges (#67791) 2020-09-14 09:30:47 -04:00
licensing fix lodash imports (#78456) 2020-09-29 13:22:55 +02:00
lists [Security Solution][Exceptions] - Updates exception item find sort field (#76685) 2020-09-04 10:35:15 -04:00
logstash Hide management sections based on cluster/index privileges (#67791) 2020-09-14 09:30:47 -04:00
maps [Maps] Add layer type preview icons (#78650) 2020-09-29 12:05:24 +01:00
maps_legacy_licensing [Maps] lazy load maps_legacy, tile_map, and region_map bundle (#78027) 2020-09-24 12:45:43 -06:00
ml [ML] DF Analytics exploration: add ml.is_training filter to regression/classification views (#78702) 2020-09-29 18:32:24 -04:00
monitoring [Usage Collection] [schema] Explicit "array" definition (#78141) 2020-09-28 16:13:21 +01:00
observability Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
painless_lab Stacked headers and navigational search (#72331) 2020-09-14 14:32:30 -05:00
remote_clusters Hide management sections based on cluster/index privileges (#67791) 2020-09-14 09:30:47 -04:00
reporting [Usage Collection] [schema] reporting + add MappedType support (#78591) 2020-09-29 19:00:09 +01:00
rollup remove legacy ES plugin (#77703) 2020-09-18 09:30:13 +02:00
searchprofiler [ES UI Shared] Remove 'brace' from es_ui_shared public (#78033) 2020-09-24 16:02:14 +02:00
security [Usage Collection] [schema] Explicit "array" definition (#78141) 2020-09-28 16:13:21 +01:00
security_solution Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
snapshot_restore Improve home screen for limited-access users (#77665) 2020-09-18 08:54:08 -04:00
spaces Change saved objects client find to allow partial authorization (#77699) 2020-09-22 12:40:38 -04:00
task_manager filter invalid SOs from the searc hresults in Task Manager (#76891) 2020-09-14 17:51:19 +01:00
telemetry_collection_xpack [Usage Collection] [schema] reporting + add MappedType support (#78591) 2020-09-29 19:00:09 +01:00
transform [ML] Limit exposing shared static code through ml/public/index.ts. (#77745) 2020-09-29 11:57:53 +02:00
translations [Logs UI] Log threshold ratio alerts (#76867) 2020-09-29 14:59:18 -04:00
triggers_actions_ui Prevent multiple calls to backend from UI (#77970) 2020-09-29 09:56:01 -07:00
ui_actions_enhanced Storybook 6 and config changes (#75357) 2020-09-29 19:34:05 -05:00
upgrade_assistant [Upgrade Assistant] Rename "telemetry" to "stats" (#78127) 2020-09-22 13:41:23 +01:00
uptime [Uptime] Ml anomaly alert edit (#76909) 2020-09-29 12:23:39 +02:00
watcher [ES UI Shared] Remove 'brace' from es_ui_shared public (#78033) 2020-09-24 16:02:14 +02:00
xpack_legacy Remove legacy plugins support (#77599) 2020-09-23 09:52:51 +02:00