mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +00:00
hanzo-build-linux-amd64 is the only ARC runner pool installed on hanzo-k8s today (arm64 pool is paused until DigitalOcean ships arm64 droplets, per ~/work/hanzo/.github/RUNNERS.md). The arm64 job was waiting on spark-hanzoai-arm64 — not provisioned in this cluster — so every build sat in queue forever and the amd64 leg got cancelled. Set platforms: linux/amd64 on the reusable build call to skip arm64 entirely. Re-add arm64 if/when DO ships arm64 droplets and the spark runner pool comes back online.
58 lines
1.7 KiB
TypeScript
58 lines
1.7 KiB
TypeScript
import { BookOpenIcon, FileTextIcon } from "lucide-react";
|
|
|
|
interface ConversationDocumentContextProps {
|
|
dataroomDocument?: {
|
|
document: {
|
|
name: string;
|
|
type?: string;
|
|
};
|
|
};
|
|
documentPageNumber?: number | null;
|
|
documentVersionNumber?: number | null;
|
|
className?: string;
|
|
showVersionNumber?: boolean; // Controls whether to show version info
|
|
}
|
|
|
|
export function ConversationDocumentContext({
|
|
dataroomDocument,
|
|
documentPageNumber,
|
|
documentVersionNumber,
|
|
className = "",
|
|
showVersionNumber = false,
|
|
}: ConversationDocumentContextProps) {
|
|
if (!dataroomDocument) return null;
|
|
|
|
const hasPageOrVersion =
|
|
documentPageNumber || (showVersionNumber && documentVersionNumber);
|
|
|
|
return (
|
|
<div
|
|
className={`flex items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 text-sm ${className}`}
|
|
>
|
|
<div className="flex min-w-0 flex-1 items-center gap-2">
|
|
<FileTextIcon className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
<span className="truncate font-medium">
|
|
{dataroomDocument.document.name}
|
|
</span>
|
|
</div>
|
|
|
|
{hasPageOrVersion && (
|
|
<div className="flex shrink-0 items-center gap-2 text-xs text-muted-foreground">
|
|
{documentPageNumber && (
|
|
<span className="flex items-center gap-1">
|
|
<BookOpenIcon className="h-3 w-3" />
|
|
Page {documentPageNumber}
|
|
</span>
|
|
)}
|
|
{documentPageNumber && showVersionNumber && documentVersionNumber && (
|
|
<span>•</span>
|
|
)}
|
|
{showVersionNumber && documentVersionNumber && (
|
|
<span>v{documentVersionNumber}</span>
|
|
)}
|
|
</div>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|