MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / SourceTrail

Function SourceTrail

ui/src/components/MarketSidebar.tsx:216–227  ·  view source on GitHub ↗

Explicit provider + freshness + asset class for a search hit — this is how * same-symbol sources are disambiguated (TradingView-style).

({ c }: { c: BarSourceCandidate })

Source from the content-addressed store, hash-verified

214/** Explicit provider + freshness + asset class for a search hit — this is how
215 * same-symbol sources are disambiguated (TradingView-style). */
216function 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected