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
+9 -7
View File
@@ -100,19 +100,21 @@ export default function DashboardView() {
return (
<>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '20px' }}>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: '20px',
}}
>
<SectionHeader title="Polaris — Overview" />
{data && (
<div style={{ display: 'flex', gap: '16px', alignItems: 'center' }}>
<span style={{ fontSize: '14px', color: 'var(--mui-palette-text-secondary, #666)' }}>
Last updated: {formatAuditTime(data.AuditTime)}
</span>
<Button
variant="outlined"
startIcon={<RefreshIcon />}
onClick={refresh}
size="small"
>
<Button variant="outlined" startIcon={<RefreshIcon />} onClick={refresh} size="small">
Refresh
</Button>
</div>