feat: add session file registry to daily status detail page

FileDropZone now appears on each subject's individual daily status
page, scoped to that one status. Files are matched against that
subject's animal_id_string and animal_name.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-04-23 13:36:33 -04:00
parent 66e79c1780
commit b73768ee29
+7
View File
@@ -10,6 +10,7 @@ import Alert from '../components/ui/Alert';
import CsvAnalysis from '../components/CsvAnalysis'; import CsvAnalysis from '../components/CsvAnalysis';
import AuditLogSection from '../components/AuditLogSection'; import AuditLogSection from '../components/AuditLogSection';
import RunSequenceView from '../components/RunSequenceView'; import RunSequenceView from '../components/RunSequenceView';
import FileDropZone from '../components/FileDropZone';
function fmtDate(raw) { function fmtDate(raw) {
return format(new Date(String(raw).slice(0, 10) + 'T12:00:00'), 'MMMM d, yyyy'); return format(new Date(String(raw).slice(0, 10) + 'T12:00:00'), 'MMMM d, yyyy');
@@ -550,6 +551,12 @@ export default function DailyStatusDetail() {
{/* Full modification history for this entry */} {/* Full modification history for this entry */}
<AuditLogSection tableName="daily_statuses" recordId={status.id} /> <AuditLogSection tableName="daily_statuses" recordId={status.id} />
{/* Session file registry */}
<FileDropZone
rows={[{ animal, status }]}
date={String(status.date).slice(0, 10)}
/>
{/* Prev / Next navigation */} {/* Prev / Next navigation */}
<div className="flex justify-between items-center mt-8 mb-6"> <div className="flex justify-between items-center mt-8 mb-6">
<div> <div>