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

Update Event Sources Visualization and SideBar #10721

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

debsmita1
Copy link
Contributor

@debsmita1 debsmita1 commented Dec 22, 2021

Jira ticket:
https://issues.redhat.com/browse/ODC-6446

Solution description:

  • added 'sign-out-alt' icon to the event source node
  • On SideBar, 'Sink URI' Heading is replaced with 'Target URI'
  • On SideBar, 'Sink' Heading is replaced with 'Input Target'
  • On create Event Source form 'Sink' Section Heading is updated to 'Input Target' and the description is changed to "Add an input target to route this Event source to a Channel, Broker, Knative Service or another route."

Screenshots:
sb
es-form
sbi

@debsmita1
Copy link
Contributor Author

/kind feature

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 22, 2021
@openshift-ci openshift-ci bot added component/knative Related to knative-plugin component/topology Related to topology kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated labels Dec 22, 2021
@debsmita1
Copy link
Contributor Author

/cc @sahil143

@openshift-ci openshift-ci bot requested a review from sahil143 December 22, 2021 18:36
Copy link
Contributor

@sahil143 sahil143 left a comment

Choose a reason for hiding this comment

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

Looks good overall but the icon is not properly centered and the white circle is also not properly aligned

image

@debsmita1
Copy link
Contributor Author

Looks good overall but the icon is not properly centered and the white circle is also not properly aligned

image

Fixed it. PTAL

@@ -45,6 +46,7 @@ const SvgBoxedText: React.FC<SvgBoxedTextProps> = ({
y = 0,
kind,
typeIconClass,
typeIcon,
Copy link
Member

Choose a reason for hiding this comment

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

can't we use the existing prop we have here i.e typeIconClass instead of introducing a new one?

cc @sahil143

Copy link
Contributor Author

Choose a reason for hiding this comment

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

typeIconClass accepts svg & in this case, we want to pass the react element

@@ -83,13 +92,14 @@ const SvgBoxedText: React.FC<SvgBoxedTextProps> = ({
kind={kind}
/>
)}
{textSize && iconSize && typeIconClass && (
{textSize && iconSize && (typeIconClass || typeIcon) && (
Copy link
Member

Choose a reason for hiding this comment

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

we can have this in const and avoid repeating typeIconClass || typeIcon

<g ref={typedIconRef}>
<foreignObject
key={`image-${FILTER_ID}`}
x={-iconWidth}
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did x={x - iconWidth + 3}
Screenshot from 2021-12-30 15-23-59

@invincibleJai
Copy link
Member

invincibleJai commented Dec 30, 2021

@debsmita1 outline can be seen on the newly added icon but not on the existing one i.e

image

image

observed on mac, chrome

will be good to have outline: none

and just confirm if we need to show a tooltip here i.e Input Target

@invincibleJai
Copy link
Member

another observation is icon is shown for ksvc, helm in list view as well which is not reflected in case of event sources

image

@debsmita1
Copy link
Contributor Author

another observation is icon is shown for ksvc, helm in list view as well which is not reflected in case of event sources

image

Done
Screenshot from 2021-12-30 18-53-36

<TopologyListViewNode
noPods
{...props}
badgeCell={props.item.getType() === 'event-source' ? badgeCell : null}
Copy link
Member

Choose a reason for hiding this comment

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

Can we make use of NodeType enum instead of hardcoding event-source?

Suggested change
badgeCell={props.item.getType() === 'event-source' ? badgeCell : null}
badgeCell={props.item.getType() === NodeType.EventSource ? badgeCell : null}

@debsmita1
Copy link
Contributor Author

and just confirm if we need to show a tooltip here i.e Input Target

Removed the tooltip

@vikram-raj
Copy link
Member

@debsmita1 outline can be seen on the newly added icon but not on the existing one i.e

image

@invincibleJai I am not seeing an outline on the icon. I am on Mac and Chrome Version 96.0.4664.110. I checked it by clicking on icon. Is there any other way to reproduce it?

image

Copy link
Member

@vikram-raj vikram-raj left a comment

Choose a reason for hiding this comment

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

Verified it and works as expected.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 30, 2021
@invincibleJai
Copy link
Member

/approve

Thanks have verified the changes, works as expected.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 4, 2022
Copy link
Contributor

@sahil143 sahil143 left a comment

Choose a reason for hiding this comment

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

/lgtm
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Jan 5, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: debsmita1, invincibleJai, sahil143, vikram-raj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@debsmita1
Copy link
Contributor Author

/label docs-approved
/label px-approved

@openshift-ci openshift-ci bot added docs-approved Signifies that Docs has signed off on this PR px-approved Signifies that Product Support has signed off on this PR labels Jan 5, 2022
@vikram-raj
Copy link
Member

Verified it on cluster bot. And it works as expected.

/label qe-approved

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2022

@debsmita1: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 30f819d into openshift:master Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/knative Related to knative-plugin component/topology Related to topology docs-approved Signifies that Docs has signed off on this PR kind/feature Categorizes issue or PR as related to a new feature. kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants