Explicit provider + freshness + asset class for a search hit — this is how * same-symbol sources are disambiguated (TradingView-style).
({ c }: { c: BarSourceCandidate })
| 214 | /** Explicit provider + freshness + asset class for a search hit — this is how |
| 215 | * same-symbol sources are disambiguated (TradingView-style). */ |
| 216 | function SourceTrail({ c }: { c: BarSourceCandidate }) { |
| 217 | // Provider is the disambiguator; keep it compact so the ticker is never |
| 218 | // crushed. (Asset class is shown in the wider main search box, not here.) |
| 219 | return ( |
| 220 | <span className="flex items-center gap-1 shrink-0" title={`${c.barId}${c.barCapability ? ` · ${c.barCapability}` : ''}`}> |
| 221 | <span className="text-[10px] text-text/75 font-medium truncate max-w-[96px]">{c.sourceId}</span> |
| 222 | {c.barCapability && ( |
| 223 | <span className={`text-[9px] ${CAPABILITY_COLOR[c.barCapability] ?? 'text-text-muted'}`}>{c.barCapability}</span> |
| 224 | )} |
| 225 | </span> |
| 226 | ) |
| 227 | } |
| 228 |
nothing calls this directly
no outgoing calls
no test coverage detected