UI: Update how we badge code intelligence results
Created by: efritz
Fixes #17582 (closed). Fixes #18929 (closed). Fixes #18930 (closed). Fixes #18931 (closed).
To (web) reviewers:
The idea here is to extend the Badged<T>
type with another field. Where the old definition specifies only an optional BadgeAttachmentRenderOptions, the new definition allows any Badged<T>
to also supply a list of aggregableTags
, which are opaque strings. These tags are not meant to be displayed per item, but are meant to be aggregated en masse and displayed for a result set (e.g. all results within the same file).
The big change here is the update of the Badged<T>
definition and the introduction of Badge
. All other changes fall from that in an obvious way.
Screenies:
TODO:
-
Ensure all issue tasks are handled -
Bump + publish extension types -
Update https://github.com/sourcegraph/code-intel-extensions/pull/580