fix: resolve TypeScript compilation errors and failing tests

- Update registerDetailsViewSection and registerAppBarAction calls to match new Headlamp plugin API (single argument)
- Add SimpleTable mock to DashboardView tests
- Fix all TypeScript compilation errors
- All 50 tests now passing

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
2026-02-11 21:47:32 -05:00
parent a18710ccb1
commit cab2118a88
7 changed files with 73 additions and 36 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ registerRoute({
registerPluginSettings('polaris', PolarisSettings);
// Register details view section for supported controller types
registerDetailsViewSection('polaris-audit', ({ resource }) => {
registerDetailsViewSection(({ resource }) => {
const supportedKinds = ['Deployment', 'StatefulSet', 'DaemonSet', 'Job', 'CronJob'];
if (!supportedKinds.includes(resource?.kind)) {
@@ -84,7 +84,7 @@ registerDetailsViewSection('polaris-audit', ({ resource }) => {
});
// Register app bar score badge
registerAppBarAction('polaris-score', () => (
registerAppBarAction(() => (
<PolarisDataProvider>
<AppBarScoreBadge />
</PolarisDataProvider>