Files
compiler-explorer/static
Matt GodboltandClaude 5b3c487467 Migrate Claude Explain from Tool to Pane
This change converts Claude Explain from a backend "Tool" to a proper frontend "Pane",
providing a cleaner architecture and better user experience.

Major changes:
- Add Claude Explain as a pane in the "Add new..." dropdown for all languages
- Remove server-side ExplainTool and all tool configurations from property files
- Move API endpoint configuration to global options (explainApiEndpoint)
- Update event handling from tool events to pane-specific events (explainViewOpened/Closed)
- Make button visibility conditional on API endpoint configuration
- Trigger recompilation when Claude Explain pane is opened

Benefits:
- Universal availability across all languages without per-language configuration
- No need for fake binaries (/bin/true) or server-side stubs
- Cleaner architecture with all logic in the frontend
- Better UX with Claude Explain appearing alongside other analysis panes
- Automatic recompilation when opened, matching behavior of AST/Opt viewers

Technical details:
- Register EXPLAIN_VIEW_COMPONENT_NAME and factory in hub.ts
- Add button to compiler.pug with conditional visibility
- Update ExplainHtmlView to emit pane events and use global API endpoint
- Remove redundant getCurrentState() override
- Clean up all references to the old tool implementation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-23 09:25:54 -05:00
..
2025-05-21 13:53:05 -05:00
2025-05-19 06:51:21 -05:00
2025-02-26 02:07:09 +02:00
2025-02-26 02:07:09 +02:00
2024-10-25 12:19:04 +03:00
2025-04-24 12:10:37 -05:00
2025-04-24 12:10:37 -05:00
2025-04-24 12:10:37 -05:00
2025-04-24 18:41:55 -05:00