From 23cddced96e15eb6cc431842191c0be368066cf4 Mon Sep 17 00:00:00 2001 From: Sweety3106 Date: Wed, 20 May 2026 19:42:58 +0530 Subject: [PATCH] feat: display priority badges on task cards. --- js/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/app.js b/js/app.js index 9bfd993..253c8b4 100644 --- a/js/app.js +++ b/js/app.js @@ -513,6 +513,16 @@ function renderTasks() { `; + let priorityClass = 'pill-blue'; + let priorityLabel = '🔵 Low'; + if (t.priority === 'high') { + priorityClass = 'pill-red'; + priorityLabel = '🔴 High'; + } else if (t.priority === 'medium') { + priorityClass = 'pill-amber'; + priorityLabel = '🟡 Medium'; + } + html += `
@@ -521,6 +531,7 @@ function renderTasks() {
${isDone ? 'Done' : 'Due ' + formatDate(t.due_at)} ${sub.short_code} + ${priorityLabel}