YeonShin commented on issue #66959:
URL: https://github.com/apache/airflow/issues/66959#issuecomment-4457959805
Hi @yuqili-newsbreak! Thanks for reporting this issue.
I was able to reproduce the issues you mentioned locally. Here is what I
found:
1. In the Total Runs metric, cells are colored green purely based on the
execution count, regardless of whether the runs succeeded or failed.
2. Looking at `CalendarTooltip.tsx`, there is no color swatch defined for
the `Queued` state at all.
3. Additionally, I noticed that the `Running` state is also being rendered
as green.
Here is my proposed solution:
1. Mixed State Coloring: When success and failed runs are mixed in the same
hour, we can display a mixed-color cell (e.g., split green/red). We already
have similar logic in the codebase for mixed `planned` and `actual` states,
which we can extend.
- What if there are 3 or more states? (e.g., 3 Success, 2 Failed, 1
Queued): In this case, we can pick the top 2 most frequent states (Success and
Failed in this example) and mix their colors to keep the UI clean and readable.
2. Queued State Color: Define a specific, distinct color swatch/token for
the `queued` state.
I'm working on it! I'll try to put together a draft PR with these changes so
we can discuss the visual updates.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]