tool card UI redesign: semantic icons, inline diff persistence, tool detail page, MCP-friendly titles
Nightly Build / build (push) Successful in 6m38s

This commit is contained in:
2026-07-21 23:39:41 +01:00
parent 8e891fbced
commit c11702c3d3
44 changed files with 1103 additions and 50 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* Global tool-detail opener helper.
*
* `window.openToolDetail(id)` is the single entry point for "show this tool
* call's full input / result / diff in the dedicated detail page". It navigates
* to `#tool_detail?id=<id>`, which the hash router in `sidebar.js` resolves to
* the `<tool-detail-page>` element. Back/forward navigation works naturally.
*
* Mirrors `open-file.js` — the URL format lives in one place, so a tool card's
* "details" (eye) affordance calls this rather than setting the hash directly.
*/
export function openToolDetail(id) {
if (id == null) return;
location.hash = `tool_detail?id=${encodeURIComponent(id)}`;
}
window.openToolDetail = openToolDetail;