* Adding storybook static site generation and percy storybook script
* feat: 🎸 build each Storybook in own folder, add --site flag doc
* Add flags site tag for exiting process
Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>
* Back out of percy-storybook integration
Co-authored-by: Vadim Dalecky <streamich@users.noreply.github.com>
* add monaco to kbn/ui-shared-deps and load required features for all uses
* forgot to save a change
* remove unused imports
* include a cache buster to counteract issue #58077
* include monaco.ts in ts project
* Move saved_objects to NP
* Update path for imports
* Remove ui/saved_objects
* Update i18n IDs
* Convert test
* Replace Bluebird to Promise; fix unit tests
* Mock openConfirm in test
* Add kibana.json
* Check unit test
* Update unit tests
* Ensure only one element has scroll
Apparently having multiple elements with scroll confuses the
`react-beautiful-dnd` mechanism to determine the position of the
elements. Adding `overflowY` to the app root fixes it.
* Fix upper bound check for log column reordering
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* add unit test for rules api
* add unit test for useFetchIndexPatterns
* fix useFetchIndexPatterns and add unit test for usePersistRule
* add more unit test for container/rules
* review
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Adds toggle to open links in new tab within markdown element
* Updating test for markdown function
* Switch to using Markdown Component
* Update ui.ts
Update to change toggle verbiage per Ryan's request, and reuse the Kibana Markdown per Corey's help and recommendation. Still working on updating the styles (consulting Ryan)
* Update toggle.js
Update to prevent text for "Open links in new tab from wrapping" - the example from the horizontal bar chart is quite differently, and reads from "axisConfig" - when I changed the argType to "axisConfig", the layout was the same, but I'll need some input on which specific styles to add to the "ToggleArgInput" - I think this is where the style updates need to occur to get the toggle to stay on the same line, but may be wrong.
* Update ui.ts
Update to original message string per Ryan's feedback, now that there is no wrapping
* Update to UI styles per Ryan's feedback
* updating message per Ryan's request
* Update ui.ts
update to fix internationalization issues
Co-authored-by: Corey Robertson <crob611@gmail.com>
This PR adds transform bootstrapping to the functional test transform.api service and demonstrates the usage in a new cloning test file, which will be completed as part of the transform cloning PR.
* Remove elasticsearch setup service from route deps
Removed the callWithRequestFactory entirely. This setup was introducing a pattern where
route handlers were not pulling the ES client fromt the route handler context. For this
refactor we need to extend the route handler context with watcher specific client actions
and so we also extend RequestHandlerContext globally.
In this commit we also update the types for params, query and body schema on each route to avoid
using any everwhere.
* Add generic types to license wrapper
Adding <P, Q, B> to the license wrapper made it a transparent
wrapper from a type perspective so we can remove the need to
eplicitly set RequestHandler<P, Q, B> on the handler.
Also cleaned up a variable name "response" -> "searchResults"
Also removed elasticsearch from the RouteDependencies type.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Moved all of the show/hide toggles outside of ordered lists.
* Fixed styling issues for indice list.
* Fixed i10n tag that I accidentally changed.
* Added component to show/hide indices.
* Abstracted out some of the common parts of the Show Hide component and implemented the general component in the pages. Also made conditional for the i18n tags.
* Fixed changes per comments. Restored <EuiText> to fix the issue with the bullet points. Updated the i18n tags to be more generic. Created 2 components for formatted message.
* Fixed internalization issues..
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Closes @56832 Migrates uses of the saved objects client to the internal
and context scoped clients exposed in the new platform core setup
* moves apm server, common, and typings dirs to the new plugin directory
* fixes path imports and type errors
* fixes some lint errors
* fixes CI failure. Use internal saved objects client like before.
* uses the context-scoped saved objects client for saving runtime APM indices,
and uses the internal saved objects client when creating apm index
pattern, so that any user who navigates to apm can trigger it
* fixes the type check error by updating import paths
* renamed files and directories to snake_case to pass scripts/check_file_casing
* rebase fixes and commit filename case changes
* moves get_indices_privileges.ts out of legacy path
* Move maps telemetry to NP. Some clean-up, some ts conversion
* Update naming & org to be more in-line with guidelines
* Get TELEMETRY_TYPE from constants
* Ignore ts error importing from js file
* Set original array type passed into the function to array of ILayerTypeCount. Set return type on reduce function
* Remove unneeded 'any' types where used. Add in interfaces for map & index pattern saved objects
* Review feedback. Add layer, source, map saved object types and use
* Review feedback. Updates based on type check
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Create edit node component
* Accept EditNodeComponent
* Switch to old header
* test
* Remove iconType
* Remove isEditTitle
* Move translations
* Delete header_page_new component
* Move editable title component to different folder
* Update jest snapshot
* Rename prop
* Make EditableTitleComponent more generic
* useCallback instead of inline functions in props
* Hardcode titles
* Move UI state inside EditableTitleComponent
* Seperate title's tests
* Create tests for EditableTitleComponent
* useCallbacks on EditableTitle component
* Create translation for aria-label in edit icon
* Check if switched to edit mode after pressing submit
* Test title when canceled
Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* emit success event from reducer when all bundles cached
* verify that infinite streams can be broken by unsubscribing
* shift naming a smidge
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [APM] Don’t include UI filters when fetching transaction
When fetching an error sample, the related transaction is also fetched. This transaction should not be filtered by ui filters
* Fix snapshot
* Update term mock term used for ui filter
* added pagination on alert instances page
* extracted default page size to a constant for alerting UI as a whole
* Fix test failure
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
* Added unit tests for detection engine import_rules_route and moved out small portion of import_rules_route into a util to be unit tested as well.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>