Skip to content

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

simplify profile card actions

Mario0d549ddd9241
diff --git a/dashboard.go b/dashboard.go
index feed7b72..00a1a27d 100644
--- a/dashboard.go
+++ b/dashboard.go
@@ -1172,14 +1172,13 @@ function renderMainCard(tabCount) {
<span class="inst-badge running">running :${location.port || '9867'}</span>
</div>
<div class="inst-body">
- <div class="inst-row"><span class="label">Mode</span><span class="value">${document.title.includes('headed') ? 'πŸ–₯️ Headed' : 'πŸ”² Current instance'}</span></div>
<div class="inst-row"><span class="label">Tabs</span><span class="value">${tabCount}</span></div>
<div class="inst-row"><span class="label">Port</span><span class="value">${location.port || '9867'}</span></div>
</div>
<div class="inst-actions">
<button onclick="switchView('live')">πŸ“Ί Live</button>
- <button onclick="switchView('feed')">πŸ€– Agents</button>
- <button onclick="switchView('settings')">βš™οΈ Settings</button>
+ <button onclick="resetProfile('main')">πŸ”„ Reset</button>
+ <button onclick="viewAnalytics('main')">πŸ“Š Analytics</button>
</div>
</div>
` + "`" + `;
@@ -1208,10 +1207,11 @@ function renderProfileCard(name, sizeMB, source, inst) {
${isRunning
? '<button onclick="viewInstanceLive(\'' + esc(inst.id) + '\', \'' + esc(inst.port) + '\')">πŸ“Ί Live</button>'
+ '<button onclick="viewInstanceLogs(\'' + esc(inst.id) + '\')">πŸ“„ Logs</button>'
- + '<button onclick="openInstanceDirect(\'' + esc(inst.port) + '\')">πŸ”— Open</button>'
+ + '<button onclick="resetProfile(\'' + esc(name) + '\')">πŸ”„ Reset</button>'
+ '<button class="danger" onclick="stopInstance(\'' + esc(inst.id) + '\')">⏹ Stop</button>'
: '<button onclick="launchProfile(\'' + esc(name) + '\')">πŸš€ Launch</button>'
- + '<button onclick="showProfileModal(\'' + esc(name) + '\')">βš™οΈ Manage</button>'
+ + '<button onclick="resetProfile(\'' + esc(name) + '\')">πŸ”„ Reset</button>'
+ + '<button onclick="viewAnalytics(\'' + esc(name) + '\')">πŸ“Š Analytics</button>'
+ '<button class="danger" onclick="deleteProfile(\'' + esc(name) + '\')">πŸ—‘οΈ Delete</button>'
}
</div>