Files
langship.sh/web/components/empty-section.tsx
T
patel-lyzr b6647a537d feat: add Gateway page and Runs page with real-time updates
- Implemented a new Gateway page that provides a uniform ingress for deployed agents.
- Created a Runs page that lists recent pipeline executions with auto-refresh and error handling.
- Added a RunsListener component to handle real-time notifications for new runs via SSE.
- Updated the AppSidebar to include links to the new Gateway and Runs pages.
- Enhanced FlowNode component to improve status display and styling.
- Introduced EmptySection component for consistent empty state presentation.
- Updated API utility to include a new endpoint for the runs stream.
2026-05-13 22:15:08 +05:30

23 lines
748 B
TypeScript

"use client";
import type { ReactNode } from "react";
export function EmptySection(props: {
title: string;
description: ReactNode;
status?: "soon" | "alpha";
}) {
const { title, description, status = "soon" } = props;
return (
<div className="flex h-full flex-col items-start gap-6 p-8">
<div className="flex items-center gap-3">
<h1 className="text-3xl font-semibold tracking-tight">{title}</h1>
<span className="rounded-md border bg-muted/30 px-2 py-0.5 text-[10px] font-medium uppercase tracking-wider text-muted-foreground">
{status === "soon" ? "coming soon" : "alpha"}
</span>
</div>
<p className="max-w-lg text-sm text-muted-foreground">{description}</p>
</div>
);
}