viberadar 0.3.132 → 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 +13 -7
- package/package.json +1 -1
package/dist/ui/dashboard.html
CHANGED
|
@@ -4769,14 +4769,20 @@ async function renderDocFeatureDetail(c) {
|
|
|
4769
4769
|
const isFirstGen = !f.docExists;
|
|
4770
4770
|
// First generation + routes → Playwright runs automatically, show info
|
|
4771
4771
|
// Re-actualization + routes → show checkbox (opt-in)
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
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">
|
|
4776
4779
|
<input type="checkbox" id="docCaptureScreenshots" style="cursor:pointer">
|
|
4777
|
-
📸 Переснять скриншоты (${featRoutes.length} маршрут${featRoutes.length < 5 ? 'а' : 'ов'}: ${featRoutes.join(', ')})
|
|
4778
|
-
</label
|
|
4779
|
-
|
|
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
|
+
}
|
|
4780
4786
|
const detailActionsHtml = `
|
|
4781
4787
|
<div class="doc-detail-actions">
|
|
4782
4788
|
<div class="doc-action-step">
|