viberadar 0.3.131 → 0.3.133
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 +14 -7
- package/package.json +1 -1
package/dist/ui/dashboard.html
CHANGED
|
@@ -4762,20 +4762,27 @@ async function renderDocFeatureDetail(c) {
|
|
|
4762
4762
|
const versionsHtml = f.docVersions && f.docVersions.length > 0
|
|
4763
4763
|
? `<div style="font-size:11px;color:var(--muted);margin-top:6px">Версии: ${f.docVersions.map((v, i) => `<span style="${i === f.docVersions.length - 1 ? 'color:var(--text)' : ''}">${v.split('/').pop()}</span>`).join(' · ')}</div>`
|
|
4764
4764
|
: '';
|
|
4765
|
+
const nextVersion = (f.latestVersion || 0) + 1;
|
|
4765
4766
|
const featResult = D.features?.find(x => x.key === drillFeatureKey);
|
|
4766
4767
|
const featRoutes = featResult?.routes;
|
|
4767
4768
|
const hasRoutes = featRoutes && featRoutes.length > 0;
|
|
4768
4769
|
const isFirstGen = !f.docExists;
|
|
4769
4770
|
// First generation + routes → Playwright runs automatically, show info
|
|
4770
4771
|
// Re-actualization + routes → show checkbox (opt-in)
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4772
|
+
// No routes → show hint how to configure
|
|
4773
|
+
let screenshotUiHtml = '';
|
|
4774
|
+
if (hasRoutes) {
|
|
4775
|
+
if (isFirstGen) {
|
|
4776
|
+
screenshotUiHtml = `<div style="margin-top:8px;font-size:12px;color:var(--muted)">📸 Playwright автоматически захватит скриншоты (${featRoutes.length} маршрут${featRoutes.length < 5 ? 'а' : 'ов'}: ${featRoutes.join(', ')})</div>`;
|
|
4777
|
+
} else {
|
|
4778
|
+
screenshotUiHtml = `<label style="display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:var(--muted);cursor:pointer">
|
|
4775
4779
|
<input type="checkbox" id="docCaptureScreenshots" style="cursor:pointer">
|
|
4776
|
-
📸 Переснять скриншоты (${featRoutes.length} маршрут${featRoutes.length < 5 ? 'а' : 'ов'}: ${featRoutes.join(', ')})
|
|
4777
|
-
</label
|
|
4778
|
-
|
|
4780
|
+
📸 Переснять скриншоты через Playwright (${featRoutes.length} маршрут${featRoutes.length < 5 ? 'а' : 'ов'}: ${featRoutes.join(', ')})
|
|
4781
|
+
</label>`;
|
|
4782
|
+
}
|
|
4783
|
+
} else {
|
|
4784
|
+
screenshotUiHtml = `<div style="margin-top:8px;font-size:12px;color:var(--muted)">📸 Скриншоты недоступны — добавьте <code style="font-size:11px;background:var(--bg);padding:1px 4px;border-radius:3px">"routes"</code> для фичи <code style="font-size:11px;background:var(--bg);padding:1px 4px;border-radius:3px">${f.key}</code> в <code style="font-size:11px;background:var(--bg);padding:1px 4px;border-radius:3px">viberadar.config.json</code></div>`;
|
|
4785
|
+
}
|
|
4779
4786
|
const detailActionsHtml = `
|
|
4780
4787
|
<div class="doc-detail-actions">
|
|
4781
4788
|
<div class="doc-action-step">
|