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:
+2
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user