From 6bb08ded2beb0fb19e2e53d0868f7661119b6b2a Mon Sep 17 00:00:00 2001 From: arunod-wijesena Date: Tue, 5 May 2026 11:45:57 +0530 Subject: [PATCH 01/15] feat: initialize app logic for launch checklist management --- js/app.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/js/app.js b/js/app.js index 5dc8d87..b3af3c6 100644 --- a/js/app.js +++ b/js/app.js @@ -1,5 +1,5 @@ const STORAGE_SAVE_KEY = "launchdesk-v1-items"; -const STORAGE_LOAD_KEY = "launchdesk-items-v1"; // Intentional bug: this key should match STORAGE_SAVE_KEY. +const STORAGE_LOAD_KEY = "launchdesk-v1-items"; const demoChecks = [ { @@ -132,8 +132,7 @@ function handleAddCheck(event) { const owner = ownerInput.value.trim() || "Unassigned"; const dueDate = dueDateInput.value || new Date().toISOString().slice(0, 10); - if (!title && !category) { - // Intentional bug: validation should stop when either required field is missing. + if (!title || !category) { formMessage.textContent = "Please enter a check title and choose a category."; return; @@ -210,12 +209,12 @@ function renderRows(list) {