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

Function ErrorPanel

ui/src/components/uta/OrderEntryDialog.tsx:446–458  ·  view source on GitHub ↗
({ message, phase }: { message: string; phase?: string })

Source from the content-addressed store, hash-verified

444// ==================== Error display ====================
445
446function ErrorPanel({ message, phase }: { message: string; phase?: string }) {
447 return (
448 <div className="rounded-md border border-red/30 bg-red/5 px-3 py-2.5">
449 <div className="flex items-center gap-2 mb-1">
450 <span className="w-2 h-2 rounded-full bg-red shrink-0" />
451 <span className="text-[12px] font-medium text-red">
452 {phase ? `Failed at ${phase} step` : 'Failed'}
453 </span>
454 </div>
455 <p className="text-[12px] text-text whitespace-pre-wrap">{message}</p>
456 </div>
457 )
458}
459
460// ==================== Segmented control ====================
461

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected