kibana/examples/guided_onboarding_example
Rachel Shen 50a4fc4916
[Shared UX] Adoption of Shared UX Route component (#150357)
## Summary

This PR removes all imports of Route from react-router-dom and
'@kbn/kibana-react-plugin/public' and instead imports Route from
@kbn/shared-ux-router.

### Context
Based on
https://github.com/elastic/kibana/issues/132629#issue-1243243678 This PR
executes steps 2 - 4:

> 2. To make the transition easier, we want to re-export other
react-router-dom exports alongside the modified' Route'.
> 3. Solutions should start using that Route component in place of the
one from react-router-dom. I.e. replace all occurrences of import { ...
} from 'react-router-dom' with import { ... } from
'@kbn/shared-ux-router'.
> 4. All manual calls to useExecutionContext are not needed anymore and
should be removed.

### Future PR

Looks like this might be getting worked on in:
https://github.com/elastic/kibana/pull/145863 (thanks!)

> Introduce an ESlint rule that ensures that react-router-dom is not
used directly in Kibana and that imports go through the new
@kbn/shared-ux-router package.

This is tangentially accomplished through
https://github.com/elastic/kibana/pull/150340 but only addresses using
Route through @kbn/kibana-react-plugin/public'


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2023-02-14 19:25:04 +00:00
..
common [Onboarding] Create guided_onboarding plugin (#138611) 2022-09-15 11:35:35 +02:00
public [Shared UX] Adoption of Shared UX Route component (#150357) 2023-02-14 19:25:04 +00:00
server [Guided onboarding] Register test guide in the example plugin (#147703) 2023-01-20 03:29:25 -07:00
.i18nrc.json [i18n] Fix ja-JP locale causing FATAL error when starting kibana (#146704) 2022-11-30 21:28:28 +03:00
kibana.jsonc [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
README.md [Guided onboarding] Added plugin's README (#141219) 2022-09-21 07:44:06 -07:00
tsconfig.json [Shared UX] Adoption of Shared UX Route component (#150357) 2023-02-14 19:25:04 +00:00

guidedOnboardingExample

This plugin contains code examples for the Guided Onboarding plugin. More information can be found in KIBANA_FOLDER/src/plugins/guided_onboarding/README.md


Development

See the kibana contributing guide for instructions setting up your development environment.