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
4 changes: 2 additions & 2 deletions docs/design-system/adoption-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1597,8 +1597,8 @@
"src/components/caring-contacts/workspace/overlays/overlay-host.tsx",
"src/components/clinical-dashboard/ClinicalSidebar.tsx",
"src/components/clinical-dashboard/account-setup-dialog.tsx",
"src/components/clinical-dashboard/answer-content.tsx",
"src/components/clinical-dashboard/answer-result-surface.tsx",
"src/components/clinical-dashboard/answer-source-drawer.tsx",
"src/components/clinical-dashboard/clinical-ask-workspace.tsx",
"src/components/clinical-dashboard/dashboard-shell.tsx",
"src/components/clinical-dashboard/guide-dialog.tsx",
Expand Down Expand Up @@ -1628,8 +1628,8 @@
"src/components/caring-contacts/workspace/overlays/overlay-host.tsx",
"src/components/clinical-dashboard/ClinicalSidebar.tsx",
"src/components/clinical-dashboard/account-setup-dialog.tsx",
"src/components/clinical-dashboard/answer-content.tsx",
"src/components/clinical-dashboard/answer-result-surface.tsx",
"src/components/clinical-dashboard/answer-source-drawer.tsx",
"src/components/clinical-dashboard/clinical-ask-workspace.tsx",
"src/components/clinical-dashboard/dashboard-shell.tsx",
"src/components/clinical-dashboard/guide-dialog.tsx",
Expand Down
15 changes: 4 additions & 11 deletions src/components/ClinicalDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ import {
} from "@/components/clinical-dashboard/answer-progress";
import { AnswerEvidencePreview } from "@/components/clinical-dashboard/answer-evidence-preview";
import { requestAnswerStream } from "@/components/clinical-dashboard/answer-request";
import { evidenceMapRowsFromRenderModel } from "@/components/clinical-dashboard/evidence-map-model";
import { MasterSearchHeader } from "@/components/clinical-dashboard/master-search-header";
import { PhoneFooterLayerFrame } from "@/components/clinical-dashboard/phone-footer-layer-portal";
import {
Expand Down Expand Up @@ -461,7 +460,10 @@ function ClinicalDashboardContent({
const [scopeFilters, setScopeFilters] = useState<SearchScopeFilters>(initialSearchNavigationContext.scopeFilters);
const [searchScope, setSearchScope] = useState<SearchScopeSummary | null>(null);
const [sourceGovernanceWarnings, setSourceGovernanceWarnings] = useState<SourceGovernanceWarning[]>([]);
const [answerViewMode, setAnswerViewMode] = useState<AnswerViewMode>("high_yield");
// Write-only for now: the clinical-notes panel was its only reader and the source
// drawer replaced that panel. The state and its resets stay until the panel itself
// is removed (handover §8), so re-wiring a view mode does not have to be rebuilt.
const [, setAnswerViewMode] = useState<AnswerViewMode>("high_yield");
const [bulkActionStatus, setBulkActionStatus] = useState<string | null>(null);
const [bulkActionBusy, setBulkActionBusy] = useState(false);
const [loading, setLoading] = useState(false);
Expand Down Expand Up @@ -2891,11 +2893,6 @@ function ClinicalDashboardContent({
})
.filter((section): section is AnswerSection & { citationSources: SearchResult[] } => section !== null);
}, [answer?.answerSections, answerPreformatted, sourceLookup]);
const answerEvidenceMapRows = useMemo(() => {
if (!answerRenderModel?.allowedBlocks.includes("evidenceMap")) return [];
return evidenceMapRowsFromRenderModel(answerRenderModel).slice(0, answerRenderModel.trust === "high" ? 8 : 6);
}, [answerRenderModel]);

const showSystemNotice = Boolean(setupWarning && !demoMode);
const groupedGovernanceWarningCount = useMemo(
() =>
Expand Down Expand Up @@ -3790,12 +3787,8 @@ function ClinicalDashboardContent({
sourceSummary={sourceSummary}
renderModel={answerRenderModel}
weakEvidence={weakEvidence}
answerViewMode={answerViewMode}
answerEvidenceMapRows={answerEvidenceMapRows}
onScopeDocument={handleScopeDocument}
answerGrounded={answerGrounded}
sources={answerRenderModel.reviewSources}
demoMode={demoMode}
safeAnswerSections={safeAnswerSections}
safetyFindings={safetyFindings}
copiedAnswer={copiedAction === "answer"}
Expand Down
Loading
Loading