@cccarv82/freya 2.8.2 → 2.8.3

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/cli/web-ui.js CHANGED
@@ -1872,6 +1872,22 @@
1872
1872
  if (isCompanionPage) {
1873
1873
  refreshHealthChecklist();
1874
1874
  }
1875
+ // On Dashboard: reveal the reportPreviewPanel so the user can see the output.
1876
+ // The panel is hidden by default (display:none) and only shown after a report runs.
1877
+ const previewPanel = $('reportPreviewPanel');
1878
+ if (previewPanel) {
1879
+ previewPanel.style.display = '';
1880
+ const titleEl = $('reportPreviewTitle');
1881
+ const labels = {
1882
+ status: 'Relatório Executivo',
1883
+ 'sm-weekly': 'SM Weekly Report',
1884
+ blockers: 'Relatório de Bloqueios',
1885
+ daily: 'Daily Summary',
1886
+ report: 'Relatório Semanal'
1887
+ };
1888
+ if (titleEl) titleEl.textContent = labels[name] || 'Relatório Gerado';
1889
+ previewPanel.scrollIntoView({ behavior: 'smooth', block: 'start' });
1890
+ }
1875
1891
  setPill('ok', name + ' ok');
1876
1892
  } catch (e) {
1877
1893
  setPill('err', name + ' failed');
package/cli/web.js CHANGED
@@ -1272,7 +1272,18 @@ function buildHtml(safeDefault, appVersion) {
1272
1272
  </div>
1273
1273
  </section>
1274
1274
 
1275
-
1275
+ <!-- Report Preview Panel — populated by runReport() via setOut() -->
1276
+ <section class="panel" id="reportPreviewPanel" style="display:none; margin-bottom: 16px;">
1277
+ <div class="panelHead" style="background: linear-gradient(90deg, var(--paper2), var(--paper)); border-left: 4px solid var(--accent);">
1278
+ <b style="color: var(--text); font-size: 14px;" id="reportPreviewTitle">Relatório Gerado</b>
1279
+ <div class="stack">
1280
+ <button class="btn small" type="button" onclick="document.getElementById('reportPreviewPanel').style.display='none'">Fechar</button>
1281
+ </div>
1282
+ </div>
1283
+ <div class="panelBody panelScroll" style="max-height: 520px; overflow-y: auto;">
1284
+ <div id="reportPreview" class="log md" style="font-family: var(--sans); padding: 8px 0;"></div>
1285
+ </div>
1286
+ </section>
1276
1287
 
1277
1288
  <div class="centerHead">
1278
1289
  <div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "Personal AI Assistant with local-first persistence",
5
5
  "scripts": {
6
6
  "health": "node scripts/validate-data.js && node scripts/validate-structure.js",