Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
61 lines
2.5 KiB
TypeScript
61 lines
2.5 KiB
TypeScript
import React from 'react';
|
|
import Image from "next/image";
|
|
|
|
interface HeaderProps {
|
|
loading?: boolean; // Indicates if research is currently in progress
|
|
isStopped?: boolean; // Indicates if research was manually stopped
|
|
showResult?: boolean; // Controls if research results are being displayed
|
|
onStop?: () => void; // Handler for stopping ongoing research
|
|
onNewResearch?: () => void; // Handler for starting fresh research
|
|
isCopilotMode?: boolean; // Indicates if we are in copilot mode
|
|
}
|
|
|
|
const Header = ({ loading, isStopped, showResult, onStop, onNewResearch, isCopilotMode }: HeaderProps) => {
|
|
return (
|
|
<div className="fixed top-0 left-0 right-0 z-50">
|
|
{/* Pure transparent blur background */}
|
|
<div className="absolute inset-0 backdrop-blur-sm bg-transparent"></div>
|
|
|
|
{/* Header container */}
|
|
<div className="container relative h-[60px] px-4 lg:h-[80px] lg:px-0 pt-4 pb-4">
|
|
<div className="flex flex-col items-center">
|
|
{/* Logo/Home link */}
|
|
<a href="/">
|
|
<img
|
|
src="/img/gptr-logo.png"
|
|
alt="logo"
|
|
width={60}
|
|
height={60}
|
|
className="lg:h-16 lg:w-16"
|
|
/>
|
|
</a>
|
|
|
|
{/* Action buttons container */}
|
|
<div className="flex gap-2 mt-2 transition-all duration-300 ease-in-out">
|
|
{/* Stop button - shown only during active research */}
|
|
{loading && !isStopped && (
|
|
<button
|
|
onClick={onStop}
|
|
className="flex items-center justify-center px-4 sm:px-6 h-9 sm:h-10 text-sm text-white bg-red-500 rounded-full hover:bg-red-600 transform hover:scale-105 transition-all duration-200 shadow-lg whitespace-nowrap min-w-[80px]"
|
|
>
|
|
Stop
|
|
</button>
|
|
)}
|
|
{/* New Research button - shown after stopping or completing research - but not in copilot mode */}
|
|
{(isStopped || !loading) && showResult && !isCopilotMode && (
|
|
<button
|
|
onClick={onNewResearch}
|
|
className="flex items-center justify-center px-4 sm:px-6 h-9 sm:h-10 text-sm text-white bg-teal-500 rounded-full hover:bg-teal-600 transform hover:scale-105 transition-all duration-200 shadow-lg whitespace-nowrap min-w-[120px]"
|
|
>
|
|
New Research
|
|
</button>
|
|
)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Header;
|