/** * Annotation Queues list (#146) * * Route: /review * * Lists human-scoring queues (the reviewer workflow on top of the existing * /api/annotations backend) and links into the keyboard-driven review screen. */ import React from 'react'; import { useNavigate } from 'react-router-dom'; import { useApi } from '../hooks/useApi'; import { listQueues } from '../api/annotations'; import type { AnnotationQueue } from '../api/annotations'; function formatDate(iso: string): string { try { return new Date(iso).toLocaleDateString(undefined, { year: 'numeric', month: 'short', day: 'numeric' }); } catch { return iso; } } export function AnnotationQueues(): React.ReactElement { const navigate = useNavigate(); const { data, loading, error } = useApi(() => listQueues(), []); const queues: AnnotationQueue[] = data?.queues ?? []; return (
Human-scoring queues. Open a queue to review and score items; scores attach to the session and the tamper-evident trail.
POST /api/annotations/queues) and add
sessions to review.