kibana/x-pack/examples
Tim Sullivan 80160cbf8f
Preparation for High Contrast Mode, ResponseOps domains (#202610)
## Summary

**Reviewers: Please test the code paths affected by this PR. See the
"Risks" section below.**

Part of work for enabling "high contrast mode" in Kibana. See
https://github.com/elastic/kibana/issues/176219.

**Background:**
Kibana will soon have a user profile setting to allow users to enable
"high contrast mode." This setting will activate a flag with
`<EuiProvider>` that causes EUI components to render with higher
contrast visual elements. Consumer plugins and packages need to be
updated selected places where `<EuiProvider>` is wrapped, to pass the
`UserProfileService` service dependency from the CoreStart contract.

**NOTE:** **EUI currently does not yet support the high-contrast mode
flag**, but support for that is expected to come in around 2 weeks.
These first PRs are simply preparing the code by wiring up the
`UserProvideService`.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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
- [X] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [medium/high] The implementor of this change did not manually test
the affected code paths and relied on type-checking and functional tests
to drive the changes. Code owners for this PR need to manually test the
affected code paths.
- [ ] [medium] The `UserProfileService` dependency comes from the
CoreStart contract. If acquiring the service causes synchronous code to
become asynchronous, check for race conditions or errors in rendering
React components. Code owners for this PR need to manually test the
affected code paths.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-12 14:34:44 -06:00
..
alerting_example [ResponseOps][Alerting] Decouple feature IDs from consumers (#183756) 2024-12-03 12:21:53 +02:00
embedded_lens_example Preparation for High Contrast Mode, Analytics Experience domains (#202608) 2024-12-12 13:16:07 -06:00
exploratory_view_example Address some of the no_group_crossing dependencies (#198261) 2024-11-06 08:44:35 -06:00
gen_ai_streaming_response_example [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
lens_config_builder_example Make the formula api optional for the lens builder (#179255) 2024-03-25 07:09:37 -07:00
lens_embeddable_inline_editing_example [Lens] Embeddable react refactor (#186642) 2024-11-26 09:34:13 +01:00
screenshotting_example Preparation for High Contrast Mode, Core/SharedUX domains (#202606) 2024-12-05 08:26:41 -07:00
testing_embedded_lens [Lens] Embeddable react refactor (#186642) 2024-11-26 09:34:13 +01:00
third_party_lens_navigation_prompt [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
third_party_maps_source_example Move @elastic/kibana-gis ownership to @elastic/kibana-presentation (#192521) 2024-09-16 09:50:50 -05:00
third_party_vis_lens_example [Lens] Chart switch redesign (#187475) 2024-09-05 12:32:45 +02:00
triggers_actions_ui_example Preparation for High Contrast Mode, ResponseOps domains (#202610) 2024-12-12 14:34:44 -06:00
ui_actions_enhanced_examples [embeddable] remove EmbeddableRenderer and embeddable stories (#203007) 2024-12-10 10:38:28 -07:00
README.md

Example plugins

This folder contains X-Pack example plugins. To run the plugins in this folder, use the --run-examples flag, via

yarn start --run-examples