Skip to content

Conversation

@justinkambic
Copy link
Contributor

Summary

Adds an upgrade to the version of EUI.

Also upgrades TypeScript. NOTE this TS upgrade will break peer dependencies for react-scripts. So far it does not seem like there's any truly negative impact, but we should migrate off of react-scripts at some point if possible and opt for a lower-footprint custom server launch experience. This work has never been explored and is likely not as daunting as it initially sounds.

Implementation details

Simply installs some upgrades.

This does now require us to use the --legacy-peer-deps escape hatch for calls to npm install or npm ci because this patch will break peer deps for some older packages that refuse to support TypeScript v5+.

How to validate this change

  1. Build and run the Recorder
  2. Record a journey
  3. Replay the journey
  4. Export the journey
  5. Add some custom steps and rearrange the step dividers

@justinkambic justinkambic requested a review from Copilot March 26, 2025 16:04
@justinkambic justinkambic self-assigned this Mar 26, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the Elastic UI (EUI) library to v101 and updates the TypeScript version while addressing peer dependency issues with the addition of the --legacy-peer-deps flag for npm commands.

  • Update npm commands in workflows, RELEASE, and README files to use --legacy-peer-deps.
  • Change the EUI theme import in the main App component.

Reviewed Changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated no comments.

File Description
.github/workflows/test.yml Updated npm install command to use --legacy-peer-deps
RELEASE.md Updated npm install instructions to use --legacy-peer-deps
README.md Updated npm install commands to use --legacy-peer-deps
src/App.tsx Changed the EUI theme import; verify file path and extension usage
Files not reviewed (4)
  • .buildkite/scripts/package.sh: Language not supported
  • .ci/scripts/release-ci.sh: Language not supported
  • NOTICE.txt: Language not supported
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/App.tsx:29

  • Ensure that the new theme import includes the correct file extension if required (e.g. '.css') by the build configuration; omitting it could lead to runtime errors.
import '@elastic/eui/dist/eui_theme_borealis_light';

@justinkambic
Copy link
Contributor Author

Closing in favor of #548.

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.

1 participant