@cccarv82/freya 2.3.2 → 2.3.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.
Files changed (2) hide show
  1. package/cli/web-ui.js +9 -1
  2. package/package.json +1 -1
package/cli/web-ui.js CHANGED
@@ -726,6 +726,10 @@
726
726
  card.innerHTML = '<div class="reportHead">'
727
727
  + '<div><div class="reportTitle">' + escapeHtml(it.title || 'Evento') + '</div>'
728
728
  + '<div class="reportMeta">' + escapeHtml(it.date || '') + ' · ' + escapeHtml(it.kind || '') + '</div></div>'
729
+ + '<div class="reportActions">'
730
+ + '<span class="pill info">' + escapeHtml(it.kind || '') + '</span>'
731
+ + (it.slug ? ('<span class="pill">' + escapeHtml(it.slug) + '</span>') : '')
732
+ + '</div>'
729
733
  + '</div>'
730
734
  + '<div class="help" style="margin-top:8px">' + escapeHtml(it.content || '') + '</div>';
731
735
  el.appendChild(card);
@@ -778,8 +782,12 @@
778
782
  for (const c of cards) {
779
783
  const card = document.createElement('div');
780
784
  card.className = 'reportCard';
785
+ const dateLine = c.body.find((b)=> b.toLowerCase().includes('data'));
786
+ const impactLine = c.body.find((b)=> b.toLowerCase().includes('descricao') || b.toLowerCase().includes('impacto'));
781
787
  card.innerHTML = '<div class="reportTitle">' + escapeHtml(c.title) + '</div>'
782
- + c.body.map((b) => '<div class="help" style="margin-top:4px">' + escapeHtml(b) + '</div>').join('');
788
+ + (dateLine ? ('<div class="reportMeta">' + escapeHtml(dateLine) + '</div>') : '')
789
+ + (impactLine ? ('<div class="help" style="margin-top:4px">' + escapeHtml(impactLine) + '</div>') : '')
790
+ + c.body.filter((b)=> b!==dateLine && b!==impactLine).map((b) => '<div class="help" style="margin-top:4px">' + escapeHtml(b) + '</div>').join('');
783
791
  el.appendChild(card);
784
792
  }
785
793
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "2.3.2",
3
+ "version": "2.3.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",