Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/ClinicalDashboard.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -62,9 +62,9 @@
answerSurface,
chatMicroAction,
clinicalDivider,
clinicalNotesRow,

Check warning on line 65 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'clinicalNotesRow' is defined but never used
cn,
evidenceRow,

Check warning on line 67 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'evidenceRow' is defined but never used
EmptyState,
fieldControlPlain,
fieldControlWithIcon,
Expand DownExpand Up@@ -255,9 +255,9 @@
import {
type AnswerEvidenceMapRow,
type AnswerViewMode,
buildAnswerEvidenceMap,

Check warning on line 258 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'buildAnswerEvidenceMap' is defined but never used
buildClinicalOutputSections,

Check warning on line 259 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'buildClinicalOutputSections' is defined but never used
buildHighYieldClinicalOutputSections,

Check warning on line 260 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'buildHighYieldClinicalOutputSections' is defined but never used
shouldPollForUpdates,
} from "@/lib/ward-output";

Expand DownExpand Up@@ -478,7 +478,7 @@
return navigationHashes.includes(hash as (typeof navigationHashes)[number]) ? hash : "#search";
}

function WhyThisMatchedPanel({ sources }: { sources: SearchResult[] }) {

Check warning on line 481 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'WhyThisMatchedPanel' is defined but never used
const visibleSources = sources.slice(0, 3);
if (visibleSources.length === 0) return null;

Expand DownExpand Up@@ -1016,29 +1016,29 @@
{primarySourceHref ? (
<Link
href={primarySourceHref}
className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--clinical-accent)]"
className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--clinical-accent)]"
>
<ExternalLink className="h-3.5 w-3.5" />
Source
</Link>
) : (
<span className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--text-soft)]">
<span className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--text-soft)]">
<ExternalLink className="h-3.5 w-3.5" />
Source
</span>
)}
<button
type="button"
onClick={() => void copyEvidence()}
className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--text)]"
className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--text)]"
>
<Copy className="h-3.5 w-3.5" />
{copiedQuotes ? "Copied" : "Copy"}
</button>
<button
type="button"
onClick={() => setAdded(true)}
className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--clinical-accent)]"
className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-xs font-semibold text-[color:var(--clinical-accent)]"
>
<Plus className="h-3.5 w-3.5" />
{added ? "Added" : "Add"}
Expand All@@ -1052,7 +1052,7 @@
function MobileEvidenceTabPanel({
tab,
renderModel,
query,

Check warning on line 1055 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'query' is defined but never used
visualEvidence,
answerEvidenceMapRows,
copiedQuotes,
Expand DownExpand Up@@ -1125,7 +1125,7 @@
return <EvidenceGapsPanel warnings={renderModel.warnings} />;
}

function UnifiedEvidenceDrawerContent({

Check warning on line 1128 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'UnifiedEvidenceDrawerContent' is defined but never used
answer,
renderModel,
query,
Expand DownExpand Up@@ -1318,8 +1318,8 @@
query,
safeAnswerText,
bestSource,
currentRelevance,

Check warning on line 1321 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'currentRelevance' is defined but never used
queryMode,

Check warning on line 1322 in src/components/ClinicalDashboard.tsx

View workflow job for this annotation

GitHub Actions/ verify

'queryMode' is defined but never used
sourceGovernanceWarnings,
sourceSummary,
renderModel,
Expand Down
8 changes: 4 additions & 4 deletions src/components/clinical-dashboard/evidence-panels.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -844,29 +844,29 @@ export function ClinicalNotesChecklistPanel({
{bestSource ? (
<Link
href={bestSource.viewer_href}
className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--primary)]"
className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--primary)]"
>
<ExternalLink className="h-3.5 w-3.5" />
Source
</Link>
) : (
<span className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--text-soft)]">
<span className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--text-soft)]">
<ExternalLink className="h-3.5 w-3.5" />
Source
</span>
)}
<button
type="button"
onClick={onCopy}
className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--text)]"
className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--text)]"
>
<Copy className="h-3.5 w-3.5" />
{copied ? "Copied" : "Copy"}
</button>
<button
type="button"
onClick={() => setAdded(true)}
className="inline-flex min-h-11 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--primary)]"
className="inline-flex min-h-12 items-center justify-center gap-1.5 px-2 text-[11px] font-semibold text-[color:var(--primary)]"
>
<Plus className="h-3.5 w-3.5" />
{added ? "Added" : "Add"}
Expand Down
Loading