diff --git a/.env.example b/.env.example index 1eae60e..8716d28 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -VERSION=0.1.21 +VERSION=0.1.22 # Nest run in docker, change host to database container name DB_HOST=localhost diff --git a/apps/webapp/app/components/logs/log-details.tsx b/apps/webapp/app/components/logs/log-details.tsx index 85de444..0f65cf5 100644 --- a/apps/webapp/app/components/logs/log-details.tsx +++ b/apps/webapp/app/components/logs/log-details.tsx @@ -1,16 +1,65 @@ -import { useState, useEffect } from "react"; +import { useState, useEffect, ReactNode } from "react"; import { useFetcher } from "@remix-run/react"; import { AlertCircle, Loader2 } from "lucide-react"; import { Dialog, DialogContent, DialogHeader, DialogTitle } from "../ui/dialog"; -import { Badge } from "../ui/badge"; +import { Badge, BadgeColor } from "../ui/badge"; import { type LogItem } from "~/hooks/use-logs"; import Markdown from "react-markdown"; +import { getIconForAuthorise } from "../icon-utils"; +import { cn } from "~/lib/utils"; +import { getStatusColor } from "./utils"; interface LogDetailsProps { - error?: string; log: LogItem; } +interface PropertyItemProps { + label: string; + value?: string | ReactNode; + icon?: ReactNode; + variant?: "default" | "secondary" | "outline" | "status"; + statusColor?: string; + className?: string; +} + +function PropertyItem({ + label, + value, + icon, + variant = "secondary", + statusColor, + className, +}: PropertyItemProps) { + if (!value) return null; + + return ( +
{fact.fact}
-{fact.fact}
+{fact.fact}
-{fact.fact}
+- {selectedSource || selectedStatus + {selectedSource || selectedStatus || selectedType ? "Try adjusting your filters to see more results." : "No ingestion logs are available yet."}
diff --git a/apps/webapp/app/routes/home.space.$spaceId.facts.tsx b/apps/webapp/app/routes/home.space.$spaceId.facts.tsx index ec420db..8d894f7 100644 --- a/apps/webapp/app/routes/home.space.$spaceId.facts.tsx +++ b/apps/webapp/app/routes/home.space.$spaceId.facts.tsx @@ -88,7 +88,7 @@ export default function Facts() { onSpaceFilterChange={setSelectedSpaceFilter} /> -