Skip to content

k8s-ui: label the expanded issue categories (fix acronym title-casing)#920

Merged
nadaverell merged 1 commit into
mainfrom
fix/issue-category-labels
Jun 14, 2026
Merged

k8s-ui: label the expanded issue categories (fix acronym title-casing)#920
nadaverell merged 1 commit into
mainfrom
fix/issue-category-labels

Conversation

@nadaverell

@nadaverell nadaverell commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Summary

The Issues catalog grew to ~49 categories, but categoryLabel's CATEGORY_LABEL map in severity.ts was never extended to match. The 10 newest categories fell through to the generic humanize() fallback, which title-cases the snake_case key and mangles acronyms — pv_failed rendered as "Pv failed", pvc_resize_failed as "Pvc resize failed", while the older pvc_pending correctly showed "PVC pending". This is visible anywhere the label is shown (the Radar Hub Issues settings registry + the fleet Issues queue).

What changed

Added explicit labels for the 10 unmapped categories with correct casing: pv_failed → "PV failed", pvc_resize_failed → "PVC resize failed", apiservice_unavailable → "APIService unavailable", plus secret_sync_failed, load_balancer_pending, gateway_not_ready, gateway_route_invalid, node_provisioning_failed, crossplane_reconcile_failed, termination_stuck. The map is now complete against the catalog (no category falls back to title-casing).

Testing

Cross-checked every catalog category key against the map — all 49 now have an explicit label.

Notes

Consumed by radar-hub-web (the Issues settings/queue). It needs a @skyhook-io/k8s-ui publish + a pin bump there before the corrected labels reach that UI.

categoryLabel's CATEGORY_LABEL map was missing 10 categories from the issues
catalog expansion (pv_failed, pvc_resize_failed, secret_sync_failed,
load_balancer_pending, gateway_not_ready, gateway_route_invalid,
node_provisioning_failed, apiservice_unavailable, crossplane_reconcile_failed,
termination_stuck). They fell back to generic title-casing that mangled
acronyms — 'Pv failed', 'Pvc resize failed'. Add explicit labels with correct
casing (PV / PVC / APIService) so the Issues registry + queue render right.
@nadaverell nadaverell requested a review from hisco as a code owner June 14, 2026 14:31
@nadaverell nadaverell merged commit 0c82dea into main Jun 14, 2026
9 checks passed
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.

1 participant