From 481aba40023b81cc737fb3a8dd7f6ab22656bf3e Mon Sep 17 00:00:00 2001 From: rafi Date: Thu, 2 Apr 2026 10:01:06 +0200 Subject: [PATCH 1/4] Fix ecosystem value for Go in PackageSearch component Signed-off-by: rafi --- src/components/package-inspector/PackageSearch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/package-inspector/PackageSearch.tsx b/src/components/package-inspector/PackageSearch.tsx index 25ba9e7..6b77de3 100644 --- a/src/components/package-inspector/PackageSearch.tsx +++ b/src/components/package-inspector/PackageSearch.tsx @@ -8,7 +8,7 @@ const ECOSYSTEMS = [ { label: 'Crates.io', value: 'crates.io' }, { label: 'Debian', value: 'debian' }, { label: 'Git', value: 'git' }, - { label: 'Go', value: 'go' }, + { label: 'Go', value: 'golang' }, { label: 'Hex', value: 'hex' }, { label: 'Maven', value: 'maven' }, { label: 'npm', value: 'npm' }, From f65f21dd4299b88611ad831141cc6712c4a6ca54 Mon Sep 17 00:00:00 2001 From: rafi Date: Thu, 2 Apr 2026 15:59:31 +0200 Subject: [PATCH 2/4] Refactor Package Inspector and Vulnerability Database components Signed-off-by: rafi --- src/components/package-inspector/Hero.tsx | 73 ++++++++++--------- .../PackageInspectorPage.tsx | 2 +- .../package-inspector/PackageSearch.tsx | 6 +- .../package-inspector/VulnerabilityList.tsx | 10 +-- src/components/package-inspector/purlPage.tsx | 10 --- src/components/ui/input.tsx | 2 +- src/components/ui/lightRays.tsx | 43 +++++++++++ .../vulnerability-database/cve-detail.tsx | 12 +-- .../vulnerability-database/hero.tsx | 34 ++------- .../vulnerability-database/radar-chart.tsx | 2 +- .../vulnerability-database-page.tsx | 7 +- src/styles/globals.css | 13 ++++ src/theme-config.tsx | 14 ++-- 13 files changed, 120 insertions(+), 108 deletions(-) create mode 100644 src/components/ui/lightRays.tsx diff --git a/src/components/package-inspector/Hero.tsx b/src/components/package-inspector/Hero.tsx index 3031d17..84e2f3a 100644 --- a/src/components/package-inspector/Hero.tsx +++ b/src/components/package-inspector/Hero.tsx @@ -3,6 +3,7 @@ import { HeroSection } from '@/components/ui/hero-input' import AnimatedContent from '@/components/ui/animated-content' import CenterFlow from '@/components/animated-blocks/center-flow' import PackageSearch from '@/components/package-inspector/PackageSearch' +import LightRaysComponent from '../ui/lightRays' const ECOSYSTEM_NODES = [ { src: '/icons/eco-logos/npm-icon.svg', alt: 'npm' }, @@ -56,8 +57,8 @@ export function PackageInspectorHero({ isSearching, }: PackageInspectorHeroProps) { return ( -
-
+
+
- - -
- -
-
+
+ +
+ +
+
+
+
) } diff --git a/src/components/package-inspector/PackageInspectorPage.tsx b/src/components/package-inspector/PackageInspectorPage.tsx index 17db825..b1802b2 100644 --- a/src/components/package-inspector/PackageInspectorPage.tsx +++ b/src/components/package-inspector/PackageInspectorPage.tsx @@ -38,7 +38,7 @@ export function PackageInspectorPage() { } return ( - +
{isSearching ? ( @@ -169,14 +169,14 @@ export default function PackageSearch({ setLocalError(null) }} placeholder="pkg:eco/name@version" - className="placeholder:text-muted-foreground h-12 min-w-0 flex-1 rounded-l-md bg-transparent pr-2.5 pl-3 text-base outline-none md:text-lg" + className="placeholder:text-muted-foreground h-12 min-w-0 flex-1 rounded-l-md bg-transparent pr-2.5 pl-3 text-base outline-none" disabled={isSearching} autoFocus={autoFocus} />
) @@ -235,11 +230,6 @@ export default function PurlPageComponent({ purl }: { purl?: string }) { {/* Bottom buttons */}
-
) @@ -502,7 +497,7 @@ export default function CVEDetailComponent({ cveId }: { cveId?: string }) {
-

+

{data.description}

{!descExpanded && ( @@ -667,11 +662,6 @@ export default function CVEDetailComponent({ cveId }: { cveId?: string }) { {/* Bottom buttons */}
-