text
stringlengths
3
8.33k
repo
stringclasses
52 values
path
stringlengths
6
141
language
stringclasses
35 values
sha
stringlengths
64
64
chunk_index
int32
0
273
n_tokens
int32
1
896
] : iso.rangeMinutes <= 60 ? ISO_FILLS[60] : ISO_FILLS[120]; const line = iso.rangeMinutes <= 30 ? ISO_LINES[30] : iso.rangeMinutes <= 60 ? ISO_LINES[60] : ISO_LINES[120]; result.pu...
hacknation
www/components/artifacts/medical-desert.tsx
TypeScript
686d0df9d4dfa9e37a20ff42db5bf94b376924243112ee1b17f49d7c05614906
1
896
font-geist),system-ui,sans-serif;max-width:220px">${lines.join("")}</div>`, style: { backgroundColor: "rgba(0,0,0,0.85)", backdropFilter: "blur(8px)", border: "1px solid rgba(255,255,255,0.15)", borderRadius: "8px", padding: "8px 12px", ...
hacknation
www/components/artifacts/medical-desert.tsx
TypeScript
204e1dfe6a7f40d09fd2a1b6de4a4e02c2b5411d9b92f22d8d0270707536a4cb
2
896
/MapErrorBoundary> {/* Legend */} <div className="absolute bottom-4 right-4 z-10 rounded-lg border border-border bg-background/70 p-3 text-xs text-foreground backdrop-blur-sm"> <div className="mb-2 font-semibold">Legend</div> <div className="mb-1 flex items-center gap-2"> ...
hacknation
www/components/artifacts/medical-desert.tsx
TypeScript
00426c20406da5e2409c2908f0d5c44f29bd900b5840ac11287edc960976fb9e
3
684
"use client"; import type { MapViewState } from "deck.gl"; import { DeckGL, ScatterplotLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl.css"; import { MapError...
hacknation
www/components/artifacts/mission-plan.tsx
TypeScript
6507ce225ee18a5c696151a69fbafe0e5c89764a19a50d0ed713ea5dd21bc753
0
896
{ return [239, 68, 68, 230]; } if (priority.toLowerCase().includes("high")) { return [249, 115, 22, 230]; } if (priority.toLowerCase().includes("medium")) { return [234, 179, 8, 230]; } return [120, 120, 120, 180]; } function MissionMap({ recommendations, }: { recommendations: MissionPlanDa...
hacknation
www/components/artifacts/mission-plan.tsx
TypeScript
cbd4bb318b3d4102c5c88c5cb8471cb68e906bf21dad2a303a7d172a140476f1
1
896
full border-2 border-muted-foreground/30 border-t-amber-500 animate-spin" /> <span className="text-sm">Planning mission...</span> </div> </div> ); } return ( <div className="flex size-full flex-col overflow-y-auto bg-background"> {/* Deployment map */} {data.recommendati...
hacknation
www/components/artifacts/mission-plan.tsx
TypeScript
46cbdcebd2464a16025cc6cca96802226ac166d959a9e631e3a215a91fdbef41
2
896
{" "} </span> <span className="font-medium text-foreground"> {rec.suggestedHost.name} </span> {rec.suggestedHost.city && ( <span className="text-muted-foreground"> {" "} ...
hacknation
www/components/artifacts/mission-plan.tsx
TypeScript
b1573821ead65a463ba88d522b421c2f5deb54dd5cc41c052cc5cf7a0188fc02
3
190
"use client"; import type { MapViewState, PickingInfo } from "deck.gl"; import { DeckGL, ScatterplotLayer, TextLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl...
hacknation
www/components/artifacts/region-choropleth.tsx
TypeScript
f0474199980698513042f322f6ccd44a8dca6891c2c0acbf651355d9e1765ba9
0
896
]; } const maxValue = Math.max(...data.regions.map((r) => r.value), 1); const minValue = Math.min(...data.regions.map((r) => r.value)); const range = maxValue - minValue || 1; return data.regions .map((r) => { const centroid = REGION_CENTROIDS[r.region]; if (!centroid) { ...
hacknation
www/components/artifacts/region-choropleth.tsx
TypeScript
8b70a45d6e8539edc6afa1539365fde156b6e6af8de6148bda545be2fc8ff0e1
1
896
}, [data.metric, data.metricLabel] ); if (!isMounted || !data) { return ( <div className="flex size-full items-center justify-center bg-muted text-muted-foreground"> <div className="flex flex-col items-center gap-2"> <div className="size-6 rounded-full border-2 border-muted-foregrou...
hacknation
www/components/artifacts/region-choropleth.tsx
TypeScript
0af19f66e144f44142ec43f78792324a69574e0357bc838f1f4d14a64eb5694d
2
896
4 text-right"> {i + 1} </span> <span className="truncate font-medium text-foreground"> {r.region} </span> </div> <span className="ml-2 shrink-0 text-blue-400 tabular-nums font-medium"> {typeof...
hacknation
www/components/artifacts/region-choropleth.tsx
TypeScript
f9b06c9fc40b69ef4201c01e26fb70f0fe6e79851811f1085595de6a118eba54
3
117
"use client"; import type { MapViewState, PickingInfo } from "deck.gl"; import { DeckGL, ScatterplotLayer } from "deck.gl"; import { useTheme } from "next-themes"; import { useEffect, useMemo, useState } from "react"; import { Map as MapGL } from "react-map-gl/maplibre"; import "maplibre-gl/dist/maplibre-gl.css"; impo...
hacknation
www/components/artifacts/specialty-map.tsx
TypeScript
214cba13ce055d61a6ff32be981a55f81bdf0dc992e2a80cecc404481536cc7d
0
896
, 180, 150], getRadius: 400, radiusMinPixels: 3, radiusMaxPixels: 12, stroked: true, lineWidthMinPixels: 1, pickable: true, autoHighlight: true, highlightColor: [255, 255, 255, 60], }) ); } // Facilities WITH the targ...
hacknation
www/components/artifacts/specialty-map.tsx
TypeScript
688bef1a9779d09fe9402db678b4085d97d9eef86473d9f3929babae6db7f73d
1
896
); if (!isMounted || !data) { return ( <div className="flex size-full items-center justify-center bg-muted text-muted-foreground"> <div className="flex flex-col items-center gap-2"> <div className="size-6 rounded-full border-2 border-muted-foreground/30 border-t-green-500 animate-spin" />...
hacknation
www/components/artifacts/specialty-map.tsx
TypeScript
6cc0bd2fd0fed2e0ae06edd5cf4aea0da0f53605695e9698801a1e6c18201106
2
896
* Gap zones list */} {data.gapZones.length > 0 && ( <div className="max-h-32 overflow-y-auto border-t border-border bg-background/90"> <div className="px-4 py-2"> <p className="text-[10px] font-medium uppercase tracking-wider text-red-400"> Gap zones — no {data.specialt...
hacknation
www/components/artifacts/specialty-map.tsx
TypeScript
3bec042ec3a2225484df8cbb808e82362439a9373351de526acb62e1b13c783f
3
192
"use client"; type StatsDashboardData = { title: string; groupBy?: string; totalFacilities?: number; facilitiesWithCoordinates?: number; stats: Record<string, unknown>[]; stage: string; progress: number; }; export function StatsDashboardRenderer({ data }: { data: StatsDashboardData }) { if (!data) { ...
hacknation
www/components/artifacts/stats-dashboard.tsx
TypeScript
a2f63415aae44464da1efa6e1d1999c00e9cad6c44322fd8ae6488c64d778425
0
896
([key, val]) => ( <td className="px-4 py-2 text-foreground" key={key}> {typeof val === "number" ? ( <span className="tabular-nums"> {val.toLocaleString()} </span> ) : ( ...
hacknation
www/components/artifacts/stats-dashboard.tsx
TypeScript
624cda6ed14daf99769f2c2f617b6ff233080c921f5a7e4ffb60cf0d1ac711a1
1
116
"use client"; import { ArrowDownIcon } from "lucide-react"; import type { ComponentProps } from "react"; import { useCallback } from "react"; import { StickToBottom, useStickToBottomContext } from "use-stick-to-bottom"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; export type Con...
hacknation
www/components/elements/conversation.tsx
TypeScript
8c840e4290312ac910686f34a48e3348bde1b2ae4c1d939f52f860fbf8f09637
0
379
"use client"; import { useControllableState } from "@radix-ui/react-use-controllable-state"; import { BrainIcon, ChevronDownIcon } from "lucide-react"; import type { ComponentProps } from "react"; import { createContext, memo, useContext, useEffect, useState } from "react"; import { Shimmer } from "@/components/ai-ele...
hacknation
www/components/elements/reasoning.tsx
TypeScript
37f6532de607e5e64edec1df6a569cd165f9cbcc9145ad864d1c59238967b4bc
0
896
} <ChevronDownIcon className={cn( "size-2.5 transition-transform", isOpen ? "rotate-180" : "rotate-0" )} /> </> )} </CollapsibleTrigger> ); } ); export type ReasoningContentProps = ComponentProps< typeof...
hacknation
www/components/elements/reasoning.tsx
TypeScript
446a0eb2c3380686b6f2b110464751057c52261ebfb83528647369e1c0de5379
1
334
"use client"; import type { ComponentProps } from "react"; import { Streamdown } from "streamdown"; import { cn } from "@/lib/utils"; type ResponseProps = ComponentProps<typeof Streamdown>; export function Response({ className, children, ...props }: ResponseProps) { return ( <Streamdown className={cn( ...
hacknation
www/components/elements/response.tsx
TypeScript
672b5b6789dbf4fd19729c85b77a909fec66c1bc4ca7bee9c9f48f56188791a7
0
170
"use client"; import type { ToolUIPart } from "ai"; import { CheckCircleIcon, ChevronDownIcon, CircleIcon, ClockIcon, WrenchIcon, XCircleIcon, } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { Badge } from "@/components/ui/badge"; import { Collapsible, CollapsibleC...
hacknation
www/components/elements/tool.tsx
TypeScript
567ec40053b40897043223877f0a74b8de0e7a7ccb9ee9ca605b75d9d375b009
0
896
, className )} {...props} /> ); export type ToolInputProps = ComponentProps<"div"> & { input: ToolUIPart["input"]; }; export const ToolInput = ({ className, input, ...props }: ToolInputProps) => ( <div className={cn("space-y-2 overflow-hidden p-4", className)} {...props}> <h4 className="font-m...
hacknation
www/components/elements/tool.tsx
TypeScript
33619b22bcc58bd117a069ec0f969393e86f6ee9c668f3cc127fe3eecad34276
1
396
"use client"; import { ChevronDownIcon } from "lucide-react"; import type { ComponentProps, ReactNode } from "react"; import { createContext, useContext, useState } from "react"; import { Button } from "@/components/ui/button"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/components/ui...
hacknation
www/components/elements/web-preview.tsx
TypeScript
12f5269e60e979919a0b760779544dc77732022116b7c668774d2c27a8cd50e9
0
896
import Link from "next/link"; export function CTASection() { return ( <section className="w-full border-t border-border py-16 md:py-24"> <div className="mx-auto max-w-5xl px-6"> <div className="flex flex-col items-center gap-6 rounded-2xl border border-border bg-card p-10 text-center md:p-16"> ...
hacknation
www/components/marketing/cta-section.tsx
TypeScript
61a31e491fb91475d159398e0727815a181fcb94e1a96cfd485f938e580a7d3c
0
272
"use client"; import { ChevronDown } from "lucide-react"; import { useState } from "react"; import { cn } from "@/lib/utils"; const FAQ_ITEMS = [ { question: "What is Meridian?", answer: "Meridian is an AI-powered healthcare intelligence platform built for the Virtue Foundation. It helps NGO coordinat...
hacknation
www/components/marketing/faq-section.tsx
TypeScript
64895ed5a213692dc558d25b9cb80820b60529e1cb059e0fd362827f910ed62f
0
896
[grid-template-rows] duration-200", openIndex === index ? "grid-rows-[1fr]" : "grid-rows-[0fr]" )} > <div className="overflow-hidden"> <p className="px-5 pb-4 text-sm leading-relaxed text-muted-foreground"> {item.answe...
hacknation
www/components/marketing/faq-section.tsx
TypeScript
a0e5abd296ef1321d9e79cbc30bf9d52ed1d1ab40e7ad714953a41b14bc00b70
1
115
import { Activity, AlertTriangle, Globe, MapPin, Search, Stethoscope, } from "lucide-react"; const FEATURES = [ { icon: Search, title: "Intelligent Facility Search", description: "Query 987 healthcare facilities across Ghana using natural language. Semantic search understands context — ...
hacknation
www/components/marketing/features-section.tsx
TypeScript
e1780f82d63d3e672697316f248e44235516f2527368dc8dfe59ba1997b7a7c5
0
658
import Link from "next/link"; import { MeridianLogo } from "@/components/icons"; const FOOTER_LINKS = [ { title: "Product", links: [ { label: "Try Meridian", href: "/chat" }, { label: "Features", href: "#features" }, { label: "How It Works", href: "#how-it-works" }, { label: "FAQ", hr...
hacknation
www/components/marketing/footer-section.tsx
TypeScript
01de6101e0305632708690caa3a1e4bbcc08131cd71ef436b0a6569b9a39674e
0
620
"use client"; import { ArrowRight } from "lucide-react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useState } from "react"; import { MeridianLogo } from "@/components/icons"; const SUGGESTED_PROMPTS = [ "How many hospitals offer cardiology in Ghana?", "Find clinics near T...
hacknation
www/components/marketing/hero-section.tsx
TypeScript
74ee6901ece4974f1bed66c599dbdda449c00c4d11938371bfbc437481f565b8
0
896
Send prompt" className="flex size-8 items-center justify-center rounded-lg bg-primary text-primary-foreground shadow-sm transition-all hover:bg-primary/90 active:scale-95 disabled:opacity-40 disabled:hover:bg-primary" disabled={!prompt.trim()} onClick={() => handleSubmit(...
hacknation
www/components/marketing/hero-section.tsx
TypeScript
b9ae962b7bcbbadbceed6f88921fbc48276870981499a9fc4c7fa1a805e939e0
1
241
import { Cpu, FileText, MapIcon, MessageSquare } from "lucide-react"; const STEPS = [ { icon: MessageSquare, step: "01", title: "Ask a question", description: 'Type a natural language question like "Which regions lack emergency surgery?" or "Plan a volunteer mission for a cardiologist."', }, ...
hacknation
www/components/marketing/how-it-works-section.tsx
TypeScript
41d726aabe17eb8174f9e6c4cf88f7c0d2819569444d21bfe3f78ff1a9c509f6
0
616
"use client"; import { Menu, X } from "lucide-react"; import { AnimatePresence, motion, useScroll } from "motion/react"; import Link from "next/link"; import { useEffect, useState } from "react"; import { MeridianLogo } from "@/components/icons"; import { cn } from "@/lib/utils"; const NAV_LINKS = [ { id: 1, name: ...
hacknation
www/components/marketing/navbar.tsx
TypeScript
750aac9984b18250b2a987c8ad2a3c1bf42568bc14e44b23da6d119c76267758
0
896
auto w-[95%] rounded-xl border border-border bg-background p-4 shadow-lg" exit={{ opacity: 0, y: 100, transition: { duration: 0.1 } }} initial={{ opacity: 0, y: 100 }} > <div className="flex flex-col gap-4"> <div className="flex items-center justify-...
hacknation
www/components/marketing/navbar.tsx
TypeScript
e8cb220b723b093f84d67555b65fa0e009dc69629cac9e7cc38b94e4b4a9acaf
1
414
import Image from "next/image"; import { siteConfig } from "@/lib/config"; import Link from "next/link"; export function CTASection() { const { ctaSection } = siteConfig; return ( <section id="cta" className="flex flex-col items-center justify-center w-full" > <div className="w-full"> ...
hacknation
www/components/sections/cta-section.tsx
TypeScript
ba8f3440d5a6a502e66af78f998f6a05812c8ec5f749d0db25e65aa22b11c42f
0
381
import { SectionHeader } from "@/components/section-header"; import { Feature as FeatureComponent } from "@/components/ui/feature-slideshow"; import { siteConfig } from "@/lib/config"; export function FeatureSection() { const { title, description, items } = siteConfig.featureSection; return ( <section i...
hacknation
www/components/sections/feature-section.tsx
TypeScript
fc7343cddaaccbf0645f28f8d1d237cfd7fb59e427e85ec2602f42886d9b711f
0
233
"use client"; import { Icons } from "@/components/icons"; import { FlickeringGrid } from "@/components/ui/flickering-grid"; import { useMediaQuery } from "@/hooks/use-media-query"; import { siteConfig } from "@/lib/config"; import { ChevronRightIcon } from "@radix-ui/react-icons"; import Link from "next/link"; export ...
hacknation
www/components/sections/footer-section.tsx
TypeScript
ada78d2713b6be87e9efed6c299f22edf1ba0e742ffaba458a2831662ba3de86
0
855
import { HeroVideoSection } from "@/components/sections/hero-video-section"; import { siteConfig } from "@/lib/config"; import Link from "next/link"; export function HeroSection() { const { hero } = siteConfig; return ( <section id="hero" className="w-full relative"> <div className="relative flex flex-c...
hacknation
www/components/sections/hero-section.tsx
TypeScript
2c489b353a338b917b4c0808eef694b5597783318a66dc32bdaef0e1f689dae8
0
691
import { HeroVideoDialog } from "@/components/ui/hero-video-dialog"; export function HeroVideoSection() { return ( <div className="relative px-6 mt-10"> <div className="relative size-full shadow-xl rounded-2xl overflow-hidden"> <HeroVideoDialog className="block dark:hidden" anim...
hacknation
www/components/sections/hero-video-section.tsx
TypeScript
d7f81faa1cc413aec373c249161dbcc739185f55e6c64f1ee0aa204afbd89847
0
221
"use client"; import { Icons } from "@/components/icons"; import { NavMenu } from "@/components/nav-menu"; import { ThemeToggle } from "@/components/theme-toggle"; import { siteConfig } from "@/lib/config"; import { cn } from "@/lib/utils"; import { Menu, X } from "lucide-react"; import { AnimatePresence, motion, useS...
hacknation
www/components/sections/navbar.tsx
TypeScript
6017d18adc1368cca4c1970e04f543122ae9afd49ec0b720ea9e02fcf7d8cc6e
0
896
row items-center gap-1 md:gap-3 shrink-0"> <div className="flex items-center space-x-6"> <Link className="bg-secondary h-8 hidden md:flex items-center justify-center text-sm font-normal tracking-wide rounded-full text-primary-foreground dark:text-secondary-foreground w-fi...
hacknation
www/components/sections/navbar.tsx
TypeScript
83da388c01c0fa28d2d484333021fa04f678c680177034ae3414fa9d46362f2b
1
896
-[inset_0_1px_2px_rgba(255,255,255,0.25),0_3px_3px_-1.5px_rgba(16,24,40,0.06),0_1px_1px_rgba(16,24,40,0.08)] border border-white/[0.12] hover:bg-secondary/80 transition-all ease-out active:scale-95" > Try for free </Link> </div> </div...
hacknation
www/components/sections/navbar.tsx
TypeScript
634fab2037def1c644def1563e1166206c7077c28b4d95167203f5fc5e7841bf
2
105
"use client"; import { SectionHeader } from "@/components/section-header"; import { siteConfig } from "@/lib/config"; import { cn } from "@/lib/utils"; import { motion } from "motion/react"; import { useState } from "react"; interface TabsProps { activeTab: "yearly" | "monthly"; setActiveTab: (tab: "yearly" | "mo...
hacknation
www/components/sections/pricing-section.tsx
TypeScript
4b8259a90063212b367c6296966768ecb1c591f0ea975527600c7ce507b1abd9
0
896
-x-1/2"> <PricingTabs activeTab={billingCycle} setActiveTab={setBillingCycle} className="mx-auto" /> </div> <div className="grid min-[650px]:grid-cols-2 min-[900px]:grid-cols-3 gap-4 w-full max-w-6xl mx-auto px-6"> {siteConfig.pricing.pr...
hacknation
www/components/sections/pricing-section.tsx
TypeScript
b086e977d1c5cacb15cda17746fdc5dc43c0ad7af03c14d94535356e421e6335
1
896
(feature) => ( <li key={feature} className="flex items-center gap-2"> <div className={cn( "size-5 rounded-full border border-primary/20 flex items-center justify-center", tier.isPopular && ...
hacknation
www/components/sections/pricing-section.tsx
TypeScript
b7716b916eb975f0f2f80af6768fbdbbeb419adedcc44e85c40b0af8c3404f31
2
346
/* eslint-disable @next/next/no-img-element */ import { siteConfig } from "@/lib/config"; export function QuoteSection() { const { quoteSection } = siteConfig; return ( <section id="quote" className="flex flex-col items-center justify-center gap-8 w-full p-14 bg-accent z-20" > <blockquot...
hacknation
www/components/sections/quote-section.tsx
TypeScript
6a7f7870cbad197c19dc7040b8b86214ac333d8be190a3ac0d56fe59cb2e0ab6
0
294
import { SectionHeader } from "@/components/section-header"; import { SocialProofTestimonials } from "@/components/testimonial-scroll"; import { siteConfig } from "@/lib/config"; export function TestimonialSection() { const { testimonials } = siteConfig; return ( <section id="testimonials" classNa...
hacknation
www/components/sections/testimonial-section.tsx
TypeScript
323d2016a752a0a1c3c5630bf76399ad76f097944bf695e7b573a0c688e2d993
0
190
"use client"; import { BotIcon, CheckCircle2, ChevronDownIcon, CircleDot, Loader2, WrenchIcon, } from "lucide-react"; import { useMemo, useState } from "react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent } from "@/components/ui/card"; import { Collapsible, CollapsibleCont...
hacknation
www/components/tool-results/agent-delegation-card.tsx
TypeScript
5e1c75db19fa301cdf1e5f0fb3c43d642cde80ac643ec6c41f09abcd8f5536b5
0
896
(tool) => { const isDone = tool.result !== undefined; const hasError = isDone && "error" in (tool.result ?? {}); return ( <span className="flex items-center gap-1 text-[11px]" key={tool.toolCallId} > {isDone ? ( hasError ? ( ...
hacknation
www/components/tool-results/agent-delegation-card.tsx
TypeScript
747b01a40fd0e8924b990feb997768097e2d1fefff7b308bdd532b8c47d1eb87
1
896
:bg-muted/50"> <div className="flex min-w-0 items-center gap-2"> <BotIcon className="size-4 shrink-0 text-muted-foreground" /> <span className="truncate text-sm font-medium text-foreground"> {config.label} </span> <Badge className="ga...
hacknation
www/components/tool-results/agent-delegation-card.tsx
TypeScript
f0c7ae7fbda6701bf8d35b071940f6e152f86b3251588f91cbe6c4fda49db5a1
2
620
"use client"; import { AlertTriangle, Building2 } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/comp...
hacknation
www/components/tool-results/anomaly-alerts-result.tsx
TypeScript
6343b4a3f2e5635e6b62f57283a0fb1e8dbddaab4b894fb8e3068f497232d5bb
0
896
} </ul> </CollapsibleContent> </Collapsible> )} </div> ); } function AnomalyFacilityCard({ facility }: { facility: Record<string, unknown> }) { const name = facility.name as string | undefined; const type = (facility.facilityType ?? facility.facility_type ?? facility.type)...
hacknation
www/components/tool-results/anomaly-alerts-result.tsx
TypeScript
b21f2c3e799ab93b45294aa77f0ae69f31a2a3b08592768c070f214dd026c2ea
1
822
"use client"; import { ChevronDown, ChevronRight, ShieldAlert, ShieldCheck, ShieldX, } from "lucide-react"; import { useState } from "react"; import { Badge } from "@/components/ui/badge"; import { cn } from "@/lib/utils"; interface AnomalyFlag { checkId: string; severity: "critical" | "high" | "medium"...
hacknation
www/components/tool-results/anomaly-confidence-badge.tsx
TypeScript
c8b77de0fe287156ca1c0fc01dca40e6e1aa0d03ceb439248a4c991238714d1c
0
841
"use client"; import { Brain } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/components/ui/collapsib...
hacknation
www/components/tool-results/claims-validation-result.tsx
TypeScript
ec2a959f0d70031a4c97760d3b98e3926a016967ed8fa7e6aac60f4a766cb858
0
896
md border border-border p-2.5"> <div className="flex items-center gap-2"> <Badge className="text-[9px] uppercase tracking-wider" variant="secondary" > {issue.severity} </Badge> <span className="font-mono text-[10px] text-muted-foreground"> {i...
hacknation
www/components/tool-results/claims-validation-result.tsx
TypeScript
f9c0f627987931de7bb55ede0fe45c3e87cec2d785d197851fd3dcd9b3de9884
1
659
"use client"; import { CheckIcon, MessageCircleQuestionIcon, SendIcon } from "lucide-react"; import { useCallback, useRef, useState } from "react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; impor...
hacknation
www/components/tool-results/clarifying-question-card.tsx
TypeScript
a626d7b2fea12e790f4fe4671a1a3544cb9059daec6e7d73a86f746f2ec4b196
0
896
{ if (e.key === "Enter") { handleCustomSubmit(); } }} placeholder="Or type your own answer..." ref={inputRef} type="text" value={customValue} /> <Button aria-labe...
hacknation
www/components/tool-results/clarifying-question-card.tsx
TypeScript
65bf30bbde3542802d6a20910cb10335df05a35f58fd573913eb28c6c895b594
1
199
"use client"; import { ShieldAlert } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; import { AnomalyConfidenceBadge } from "./anomaly-confidence-badge"; interface AnomalyFl...
hacknation
www/components/tool-results/credibility-assessment-result.tsx
TypeScript
c6280d4462620b7bded54941fb5d201da0304d92e4c3674b9bb6cbf258134e37
0
896
-wrap items-center gap-2 text-[10px] text-muted-foreground"> {assessment.facilityType && ( <Badge variant="secondary" className="text-[10px] font-normal"> {assessment.facilityType} </Badge> )} {(assessment.region ?? assessment.city) && ( <span> ...
hacknation
www/components/tool-results/credibility-assessment-result.tsx
TypeScript
0a55103a111254bc3bec598b4d854b80af10ae2abb6f7e834e95ed858b191b43
1
219
"use client"; import { Activity, Globe, TrendingDown, Users } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Separator } from "@/components/ui/separat...
hacknation
www/components/tool-results/demographics-result.tsx
TypeScript
b24b6a8878f009f53ef66ef60bc105fdbb63e43e7103c09e5a978e5340901eb1
0
896
" : "text-foreground" )} key={`${String(i)}-${col}`} > {formatCell(val)} </TableCell> ); })} </TableRow> ))} </TableBody> </Table> ...
hacknation
www/components/tool-results/demographics-result.tsx
TypeScript
3f943d1d0fb66abbf33b7119b234ae24d7fd8772e772f340fde45d98b23e87dd
1
896
key} variant="secondary"> {formatColumnName(key)}: {formatCell(val)}% </Badge> ))} </div> </CardContent> </> )} {diseases.length > 0 && ( <> <Separator /> <CardContent className="px-3 py-2"> ...
hacknation
www/components/tool-results/demographics-result.tsx
TypeScript
c66e47ce0a62f71b6d5903972879165e40afca8bef223a89f5f8560bbdcea2f0
2
896
result: Record<string, unknown> }) { const regions = (result.regions as Record<string, unknown>[]) ?? []; const note = result.note as string | undefined; return ( <Card className="my-2 w-full overflow-hidden"> <SectionHeader icon={Users} label="Age Demographics" /> <CardContent className="px-0 pb...
hacknation
www/components/tool-results/demographics-result.tsx
TypeScript
ffe0f825bb5afbbcafb33a2259af4756d0dc563d0c57930e0ac426c626b0b4e6
3
896
doctorsVsDeveloped", "maternalMortality", "maternalMortalityVsDeveloped", ]} highlightColumn="doctorsVsWho" rows={comparisons} /> </CardContent> </Card> ); } function UrbanRuralGap({ result }: { result: Record<string, unknown> }) { const urban...
hacknation
www/components/tool-results/demographics-result.tsx
TypeScript
21f717b745b9a87e8de604d5fca6546a8b283acc1e562f2c8b94dfbe82296ff3
4
645
"use client"; import type { MouseEvent } from "react"; import { FileText, Code, Image, Table, ExternalLink } from "lucide-react"; import type { ArtifactKind } from "@/components/artifact"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from ...
hacknation
www/components/tool-results/document-result-card.tsx
TypeScript
d6518a28b9c1c7e435c4e7ddecc6e50e5403c627de8817f1710ee6e5c0ab058b
0
896
> </CardContent> </Card> ); } function getKindIcon(kind: ArtifactKind) { switch (kind) { case "code": return Code; case "image": return Image; case "sheet": return Table; default: return FileText; } } function getKindLabel(kind: ArtifactKind) { switch (kind) {...
hacknation
www/components/tool-results/document-result-card.tsx
TypeScript
7e37df14e66726ef62a3737560b90a0a936e169aea9656bccca80657c7cb3c3c
1
108
"use client"; import { useState } from "react"; import { Building2, Check, Copy, ExternalLink, Eye, Mail, MapPin, Phone, Users, BedDouble, Maximize, Calendar, Briefcase, } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; impo...
hacknation
www/components/tool-results/facility-profile-card.tsx
TypeScript
2817e438507ce1a5a3765f2ad81a1d0e95a6499a2d94f739a50309df69cf3ff4
0
896
div className="flex items-start justify-between gap-3"> <div className="min-w-0 flex-1"> <h3 className="text-balance text-base font-semibold leading-tight text-foreground"> {name} </h3> <div className="mt-1.5 flex flex-wrap items-center gap-1.5 text-xs text-mu...
hacknation
www/components/tool-results/facility-profile-card.tsx
TypeScript
d62693d36a4a893ee51edcffa639d7340ac4e3b72fbbfcbad3daf668fb64a88a
1
896
{Users} label="Doctors" value={doctors} /> )} {areaSqm !== null && ( <MetricCell icon={Maximize} label="Area" value={`${areaSqm.toLocaleString()}m\u00b2`} /> )} </div> </> )} {/...
hacknation
www/components/tool-results/facility-profile-card.tsx
TypeScript
e602298b462d4bd14de571a8fb6efd38490a3912c7b66c115426196e8a30776b
2
896
" variant="outline" > <Eye className="size-3.5" /> View on Map </Button> )} {lat && lng && ( <Button aria-label="Get directions to facility" className="h-8 gap-1.5 text-xs" onClick={handleDirections} ...
hacknation
www/components/tool-results/facility-profile-card.tsx
TypeScript
633d4685342a18aa750240935a693c17b048fae09ddea33b72dc2390ed0cfacf
3
354
"use client"; import { ToolTrace } from "../vf-ui/ToolTrace"; import { AgentDelegationCard } from "./agent-delegation-card"; import { getToolComponent } from "./tool-component-map"; interface ToolResultRouterProps { toolCallId: string; toolName: string; args: Record<string, unknown>; result?: Record<string, u...
hacknation
www/components/tool-results/index.tsx
TypeScript
a6b299ff85c1dfd846c3694d617f8782734f6934859efd0a09eace4a264dfea6
0
303
"use client"; import { AlertTriangle, Eye } from "lucide-react"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card";...
hacknation
www/components/tool-results/medical-deserts-result.tsx
TypeScript
9465948fabf62970472ee31c0ef407c3173a811e32eabe91bbf4efb3557d4629
0
896
div className="flex flex-col items-center gap-2 py-6 text-center"> <AlertTriangle className="size-5 text-muted-foreground/40" /> <p className="text-xs text-muted-foreground">No medical deserts detected</p> <p className="text-[11px] text-muted-foreground/70">All areas have {service} c...
hacknation
www/components/tool-results/medical-deserts-result.tsx
TypeScript
e4297097d3e239082b02396adf8f3ae6a35b2494ad90c10503a1ca11c696e3a5
1
445
"use client"; import { Activity, MapPin } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; interface Recommendation { priority: string; region: string; reason: string; ...
hacknation
www/components/tool-results/mission-plan-result.tsx
TypeScript
d1d16085fac1ff2c7ef5dea956ee55a6f1c81fc5d33670a58b70c3c8ffa97cde
0
896
Location:</span> <span className="font-medium text-foreground"> {rec.suggestedLocation} </span> </div> )} </div> </div> </li> ))} </ol> )} <...
hacknation
www/components/tool-results/mission-plan-result.tsx
TypeScript
bdcf36fdc3c2eabe9b04ad2fcc7dc2f418e48d6dcc9f27115c9ab8182908b7e6
1
66
"use client"; import { Eye, MapPin } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; import { useVF } from "@/lib...
hacknation
www/components/tool-results/nearby-facilities-result.tsx
TypeScript
59fdf4f4348db2d3490b5b961a6ade38cfeffbb49f3f77578975efd83133c91f
0
896
div> <Badge className="ml-2 shrink-0 font-mono text-[11px] tabular-nums" variant="outline" > {f.distanceKm.toFixed(0)} km </Badge> </div> </li> ))} </ul> )} </C...
hacknation
www/components/tool-results/nearby-facilities-result.tsx
TypeScript
1c450418bce5e77deecc608a310812be0a6f6ea22152bd558a0b6fefdf146e30
1
187
"use client"; import { ExternalLink, MapPin } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Separato...
hacknation
www/components/tool-results/osm-facilities-result.tsx
TypeScript
4ee535cc7fdaba4189a4b2b1e6da0f4b0e2f8da5bff0ca89ef98996afc2f3d82
0
896
Details </TableHead> <TableHead className="h-8 px-3 text-[11px]">OSM</TableHead> </TableRow> </TableHeader> <TableBody> {facilities.slice(0, 20).map((f) => ( <TableRow key={f.osmId}> <TableCell classNam...
hacknation
www/components/tool-results/osm-facilities-result.tsx
TypeScript
b9f13c973f57fddd45cf67214589aefb349a997df90e4977b8677229e9448167
1
549
"use client"; import { ClockIcon, ExternalLinkIcon, GlobeIcon, MapPinIcon, PhoneIcon, StarIcon, } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card"; import { S...
hacknation
www/components/tool-results/provider-card.tsx
TypeScript
8132f68ec4ff00181162b75a5d02a85ef5ba39e121282cf9558bf899a6c00dfa
0
896
-0.5"> <div className="flex items-center gap-1"> <span className="font-mono text-sm font-bold tabular-nums text-foreground"> {provider.rating.toFixed(1)} </span> <StarRating rating={provider.rating} /> </div> {provider.reviewC...
hacknation
www/components/tool-results/provider-card.tsx
TypeScript
6eda069db28f6202f5ed9b56568c3ca5c4a64ad4922220dcc16160f8686fc22e
1
896
text-[11px]" size="sm" variant="outline"> <a href={provider.website} rel="noopener" target="_blank"> <GlobeIcon className="size-3" /> Website <ExternalLinkIcon className="size-2.5" /> </a> </Button> )} {provider....
hacknation
www/components/tool-results/provider-card.tsx
TypeScript
56759fe199329dcdd28a295c12db11b34671e95d9d92966098fde471ea6295a4
2
342
"use client"; import { MapPinIcon, SearchIcon } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { ScrollArea } from "@/components/ui/scroll-area"; import { useVF } from "@/lib/vf-contex...
hacknation
www/components/tool-results/provider-search-result.tsx
TypeScript
0393bc2e2c4516552741afaa07a07ed4ffcbd9e5de2ab57d2ae8d49c271b2afb
0
896
="sm" type="button" variant="outline" > <MapPinIcon className="size-3" /> View All on Map </Button> )} </div> <ScrollArea className="max-h-[600px]"> <ul className="flex flex-col gap-2"> {providers.map((provider, i...
hacknation
www/components/tool-results/provider-search-result.tsx
TypeScript
055204beea44ebcdaa47a32c010d1eed9f7a7a93de7dcf51a4890361212fa152
1
213
"use client"; import { ChevronDown, ChevronRight, Database } from "lucide-react"; import { useState } from "react"; import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockHeader, CodeBlockTitle, } from "@/components/ai-elements/code-block"; import { Badge } from "@/components...
hacknation
www/components/tool-results/query-database-result.tsx
TypeScript
c2457fa6527423c836ce8a8626f1eb479514d1c1bd6fbae83edef7a29e45b30f
0
896
> <CardFooter className="flex items-center justify-between px-3 py-2"> {truncated || rows.length < count ? ( <span className="text-[11px] text-muted-foreground"> Showing {Math.min(rows.length, 10)} of {count} results </span> ) : ( <span className="text-[11...
hacknation
www/components/tool-results/query-database-result.tsx
TypeScript
0eb6c629e01864f5d4a080f0016fa0176f3dd25b43fa45be0d1cbba87205b742
1
457
"use client"; import { GitCompare } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Separator } from "@/components/ui/separator"; import { Table, T...
hacknation
www/components/tool-results/region-comparison-result.tsx
TypeScript
7f8ac7e11201d3b7cd39ef4c298c142f2005b80096f7eedc5083062095b2cb5c
0
896
r.region} > {r.region} </TableHead> ))} </TableRow> </TableHeader> <TableBody> {metrics.map((metric) => { const max = getMaxForMetric(metric.key); return ( ...
hacknation
www/components/tool-results/region-comparison-result.tsx
TypeScript
dfd58e4f70113fa07986965f55984b2d232f4037a1210dd783cc58bdafca1810
1
541
"use client"; import { Eye, Search } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card"; import { Separator } from "@/components/ui/separator"; import { useVF } from "@/lib...
hacknation
www/components/tool-results/search-facilities-result.tsx
TypeScript
7e9b788112e2a2ee958d706bff394ce761269e28c036aade23c47c269bdd9d65
0
896
="outline" > {Math.round(facility.similarity * 100)}% </Badge> </div> <div className="mt-1.5 flex items-center gap-2 text-[11px] text-muted-foreground"> {facility.type && ( <Badge variant="secon...
hacknation
www/components/tool-results/search-facilities-result.tsx
TypeScript
060589d7bba9b9ae5ff452fc2c5cee624b92004cc2ef4c345fd1f36cbf964ada
1
320
"use client"; import { AlertCircle, Stethoscope, Tent, User, } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Collapsible, CollapsibleContent, CollapsibleTr...
hacknation
www/components/tool-results/service-classification-result.tsx
TypeScript
bcb0c4f2b7fea015ff646a370664dc42dfe0358d64f70a621b445979c7c8907c
0
896
div className="flex min-w-0 items-center gap-2"> <Badge className="text-[10px]" variant="secondary" > {c.serviceType} </Badge> <span className="truncate text-xs font-medium text-foreground"> {c.facilityName} </span> ...
hacknation
www/components/tool-results/service-classification-result.tsx
TypeScript
bc49d611c0d03ef0c5e62a7b6c07f8082b76a102868fd1155a574a7c8baf2843
1
731
"use client"; import { BarChart3 } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Separator } from "@/components/ui/separator"; import { Table, Ta...
hacknation
www/components/tool-results/stats-overview-result.tsx
TypeScript
99ee76862c167d868fe765a9b8e71d7b9f64b141cd788336cccd1b5e3a984c01
0
896
{col} > {col} </TableHead> ))} </TableRow> </TableHeader> <TableBody> {stats.slice(0, 10).map((row, i) => ( <TableRow key={`stat-${String(i)}`}>...
hacknation
www/components/tool-results/stats-overview-result.tsx
TypeScript
d2f12bd22ce56bfa94295948d41890bd87b2494b52a7d771bb8ea34223094ed7
1
333
"use client"; import type { ReactNode } from "react"; import { AnomalyAlertsResult } from "./anomaly-alerts-result"; import { ClarifyingQuestionCard } from "./clarifying-question-card"; import { ClaimsValidationResult } from "./claims-validation-result"; import { CredibilityAssessmentResult } from "./credibility-asses...
hacknation
www/components/tool-results/tool-component-map.tsx
TypeScript
bc4f38bc05d7cfbef83407523f06b78c5af93618abf8b45974d8789d345b3068
0
811
"use client"; import { Sparkles } from "lucide-react"; import { useState } from "react"; import { Source, Sources, SourcesContent, SourcesTrigger, } from "@/components/ai-elements/sources"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; im...
hacknation
www/components/tool-results/web-extract-result.tsx
TypeScript
77b21ab95fe900e35f09bd50f33772fd3cf93246896959b821ef54c9b0086aac
0
701
"use client"; import { ExternalLink, FileText } from "lucide-react"; import { useState } from "react"; import { Source, Sources, SourcesContent, SourcesTrigger, } from "@/components/ai-elements/sources"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Ca...
hacknation
www/components/tool-results/web-scrape-result.tsx
TypeScript
27472b5c54c6c82e33def742eb96a3f86602c56e36cf5cd6605672820c4421fb
0
767
"use client"; import { ExternalLink, Globe } from "lucide-react"; import { Source, Sources, SourcesContent, SourcesTrigger, } from "@/components/ai-elements/sources"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { Separator } from "...
hacknation
www/components/tool-results/web-search-result.tsx
TypeScript
38cfd60945c9da8eb27f30aafc6810fed49a17da556aad9fa6ab70c0c1fd6109
0
751
"use client"; import { Globe, TrendingUp } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Card, CardContent, CardHeader } from "@/components/ui/card"; import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Separator } from "@/components/ui/separator"; import { Tab...
hacknation
www/components/tool-results/who-data-result.tsx
TypeScript
85cf4ddcef2ced803480018f426b3f7d6151c62dffe2ca0afffe3f35f2c8eb33
0
896
</span> </div> <Badge className="text-[10px]" variant="secondary"> WHO GHO </Badge> </CardHeader> {summary.length > 0 && ( <CardContent className="px-3 pb-2 pt-0"> {summary.map((line) => ( <p className="text-pretty text-[11px] text-foreground"...
hacknation
www/components/tool-results/who-data-result.tsx
TypeScript
da73f011e5d5a7777aef63126ecc16cf70ab25685b9f4b03eda81cdf798fd02c
1
860