From f9352617b0122263520a43ea699a7330d6a8ce25 Mon Sep 17 00:00:00 2001 From: NixReaper Date: Sun, 12 Apr 2026 04:51:10 -0500 Subject: [PATCH] fix(nixserver): widen SectionCard icon prop to accept Lucide components Lucide icons type size as string | number but SectionCardProps declared size as number only, causing TS2322 and failing the nixserver build. --- CHANGELOG.md | 7 +++++++ nixserver/src/components/SectionCard.tsx | 2 +- package.json | 2 +- server/src/app.ts | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93cfac7..216260e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ Pre-1.0 versions treat MINOR as feature releases and PATCH as bug fixes. --- +## [0.6.4] — 2026-04-12 + +### Bug Fixes +- **`SectionCard.tsx` TypeScript build error** — `icon` prop typed as `ComponentType<{ size?: number }>` but Lucide icons declare `size?: string | number`. Widened the prop type to `size?: number | string` to match Lucide's `LucideProps`. + +--- + ## [0.6.3] — 2026-04-12 ### Bug Fixes diff --git a/nixserver/src/components/SectionCard.tsx b/nixserver/src/components/SectionCard.tsx index bf53f24..01b7997 100644 --- a/nixserver/src/components/SectionCard.tsx +++ b/nixserver/src/components/SectionCard.tsx @@ -5,7 +5,7 @@ interface SectionCardProps { label: string description?: string to: string - icon?: ComponentType<{ size?: number; className?: string }> + icon?: ComponentType<{ size?: number | string; className?: string }> comingSoon?: boolean } diff --git a/package.json b/package.json index ee2827d..835f35d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nixpanel-server", - "version": "0.6.3", + "version": "0.6.4", "private": true, "workspaces": [ "server", diff --git a/server/src/app.ts b/server/src/app.ts index 6cec904..2d3f55c 100644 --- a/server/src/app.ts +++ b/server/src/app.ts @@ -73,7 +73,7 @@ export async function buildApp() { fastify.get('/api/health', async () => ({ status: 'ok', - version: '0.6.3', + version: '0.6.4', timestamp: new Date().toISOString(), }))