fix: strip lang: prefix in Languages panel display

This commit is contained in:
AgentSeal 2026-04-15 04:55:01 -07:00
parent 5c6c266c85
commit caa0464832

View file

@ -325,13 +325,16 @@ function ToolBreakdown({ projects, pw, bw, title, filterPrefix }: { projects: Pr
return (
<Panel title={title ?? 'Core Tools'} color={PANEL_COLORS.tools} width={pw}>
<Text dimColor wrap="truncate-end">{''.padEnd(bw + 1 + nw)}{'calls'.padStart(7)}</Text>
{sorted.slice(0, 10).map(([tool, calls]) => (
<Text key={tool} wrap="truncate-end">
<HBar value={calls} max={maxCalls} width={bw} />
<Text> {fit(tool, nw)}</Text>
<Text>{String(calls).padStart(7)}</Text>
</Text>
))}
{sorted.slice(0, 10).map(([tool, calls]) => {
const display = filterPrefix ? tool.slice(filterPrefix.length) : tool
return (
<Text key={tool} wrap="truncate-end">
<HBar value={calls} max={maxCalls} width={bw} />
<Text> {fit(display, nw)}</Text>
<Text>{String(calls).padStart(7)}</Text>
</Text>
)
})}
</Panel>
)
}