Skip to content

ui: port intel panel to new design#5

Open
Moriz82 wants to merge 1 commit into
mainfrom
worktree-agent-a0d44611
Open

ui: port intel panel to new design#5
Moriz82 wants to merge 1 commit into
mainfrom
worktree-agent-a0d44611

Conversation

@Moriz82

@Moriz82 Moriz82 commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rewrites frontend/src/panels/IntelPanel.tsx as a KPI dashboard matching /tmp/new_ui/src/screens/intel_screen.jsx: header with chip-row range filter, 4 KPI cards (Endpoints, Hosts, Findings, Attack paths) with big numbers, deltas, and sparklines, plus Findings-by-severity / Top-technologies / Hosts-in-scope / Top-attack-paths cards.
  • Wires live backend data: /api/graph/stats, /api/graph?kinds=Endpoint, /api/graph/hosts, /api/technologies, /api/findings/summary, /api/settings. Attack paths are derived from highest-severity findings since /api/graph/path requires the Neo4j backend. No mock data.
  • Adds frontend/src/styles/screens.css with the .intel/.card/.stat-*/.bar-row/.target-row selectors (plus .screen-*/.chip-row/.sev-chip shared chrome) ported from the new-UI source, and fallback design tokens so the panel renders standalone; another unit will land the full tokens/base foundation.

Test plan

  • npx tsc --noEmit — no new errors attributable to this change
  • npm run build — passes
  • E2E: login, switch to Intel tab, all 4 KPI cards render with real numbers (130 endpoints, 3 hosts, 1 finding, 1 attack path on the dev project), severity bars and top-technologies populate, no console errors

🤖 Generated with Claude Code

Rewrite IntelPanel as a KPI dashboard backed by live backend endpoints:
4 stat cards (Endpoints, Hosts, Findings, Attack paths) with sparklines,
Findings-by-severity and Top-technologies bar charts, Hosts-in-scope list,
and Top-attack-paths list derived from highest-severity findings. Data
comes from /api/graph/stats, /api/graph?kinds=Endpoint, /api/graph/hosts,
/api/technologies, /api/findings/summary, and /api/settings. Adds
frontend/src/styles/screens.css with .intel/.card/.stat-*/.bar-row/
.target-row selectors plus fallback design tokens.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant