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.
@@ -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
- const screenshotUiHtml = hasRoutes
4773
- ? isFirstGen
4774
- ? `<div style="margin-top:8px;font-size:12px;color:var(--muted)">📸 Playwright автоматически захватит скриншоты (${featRoutes.length} маршрут${featRoutes.length < 5 ? 'а' : 'ов'}: ${featRoutes.join(', ')})</div>`
4775
- : `<label style="display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:var(--muted);cursor:pointer">
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">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viberadar",
3
- "version": "0.3.132",
3
+ "version": "0.3.133",
4
4
  "description": "Live module map with test coverage for vibecoding projects",
5
5
  "main": "./dist/cli.js",
6
6
  "bin": {