Open bbovenzi opened 1 year ago
@bbovenzi is this issue taken? I would like to try my hands here given some more reference material here.
@bbovenzi is this issue taken? I would like to try my hands here given some more reference material here.
Nope! It's all yours. Feel free to ask any questions here.
We'll probably want to make a new react component and put add it in the main grid view component here.
We'll want to refer to each RunTypeIcon
And we'll want to explain the gradient we use to indicate if there is a note
Hi, @bbovenzi I am new to Airflow and would like to get a few things clarified before starting.
You can refer to the legend row of dag run/task instance statuses. Basically, just a representation of each icon/gradient with a word or two next to it. We don't need an extra mom package. Just a simple react component.
@bbovenzi a follow-up on which legend row you meant here? Can you show me where the legend is here?
@amoghrajesh That is not the Gird view we are talking about -- this one is https://airflow.apache.org/docs/apache-airflow/stable/ui.html#grid-view
@ashb @bbovenzi coming back to this issue after some time. We are trying to add some legend to this page if I am not mistaken:
@bbovenzi is this issue still relevant?
Yes, I would say its still useful
Is that what you have in mind ? I haven't figured out yet how should the icon looks in point about a DAG runs with a note.
Something like that in a tooltip, yes! For notes, let's make a mock task instance and render the StatusWithNotes component
I've moved that list to DagRunTooltip.
I was considering putting that in a tooltip but I had an impression that it should be easily visible. That's why I put it first under the grid. Also tooltip already have information about run type (maybe we should add an icon like run type description in Details tab). Finally maybe it would be nice to highlight DAG runs of given type after hovering mouse on list item just like task statuses. Of course same with note.
No, definitely not in every single dag run tooltip. Once a user learns the icons, they don't need to be reminded every single time. Just an InfoTooltip component is fine I think.
But maybe we should add those icons to the run_type filters.
@bbovenzi I’ve prepared a few proposals based on your comments.
But maybe we should add those icons to the run_type filters.
It was not so trivial as I thought it'll be. Here are results. I’ve also added rendering StatusWithNotes next to a “Contains a note” text with the same status color as task instance/ DAG run tooltip originates from.
Just an InfoTooltip component is fine I think.
I’ve also made grid legend using InfoTooltip component placed over Grid component. This definitely needs some more tweaks.
In my opinion adding icons to run type options in filter plus rendering StatusWithNotes component in InstanceTooltip and DagRunTooltip should be sufficient. That way user will be getting familiar with the graphics gradually as they use these features. In that case adding InfoTooltip with whole legend seems redundant.
Is that looks good?
looking good! we may need to adjust the statuswith notes margins but otherwise its great!
Great! I’ll be unavailable for next few days now. I’ll tweaks things a bit, clean up code and prepare PR when I get back.
Description
It would be useful to add a simple legend to the grid view.
Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct