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:
@@ -10,6 +10,7 @@ import Alert from '../components/ui/Alert';
|
||||
import CsvAnalysis from '../components/CsvAnalysis';
|
||||
import AuditLogSection from '../components/AuditLogSection';
|
||||
import RunSequenceView from '../components/RunSequenceView';
|
||||
import FileDropZone from '../components/FileDropZone';
|
||||
|
||||
function fmtDate(raw) {
|
||||
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 */}
|
||||
<AuditLogSection tableName="daily_statuses" recordId={status.id} />
|
||||
|
||||
{/* Session file registry */}
|
||||
<FileDropZone
|
||||
rows={[{ animal, status }]}
|
||||
date={String(status.date).slice(0, 10)}
|
||||
/>
|
||||
|
||||
{/* Prev / Next navigation */}
|
||||
<div className="flex justify-between items-center mt-8 mb-6">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user