codeburn/windows/src/components/EmptyProviderState.tsx
iamtoruk 71bbbec962 feat(windows): build the tab strip from the payload's provider list
The strip was a fixed seven, so a machine running Gemini, Kimi or any of the
other two dozen tools the CLI reports had no way to filter by them. It now
mirrors AgentTabStrip.swift: All first, then every provider the payload says
has activity, dearest first, with the provider's brand mark from the mac's
ProviderFilter.color and the compact cost chip. Provider ids come straight
from the payload, which is what --provider takes, so any tool the CLI grows
appears without a change here.

The known-tool list stays as the fallback for a machine the CLI has not seen
activity on, dimmed and explaining itself on hover, because that copy is the
first-run answer to "what is CodeBurn watching".

Overflow chevrons select the neighbouring tab, as on the mac, rather than
scrolling blindly; both measurements are taken from elements the chevrons do
not resize, so showing them cannot feed back into the overflow decision.
2026-09-01 16:59:30 -07:00

17 lines
459 B
TypeScript

import type { Period } from './PeriodTabs'
import { PERIOD_PHRASES } from './PeriodTabs'
import { TrayIcon } from './Icons'
type Props = {
label: string
period: Period
}
export function EmptyProviderState({ label, period }: Props) {
return (
<div className="empty-provider">
<TrayIcon size={26} className="empty-provider-icon" />
<div className="empty-provider-text">No {label} data for {PERIOD_PHRASES[period]}</div>
</div>
)
}