-
Notifications
You must be signed in to change notification settings - Fork 605
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
Update Event Sources Visualization and SideBar #10721
Conversation
/kind feature |
/cc @sahil143 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ff76ac2
to
c43a934
Compare
@@ -45,6 +46,7 @@ const SvgBoxedText: React.FC<SvgBoxedTextProps> = ({ | |||
y = 0, | |||
kind, | |||
typeIconClass, | |||
typeIcon, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) && ( |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just verifying this change is needed right as we below https://github.com/openshift/console/pull/10721/files#diff-d1a68270878fe2df06bb4a025e09188cf6693875dae259d2f912f5702349a7adR59
x={x - iconWidth}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c43a934
to
884c102
Compare
@debsmita1 outline can be seen on the newly added icon but not on the existing one i.e observed on mac, chrome will be good to have and just confirm if we need to show a tooltip here i.e |
884c102
to
8cfcf4b
Compare
<TopologyListViewNode | ||
noPods | ||
{...props} | ||
badgeCell={props.item.getType() === 'event-source' ? badgeCell : null} |
There was a problem hiding this comment.
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
?
badgeCell={props.item.getType() === 'event-source' ? badgeCell : null} | |
badgeCell={props.item.getType() === NodeType.EventSource ? badgeCell : null} |
8cfcf4b
to
270e94c
Compare
Removed the tooltip |
@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? |
270e94c
to
7df491c
Compare
There was a problem hiding this 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
/approve Thanks have verified the changes, works as expected. |
There was a problem hiding this 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
[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 |
/label docs-approved |
Verified it on cluster bot. And it works as expected. /label qe-approved |
@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. |
Jira ticket:
https://issues.redhat.com/browse/ODC-6446
Solution description:
Screenshots: