Skip to content

Add "Try our aegis sample" empty-state to the web UI - #13

Merged
ErenAri merged 1 commit into
mainfrom
aegis-sample-feature
Jun 15, 2026
Merged

Add "Try our aegis sample" empty-state to the web UI#13
ErenAri merged 1 commit into
mainfrom
aegis-sample-feature

Conversation

@ErenAri

@ErenAri ErenAri commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

When a visitor has no .bpf.o, the empty state offers a one-click Try our aegis sample that loads the bundled aegis probe into the validate form, selects a kernel spread crossing its 5.16 bloom-filter-map boundary (5.4 + 5.15 fail; 6.1 + 6.8 pass/required), and runs a real validation.

  • internal/api/sample.go: public GET /sample/aegis/artifact serves the bundled object (BPFCOMPAT_SAMPLE_ARTIFACT, default examples/aegis-live).
  • internal/api/ui.go: empty-state button + clear-then-select-4 wiring; also fixes the result panel grid (sized to content instead of a stretching 1fr blank gap during a run).
  • matrices/aegis-sample.yaml: boundary matrix for CLI runs.

aegis object stays out of git (examples/aegis-live is ignored); deployed to the demo host out of band. Verified locally end to end.

🤖 Generated with Claude Code

When a visitor has no .bpf.o, the empty state offers a one-click "Try our aegis
sample" that loads the bundled aegis security probe into the validate form,
selects a kernel spread that crosses its 5.16 bloom-filter-map boundary
(ubuntu 20.04/5.4 + 22.04/5.15 fail; debian 12/6.1 + ubuntu 24.04/6.8 pass,
required), and runs a real validation.

- internal/api/sample.go: public GET /sample/aegis/artifact serves the bundled
  object (path from BPFCOMPAT_SAMPLE_ARTIFACT, default examples/aegis-live).
- internal/api/ui.go: empty-state button + clear-then-select-4 wiring; also fix
  the result panel grid so it sizes to content instead of stretching a 1fr row
  into a large blank gap during a run.
- matrices/aegis-sample.yaml: the boundary matrix for CLI runs of the sample.

The aegis object itself stays out of git (examples/aegis-live is ignored); it
is deployed to the demo host out of band.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ErenAri
ErenAri merged commit 794348f into main Jun 15, 2026
7 of 8 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.

1 participant