You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(navigation): make kindToPlural idempotent on 'hpas' shortname
Bugbot HIGH: kindToPlural('hpas') was falling through to
englishPlural which appends 'es' (trailing s) → 'hpases', which
matched nothing in KNOWN_KINDS or the dispatch table. Since
ResourcesSidebar uses { kind: 'hpas' } as a primary key (the
dispatch even hard-codes 'hpas' || 'horizontalpodautoscalers' for
HPARenderer), clicking HPAs from the sidebar silently rendered
nothing — the same 'URL updates but no detail panel' regression
this PR set out to fix for CronJobs.
Add 'hpas' to BUILTIN_PLURAL_TO_KIND so kindToPlural('hpas')
hits the idempotence path and returns unchanged. Pin with a
regression test referencing the dispatch coupling.
Also: extract formatZoomLabel to packages/k8s-ui/src/utils/zoom-label.ts
so the test imports the production implementation instead of
duplicating it (the inline copy gave no regression protection).
TimelineSwimlanes re-exports from the new shared module.
Strip SKY-826 / bug-9 trailers from the renderer-dispatch comments
per CLAUDE.md (same pattern flagged on #584 / #572).
Made-with: Cursor
0 commit comments