Files
compiler-explorer/static
Matt GodboltandClaude 70d4322236 Extract more UI-less utility functions for better testability
- Add formatMarkdown() - Pure markdown-to-HTML conversion with consistent options
- Add formatStatsText() - Builds stats string array from API response data
- Add createPopoverContent() - Generates HTML for option tooltips
- Add formatErrorMessage() - Smart error formatting (handles Error objects, strings, objects with message/error properties, falls back to JSON)
- Update ExplainView to use utility functions, removing duplicate logic
- Add comprehensive tests (42 tests total) with edge cases covered
- Clean up test terminology (fake objects instead of mock objects)
- Fix edge case: Cost display now works correctly with $0.00 costs
- Better error messages for debugging (JSON stringify objects instead of [object Object])

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-04 14:15:18 -05:00
..
2025-07-28 10:34:46 -05:00
2025-08-04 10:17:10 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-06-19 08:46:57 -05:00
2025-07-28 10:34:46 -05:00
2025-02-26 02:07:09 +02:00
2025-06-18 09:04:23 -05:00
2025-07-28 10:34:46 -05:00
2025-04-24 12:10:37 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00