[UI] Fix /notebooks 500 error (empty tool_data max()) and /atlas.html NameError

← All Specs

[UI] Fix /notebooks 500 error (empty tool_data max()) and /atlas.html NameError

ID: f259e7f0-9ef Priority: 95 Type: one_shot Status: open

Goal

[UI] Fix /notebooks 500 error (empty tool_data max()) and /atlas.html NameError

Acceptance Criteria

☑ Concrete deliverables created
☑ Work log updated with timestamped entry

Work Log

  • 2026-04-13T23:50:00Z — Fixed senate_performance_page: added or 'N/A' guards on best_agent (line 33998) and fastest["agent_id"] (line 34056) to prevent NoneType AttributeError when agent_id is null. Fixed notebooks_page HTML escaping: added html.escape() around nb["title"], nb["description"], nb["analysis_title"], and nb["domain"] fields in spotlight and regular card sections (lines 41047-41048, 41087, 41094-41095). Verified HTTP 200 on both endpoints. Committed as 6f769fe30. [task:f259e7f0-9efd-458d-8eff-01ce21c81eaf]

Tasks using this spec (1)
[UI] Harden senate_performance_page against empty/null data
UI done P95
File: f259e7f0_9ef_spec.md
Modified: 2026-05-01 20:13
Size: 0.9 KB