T407558- Proof of concept add work form

This MR includes the following changes:

  • Created comprehensive work submission form with proper validation
  • Integrated Wikimedia Commons image search functionality
  • Implemented real-time image preview with loading states and error handling
  • Implemented real-time Wikidata autocomplete for Work Type field (P31 property)
  • Created backend API endpoint /api/search-wikidata-items for Wikidata searches
  • Added Wikidata person search for Author, Translator, and Illustrator fields
  • Added 500ms debouncing to optimize API calls
  • Created reusable Combobox class for static dropdown fields
  • Implemented Language combobox with predefined options
  • Implemented Country of Origin combobox with filtering
  • Created WikidataPersonSearch class for person entity searches
  • Added keyboard navigation (Arrow keys, Enter, Escape) for all comboboxes
  • Created unified CSS styling for consistent combobox field appearance
  • Added submit handler with success alert for now. No backend.

add_work1

ad_work_two

Merge request reports

Loading