Display badge on blocked & blocking issues #35004
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR supersedes #29117 by offering a more simplistic approach to the problem. Any issue / PR that is blocked by another issue / PR, or is blocking one or more issues / PRs now has a badge displayed next to it indicating as such, right before the labels.
Both cases are represented by different icons, so it is easy to see at a glance which issues / PRs require attention more urgently than others (look for the ones that are blocking the most).
Only open issues / PRs are considered for determining blocking items, and closed issues / PRs cannot "block" anything anymore, but can still be "blocked by" something, in case an issue was closed due to being cancelled as opposed to implemented.
In the future, we might even think about adding a tooltip that lists the individual issues that are blocking / blocked.
Closes #29018
Screenshots
Issue List (Repo)
PR List (Repo)
Issue List (Global)
Unresolved questions
Is🤔style="background: none;"
fine? It feels hacky, and like there should be a better way without adding a whole new class