@cccarv82/freya 3.4.0 → 3.4.1

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.css CHANGED
@@ -1781,7 +1781,8 @@ body:not([data-page="kanban"]) .kanban-col-body {
1781
1781
  background: var(--paper2);
1782
1782
  }
1783
1783
 
1784
- .kanban-action-btn.complete-btn:hover {
1784
+ .kanban-action-btn.complete-btn:hover,
1785
+ .kanban-action-btn.resolve-btn:hover {
1785
1786
  color: #22c55e;
1786
1787
  border-color: #22c55e;
1787
1788
  }
package/cli/web-ui.js CHANGED
@@ -3335,9 +3335,9 @@
3335
3335
  html += '</div>';
3336
3336
  if (status !== 'RESOLVED') {
3337
3337
  html += '<div class="kanban-card-actions">'
3338
- + '<button class="edit-btn" title="Editar">'
3339
- + '<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>'
3340
- + '</button></div>';
3338
+ + '<button class="kanban-action-btn resolve-btn" title="Resolver">\u2713</button>'
3339
+ + '<button class="kanban-action-btn edit-btn" title="Editar">\u270E</button>'
3340
+ + '</div>';
3341
3341
  }
3342
3342
  card.innerHTML = html;
3343
3343
 
@@ -3363,6 +3363,22 @@
3363
3363
  });
3364
3364
  }
3365
3365
 
3366
+ // Resolve button (quick action)
3367
+ var resolveBtn = card.querySelector('.resolve-btn');
3368
+ if (resolveBtn) {
3369
+ resolveBtn.onclick = async function(e) {
3370
+ e.stopPropagation();
3371
+ try {
3372
+ await api('/api/blockers/update', {
3373
+ dir: dirOrDefault(), id: b.id,
3374
+ patch: { status: 'RESOLVED' }
3375
+ });
3376
+ showToast('ok', 'Blocker resolvido');
3377
+ await loadKanban();
3378
+ } catch { showToast('err', 'Falhou'); }
3379
+ };
3380
+ }
3381
+
3366
3382
  // Edit button
3367
3383
  var editBtn = card.querySelector('.edit-btn');
3368
3384
  if (editBtn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cccarv82/freya",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
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",