some fixes for UX, correlation engine
This commit is contained in:
@@ -329,7 +329,7 @@ class DNSReconApp {
|
||||
console.log(`Scan started for ${target} with depth ${maxDepth}`);
|
||||
|
||||
// Start polling immediately with faster interval for responsiveness
|
||||
this.startPolling(1000);
|
||||
this.startPolling();
|
||||
|
||||
// Force an immediate status update
|
||||
console.log('Forcing immediate status update...');
|
||||
@@ -738,7 +738,7 @@ class DNSReconApp {
|
||||
this.setUIState('scanning', task_queue_size);
|
||||
this.showSuccess('Scan is running');
|
||||
// Increase polling frequency for active scans
|
||||
this.startPolling(1000); // Poll every 1 second for running scans
|
||||
this.startPolling(5000); // Poll every 5 second for running scans
|
||||
this.updateConnectionStatus('active');
|
||||
break;
|
||||
|
||||
@@ -2030,7 +2030,7 @@ class DNSReconApp {
|
||||
|
||||
if (response.success) {
|
||||
this.showSuccess(response.message);
|
||||
|
||||
|
||||
// If the scanner was idle, it's now running. Start polling to see the new node appear.
|
||||
if (this.scanStatus === 'idle') {
|
||||
this.startPolling(1000);
|
||||
@@ -2039,6 +2039,27 @@ class DNSReconApp {
|
||||
setTimeout(() => this.updateGraph(), 500);
|
||||
}
|
||||
|
||||
// Immediately update the modal view
|
||||
if (this.graphManager) {
|
||||
const largeEntityNode = this.graphManager.nodes.get(largeEntityId);
|
||||
if (largeEntityNode && largeEntityNode.attributes) {
|
||||
|
||||
// Find and update the 'nodes' attribute
|
||||
const nodesAttribute = largeEntityNode.attributes.find(attr => attr.name === 'nodes');
|
||||
if (nodesAttribute && Array.isArray(nodesAttribute.value)) {
|
||||
nodesAttribute.value = nodesAttribute.value.filter(id => id !== nodeId);
|
||||
}
|
||||
|
||||
// Find and update the 'count' attribute
|
||||
const countAttribute = largeEntityNode.attributes.find(attr => attr.name === 'count');
|
||||
if (countAttribute) {
|
||||
countAttribute.value = (countAttribute.value || 0) - 1;
|
||||
}
|
||||
|
||||
// Re-render the modal with the updated data
|
||||
this.showNodeModal(largeEntityNode);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
throw new Error(response.error || 'Extraction failed on the server.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user