()
| 258 | window.toggleTodoPanel = toggleTodoPanel; |
| 259 | |
| 260 | export function resetTodoState() { |
| 261 | cancelTodoAutoClear(); |
| 262 | todoState.tasks.clear(); |
| 263 | todoState.pendingCreates.clear(); |
| 264 | todoState.panelOpen = false; |
| 265 | todoState.autoOpenedForBatch = false; |
| 266 | $('todo-panel').classList.remove('has-tasks', 'open'); |
| 267 | $('todo-list').innerHTML = ''; |
| 268 | $('todo-summary').textContent = ''; |
| 269 | $('todo-progress-bar').style.width = '0%'; |
| 270 | $('todo-progress-bar').classList.remove('all-done'); |
| 271 | $('todo-badge').textContent = '0'; |
| 272 | $('todo-badge').classList.remove('done'); |
| 273 | } |
| 274 | |
| 275 | export function getTodoSnapshot() { |
| 276 | return { |
no test coverage detected