Skip to content

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

chore: small changes to the dashboard

Luigi Agosti83eab41933a7
diff --git a/internal/dashboard/dashboard/app.js b/internal/dashboard/dashboard/app.js
index f1ed2aa9..7ab8bce7 100644
--- a/internal/dashboard/dashboard/app.js
+++ b/internal/dashboard/dashboard/app.js
@@ -29,4 +29,4 @@ function openInstanceDirect(port) {
}
connect();
-switchView('instances');
+switchView('profiles');
diff --git a/internal/dashboard/dashboard/base.css b/internal/dashboard/dashboard/base.css
index 70ed474e..a5b46e7c 100644
--- a/internal/dashboard/dashboard/base.css
+++ b/internal/dashboard/dashboard/base.css
@@ -169,6 +169,19 @@
font-size: 13px;
margin-bottom: 12px;
}
+ .modal textarea {
+ width: 100%;
+ max-width: 100%;
+ display: block;
+ background: var(--bg-input);
+ border: 1px solid var(--border);
+ color: var(--text);
+ padding: 10px;
+ border-radius: 6px;
+ font-family: inherit;
+ font-size: 13px;
+ margin-bottom: 12px;
+ }
.modal .btn-row { display: flex; gap: 8px; justify-content: flex-end; }
.modal button {
background: var(--primary);
diff --git a/internal/dashboard/dashboard/dashboard.html b/internal/dashboard/dashboard/dashboard.html
index 4fbcde1f..ecb797ac 100644
--- a/internal/dashboard/dashboard/dashboard.html
+++ b/internal/dashboard/dashboard/dashboard.html
@@ -19,15 +19,15 @@
</h1>
<div class="status"><span class="dot"></span>Live</div>
<div class="view-toggle">
- <button class="view-btn active" data-view="instances" onclick="switchView('instances')">Instances</button>
- <button class="view-btn" data-view="profiles" onclick="switchView('profiles')">Profiles</button>
+ <button class="view-btn active" data-view="profiles" onclick="switchView('profiles')">Profiles</button>
+ <button class="view-btn" data-view="instances" onclick="switchView('instances')">Instances</button>
<button class="view-btn" data-view="feed" onclick="switchView('feed')">Agents</button>
<button class="view-btn" data-view="settings" onclick="switchView('settings')">Settings</button>
</div>
</header>
-<div id="instances-view" class="instances-view" style="display:flex">
+<div id="instances-view" class="instances-view" style="display:none">
<div class="inst-toolbar">
<button onclick="loadInstances()" class="refresh-btn">Refresh</button>
</div>
@@ -36,7 +36,7 @@
</div>
</div>
-<div id="profiles-view" class="instances-view" style="display:none">
+<div id="profiles-view" class="instances-view" style="display:flex">
<div class="inst-toolbar">
<button onclick="showCreateProfileModal()" class="launch-btn">New Profile</button>
<button onclick="loadProfiles()" class="refresh-btn">Refresh</button>
@@ -53,7 +53,7 @@
<label style="color:#888;font-size:12px;display:block;margin-bottom:4px">Name</label>
<input id="create-name" placeholder="e.g. personal, work, scraping" />
<label style="color:#888;font-size:12px;display:block;margin-bottom:4px">Use this profile when (helps agents pick the right profile)</label>
- <textarea id="create-usewhen" placeholder="e.g. I need to access Gmail for the team account" style="min-height:60px"></textarea>
+ <textarea id="create-usewhen" placeholder="e.g. I need to access Gmail for the team account" style="width:100%;max-width:100%;display:block;min-height:60px;resize:vertical"></textarea>
<label style="color:#888;font-size:12px;display:block;margin-bottom:4px">Import from (optional — Chrome user data path)</label>
<input id="create-source" placeholder="e.g. /Users/you/Library/Application Support/Google/Chrome" />
<div class="btn-row" style="margin-top:16px">
diff --git a/internal/dashboard/dashboard/profiles.js b/internal/dashboard/dashboard/profiles.js
index 384d89f2..aec8429c 100644
--- a/internal/dashboard/dashboard/profiles.js
+++ b/internal/dashboard/dashboard/profiles.js
@@ -274,6 +274,25 @@ async function copyLaunchCommand() {
}
}
+async function copyProfileId() {
+ const el = document.getElementById('profile-id');
+ const text = el ? el.value.trim() : '';
+ if (!text || text === '—') {
+ await appAlert('Profile ID not available.', 'Profile');
+ return;
+ }
+ try {
+ await navigator.clipboard.writeText(text);
+ await appAlert('Profile ID copied to clipboard.', 'Profile');
+ } catch (e) {
+ if (!el) return;
+ el.focus();
+ el.select();
+ document.execCommand('copy');
+ await appAlert('Profile ID copied (fallback).', 'Profile');
+ }
+}
+
async function doLaunch() {
const name = document.getElementById('launch-name').value.trim();
const port = document.getElementById('launch-port').value.trim();
@@ -398,8 +417,14 @@ async function viewProfileDetails(name, instanceID) {
// Build tab content: Profile & Live/Logs
let tabProfile = '';
+ const profileID = profileInfo && profileInfo.id ? String(profileInfo.id) : '';
// Metadata
+ tabProfile += '<label style="color:var(--text-muted);font-size:12px;display:block;margin-bottom:4px">Profile ID</label>';
+ tabProfile += '<div style="display:flex;gap:8px;align-items:center;margin-bottom:12px">';
+ tabProfile += '<input id="profile-id" value="' + esc(profileID || '—') + '" readonly style="flex:1;margin-bottom:0;font-family:var(--font-mono);font-size:12px" />';
+ tabProfile += '<button class="secondary" onclick="copyProfileId()" ' + (profileID ? '' : 'disabled') + ' style="padding:8px 12px;white-space:nowrap">Copy ID</button>';
+ tabProfile += '</div>';
tabProfile += '<label style="color:var(--text-muted);font-size:12px;display:block;margin-bottom:4px">Name</label>';
tabProfile += '<input id="profile-name" value="' + esc(name) + '" style="width:100%;margin-bottom:12px" />';
tabProfile += '<label style="color:var(--text-muted);font-size:12px;display:block;margin-bottom:4px">Use this profile when</label>';