Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a deterministic verification core: clinical-trial claims checked against ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI recomputed in code, oracle-tested), code-enforced exact-span grounding, and multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing at scale (unpdf + Docling), agentic workflows, Claude Science connector, compliance/audit, billing, public API, and more. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
31 lines
883 B
TypeScript
31 lines
883 B
TypeScript
"use client";
|
|
|
|
// One message in a ticket thread. Highlights the current user's own messages.
|
|
import type { TicketMessageDto } from "@/app/console/help/api";
|
|
|
|
export function MessageBubble({
|
|
message,
|
|
isMine,
|
|
}: {
|
|
message: TicketMessageDto;
|
|
isMine: boolean;
|
|
}) {
|
|
return (
|
|
<div
|
|
className={`rounded-lg border p-4 ${
|
|
isMine ? "border-accent/30 bg-accent/5" : "border-ink/10 bg-white"
|
|
}`}
|
|
>
|
|
<div className="flex items-center justify-between gap-3">
|
|
<span className="text-xs font-medium text-ink/70">
|
|
{isMine ? "You" : message.authorName || message.authorEmail || "Unknown"}
|
|
</span>
|
|
<span className="text-xs text-ink/40">
|
|
{new Date(message.createdAt).toLocaleString()}
|
|
</span>
|
|
</div>
|
|
<p className="mt-2 text-sm text-ink/70 whitespace-pre-wrap">{message.body}</p>
|
|
</div>
|
|
);
|
|
}
|