Updated 07-05-2026, 10:26

Commit: a8f66af Show on GitHub

  • Author: RazanSagheer
  • Date: 5/21/2026, 11:24:26 PM
  • Message: feat(research): add upload article button and server action. #382 - Add UploadArticleButton component with file picker, PDF validation, loading state, and success/error feedback - Add uploadArticle server action in +page.server.js with role guard, file validation, and Directus file upload integration - Pass userRole from load() to page for conditional button rendering
  • Stats: 287 total changes (+278 / -9)

Changed Files

  • src/lib/components/buttons/UploadArticleButton.svelte — +245 / -0 (245 changes)
  • src/routes/research/+page.server.js — +1 / -1 (2 changes)
  • src/routes/research/+page.svelte — +32 / -8 (40 changes)