Skip to content

RI-7213: replace EuiImage with img tag #4760

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

Open
wants to merge 7 commits into
base: fe/feature/RI-7039-replace-eui
Choose a base branch
from

Conversation

dantovska
Copy link
Collaborator

Simply replacing EuiImage with img tag, no difference visually.

Copilot

This comment was marked as outdated.

Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 81.46% 18829/23114
🟡 Branches 66.93% 8229/12295
🟡 Functions 75.18% 4916/6539
🟢 Lines 81.87% 18430/22511

Test suite run success

4829 tests passing in 632 suites.

Report generated by 🧪jest coverage report action from 76a8ac9

valkirilov
valkirilov previously approved these changes Jul 28, 2025
Copilot

This comment was marked as outdated.

@dantovska dantovska requested a review from valkirilov July 28, 2025 10:59
valkirilov
valkirilov previously approved these changes Jul 28, 2025
Copy link

@Copilot 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 replaces all instances of the EuiImage component from Elastic UI with a custom RiImage component. The change maintains visual consistency while replacing the external dependency with an internal implementation.

  • Removes EuiImage imports and replaces with RiImage from internal components
  • Creates a new RiImage component with size variants (s, m, l, xl, original, fullWidth)
  • Updates the display components index to export the new RiImage component

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
redisinsight/ui/src/pages/rdi/statistics/empty/Empty.tsx Replace EuiImage with RiImage for empty pipeline icon
redisinsight/ui/src/pages/rdi/home/empty-message/EmptyMessage.tsx Replace EuiImage with RiImage for empty message icon
redisinsight/ui/src/pages/home/components/empty-message/EmptyMessage.tsx Replace EuiImage with RiImage for database empty state
redisinsight/ui/src/pages/browser/components/virtual-tree/VirtualTree.tsx Replace EuiImage with RiImage for loading icon
redisinsight/ui/src/pages/browser/components/no-keys-found/NoKeysFound.tsx Replace EuiImage with RiImage for telescope image
redisinsight/ui/src/components/oauth/shared/oauth-advantages/OAuthAdvantages.tsx Replace EuiImage with RiImage for Redis logo
redisinsight/ui/src/components/oauth/oauth-sign-in-button/OAuthSignInButton.tsx Replace EuiImage with RiImage for sign-in button logo
redisinsight/ui/src/components/base/display/index.ts Export new RiImage component
redisinsight/ui/src/components/base/display/image/image.styles.ts Define styled components and types for RiImage
redisinsight/ui/src/components/base/display/image/RiImage.tsx Implement RiImage component

valkirilov
valkirilov previously approved these changes Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants