Skip to content

DraugnetUI v2.1.0

Latest

Choose a tag to compare

@iglocska iglocska released this 08 Jul 14:15
v2.1.0
0c0ff59

DraugnetUI v2.1.0

image

Full changelog: v2.0.0...v2.1.0

Highlights

This release adds the "Report via Template" page — a guided, event-template-driven
submission form that renders dynamically from a backend template definition — and
improves the CSV reporting page.

✨ Report via Template (template.html)

A new guided submission page that builds its form from a backend template rather than
a fixed layout:

  • Template picker & render dispatch — searchable GET /templates picker, then
    fetches GET /templates/{uuid} and renders the definition element-by-element.
  • Element renderers for all element types:
    • section, text_block, and attribute_field
    • object_field (via /object_templates)
    • tag_field and galaxy_field pickers (taxonomy / galaxy-cluster backed)
    • file_field (base64 upload) and event_report (Markdown)
  • Event-defaults panel — read-only/informational view of the template's
    event_defaults, with a live {{date}} / {{now}} / {{user}} / {{field:id}}
    info preview.
  • Slim metadata block — PAP / submitter / description, built inline on the page.
  • Client-side validation, submit & token save — mandatory-field enforcement,
    POST /share/template, and automatic token save to localStorage.
  • Theming — full light/dark parity for object instances.

📄 CSV reporting improvements

  • Fixed date-field handling in CSV reports.
  • Added type/category dropdowns (backed by a bundled describeTypes.json).

📚 Documentation

  • Documented the Report-via-Template page in CLAUDE.md.
  • Added an operator UI end-to-end checklist for the template page.