summaryrefslogtreecommitdiff
path: root/web/static/js
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-18 15:24:58 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-18 15:24:58 -1000
commit8dbb6f43577b8a86e94ef7aaee196f9743356643 (patch)
tree8713bf776f0c01c3d0fc94d906667e2e839e79f3 /web/static/js
parent143166ce759ce2cb0133b7438db36b844a9db1a7 (diff)
Implement unified task completion with cache sync (Phase 3 Step 7)
Add checkbox UI to Tasks tab for completing Todoist tasks and archiving Trello cards. Fix cache synchronization so completed items stay gone after page reload by deleting them from SQLite cache after API success. - Add HandleCompleteAtom handler routing to Todoist/Trello APIs - Add DeleteTask/DeleteCard store methods for cache removal - Add htmx.process() calls after innerHTML updates in app.js - Add comprehensive tests for completion and cache behavior Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'web/static/js')
-rw-r--r--web/static/js/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/static/js/app.js b/web/static/js/app.js
index 2f2cb6f..0f1f087 100644
--- a/web/static/js/app.js
+++ b/web/static/js/app.js
@@ -106,7 +106,9 @@ async function refreshData() {
// Get HTML response and update tab content
const html = await tabResponse.text();
- document.getElementById('tab-content').innerHTML = html;
+ const tabContent = document.getElementById('tab-content');
+ tabContent.innerHTML = html;
+ htmx.process(tabContent);
// Update timestamp
updateLastUpdatedTime();
@@ -156,7 +158,9 @@ async function autoRefresh() {
if (tabResponse.ok) {
const html = await tabResponse.text();
- document.getElementById('tab-content').innerHTML = html;
+ const tabContent = document.getElementById('tab-content');
+ tabContent.innerHTML = html;
+ htmx.process(tabContent);
updateLastUpdatedTime();
console.log('Auto-refresh successful');
}