Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix(activity): show URL on blocked navigations and improve event labels

Boschca9c3308e8d4
diff --git a/dashboard/src/activities/StreamRow.tsx b/dashboard/src/activities/StreamRow.tsx
index fdf4abed..0aea5e8c 100644
--- a/dashboard/src/activities/StreamRow.tsx
+++ b/dashboard/src/activities/StreamRow.tsx
@@ -65,8 +65,27 @@ function eventSummary(event: DashboardActivityEvent): string {
return event.ref ? `Type into ${quoted(event.ref)}` : "Type into page";
case "hover":
return event.ref ? `Hover ${quoted(event.ref)}` : "Hover on page";
+ case "fill":
+ return event.ref ? `Fill ${quoted(event.ref)}` : "Fill field";
+ case "select":
+ return event.ref ? `Select ${quoted(event.ref)}` : "Select option";
+ case "scroll":
+ return "Scroll page";
+ case "press":
+ return event.ref ? `Press key on ${quoted(event.ref)}` : "Press key";
+ case "wait":
+ return "Wait for condition";
+ case "evaluate":
+ return "Evaluate JavaScript";
+ case "upload":
+ return "Upload file";
+ case "download":
+ return "Download file";
default:
- return "Run browser operation";
+ if (event.action) {
+ return `${event.action} ${event.ref ? quoted(event.ref) : ""}`.trim();
+ }
+ return `${event.method} ${event.path}`;
}
}
diff --git a/internal/handlers/navigation.go b/internal/handlers/navigation.go
index 38768d41..19f77224 100644
--- a/internal/handlers/navigation.go
+++ b/internal/handlers/navigation.go
@@ -94,6 +94,7 @@ func (h *Handlers) HandleNavigate(w http.ResponseWriter, r *http.Request) {
domainResult := h.IDPIGuard.CheckDomain(req.URL)
if domainResult.Blocked {
+ h.recordNavigateRequest(r, req.TabID, req.URL)
httpx.Error(w, http.StatusForbidden, fmt.Errorf("navigation blocked by IDPI: %s", domainResult.Reason))
return
}