Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions go-core/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/chai2010/gettext-go v1.0.2 // indirect
github.com/containerd/containerd v1.7.30 // indirect
github.com/containerd/containerd v1.7.32 // indirect
github.com/containerd/errdefs v1.0.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/platforms v1.0.0-rc.2 // indirect
Expand Down Expand Up @@ -87,7 +87,7 @@ require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jmoiron/sqlx v1.4.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.18.1 // indirect
github.com/klauspost/compress v1.18.6 // indirect
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
github.com/lib/pq v1.10.9 // indirect
Expand Down Expand Up @@ -150,7 +150,7 @@ require (
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/oauth2 v0.35.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sync v0.20.0
golang.org/x/sys v0.42.0 // indirect
golang.org/x/term v0.41.0 // indirect
golang.org/x/text v0.35.0 // indirect
Expand All @@ -164,11 +164,11 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.35.2
k8s.io/apiserver v0.35.2 // indirect
k8s.io/cli-runtime v0.35.1 // indirect — TODO: upgrade to v0.35.x alongside kubectl to resolve k8s minor-version skew (used only by Helm CLI, unrelated to apiextensions path)
k8s.io/cli-runtime v0.35.1 // indirect; indirect — TODO: upgrade to v0.35.x alongside kubectl to resolve k8s minor-version skew (used only by Helm CLI, unrelated to apiextensions path)
k8s.io/component-base v0.35.2 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/klog/v2 v2.130.1
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
k8s.io/kubectl v0.35.1 // indirect — TODO: upgrade to v0.35.x (see cli-runtime above)
k8s.io/kubectl v0.35.1 // indirect; indirect — TODO: upgrade to v0.35.x (see cli-runtime above)
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
oras.land/oras-go/v2 v2.6.0 // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
Expand Down
8 changes: 4 additions & 4 deletions go-core/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ github.com/chai2010/gettext-go v1.0.2 h1:1Lwwip6Q2QGsAdl/ZKPCwTe9fe0CjlUbqj5bFNS
github.com/chai2010/gettext-go v1.0.2/go.mod h1:y+wnP2cHYaVj19NZhYKAwEMH2CI1gNHeQQ+5AjwawxA=
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE=
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb/go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4=
github.com/containerd/containerd v1.7.30 h1:/2vezDpLDVGGmkUXmlNPLCCNKHJ5BbC5tJB5JNzQhqE=
github.com/containerd/containerd v1.7.30/go.mod h1:fek494vwJClULlTpExsmOyKCMUAbuVjlFsJQc4/j44M=
github.com/containerd/containerd v1.7.32 h1:S54xuVcPxeLaYgaRABtpJ2VyVUVsy0IGf7qHBs+sbY8=
github.com/containerd/containerd v1.7.32/go.mod h1:jdwD6s/BhV4XVJGrvtziNPVA+83n66TwptVaPKprq4E=
github.com/containerd/errdefs v1.0.0 h1:tg5yIfIlQIrxYtu9ajqY42W3lpS19XqdxRQeEwYG8PI=
github.com/containerd/errdefs v1.0.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M=
github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=
Expand Down Expand Up @@ -201,8 +201,8 @@ github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co=
github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0=
github.com/klauspost/compress v1.18.6 h1:2jupLlAwFm95+YDR+NwD2MEfFO9d4z4Prjl1XXDjuao=
github.com/klauspost/compress v1.18.6/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
Expand Down
115 changes: 24 additions & 91 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@
},
"filelist": {
"brace-expansion": "^2.0.3"
},
"minimatch": {
"brace-expansion": "^5.0.6"
}
},
"dependencies": {
Expand All @@ -144,7 +147,7 @@
"electron-updater": "^6.8.3",
"js-yaml": "^4.1.0",
"react-window": "^2.2.7",
"ws": "^8.19.0"
"ws": "^8.21.0"
},
"devDependencies": {
"@electron-toolkit/tsconfig": "^1.0.1",
Expand Down
41 changes: 3 additions & 38 deletions src/renderer/components/panels/NetworkPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,6 @@ function GraphDefs() {
</feMerge>
</filter>

{/* Node Gradients for 3D effect */}
{KIND_DEFS.map(k => (
<radialGradient key={k.filterKey} id={`grad-${k.filterKey}`} cx="30%" cy="30%" r="70%">
<stop offset="0%" stopColor="white" stopOpacity="0.4" />
<stop offset="100%" stopColor={k.color} stopOpacity="0.9" />
</radialGradient>
))}
<radialGradient id="grad-pod-pending" cx="30%" cy="30%" r="70%">
<stop offset="0%" stopColor="white" stopOpacity="0.4" />
<stop offset="100%" stopColor="#fbbf24" stopOpacity="0.9" />
</radialGradient>
<radialGradient id="grad-pod-failed" cx="30%" cy="30%" r="70%">
<stop offset="0%" stopColor="white" stopOpacity="0.4" />
<stop offset="100%" stopColor="#f87171" stopOpacity="0.9" />
</radialGradient>
<radialGradient id="grad-pod-running" cx="30%" cy="30%" r="70%">
<stop offset="0%" stopColor="white" stopOpacity="0.4" />
<stop offset="100%" stopColor="#34d399" stopOpacity="0.9" />
</radialGradient>

{ALL_EDGE_COLORS.map(c => (
<marker key={c} id={`arr-${c.slice(1)}`} markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
<path d="M0 0L6 3L0 6z" fill={c} fillOpacity={0.6} />
Expand Down Expand Up @@ -1167,36 +1147,21 @@ function MapView({ graph, groupByNs, animate, fitTrigger, dark, searchQuery, onN
: n.kind === 'workload' ? workloadIcon(n.workloadKind)
: '●'

const gradientId = n.kind === 'pod'
? `grad-pod-${(n.phase || 'running').toLowerCase()}`
: `grad-${n.kind === 'workload' ? n.workloadKind : n.kind}`

return (
<g key={n.id} data-nid={n.id} style={{ cursor: 'pointer', opacity: nodeOpacity, transition: 'opacity 0.2s' }}
onMouseEnter={e => { setTooltip({ node: n, x: e.clientX, y: e.clientY }); setHoveredNodeId(n.id) }}
onMouseMove={e => setTooltip(t => t ? { ...t, x: e.clientX, y: e.clientY } : null)}
onMouseLeave={() => { setTooltip(null); setHoveredNodeId(null) }}
>
{/* Status Glow Ring */}
{(n.phase === 'Running' || n.kind !== 'pod') && (
<circle cx={p.x} cy={p.y} r={NODE_R + 6} fill={color} fillOpacity={0.15}>
<animate attributeName="r" values={`${NODE_R+4};${NODE_R+8};${NODE_R+4}`} dur="3s" repeatCount="indefinite" />
<animate attributeName="opacity" values="0.1;0.2;0.1" dur="3s" repeatCount="indefinite" />
</circle>
)}

{/* 3D Sphere Node */}
<circle cx={p.x} cy={p.y} r={NODE_R}
fill={`url(#${gradientId})`}
stroke={active ? 'white' : color}
fill={color}
fillOpacity={0.9}
stroke={active ? 'white' : color}
strokeWidth={active ? 2 : 1.2}
style={{ filter: active ? 'url(#glow)' : 'none' }}
className="transition-all duration-300"
/>

{/* Glassy Overlay for sheen */}
<circle cx={p.x} cy={p.y} r={NODE_R} fill="white" fillOpacity={0.05} pointerEvents="none" />

<text x={p.x} y={p.y - 3} textAnchor="middle" fontSize={11}
fill={dark ? 'white' : 'black'} fillOpacity={0.6} style={{ userSelect: 'none', filter: 'drop-shadow(0 1px 1px rgba(0,0,0,0.2))' }}>
{kindIcon}
Expand Down
Loading