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

Allow custom icons for DefaultTaskGroup #240

Closed
jpuzz0 opened this issue Oct 18, 2024 · 6 comments
Closed

Allow custom icons for DefaultTaskGroup #240

jpuzz0 opened this issue Oct 18, 2024 · 6 comments
Assignees

Comments

@jpuzz0
Copy link

jpuzz0 commented Oct 18, 2024

A design requirement for Openshift AI is to allow for BanIcon to be used instead of the default 'Canceled' task icon.

Default presentation for DefaultTaskGroup for the 'Canceled' task node state:
Image

Desired outcome: The warning icon to be replaced by some user defined icon.

The ability to overwrite the mapping for what icons map to what RunStatus at a broader level in a topology view could also be a solution to this problem.

@dlabaj
Copy link
Contributor

dlabaj commented Oct 18, 2024

@jenny-s51 @jpuzz0 Do you know the urgency of this issue?

@jenny-s51
Copy link
Collaborator

jenny-s51 commented Oct 18, 2024

Hi @jpuzz0 ! Topology currently provides support for a customStatusIcon that you can use in TaskNode.tsx.

You can see an example of this in action in our demo app (look for Pipelines -> Task Nodes), where the BanIcon is passed in to the "Custom Status Icon Task" node:

status: RunStatus.Failed,
customStatusIcon: <BanIcon />,

Does this help with your use case?

@jpuzz0
Copy link
Author

jpuzz0 commented Oct 21, 2024

@jenny-s51 I don't think so. I'm using DefaultTaskGroup, not TaskNode. I have no issue with using custom icons for TaskNode.

@jpuzz0
Copy link
Author

jpuzz0 commented Oct 21, 2024

@dlabaj

@jenny-s51 @jpuzz0 Do you know the urgency of this issue?

I would consider it normal urgency

@andrewballantyne
Copy link

@dlabaj

@jenny-s51 @jpuzz0 Do you know the urgency of this issue?

I would consider it normal urgency

@jpuzz0 and I talked about this in Standup. I feel this is a bit higher than normal as it is confusing to the user to "what is the feedback you want me to get from the warning". I would not consider this critical, but in there is a status between normal and critical I feel it is probably that. Better to fix this than let it linger imo.

@jenny-s51
Copy link
Collaborator

Closed via #246

@github-project-automation github-project-automation bot moved this from Needs info to Done in PatternFly Issues Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

5 participants