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

[HMS-5265]: Replace edge widget with a new image-builder #655

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amirfefer
Copy link
Member

Description

This PR replaces the outdated Edge service widget with a new widget showcasing the "Image Builder" service. The updated widget should provide a clear, concise description of Image Builder's capabilities and include a link for the service.


Screenshots

Before:

Screenshot 2025-01-07 at 13 36 00

After:

Screenshot 2025-01-07 at 12 54 39


Checklist ☑️

  • PR only fixes one issue or story
  • Change reviewed for extraneous code
  • UI best practices adhered to
  • Commits squashed and meaningfully named
  • All PR checks pass locally (build, lint, test, E2E)

  • (Optional) QE: Needs QE attention (OUIA changed, perceived impact to tests, no test coverage)
  • (Optional) QE: Has been mentioned
  • (Optional) UX: Needs UX attention (end user UX modified, missing designs)
  • (Optional) UX: Has been mentioned

@amirfefer amirfefer requested a review from a team as a code owner January 7, 2025 11:44
@@ -1,17 +1,17 @@
import React from 'react';
import { SimpleServiceWidget } from './simple-service-widget';

const EdgeWidget: React.FunctionComponent = () => {
const ImagesWidget: React.FunctionComponent = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

since you added a new widget in a separate file, I don't think we need to keep this one any longer.

you will also need to add the new widget to the dashboard.cy.ts cypress E2E test.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @aferd 👍
I removed Edge
Also I updated the dashboard template
RedHatInsights/chrome-service-backend#749

fec.config.js Outdated
@@ -45,9 +45,9 @@ module.exports = {
__dirname,
'src/components/widgets/explore-capabilities.tsx'
),
'./EdgeWidget': path.resolve(
Copy link
Contributor

@Hyperkid123 Hyperkid123 Jan 13, 2025

Choose a reason for hiding this comment

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

If we remove the widget, it will break existing dashboards as they will still reference the old one. We need both widgets until a migration is done to customized dashboard.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense, let's keep these two widget and update just the default dashboard layout.

Copy link
Contributor

@Hyperkid123 Hyperkid123 left a comment

Choose a reason for hiding this comment

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

The e2e tests will fail until the default layout is updated and published.

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