Skip to content

SECFOO-69: Dashboard UI improvements inspired by AGNT.gg - #34

Merged
vsn411 merged 2 commits into
mainfrom
feature/secfoo-69-ui-suggestions
Nov 1, 2026
Merged

vsn411 merged 2 commits into
mainfrom
feature/secfoo-69-ui-suggestions

Conversation

@karthickmk2001

@karthickmk2001 karthickmk2001 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Dashboard UI improvements for SECFOO-69, taking patterns from AGNT.gg (an agent workspace) and adapting them to security reviews. No AGNT designs or assets are reused.

Runs

  • Live run page: a step checklist that polls /runs/<uuid>/status.json every 3 seconds, replacing the 5-second <meta refresh>. The assessment page reloads only when a run finishes.
  • Run receipt: agent, skill, Confluence pages, duration, exit code, tokens, findings and cost, plus a new /runs/<uuid>/prompt.md download of the exact prompt the agent was given.
  • Blocked runs: binary_not_found, failed and timeout show a Blocked card with the cause in plain words, the fix, and a Try again button.

Findings and assessments

  • Reviewer sign-off on SAST findings: Confirm, False positive, or Accept risk (a reason is required). This adds review_* columns to sast_findings, with a migration for existing stores. The upsert never touches these columns, so a sign-off survives later runs. The SAST page counts severe findings still awaiting sign-off.
  • Review pipeline on the assessment page: each core activity is a node showing done, running, blocked or not run, with its finding counts.

Navigation and onboarding

  • New Agents page and dashboard card showing per-agent readiness.
  • Starter templates and skill cards on Run Assessment. Optional fields fold away on New Assessment.
  • Getting-started checklist on the dashboard, ticked off from real data.
  • Command palette (Ctrl+K or /).
  • Path-style top bar with a live "runs in progress" indicator.

Visual refresh

  • Dark petrol sidebar with inline SVG icons.
  • Posture banner and icon stat cards on the dashboard.
  • Lighter tables, badges with status dots, a blueprint dot-grid background, a shared page header, and coloured severity edges on finding rows.
  • Light / System / Dark theme switch.

Small fixes

  • td.findings-cell was set to display: flex, which pushed the rest of the row out of its columns.
  • Stat cards without an icon no longer indent their value.
  • /static is served with Cache-Control: no-cache, so browsers pick up a new UI without a hard refresh.

Screenshots

Taken from a seeded demo store. The dashboard shots include #31's total_cost fix, since / returns 500 on main without it.

Dashboard: posture banner, stat cards, coverage, spend by agent, recent runs
Dashboard, light theme

Dashboard, dark theme
Dashboard, dark theme

Live run page: step checklist and run receipt
Run in progress

Blocked run: cause, fix and Try again
Blocked run

Assessment review pipeline
Review pipeline

SAST finding with reviewer sign-off
Reviewer sign-off

Findings list: Review column and severity edges
Findings list

Agents page, dark theme
Agent health

Notes for reviewers

  • Depends on Fix: dashboard overview crashes when an agent has no recorded cost #31 for the dashboard. On current main, / returns a 500 error when any agent has only unpriced runs, because total_cost adds None. Fix: dashboard overview crashes when an agent has no recorded cost #31 fixes that. This PR doesn't duplicate the fix; it only makes its own spend-table token cell None-safe, using the same expression as Fix: dashboard overview crashes when an agent has no recorded cost #31 so the two PRs merge cleanly.
  • No inline scripts. All new JavaScript is in external files under static/js/, so it works under the portal's CSP. test_no_inline_scripts passes.
  • Shared design system. The CSS changes are in static/design-system/, so the portal will pick up the new look if it uses these stylesheets.
  • Hardcoded "LOCAL" label. The top bar shows a hardcoded "LOCAL" tag, which the portal would need to override.
  • Coarse run steps. The runner doesn't emit progress events, so the steps are worked out from the files a run writes (prompt.md, stdout.log, the report).
  • Sign-off doesn't gate completion. An assessment can still be marked Completed with Critical or High findings unreviewed. Whether it should be blocked is worth deciding separately.

Test plan

  • pytest: 819 passed, 7 failed. The same 7 fail on a clean checkout of main on Windows: 3 file-permission tests (test_cloud, test_memory ×2) and 4 architecture-diagram tests.
  • 11 new tests in tests/test_web/test_run_ui.py, plus updates to the SAST dashboard, assessment and sidebar tests.
  • Every main page returns 200 against a seeded demo store. / also returns 200 with Fix: dashboard overview crashes when an agent has no recorded cost #31's total_cost fix applied.
  • Checked in Chrome in light and dark at desktop and narrow widths, including palette keyboard navigation.

Runs and findings
- Live run page: step checklist polled from /runs/<uuid>/status.json,
  replacing the 5-second meta refresh; run receipt with prompt download
- Blocked runs explain the cause and fix, with a Try again action
- Reviewer sign-off on SAST findings (confirm / false positive /
  accept risk with a reason); new sast_findings review columns with a
  migration for existing stores; awaiting-sign-off count on SAST page
- Review pipeline on the assessment page showing each activity's state

Navigation and onboarding
- Agents page and dashboard card with per-agent readiness
- Starter templates and skill cards on Run Assessment; optional fields
  folded away on New Assessment
- Getting-started checklist driven by real state
- Command palette (Ctrl+K or /) and a path-style top bar with a live
  runs-in-progress indicator

Visual refresh
- Dark petrol sidebar with inline SVG icons, posture banner, icon stat
  cards, lighter tables, badges with status dots, blueprint canvas,
  shared page header, severity edges on finding rows
- Light / System / Dark theme switch with dark-mode component fixes
- AI spend labels metered vs subscription agents
- Static assets served with Cache-Control: no-cache so upgrades are
  picked up without a hard refresh

Fixes
- Table cells using .findings-cell no longer break column alignment
- Stat cards without icons no longer indent their value

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vsn411
vsn411 merged commit 4b54a43 into main Nov 1, 2026
2 checks passed
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.

2 participants