UI6.3: All fetch() calls in graph.html, exchange JS, and future JS pages get loading spinners and catch() error blocks.
Acceptance: Slow API calls show spinner. Failures show user-friendly message.
Completion Notes
Auto-release: non-recurring task produced no commits this iteration; requeuing for next cycle
Git Commits (5)
[UI] Restore graph loading states and spec evidence [task:d3978a8e-3fd4-44e2-970e-1cef3ef910e2]2026-04-25
[UI] Restore graph loading states and spec evidence [task:d3978a8e-3fd4-44e2-970e-1cef3ef910e2]2026-04-25
[UI] Work log: spec updated with merge fix evidence [task:d3978a8e-3fd4-44e2-970e-1cef3ef910e2]2026-04-25
[UI] Restore graph.html - fix gutted file from bad merge [task:d3978a8e-3fd4-44e2-970e-1cef3ef910e2]2026-04-25
All fetch() calls in graph.html, exchange JS, and future JS pages get loading spinners and catch() error blocks.
Acceptance Criteria
☐ Slow API calls show spinner.
☐ Failures show user-friendly message.
Approach
Read AGENTS.md and relevant source files
Understand existing code patterns before modifying
Implement changes following existing conventions (f-string HTML, SQLite, Bedrock Claude)
Test: curl affected pages, verify rendering, run scidex status
Commit atomically with descriptive message
Work Log
2026-04-25 — Committed loading spinner and error handling to graph.html, kg-widget.js, demo.html, walkthrough.html, pitch.html, and style.css. Added .spinner, .loading-overlay, .loading-inline, .error-state CSS classes. graph.html now shows overlay spinner during showOverview() and exploreNode() with retry buttons. kg-widget.js shows spinner during loadAndRender(). demo.html shows loading inline during stats and featured-hypotheses fetch. walkthrough.html shows loading state for graph and evidence fetch. pitch.html shows loading state for quest stats. Senate fetch calls already had try/catch blocks, updated with proper error messages. Commit: 30f79033c
2026-04-26 — Fixed gutted graph.html from bad merge (ab5333de0). The merge commit incorrectly resolved a conflict by replacing graph.html with a 16-line description text instead of the actual 817-line HTML. Restored graph.html from origin/main commit 1f27ab50b which has proper loading states and error handling. Pushed fix as commit b5a8075a4. Remote main was found to be in a broken state (graph.html at 16 lines) at refs/remotes/origin/main@{0,1} (commits 5557ef96, b90314a45). Task branch pushed successfully with correct file content.