foreman_remote_execution icon indicating copy to clipboard operation
foreman_remote_execution copied to clipboard

Fixes #38295 - Make the chart clickable and show tooltip

Open kmalyjur opened this issue 10 months ago • 6 comments

kmalyjur avatar Mar 17 '25 17:03 kmalyjur

This will probably need some adjustments (maybe for pf5?), when I try this on top of latest master I'm getting this when visiting the page

image

adamruzicka avatar Mar 18 '25 12:03 adamruzicka

@adamruzicka in future, could you attach the whole error? as the screenshot just tells us that there is an error and all of its details are above the text you screenshotted :) (I'm also looking into this error) I suggest we pause this fix until we get the charts to pf5 so we can use our time better. (this might happen after removing foreman-js)

MariaAga avatar Mar 24 '25 17:03 MariaAga

Right, sorry about that. When I try again there's also this (and nothing else). The errors are interleaved with various other things, I must have scrolled past this one previously, I don't really recall seeing it before

image

adamruzicka avatar Mar 25 '25 08:03 adamruzicka

yeah so renderInPortal={false} dealt with that cause then it just didnt render he portal so it couldnt create errors, but I guess there was a reason why things should be in the portal? :shrug:

MariaAga avatar Mar 25 '25 12:03 MariaAga

At the risk of sounding dumb, what is a portal in this context?

adamruzicka avatar Mar 27 '25 08:03 adamruzicka

No idea, some internal things for charts it seems? PF docs say:

When renderInPortal is true, rendered tooltips will be wrapped in VictoryPortal and rendered within the Portal element within ChartContainer.

Just know that it causes errors

MariaAga avatar Mar 27 '25 11:03 MariaAga

The chart should be working correctly now.

  • The tooltip is on purpose at the top of the chart, so it doesn't cause any issues and doesn't get cropped.

  • Title in JobInvocationConstants.js changed to title: ' ' to fix this: image

  • Changes in TemplateInvocation.js were made to fix this: image

kmalyjur avatar Apr 23 '25 13:04 kmalyjur

@MariaAga I resolved the conflict, could you please re-review it now? 😁

kmalyjur avatar Jun 10 '25 12:06 kmalyjur

Edge case: If I choose from the chart "failed" and then change the filter in the table to "Succeeded" and then choose from the the chart failed again it doesnt change selection.

@MariaAga Nice catch, thank you. It's fixed now.

kmalyjur avatar Jun 13 '25 16:06 kmalyjur

@adamruzicka could you please merge it?

kmalyjur avatar Jun 16 '25 09:06 kmalyjur

Thank you @kmalyjur !

adamruzicka avatar Jun 16 '25 09:06 adamruzicka