shell-mirror 1.5.118 → 1.5.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/app/dashboard.css +9 -7
- package/public/app/dashboard.js +19 -11
package/package.json
CHANGED
package/public/app/dashboard.css
CHANGED
|
@@ -1035,11 +1035,15 @@ body {
|
|
|
1035
1035
|
.connection-status.disconnected { color: var(--warning); }
|
|
1036
1036
|
.connection-status.error { color: var(--danger); }
|
|
1037
1037
|
|
|
1038
|
-
/*
|
|
1038
|
+
/* Dashboard content wrapper */
|
|
1039
|
+
.dashboard-content-wrapper {
|
|
1040
|
+
display: contents;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/* Usage Instructions - muted helper section (borderless, floating) */
|
|
1039
1044
|
.usage-instructions {
|
|
1040
|
-
margin-top:
|
|
1041
|
-
padding
|
|
1042
|
-
border-top: 1px solid var(--border);
|
|
1045
|
+
margin-top: 24px;
|
|
1046
|
+
padding: 0 16px;
|
|
1043
1047
|
color: var(--text-muted);
|
|
1044
1048
|
font-size: 0.8rem;
|
|
1045
1049
|
}
|
|
@@ -1093,9 +1097,7 @@ body {
|
|
|
1093
1097
|
}
|
|
1094
1098
|
|
|
1095
1099
|
.usage-troubleshooting {
|
|
1096
|
-
margin-top:
|
|
1097
|
-
padding-top: 12px;
|
|
1098
|
-
border-top: 1px solid var(--border);
|
|
1100
|
+
margin-top: 16px;
|
|
1099
1101
|
}
|
|
1100
1102
|
|
|
1101
1103
|
.usage-trouble-title {
|
package/public/app/dashboard.js
CHANGED
|
@@ -431,10 +431,16 @@ class ShellMirrorDashboard {
|
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
updateAgentsDisplay() {
|
|
434
|
-
const
|
|
435
|
-
if (
|
|
436
|
-
//
|
|
437
|
-
|
|
434
|
+
const wrapper = document.querySelector('.dashboard-content-wrapper');
|
|
435
|
+
if (wrapper) {
|
|
436
|
+
// Replace the entire wrapper to avoid duplication
|
|
437
|
+
wrapper.outerHTML = this.renderActiveAgents();
|
|
438
|
+
} else {
|
|
439
|
+
// Fallback for initial render
|
|
440
|
+
const agentsCard = document.querySelector('.dashboard-card');
|
|
441
|
+
if (agentsCard) {
|
|
442
|
+
agentsCard.outerHTML = this.renderActiveAgents();
|
|
443
|
+
}
|
|
438
444
|
}
|
|
439
445
|
}
|
|
440
446
|
|
|
@@ -663,13 +669,15 @@ class ShellMirrorDashboard {
|
|
|
663
669
|
}).join('');
|
|
664
670
|
|
|
665
671
|
return `
|
|
666
|
-
<div class="dashboard-
|
|
667
|
-
<div class="card
|
|
668
|
-
<
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
672
|
+
<div class="dashboard-content-wrapper">
|
|
673
|
+
<div class="dashboard-card">
|
|
674
|
+
<div class="card-header">
|
|
675
|
+
<h2>Agents</h2>
|
|
676
|
+
${agentCount > 0 ? `<span class="agent-count">${agentCount}</span>` : ''}
|
|
677
|
+
</div>
|
|
678
|
+
<div class="card-content">
|
|
679
|
+
${agentCount > 0 ? agentsHtml : this.renderEmptyAgentState()}
|
|
680
|
+
</div>
|
|
673
681
|
</div>
|
|
674
682
|
<div class="usage-instructions">
|
|
675
683
|
<div class="usage-step">
|