Skip to content

Conversation

@amishne
Copy link
Contributor

@amishne amishne commented Dec 11, 2025

This adds a new graph that appears when running with a repair attempt value greater than 1. It shows the distribution among the applications of how many repairs were needed for them. Screenshot below.

  • The graph is made to accommodate repair counts up to 9 while still not reusing graph colors.
  • The new graph also lists the average.
  • Both the graph itself and the average are not entirely trivial to understand by name so an info icons with tooltips are added for both.
image

@amishne amishne force-pushed the num-builds branch 2 times, most recently from a28fb5d to 0769518 Compare December 11, 2025 23:11
@amishne amishne marked this pull request as ready for review December 11, 2025 23:16
return count > 0 ? totalRepairs / count : null;
});

protected repairAttemptsAsGraphData = computed<StackedBarChartData>(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd propose moving most of the logic from this function (and maybe also the function above) to a new function outside of this class (to keep the class as simple as possible).

Comment on lines +42 to +45
--chart-grade-1: #10b981; /* Emerald 500 (Excellent) */
--chart-grade-2: #22c55e; /* Green 500 */
--chart-grade-3: #4ade80; /* Green 400 */
--chart-grade-4: #84cc16; /* Lime 500 (Great) */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should avoid using green colors for this graph. We can also reduce the number of attempts that we render individually to 5 and collect the remaining ones into a separate bucket (and use the "over 5 attempts" text for it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants