viberadar 0.3.142 → 0.3.143
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/dist/ui/dashboard.html +16 -2
- package/package.json +1 -1
package/dist/ui/dashboard.html
CHANGED
|
@@ -4482,15 +4482,29 @@ function renderScenarioCards(c) {
|
|
|
4482
4482
|
<span style="font-size:11px;color:${statusColor};font-weight:600;flex-shrink:0">${statusText}</span>
|
|
4483
4483
|
</div>
|
|
4484
4484
|
${s.description ? `<div style="font-size:12px;color:var(--muted);margin-bottom:8px;line-height:1.4">${escapeHtml(s.description)}</div>` : ''}
|
|
4485
|
-
<div style="font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap">
|
|
4485
|
+
<div style="font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px">
|
|
4486
4486
|
${s.featureLabels.map(l => `<span style="background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:1px 6px">${escapeHtml(l)}</span>`).join('')}
|
|
4487
4487
|
</div>
|
|
4488
|
-
${hasDoc ? `<div style="font-size:11px;color:var(--muted);margin-
|
|
4488
|
+
${hasDoc ? `<div style="font-size:11px;color:var(--muted);margin-bottom:8px">Обновлено: ${lastUpd}</div>` : ''}
|
|
4489
|
+
<button class="scenario-doc-btn agent-card-btn" data-key="${s.key}"
|
|
4490
|
+
style="width:100%;padding:6px 10px;font-size:12px;border-radius:5px;border:none;cursor:pointer;
|
|
4491
|
+
background:${hasDoc ? 'var(--card-bg)' : 'var(--blue)'};
|
|
4492
|
+
color:${hasDoc ? 'var(--muted)' : '#fff'};
|
|
4493
|
+
border:1px solid ${hasDoc ? 'var(--border)' : 'transparent'}">
|
|
4494
|
+
${hasDoc ? `↻ Актуализировать → v${s.latestVersion + 1}` : '✍ Написать документацию'}
|
|
4495
|
+
</button>
|
|
4489
4496
|
</div>`;
|
|
4490
4497
|
}
|
|
4491
4498
|
html += '</div>';
|
|
4492
4499
|
c.innerHTML = html;
|
|
4493
4500
|
|
|
4501
|
+
c.querySelectorAll('.scenario-doc-btn').forEach(btn => {
|
|
4502
|
+
btn.addEventListener('click', (e) => {
|
|
4503
|
+
e.stopPropagation();
|
|
4504
|
+
runAgentTask('actualize-scenario', btn.dataset.key);
|
|
4505
|
+
});
|
|
4506
|
+
});
|
|
4507
|
+
|
|
4494
4508
|
c.querySelectorAll('.doc-feature-card').forEach(card => {
|
|
4495
4509
|
card.addEventListener('click', () => {
|
|
4496
4510
|
scenarioDrillKey = card.dataset.key;
|