Repository navigation
[Illustrations] Add a package for Elastic illustrations - #9779
weronikaolejniczak merged 14 commits into
Conversation
b14506f to
b41897d
Compare
There was a problem hiding this comment.
Pull request overview
This PR introduces a new independently versioned @elastic/eui-illustrations workspace for theme-adaptive SVG assets, adds a corresponding EuiIllustration component to @elastic/eui that inlines the appropriate SVG for the active color mode, and updates release + CI tooling to support independently released packages and test/VRT skipping rules.
Changes:
- Added
@elastic/eui-illustrationspackage with SVG authoring/codegen, build outputs, licensing, and initial assets. - Added
EuiIllustrationcomponent to@elastic/eui, plus tests, styles, and Storybook integration; added docs pages/gallery in the website. - Refactored release scripts into shared
release_liband added independent-package tagging/linking; adjusted Buildkite test/VRT skip logic.
Reviewed changes
Copilot reviewed 37 out of 41 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Adds workspace dependency entries for @elastic/eui-illustrations. |
| scripts/release-publish.sh | Removed old kebab-case publish script (replaced by snake_case version). |
| scripts/release_publish.sh | New publish script with shared helpers + independent package tagging/releases. |
| scripts/release_prep.sh | Uses shared release helpers and forwards args to release CLI. |
| scripts/release_lib.sh | New shared helper functions for release scripts (workspace discovery, checks, url encoding). |
| scripts/independent_packages.json | Source of truth list for independently released packages. |
| packages/website/package.json | Adds @elastic/eui-illustrations as a website dependency. |
| packages/website/docs/components/display/illustrations/index.mdx | New docs page for EuiIllustration and illustration catalog. |
| packages/website/docs/components/display/illustrations/illustration_gallery.tsx | New searchable gallery UI for illustration assets. |
| packages/release-cli/src/update_changelog.ts | Updates changelog heading links to support independent package release URLs. |
| packages/release-cli/src/steps/update_versions.ts | Passes package name into changelog update to build correct links. |
| packages/release-cli/src/independent_packages.ts | New helper to load independent packages and compute release URLs. |
| packages/illustrations/tsconfig.types.json | Adds TS config for declaration-only type output. |
| packages/illustrations/tsconfig.json | Adds base TS config for local typechecking (noEmit). |
| packages/illustrations/tsconfig.esm.json | Adds TS config for ESM build output. |
| packages/illustrations/src/types.ts | Defines the illustration data contract types. |
| packages/illustrations/src/svgs/dashboard.light.svg | Adds initial light-mode dashboard illustration SVG. |
| packages/illustrations/src/svgs/dashboard.dark.svg | Adds initial dark-mode dashboard illustration SVG. |
| packages/illustrations/src/index.ts | Exports generated assets and public types. |
| packages/illustrations/scripts/generate.js | Codegen script to optimize SVGs and generate typed modules/registry. |
| packages/illustrations/README.md | New package documentation (authoring/consuming/release instructions). |
| packages/illustrations/package.json | New package manifest, scripts, exports, and devDependencies. |
| packages/illustrations/licenses/SSPL-LICENSE.md | Adds SSPL license text for the new package. |
| packages/illustrations/licenses/ELASTIC-LICENSE-2.0.md | Adds Elastic License 2.0 text for the new package. |
| packages/illustrations/LICENSE.txt | Adds package-level license notice file. |
| packages/illustrations/changelogs/upcoming/_template.md | Adds upcoming changelog template for the new package. |
| packages/illustrations/changelogs/CHANGELOG_2026.md | Adds initial yearly changelog file for the new package (currently empty). |
| packages/illustrations/.gitignore | Ignores build outputs, tarballs, and generated sources. |
| packages/illustrations/.babelrc.js | Babel config for the CJS build step. |
| packages/eui/src/components/index.ts | Exports the new illustration component entry point. |
| packages/eui/src/components/illustration/index.ts | New barrel export for EuiIllustration and its types. |
| packages/eui/src/components/illustration/illustration.tsx | Implements EuiIllustration (theme-adaptive SVG inlining). |
| packages/eui/src/components/illustration/illustration.test.tsx | Adds RTL/Jest tests for rendering, color mode, and a11y behavior. |
| packages/eui/src/components/illustration/illustration.styles.ts | Adds Emotion styles for consistent SVG sizing/layout. |
| packages/eui/src/components/illustration/illustration.stories.tsx | Adds Storybook story wired to @elastic/eui-illustrations. |
| packages/eui/src/components/illustration/snapshots/illustration.test.tsx.snap | Snapshot output for the new component test. |
| packages/eui/package.json | Adds @elastic/eui-illustrations as a devDependency for stories/docs. |
| packages/eui/changelogs/upcoming/9779.md | Adds changelog entry documenting the new EuiIllustration component. |
| package.json | Renames release scripts from kebab-case to snake_case filenames. |
| .buildkite/scripts/pipelines/pipeline_test.sh | Treats packages/illustrations/ as “non-EUI paths” for skipping heavy EUI jobs. |
| .buildkite/scripts/deploy_docs/step_vrt.sh | Adds path-based VRT skipping rules (plus @elastic/eui-test-helpers). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c2c6664 to
fbb1327
Compare
fbb1327 to
1ea5ce0
Compare
| export const EuiIllustration: FunctionComponent<EuiIllustrationProps> = ({ | ||
| type, | ||
| alt, | ||
| className, | ||
| ...rest | ||
| }) => { | ||
| const { colorMode } = useEuiTheme(); | ||
| const styles = useEuiMemoizedStyles(euiIllustrationStyles); | ||
| const classes = classNames('euiIllustration', className); | ||
| const cssStyles = [styles.euiIllustration]; | ||
|
|
There was a problem hiding this comment.
Emotion Babel plugin merges css declarations so for Kibana's sake, the spread won't override our styles.
1ea5ce0 to
7937de3
Compare
There was a problem hiding this comment.
The component might need .test.env variant that instead of rendering SVG renders a simple span with an identifier. Okay to do later.
|
❓ I think the |
@weronikaolejniczak Actually no, please disregard this. I had switched branches and hence had files leftover, my mistake 🫠 |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
buildkite test this |
3 visual difference(s) found - expand to review, then click Approve visual changes to update baselineseuicodeblock (1 difference)
euisuperdatepicker (2 differences)
|
|
Bunch of flakes (unrelated) + a snapshot to update. No changes needed in this PR. |
| for i in "${!REL_TAGS[@]}"; do | ||
| echo -e " ${BOLD}${REL_TAGS[$i]}${RESET}" | ||
| git tag -a "${REL_TAGS[$i]}" "$MERGE_SHA" -m "${REL_TITLES[$i]}" | ||
| git push upstream "${REL_TAGS[$i]}" --no-verify | ||
| done |
There was a problem hiding this comment.
I believe pre-pending the tag with @elastic/eui would only confuse things because it's an aggregate one and may span several packages.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
mgadewoll
left a comment
There was a problem hiding this comment.
🟢 Thanks for the additional changes! LGTM 🚢
## Dependency updates `@elastic/eui` - v116.5.0 ⏩ v117.0.0 ## Changes - removes temporary custom styles in `src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx` (added previously in #273985) - removes custom icon usages passed via `children` on `EuiCallOut` to prevent duplication (callouts now have internal default icons per type) - updates tests and snapshots due to `EuiCallOut` changes ## Package updates ### `@elastic/eui` [`v117.0.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `EuiIllustration` for rendering SVG illustrations (e.g. from `@elastic/eui-illustrations`) that respond to the active EUI color mode ([#9779](elastic/eui#9779)) - Added `compressed` prop to `EuiSearchBar` to enable compact display mode for the search box and filter buttons ([#9743](elastic/eui#9743)) - Added `addToChat` glyph to `EuiIcon` ([#9768](elastic/eui#9768)) - Updated `EuiCallOut`: ([#9642](elastic/eui#9642)) - Updated component styles - Added `text` prop on `EuiCallOut` which renders the main, inline callout description text - use this instead of `children` where possible - Added `actionProps` prop on `EuiCallOut` which renders primary and secondary action buttons - Added `showErrorTooltip` (defaulting to `true`) to `EuiSearchBar` to allow consumers to opt-out of the built-in parse-error tooltip ([#9773](elastic/eui#9773)) **Bug fixes** - Fixed `EuiToast` cutting off absolute positioned content by removing `overflow: hidden`. ([#9791](elastic/eui#9791)) - Fixed `EuiFlyout` container-scoped flyouts shrinking below usable widths for named sizes `s` and `m` by applying minimum width floors derived from theme breakpoints ([#9787](elastic/eui#9787)) - Fixed `EuiSelectable` with group labels rendering options with stale heights ([#9770](elastic/eui#9770)) **Breaking changes** - Removed the `accent` variant for `color` on `EuiCallOut` ([#9642](elastic/eui#9642))
## Dependency updates `@elastic/eui` - v116.5.0 ⏩ v117.0.0 ## Changes - removes temporary custom styles in `src/core/packages/notifications/browser-internal/src/toasts/global_toast_list.tsx` (added previously in elastic#273985) - removes custom icon usages passed via `children` on `EuiCallOut` to prevent duplication (callouts now have internal default icons per type) - updates tests and snapshots due to `EuiCallOut` changes ## Package updates ### `@elastic/eui` [`v117.0.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added `EuiIllustration` for rendering SVG illustrations (e.g. from `@elastic/eui-illustrations`) that respond to the active EUI color mode ([elastic#9779](elastic/eui#9779)) - Added `compressed` prop to `EuiSearchBar` to enable compact display mode for the search box and filter buttons ([elastic#9743](elastic/eui#9743)) - Added `addToChat` glyph to `EuiIcon` ([elastic#9768](elastic/eui#9768)) - Updated `EuiCallOut`: ([elastic#9642](elastic/eui#9642)) - Updated component styles - Added `text` prop on `EuiCallOut` which renders the main, inline callout description text - use this instead of `children` where possible - Added `actionProps` prop on `EuiCallOut` which renders primary and secondary action buttons - Added `showErrorTooltip` (defaulting to `true`) to `EuiSearchBar` to allow consumers to opt-out of the built-in parse-error tooltip ([elastic#9773](elastic/eui#9773)) **Bug fixes** - Fixed `EuiToast` cutting off absolute positioned content by removing `overflow: hidden`. ([elastic#9791](elastic/eui#9791)) - Fixed `EuiFlyout` container-scoped flyouts shrinking below usable widths for named sizes `s` and `m` by applying minimum width floors derived from theme breakpoints ([elastic#9787](elastic/eui#9787)) - Fixed `EuiSelectable` with group labels rendering options with stale heights ([elastic#9770](elastic/eui#9770)) **Breaking changes** - Removed the `accent` variant for `color` on `EuiCallOut` ([elastic#9642](elastic/eui#9642))









Summary
Closes #9781
@elastic/eui-illustrationspackage. When merged, it will be ready to be published to npm using a fine-grained token. Then, we can configure trusted publishing for it and it will be a part of our regular release pipeline. It's versioned and releasable independently from@elastic/eui. For now it uses Dashboard as an example: [Dashboards] Update empty state kibana#269407EuiIllustrationcomponent to@elastic/euithat reads the source and inlines the appropriate SVG based on thecolorMode.Together, they can be used like so:
Additionally:
release-prepandrelease-publish: changed from kebab-case to snake_case, moved shared utilities torelease_lib, usedyarn workspacesinstead of listing all packages and made it possible to tag and create a GitHub Release for independent packages (@elastic/eui-illustrationsand@elastic/eslint-plugin-eui.@elastic/eui-illustrationsand VRT for both@elastic/eui-illustrationsand@elastic/eui-test-helpers.Important
This is supposed to be the first easy step. Feel free to share any ideas for the future and let's add them in next iterations 💪🏻
API Changes
EuiIllustrationcolorModeScreenshots
Storybook
Documentation website
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
🔴 Breaking changes — What will break? How many usages in Kibana/Cloud UI are impacted?💅 Visual changes — May impact style overrides; could require visual testing. Explain and estimate impact.🧪 Test impact — May break functional or snapshot tests (e.g., HTML structure, class names, default values).🔧 Hard to integrate — If changes require substantial updates to Kibana, please stage the changes and link them here.Impact level: 🟢 None
Release Readiness
Figma: {link to Figma or issue}Migration guide: {steps or link, for breaking/visual changes or deprecations}Adoption plan (new features): {link to issue/doc or outline who will integrate this and where}Kibana PR: elastic/kibana#276287 (based on elastic/kibana#269407)
QA instructions for reviewer
Setup
nvm use && yarnat repo root succeeds@elastic/eui-illustrationsyarn workspace @elastic/eui-illustrations buildsucceedssrc/svgs/contains only<name>.light.svg/<name>.dark.svgpairsyarn workspace @elastic/eui-illustrations generateregeneratessrc/generated(SVGO-optimized)foo.light.svg+foo.dark.svgand re-running generate exposesfooautomaticallysrc/generatedis git-ignored;*.tgzis git-ignoredversionis1.0.0;LICENSE.txt+licenses/present; license heading exists in all JS/TS fileschangelogs/CHANGELOG_2026.md+changelogs/upcoming/_template.mdexistEuiIllustrationcomponentyarn workspace @elastic/eui buildsucceeds@elastic/euitypeprop accepts an illustration sourcelightSVG in lightcolorMode,darkSVG in darkcolorModesizeprop)yarn test-unit src/components/illustrationpassesyarn lintcleanStorybook
yarn workspace @elastic/eui startbuilds with no errorsEuiIllustrationstory renders;typeselect switches illustrationsparameters.vrt.skip)Documentation website
yarn workspace @elastic/eui-website startbuilds with no errorsIllustrationGallery: search filters, selecting a card shows copyable code, spacing looks balanced in light + dark@elastic/eui-illustrationsEuiIllustrationaccessibilityCI / pipelines
@elastic/euibuild + VRT (test after merge)skip-vrtPR label also skips VRT (validated by this PR)Release scripts
yarn workspace @elastic/eui-release-cli buildbuilds with no errorsyarn release:prep --workspaces @elastic/eui-illustrations(dry-run) bumps only that package + opens PRKibana integration
@elastic/eui+@elastic/eui-illustrationsinstalled withfile:tarballs (yarn build-pack)yarn kbn bootstrap --no-validatesucceeds<EuiIllustration type={dashboardIllustration} />Checklist before marking Ready for Review
Breaking changes: Addedbreaking changelabel (if applicable)Reviewer checklist