Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Preparation for High Contrast Mode, Core/SharedUX domains (#202606) #203147

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

tsullivan
Copy link
Member

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…2606)

## 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
elastic#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 <[email protected]>
(cherry picked from commit 6178e82)

# Conflicts:
#	packages/kbn-reporting/get_csv_panel_actions/panel_actions/get_csv_panel_action.tsx
#	packages/kbn-storybook/src/lib/decorators.tsx
#	packages/react/kibana_context/root/eui_provider.tsx
#	packages/react/kibana_mount/to_mount_point.test.tsx
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/core-apps-browser-internal 22 23 +1
@kbn/react-kibana-context-root 4 5 +1
@kbn/react-kibana-context-theme 2 3 +1
kibanaReact 121 123 +2
kibanaUtils 417 418 +1
total +6

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiops 614.8KB 614.8KB +42.0B
apm 3.5MB 3.5MB +84.0B
enterpriseSearch 2.6MB 2.6MB +42.0B
entityManagerApp 12.0KB 12.0KB +42.0B
home 152.0KB 151.9KB -26.0B
investigateApp 483.5KB 483.5KB +42.0B
observability 481.1KB 481.2KB +42.0B
observabilityAIAssistantApp 239.7KB 239.7KB +42.0B
observabilityOnboarding 281.9KB 281.9KB +42.0B
searchAssistant 161.9KB 162.0KB +42.0B
searchNotebooks 14.2KB 14.2KB +42.0B
share 4.2KB 4.2KB +23.0B
synthetics 1.1MB 1.1MB +42.0B
uptime 468.2KB 468.3KB +42.0B
ux 168.0KB 168.0KB +42.0B
total +585.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 454.6KB 454.3KB -349.0B
expressionError 7.5KB 7.5KB +42.0B
expressionImage 6.8KB 6.8KB +42.0B
expressionMetric 8.1KB 8.1KB +42.0B
expressionRepeatImage 8.6KB 8.6KB +42.0B
expressionRevealImage 8.5KB 8.6KB +42.0B
expressionShape 23.1KB 23.1KB +42.0B
globalSearchBar 29.8KB 29.8KB -30.0B
kibanaReact 39.6KB 39.7KB +120.0B
kibanaUtils 68.8KB 68.8KB +98.0B
mockIdpPlugin 10.6KB 10.7KB +42.0B
reporting 52.7KB 52.7KB -26.0B
savedObjects 17.6KB 17.6KB +36.0B
serverless 14.1KB 14.1KB -52.0B
share 57.9KB 57.8KB -28.0B
uiActions 23.9KB 24.0KB +88.0B
total +151.0B
Unknown metric groups

API count

id before after diff
@kbn/core-apps-browser-internal 23 24 +1
@kbn/react-kibana-context-root 10 11 +1
@kbn/react-kibana-context-theme 11 13 +2
kibanaReact 153 155 +2
kibanaUtils 610 611 +1
total +7

References to deprecated APIs

id before after diff
aiAssistantManagementSelection 0 2 +2
observabilityAiAssistantManagement 0 2 +2
total +4

History

@tsullivan tsullivan merged commit d2a78a9 into elastic:8.x Dec 6, 2024
9 checks passed
@tsullivan tsullivan deleted the backport/8.x/pr-202606 branch December 16, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants