Spaces:
Paused
Paused
Commit History
-
feat: add in-app help guide with ❓ button in top bar
- HelpModal component renders condensed annotator guide - Accessible via ❓ Help button in top bar - Scrollable modal with styled markdown tables - Covers navigation, tags, validation, and annotation workflowa3025a6 -
feat: show all pages with jump-to-mention navigation
- documents/route.js now includes ALL pages, not just those with datasets - Added pages_with_mentions array to document data - PageNavigator has ⏮/⏭ jump buttons to skip to pages with mentions - Green ● dot indicator on pages that have data mentions - Users can browse full document context while quickly jumping to mentionse715c5d -
fix: extend highlighting to headings, strong, em, blockquote
UNHCR docs use #### prefixes extensively, rendering text as h4 elements which were not in highlightComponents. Dataset mentions inside headings or bold text were invisible.58e23bb -
ui: 5 polish fixes
1. Rename 'Annotation Tool' → 'Data Use Annotation Tool' 2. Remove redundant 'PDF Viewer' heading 3. Compact document dropdown (smaller font/padding, max-width) 4. PDF viewer defaults to 75% zoom 5. Annotation panel stays closed after save0018d88 -
feat: multi-corpus support
- corpora.json registry: add new corpora by adding entries - All APIs/utils resolve paths via config.js helpers - Per-corpus doc assignments: docs: { wbg: [...], unhcr: [...] } - Document selector shows [World Bank] Doc 3 labels - Leaderboard/progress scan all corpora - generate_assignments.py handles per-corpus distributiona2c885c -
feat: add refresh button to leaderboard + cache-bust API calls
542e5d3 -
feat: add annotation leaderboard with medals and stats
- /api/leaderboard tallies per-annotator: verified, added, docs, score - Leaderboard modal with 🥇🥈🥉 medals and stats table - 🏆 button in top bar to open - Score = verified + human-added mentions75ee81e -
feat: per-annotator validation support for multi-user overlap
- Validate API stores validations in per-annotator 'validations' array - Each annotator's validation is independent; re-validating updates in-place - AnnotationPanel shows only current user's validation status - ProgressBar counts only current user's verified mentions - Next-page prompt checks only current user's unverified mentions - Tag edits (dataset_tag) still go at top levelc9986d8 -
refactor: make progress bar contextual - shows current PDF/page/mentions position
dceb63f -
feat: add progress tracking with docs/pages/mentions verification stats
- /api/progress endpoint computes per-doc and overall stats - ProgressBar component: collapsible bar showing verification % - Expanded view: colored progress bars for docs, pages, mentions - Shows count of human annotations03cc8ff -
fix: proxy PDFs through /api/pdf-proxy to bypass CORS
World Bank PDF server blocks cross-origin requests, preventing Mozilla's hosted PDF.js from loading them. Now PDFs are proxied through our own API endpoint, and the browser's built-in PDF viewer renders them via iframe.e7f7858
-
feat: add loading spinner and error fallback to PDF viewer
Shows 'Loading PDF...' with spinner while iframe loads. Shows error state with 'Open PDF directly' link if load fails. Resets loading state on document/page change.9cc2491 -
feat: on-demand document loading, no limit, PDF loading indicator
- /api/documents now returns just the link list (no pre-fetching) - /api/document returns annotatable_pages on-demand (no page param) - page.js fetches + caches annotatable_pages when doc is selected - PdfViewer shows loading spinner overlay while iframe loads - Removed MAX_DOCS_TO_SCAN concept entirelyb584890 -
fix: use _rawIndex for delete/validate to avoid index mismatch after filtering
The UI filters out consensus non-datasets, shifting display indices. Now _rawIndex (original position in the unfiltered array) is used for all API calls, so the correct entry gets deleted/validated.1626d14 -
fix: rename 'Your Name' to 'Annotator', make read-only, auto-populated from OAuth
290ad35 -
filter: hide consensus non-datasets (model + judge agree)
d08736d -
feat: human validation, recursive highlighting, data mentions rename
- Add human validation UI (✅/❌) for model-extracted data mentions - Validation metadata stored inside dataset_name alongside judge_ fields - Recursive highlighting works inside bold/italic/links - Rename 'Datasets' to 'Data Mentions' throughout - Switch input from _raw.json to _direct_judged.jsonl - Document API reads local files in dev (highlights appear after save) - Add /api/validate (PUT for validation, DELETE by index) - Add /api/whoami for HF username auto-fetch - Floating chevron panel toggle with badge count - Rename annotation_tag to annotatorda957b0