alloy icon indicating copy to clipboard operation
alloy copied to clipboard

Flow UI: Show a graph of the components loaded by modules

Open ptodev opened this issue 6 months ago • 5 comments

Request

If you load a module using a component such as module.string, the UI does not show the sub-graph which module.string loaded, with all of its internal Flow components. It would be nice if this is visible in the UI.

Use case

Ease of use.

ptodev avatar Jan 16 '24 11:01 ptodev

I could tackle this. Please help assign 😄

hainenber avatar Jan 16 '24 13:01 hainenber

Hi @hainenber! Thank you so much, but there are a couple of problems with this task:

  • It might be a lot of work. Or it might not. I really don't know 😅
  • I am not sure what the UI should look like when modules are visualised.
    • Should the sub graph be displayed inside the module component's box? This would seem most natural.
    • Alternatively, maybe it can be displayed on the side, or in a different location on the page (e.g. in a tab)? This could potentially be an easier implementation.
    • It would be good to get consensus from the team before tackling this.
  • If this is a lot of work, then it would be best to see if we want to tackle grafana/alloy#514 first.

I put in a comment on grafana/alloy#514 to ask why it's even raised in the first place. Let's wait for now, to see what the reply is. If grafana/alloy#514 is really important, maybe it's be best not to invest too much time in the current visualisation. In that case we'd have to tackle grafana/alloy#275 after grafana/alloy#514.

ptodev avatar Jan 16 '24 15:01 ptodev

Aight, thanks for the heads up!

I'll try making a PoC to gauge feedbacks firstly then.

Maybe not assign me that early 🤭

hainenber avatar Jan 16 '24 15:01 hainenber

This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it. If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue. The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity. Thank you for your contributions!

github-actions[bot] avatar Feb 16 '24 00:02 github-actions[bot]

I've drafted a PoC in the linked PR

There would be a new Graph option on left side image

, which redirects to a new page depicting the graph image

Wdyt?

hainenber avatar Feb 16 '24 15:02 hainenber