diff --git a/audit/internal/webui/pages.go b/audit/internal/webui/pages.go index ce74467..8744e48 100644 --- a/audit/internal/webui/pages.go +++ b/audit/internal/webui/pages.go @@ -1089,72 +1089,7 @@ func renderExport(exportDir string) string { -
-
Export to USB - -
-
-

Write audit JSON or support bundle directly to a removable USB drive.

-
Scanning for USB devices...
-
-
-
-
-` +` + renderUSBExportCard() } func listExportFiles(exportDir string) ([]string, error) { @@ -1224,6 +1159,77 @@ window.supportBundleDownload = function() { ` } +func renderUSBExportCard() string { + return `
+
Export to USB + +
+
` + renderUSBExportInline() + `
+
` +} + +func renderUSBExportInline() string { + return `

Write audit JSON or support bundle directly to a removable USB drive.

+
Scanning for USB devices...
+
+
+` +} + // ── Display Resolution ──────────────────────────────────────────────────────── func renderDisplayInline() string { @@ -1325,6 +1331,10 @@ function installToRAM() {
Support Bundle

Downloads a tar.gz archive of all audit files, SAT results, and logs.

` + renderSupportBundleInline() + ` +
+
Export to USB
+ ` + renderUSBExportInline() + ` +
Tool Check
diff --git a/audit/internal/webui/server_test.go b/audit/internal/webui/server_test.go index d528ff1..9243d25 100644 --- a/audit/internal/webui/server_test.go +++ b/audit/internal/webui/server_test.go @@ -395,6 +395,12 @@ func TestToolsPageRendersRestartGPUDriversButton(t *testing.T) { if !strings.Contains(body, `id="boot-source-text"`) { t.Fatalf("tools page missing boot source field: %s", body) } + if !strings.Contains(body, `Export to USB`) { + t.Fatalf("tools page missing export to usb section: %s", body) + } + if !strings.Contains(body, `Support Bundle`) { + t.Fatalf("tools page missing support bundle usb button: %s", body) + } } func TestViewerRendersLatestSnapshot(t *testing.T) {