Rebuild workspace widgets and behavioral graph views

This commit is contained in:
2026-03-13 16:48:24 +00:00
parent f8a6d1d41c
commit 57269770b5
47 changed files with 2951 additions and 1077 deletions

View File

@@ -666,10 +666,8 @@ class OSINTListBase(ObjectList):
request_type: str,
) -> list[dict[str, Any]]:
context_type = _context_type(request_type)
update_type = "window" if request_type == "widget" else context_type
update_target = (
"#windows-here" if update_type == "window" else f"#{update_type}s-here"
)
update_type = context_type
update_target = f"#{update_type}s-here"
rows = []
for item in object_list:
row = {"id": str(item.pk), "cells": [], "actions": []}
@@ -697,6 +695,7 @@ class OSINTListBase(ObjectList):
"target": update_target,
"icon": "fa-solid fa-pencil",
"title": "Edit",
"swap": "beforeend" if update_type == "widget" else "innerHTML",
}
)
row["actions"].append(