diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-16 21:01:09 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-16 21:01:09 +0000 |
| commit | b8381507ff61c7fb69a91490a9fd58403da8c0fa (patch) | |
| tree | 919fb2e548bb0e6296ac15fbba372972c79401c0 /web/app.js | |
| parent | 85003cd4372475b9cae973b74261a6ca3f61af0d (diff) | |
feat: display project field in web UI
Show task.project as a badge in task card meta row and as a field
in the task detail overview grid. Both display conditionally only
when project is non-empty.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/app.js')
| -rw-r--r-- | web/app.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -156,6 +156,12 @@ function createTaskCard(task) { when.textContent = formatDate(task.created_at); meta.appendChild(when); } + if (task.project) { + const proj = document.createElement('span'); + proj.className = 'task-project'; + proj.textContent = task.project; + meta.appendChild(proj); + } if (meta.children.length) card.appendChild(meta); // Description (truncated via CSS) @@ -1803,6 +1809,9 @@ function renderTaskPanel(task, executions) { if (task.tags && task.tags.length >= 0) { overviewGrid.append(makeMetaItem('Tags', '', { fullWidth: true, tags: task.tags || [] })); } + if (task.project) { + overviewGrid.append(makeMetaItem('Project', task.project)); + } if (task.description) { overviewGrid.append(makeMetaItem('Description', task.description, { fullWidth: true })); } |
